Commit Graph

194 Commits

Author SHA1 Message Date
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
080a9d7c3a add chipset properties
* This became needed for CTS some years ago.
  faa63a37c0
2025-03-20 13:38:42 +02:00
Konsta
e82989d87f wifi: package hostapd and wpa_supplicant into apex
* This is now possible on Android 15 QPR2. Use cuttlefish as reference.
  https://android.googlesource.com/device/google/cuttlefish/+/refs/tags/android-15.0.0_r20/apex/com.google.cf.wpa_supplicant/
* Create local copies of the service entries. Generally creating the
  directories for wireless subsystem happens on trigger 'on post-fs-data'.
  Since apexd for non-bootstrap APEXs starts 'on post-fs-data', this
  trigger is not available for vendor APEX packages. Use trigger
  'apex.all.ready=true' instead which is later still within post-fs-data.
  https://source.android.com/docs/core/ota/vendor-apex#init-scripts
* Create a local copy of wpa_supplicant_overlay.conf. It hasn't been updated
  in ten years in hardware/broadcom/wlan. TODO: Check relevance.
2025-03-19 12:23:04 +02:00
Konsta
6db460055a wifi: switch to apex 2025-03-19 12:22:56 +02:00
Konsta
00e46f0d1e usb: convert gadget to apex 2025-03-19 12:22:48 +02:00
Konsta
faabc62ea4 usb: switch to apex 2025-03-19 12:22:40 +02:00
Konsta
ca95b7824f power: switch to apex
* In addtion to android.hardware.power-service.example,
  com.android.hardware.power APEX also contains
  android.hardware.power.stats-service.example.
2025-03-19 12:22:32 +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
146369a9a4 bluetooth: remove unused BDROID_BUILDCFG header
* Doesn't do anything if BOARD_HAVE_BLUETOOTH_BCM is not set.
* Bluetooth device name is parsed from 'ro.product.model' if no default
  is provided using 'bluetooth.device.default_name' property.
2025-03-18 23:49:39 +02:00
Konsta
221f89b35f set TARGET_BOOTLOADER_BOARD_NAME
* Populate 'ro.product.board' as well.
* Fixes b310542c14.
2025-03-18 20:26:49 +02:00
Konsta
8fc1e786fc Revert "car: Disabled BT MAP causing cyclic BT reconnect"
* This should be enabled on automotive targets and I can't reprocude any
  connection issues described in https://github.com/raspberry-vanilla/android_local_manifest/issues/33.
* Partially fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/110.

This reverts commit 973797e543.
2025-03-18 16:38:10 +02:00
Konsta
06c2ae2559 car: device path has car directory
* Fixes ef8706e703.
2025-03-18 16:38:02 +02:00
Konsta
c8117b1305 cleanup device identifiers
* Drop Raspberry from model as some hardware information applications
  display it after the manufacturer/brand and we'll end up with duplicate
  Raspberry in the device name.
* PRODUCT_RELEASE_NAME is long gone.
2025-03-18 16:37:54 +02:00
Konsta
b310542c14 set hardware platform name
* Some hardware information applications use this so set actual hardware
  platform name.
* Historic reason why this was set to rpi is that this allowed to use same
  HALs on rpi3/rpi4 when they were commonized. 'ro.board.platform' this sets
  is used in the legacy module load order.
  https://android.googlesource.com/platform/hardware/libhardware/+/refs/tags/android-15.0.0_r20/modules/README.android
  This has no use with modern HIDL/AIDL/APEX HALs. For legacy HALs name can
  be implicitly set using system properties (e.g. 'ro.hardware.audio.primary'
  that's still relevant).
2025-03-18 16:37:46 +02:00
Konsta
f92559efc7 reorganize board config 2025-03-18 16:37:30 +02:00
Konsta
8ec47479b4 treble: remove deprecated vndk flag
* Deprecated in Android 15.
  https://source.android.com/docs/whatsnew/android-15-release#deprecate-vndk
  69f5dbb0d0
2025-03-18 16:37:12 +02:00
Konsta
93dbd7462f treble: remove unneeded flags
* PRODUCT_FULL_TREBLE gets set on PRODUCT_SHIPPING_API_LEVEL >= 26.
  There's no need to override it.
  2b32469c47
* BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED gets set with PRODUCT_FULL_TREBLE.
  c227ce7c25
2025-03-17 19:34:41 +02:00
Konsta
d6d1d6fe05 sepolicy: remove libglapi
* Fixes 6a128defbc.
2025-03-17 18:47:07 +02:00
Konsta
b57146cc25 Revert "overlay: disable screen dimming by default"
* In practice, doesn't disable dimming.

This reverts commit e934722c00.
2025-03-16 17:53:59 +02:00
Konsta
2aaf56aafd suspend_blocker: move service to init fragment 2025-03-16 17:47:20 +02:00
Konsta
19f52b0ded memory: remove lmkd properties
* These were added years ago when userspace low memory killer daemon
  was introduced. For most part these match the defaults and ones that
  dont't, shouldn't be set on Android R and above.
  https://android.googlesource.com/platform/system/memory/lmkd/+/refs/tags/android-15.0.0_r20/README.md
  cc5d2cca25
2025-03-16 17:47:12 +02:00
Konsta
5dc267dfe4 keylayout: update for Android 15 QPR2
* Changes from frameworks/base/data/keyboards/Generic.kl
2025-03-16 17:47:03 +02:00
Konsta
533b650a59 ffmpeg: ramdisk: move H.265 decoder device nodes under separate section
console:/ # v4l2-ctl --list-devices
...
rpi-hevc-dec (platform:rpi-hevc-dec):
        /dev/video19
        /dev/media0
2025-03-16 17:44:52 +02:00
Konsta
6001b95ce2 keymaster: replace with keymint aidl apex
* 2d24638a3d
* Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/29.
2025-03-11 18:42:38 +02:00
Konsta
2ecea7b694 gatekeeper: switch to aidl apex
* 6ecd625b28
2025-03-11 18:42:25 +02:00
Konsta
3ad6a96d46 Revert "storage: disable stable uris for for external primary"
* Disabled by default on Android 15.
  1e52eb6f54

This reverts commit f6d1a17729645e2b1f877ab0f86765aed536764d.
2025-03-11 18:41:43 +02:00
Konsta
60955c261b health: update aidl to v4
* 148b5d9248
2025-03-06 17:23:04 +02:00
Konsta
24b579dfc4 virtualization: report vm as supported
* 8c352a4c5c
* Fixes dc1fc3a6e3.
2025-03-06 17:22:52 +02:00
Konsta
8f75b1471c add touchscreen permission 2025-03-06 17:22:13 +02:00
Konsta
4edc28ddf9 libcamera: add configurations for imx519 and ov64a40 camera modules 2025-03-02 13:22:34 +02:00
Konsta
579d405eaf audio: proprietary -> vendor 2025-03-02 13:22:25 +02:00
Konsta
ba42314531 suspend_blocker: proprietary -> vendor 2025-03-02 13:22:18 +02:00
Konsta
f3f1bf945f overlay: proprietary -> vendor 2025-03-02 13:22:00 +02:00
Konsta
7ab77538e6 bluetooth: enable A2DP sink
* A2DP source and sink can coexist on Android 15.
  https://android-review.googlesource.com/q/topic:%22bt_a2dp_src_sink_coexist%22
* Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/188.
2025-03-01 22:27:41 +02:00
Konsta
b3a1d84235 mkimg: adjust flashable image size again
* Different decimal separator is used depending on the locale.
* 14848MiB = 15569256448 bytes.
* Fixes https://github.com/raspberry-vanilla/android_local_manifest/issues/187.
* Fixes fd9c60bdaf.
2025-02-27 17:36:20 +02:00
Konsta
fd9c60bdaf mkimg: adjust flashable image size
* Raspberry Pi Imager expects image size to be multiple of 512 bytes
  so revert back to using gibibytes.
* 14.5GiB = 15569256448 bytes.
* Fixes e5359d2734.

Change-Id: Iae83ff6a3eb2b6033279ac5bfcd5d952577eeefa
2025-02-25 19:56:55 +02:00
Konsta
6a128defbc graphics: remove libglapi from mesa packages
* No longer exists on Mesa 25.0.
2025-02-25 17:01:43 +02:00
Konsta
41ddcf5ca5 overlay: tv: remove minimum screenoff timeout
* Fixes screen saver on Android TV.
* IIRC this is an old hack when Android TV didn't respect stay awake
  option. Probably hasn't been needed in years.
2025-02-20 15:14:41 +02:00
Konsta
e942debb44 health: fake more battery stats
Change-Id: Ic511604c9ed5e5972af34ef0afb120affacd0586
2025-02-20 15:14:31 +02:00
Konsta
e5359d2734 mkimg: increase image size to fit 16GB storage device
* This will create a flashable image that is 15500000000 bytes.
* I checked several 16GB sdcards and USB storage devices and the
  actual byte size ranged from 15646851072 to 16008609792.
2025-02-20 15:14:22 +02:00
Konsta
9f396b332a mkimg: use fallocate to create the image
* This is much faster than creating a file by filling it with zeroes.
* Remove unnecessary quotes for consistency.
2025-02-20 15:14:14 +02:00
Konsta
dfdcfe5c6e Revert "graphics: disable hwc config groups"
* Disabled by default on upstream
  cd3902ab4a.

This reverts commit aa56ad1961.
2025-02-20 15:13:46 +02:00
Konsta
05919b729a cec: check input on device property 2025-02-06 15:01:17 +02:00
Konsta
2cc1d0e2ab cec: add rpi hal implementation
* TODO: Convert to AIDL.
2025-02-05 20:23:25 +02:00
Konsta
bc6e2d5ee2 cec: remove mock hal 2025-02-05 20:23:18 +02:00