Commit Graph

54 Commits

Author SHA1 Message Date
Konsta
3f5dba6729 libcamera: switch to aidl hal
* 20c227e0c3
2025-06-27 11:06:10 +03:00
Konsta
305b81cdf5 light: support more backlight paths
* I2C address for the panel regulator driver depends on the device and
  DSI port the display is connected on. Add more backlight paths to support
  different hardware configurations. Also add path for legacy rpi_backlight
  driver to make testing easier.
2025-05-02 14:13:42 +03:00
Konsta
7120a38fea ffmpeg: switch to apex 2025-04-09 12:28:47 +03:00
Konsta
d7a91d0681 ffmpeg: switch to aidl
* Also switch codec2 framework to use AIDL.
  cc7adc6936
2025-04-09 12:27:35 +03:00
Konsta
91aa0a3e83 sepolicy: allow keymint to read serialno property 2025-04-02 13:48:21 +03:00
Konsta
e31b63ccc8 sepolicy: allow vendor_init to set cec property 2025-04-02 13:48:07 +03:00
Konsta
6f57d4d8af ffmpeg: use vendor properties 2025-04-02 13:47:35 +03:00
Konsta
87e473d8ff audio: use vendor properties 2025-04-02 13:46:45 +03:00
Konsta
608f723562 sepolicy: 64-bit only 2025-03-31 19:28:57 +03:00
Konsta
17fce4b6a0 sepolicy: indent file_context and service_contexts by section 2025-03-28 23:43:52 +02:00
Konsta
b26a4d8c30 sepolicy: move sysfs entries to genfs_contexts
* rfkill nodes are already labeled by default.
2025-03-28 23:42:52 +02:00
Konsta
37863d4b4f sepolicy: label wakeup node 2025-03-28 23:42:42 +02:00
Konsta
22a75c85a4 sepolicy: various fixes for graphics 2025-03-28 23:42:34 +02:00
Konsta
4596a7546d sepolicy: fix label type for hdmi connection nodes
* Gets cought with neverallow rules.
* Fixes 39a71902e0.
2025-03-27 12:40:18 +02:00
Konsta
4dc3e0f0d8 hdmi: connection: convert to apex 2025-03-25 18:05:43 +02:00
Konsta
59af7f93eb hdmi: cec: convert to apex 2025-03-25 18:05:35 +02:00
Konsta
39a71902e0 hdmi: connection: add rpi specific aidl hal
* Needed for AIDL HDMI-CEC HAL to work. Some functions that were in the
  HIDL HDMI-CEC HAL have been moved to separate HDMI connection HAL in the
  AIDL versions. Only returns connection status of HDMI ports on Pi.
  onHotplugEvent is not implemented.
* Use hardware/interfaces/tv/hdmi/connection/aidl/ as reference.
2025-03-25 18:05:16 +02:00
Konsta
e248cd4d77 cec: use vendor property for device & remove unneeded properties
* Use vendor property to allow labeling it for SELinux.
* Remove unneeded properties to set version and vendor id. Using the
  default values in any case.
2025-03-25 18:04:22 +02:00
Konsta
f200aca4ce cec: convert to aidl
* Use hardware/interfaces/tv/hdmi/cec/aidl/ as reference.
2025-03-25 18:04:13 +02:00
Konsta
e1d92d2183 suspend_blocker: convert to apex
* Start the service later at 'class hal' to avoid making this into bootstrap
  APEX. 'class early_hal' is started on trigger 'on late-fs' which is too
  early for vendor APEX.
2025-03-20 13:37:44 +02:00
Konsta
61e83a2939 sepolicy: add more drm devices
* Pi 5 has independent cards for DSI-0, DSI-1, DPI, and VEC.
  In theory we could have two DSI displays so add two more entries.

avc:  denied  { ioctl } for  path="/dev/dri/card2" dev="tmpfs" ino=749 ioctlcmd=0x64bc scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
2025-03-20 13:36:06 +02:00
Konsta
2e3182f4cc usb: convert gadget to apex 2025-03-19 12:16:16 +02:00
Konsta
0106e97a16 light: convert to apex 2025-03-19 12:15:21 +02:00
Konsta
909a21f5d1 health: convert to apex 2025-03-19 12:14:26 +02:00
Konsta
2a653366d0 graphics: switch hwcomposer to apex 2025-03-19 12:14:10 +02:00
Konsta
67ea1fb3ae drm: switch clearkey to apex 2025-03-19 12:13:43 +02:00
Konsta
16d401ff12 bluetooth: convert to apex
* Use device as an identifier in package names so APEXs on rpi4/rpi5 trees
  can co-exist. Somehow apex definitions escape the soong namespace. It
  doesn't complain about duplicate package names but dependecies later in
  the build after analyzing Android.bp files and generating ninja file.
  FAILED: ninja: ... multiple rules generate com.android.hardware.bluetooth.rpi-deps-info [-w dupbuild=err]
  https://android.googlesource.com/platform/build/soong/+/refs/heads/main/README.md#namespaces
* Not sure if this is an AOSP bug or intended behaviour for apex targets.
  Don't like using the rpi4/rpi5 tags but couldn't come up with better
  solution to limit the visibility that worked.
* General cleanups. As APEX package contains all dependencies that are
  needed for the service, remove unused shared libraries.
  Run 'bpfmt -s -w Android.bp'.
2025-03-19 12:09:58 +02:00
Konsta
22f4f46410 sepolicy: remove libglapi
* Fixes 6a128defbc666a7fea920a1dbb01f3fdff4ec657.
2025-03-17 18:48:11 +02:00
Konsta
dc248dcb02 gatekeeper: switch to aidl apex
* 6ecd625b28
2025-03-11 18:38:32 +02:00
Konsta
07e066812c cec: add rpi hal implementation
* TODO: Convert to AIDL.
2025-02-05 20:20:07 +02:00
Konsta
f999796b13 cec: remove legacy hal
This reverts commit c0a8378d8b and more.
2025-02-05 20:18:33 +02:00
Konsta
2da7253013 lights: boot: use DSI panel regulator driver
* Old rpi_backlight driver is no longer used on recent kernel versions.
  Regulator driver is used for backlight instead.
* Change the backlight path and implement scaling to support the official
  Raspberry Pi 7" DSI Touch Display & Touch Display 2.
* The original Touch Display has max brightness of 255 while the new Touch
  Display 2 has 31.
2025-02-02 15:47:10 +02:00
Konsta
1899d4a4e4 graphics: switch to aidl allocator and gralloc5 mapper 2024-12-13 18:50:20 +02:00
Konsta
aaaabffb91 sepolicy: add hwc3 hal
* Fixes a47cb47fba.
* Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/158.
2024-12-12 18:10:16 +02:00
Konsta
87ece4d4b9 sepolicy: update mesa libraries
* Adapt to changes in Mesa 24.2/24.3.
2024-12-05 19:50:11 +02:00
Konsta
8a9e11b327 sepolicy: add bluetooth hal
* Fixes 1ae3ede91b.
2024-12-05 19:48:41 +02:00
Konsta
380ec34eed usb: convert gadget hal to aidl
* Based on hardware/interfaces/usb/gadget/aidl/default.
2024-11-22 15:55:35 +02:00
Konsta
32979cf0ba remove v4l2_codec2
* Raspberry Pi 5 doesn't have H.264 hardware video decoder/encoder.
2023-11-24 13:25:25 +02:00
Konsta
3f4462dd77 usb: add gadget hal
* Copy from hardware/interfaces/usb/gadget/1.2/default with udc
  path changed and service renamed for Raspberry Pi.
2023-10-12 10:23:56 +03:00
Konsta
d1476ec29f sepolicy: update for ffmpeg service
* There's no suffix in the service's name so drop the wildcard.
2023-10-12 10:23:56 +03:00
Konsta
c9cb165c19 sepolicy: update drm for aidl
* There no need for the wildcards for the HIDL versions.
* Widevine service can have a suffix in Android 14.
2023-10-12 10:23:56 +03:00
Konsta
003d08a615 thermal: switch to aidl 2023-10-12 10:19:53 +03:00
Konsta
b194bfeb50 build mock thermal hal 2023-09-27 19:46:07 +03:00
Konsta
f973ec3b27 sepolicy: escape dots 2023-09-27 19:45:20 +03:00
Konsta
a44c8a0e42 sepolicy: define cec hal domain 2023-08-22 19:13:14 +03:00
Konsta
b11baea4dd health: convert to aidl hal
* hardware/interfaces/health/aidl/default
2023-07-29 13:41:37 +03:00
Konsta
cc4df73839 light: convert to aidl hal
* hardware/interfaces/light/aidl/default
2023-07-29 13:41:26 +03:00
Konsta
18cc1bd154 bluetooth: switch to btlinux 2023-07-27 17:06:38 +03:00
Konsta
c0a8378d8b add hdmi cec hal
* Based on AOSP yukawa HDMI-CEC HAL
  https://android.googlesource.com/device/amlogic/yukawa/+/refs/heads/main/hal/hdmicec/
2023-07-25 15:20:44 +03:00
Konsta
aa699b1415 sepolicy: remove alsa_loop 2023-04-11 10:52:52 +03:00