Commit Graph

52 Commits

Author SHA1 Message Date
Konsta
9f56322d0d libcamera: switch to aidl hal
* 20c227e0c3
2025-06-27 11:07:55 +03:00
Konsta
0eacc6e521 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:12:12 +03:00
Konsta
0dc4975917 sepolicy: allow keymint to read serialno property 2025-04-02 13:55:01 +03:00
Konsta
8a1b860709 sepolicy: allow vendor_init to set cec property 2025-04-02 13:54:52 +03:00
Konsta
ee074c799e v4l2: use vendor properties 2025-04-02 13:54:26 +03:00
Konsta
e5346626fc ffmpeg: use vendor properties 2025-04-02 13:53:58 +03:00
Konsta
6456ba251c audio: use vendor properties 2025-04-02 13:53:41 +03:00
Konsta
2e6ec77756 sepolicy: 64-bit only 2025-03-31 19:33:45 +03:00
Konsta
48b4fe88df sepolicy: indent file_context and service_contexts by section 2025-03-28 23:40:19 +02:00
Konsta
f3eec1f842 sepolicy: move sysfs entries to genfs_contexts
* rfkill nodes are already labeled by default.
2025-03-28 23:39:13 +02:00
Konsta
2241197367 sepolicy: label wakeup node 2025-03-28 23:39:04 +02:00
Konsta
b6700c25a6 sepolicy: various fixes for graphics 2025-03-28 23:38:38 +02:00
Konsta
e6363fd2d6 sepolicy: fix label type for hdmi connection nodes
* Gets cought with neverallow rules.
* Fixes f6fe82c411.
2025-03-27 12:41:49 +02:00
Konsta
08303135d2 hdmi: connection: convert to apex 2025-03-25 18:00:14 +02:00
Konsta
b7cafd27c1 hdmi: cec: convert to apex 2025-03-25 18:00:03 +02:00
Konsta
f6fe82c411 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 17:59:46 +02:00
Konsta
3022586712 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 17:58:26 +02:00
Konsta
47a329c4e4 cec: convert to aidl
* Use hardware/interfaces/tv/hdmi/cec/aidl/ as reference.
2025-03-25 17:58:14 +02:00
Konsta
4ffea81903 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:38:59 +02:00
Konsta
00e46f0d1e usb: convert gadget to apex 2025-03-19 12:22:48 +02:00
Konsta
e288798b65 light: convert to apex 2025-03-19 12:22:24 +02:00
Konsta
543cb97137 health: convert to apex 2025-03-19 12:22:15 +02:00
Konsta
e03e665eec graphics: switch hwcomposer to apex 2025-03-19 12:22:07 +02:00
Konsta
aa53179895 drm: switch clearkey to apex 2025-03-19 12:21:20 +02:00
Konsta
7d91c1b33c 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:20:30 +02:00
Konsta
d6d1d6fe05 sepolicy: remove libglapi
* Fixes 6a128defbc.
2025-03-17 18:47:07 +02:00
Konsta
2ecea7b694 gatekeeper: switch to aidl apex
* 6ecd625b28
2025-03-11 18:42:25 +02:00
Konsta
2cc1d0e2ab cec: add rpi hal implementation
* TODO: Convert to AIDL.
2025-02-05 20:23:25 +02:00
Konsta
fe6264c79f cec: remove legacy hal
This reverts commit c0a8378d8b and more.
2025-02-05 20:23:00 +02:00
Konsta
4815bb04bd 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:49:46 +02:00
Konsta
3d223ae030 graphics: switch to aidl allocator and gralloc5 mapper 2024-12-13 18:50:51 +02:00
Konsta
941fb0f0c1 sepolicy: add hwc3 hal
* Fixes 3fba3e61e5.
* Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/158.
2024-12-12 17:55:12 +02:00
Konsta
be7c3b6462 sepolicy: update mesa libraries
* Adapt to changes in Mesa 24.2/24.3.
2024-12-05 19:59:21 +02:00
Konsta
c86505857d sepolicy: add bluetooth hal
* Fixes fe5a39b067.
2024-12-05 19:59:14 +02:00
Konsta
f9f7db29e1 usb: convert gadget hal to aidl
* Based on hardware/interfaces/usb/gadget/aidl/default.
2024-11-22 15:53:36 +02:00
Konsta
7276df653b v4l2_codec2: bump hidl hal to 1.2 2024-04-08 11:22:13 +03: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
Konsta
f74ee1fc3d sepolicy: add ffmpeg service
* Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/7
* ABC OCD
2023-02-21 13:52:47 +02:00
Konsta
203db632fa drm: switch clearkey to aidl 2022-09-17 13:58:59 +03:00