Commit Graph

32 Commits

Author SHA1 Message Date
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
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
Jason Macnak
8c709130cd sepolicy: Remove sysfs_gpu type definition
... as it has moved to system/sepolicy.

Bug: b/161819018
Test: presubmit
Change-Id: I77afd0d7019e0ea0cc475de3817bc2c8e7fcd4bd
Merged-In: I77afd0d7019e0ea0cc475de3817bc2c8e7fcd4bd
2022-09-17 13:58:59 +03:00
Konsta
bbdbc45eea initial Raspberry Vanilla AOSP 12 commit
* Audio
  - Based on AOSP hikey audio HAL:
    https://android.googlesource.com/device/linaro/hikey/+/refs/heads/master/audio/
  - ALSA based on Android-x86
  - ALSA loop is used to support HDMI audio on Pi 4 because VC4 HDMI
    audio devices use SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE that is not
    supported on Android
    https://github.com/raspberrypi/linux/issues/4651
    https://github.com/raspberrypi/linux/issues/4654

* Bluetooth
  - AOSP Broadcom vendor stack with some additional fixes from android-rpi

* Camera
  - libcamera for official Raspberry Pi CSI camera modules based on GloDroid
  - AOSP external camera HAL for UVC USB webcams:
    https://source.android.com/docs/core/camera/external-usb-cameras

* Graphics
  - OpenGL & Vulkan: upstream Mesa with GloDroid patches
  - Upstream drm_hwcomposer with force resolution patch from Android-x86 and
    my additional fixes
  - minigbm based on GloDroid

* Health
  - Based on AOSP cuttlefish health HAL

* Kernel
  - Merge of Raspberry Pi and AOSP common kernel with my additional fixes
    and configurations
    https://github.com/raspberrypi/linux
    https://android.googlesource.com/kernel/common/

* Lights
  - Based on LineageOS Xiaomi msm8996-common lights HAL

* suspend_blocker
  - Based on AOSP cuttlefish

* v4l2_codec2
  - Based on AOSP with my Raspberry Pi 4 specific fixes

* Wifi
  - AOSP Broadcom vendor stack with my additional fixes
2022-09-17 13:57:57 +03:00