Commit Graph

247 Commits

Author SHA1 Message Date
Konsta
f051aa7456 enforce-product-packages-exist: add exception for com.android.ranging
* Android 16 ranging feature.
  https://developer.android.com/develop/connectivity/ranging
* com.android.ranging is nowhere found in AOSP though should be built.
  1e9faa2bc9

build/make/core/main.mk:1096: warning:  device/brcm/rpi4/aosp_rpi4.mk includes non-existent modules in PRODUCT_PACKAGES
Offending entries:
com.android.ranging

build/make/core/main.mk:1096: warning:  device/brcm/rpi4/aosp_rpi4_car.mk includes non-existent modules in PRODUCT_PACKAGES
Offending entries:
Bluetooth
Keyguard
Launcher2
OverviewApp
RotaryIME
RotaryPlayground
com.android.ranging
libnfc_ndef
libvariablespeed
pppd

build/make/core/main.mk:1096: warning:  device/brcm/rpi4/aosp_rpi4_tv.mk includes non-existent modules in PRODUCT_PACKAGES
Offending entries:
com.android.ranging
2025-06-16 13:35:41 +03:00
Konsta
6da2011d04 car: update vehicle aidl to v4 2025-06-16 13:35:41 +03:00
Konsta
97d178fb0f car: switch to v4l2 evs aidl hal 2025-06-16 13:35:41 +03:00
Konsta
dbb03fcd99 bump shipping api level 2025-06-16 13:35:41 +03:00
Konsta
5edcb4f1e5 readme: mkimg: Raspberry Vanilla AOSP 16 2025-06-16 13:35:41 +03:00
Konsta
e0c894f6bb mkimg: adjust flashable image size
* It's been reported that 14848MiB = 15569256448 bytes is still too
  large to fit some 16GB storage devices.
* 15360000000 bytes is dividable by 16384, 4096, 2048, 1024, 512, ...
* Fixes b3a1d84235.
2025-06-08 12:31:44 +03:00
Konsta
08fd823c92 mkimg: detach loop device 2025-06-08 12:31:36 +03:00
Konsta
872f2d93ff wrimg: add more block devices to search 2025-06-08 12:31:27 +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
596751674d increase system partition size
* Make room for unspecified add-ons.
2025-04-17 13:04:11 +03:00
Konsta
b5dfa61808 car: add exceptions for non-existing targets 2025-04-17 13:02:56 +03:00
Konsta
df1f9b11a5 enforce product packages exist 2025-04-17 13:02:45 +03:00
Konsta
8848000689 add empty product manifest
* Needed with enforce-product-packages-exist.
* c38cec789c
2025-04-17 13:02:36 +03:00
Konsta
b859ded61e wifi: remove hostapd_cli and wpa_cli
* These are mostly useful for debugging purposes so I've added them
  in the project's utilities wiki page.
2025-04-12 18:19:07 +03:00
Konsta
6805e02d6a audio: remove tinyalsa utils
* These are mostly useful for debugging purposes so I've added them
  in the project's utilities wiki page.
2025-04-12 18:19:07 +03:00
Konsta
f3265ec330 audio: remove alsa-utils
* These are mostly useful for debugging purposes so I've added them
  in the project's utilities wiki page.
* alsa-utils have been renamed to use their original names if there's no
  conflict with other packages in AOSP.
2025-04-12 18:18:44 +03:00
Konsta
f46b7392fe camera: remove unneeded media profiles property
* This hasn't been needed in years.
  72ad8cb0ae
2025-04-12 18:17:35 +03:00
Konsta
2103ad1dea ffmpeg: move media codecs config & seccomp policy to device
* 71ac744017
2025-04-09 12:53:04 +03:00
Konsta
1b4858762d v4l2: move seccomp policy under same section 2025-04-09 12:30:29 +03:00
Konsta
583d56ec4b wrimg: add script to write partition images
* Can be used to write partition images to a storage device that has the
  correct partition structure after flashing an image created by mkimg.sh.
* Poor man's alternative to
  fastboot flash boot boot.img
  fastboot flash system system.img
  fastboot flash vendor vendor.img
  fastboot erase userdata
2025-04-04 10:34:11 +03:00
Konsta
47143a3804 mkimg: improve error message 2025-04-04 10:33:59 +03:00
Konsta
a33fafc261 wifi: overlay: enable background scan 2025-04-04 10:33:45 +03:00
Konsta
13af585d0d wifi: enable 5GHz hotspot 2025-04-04 10:33:35 +03:00
Konsta
8e63b830e2 wifi: overlay: set default name for hotspot 2025-04-04 10:33:27 +03:00
Konsta
a96b2234a4 bluetooth: set default device name
* Set default device name for bluetooth.
* I still prefer this displayed as 'Raspberry Pi 4' after commit
  c8117b1305.
2025-04-04 10:33:19 +03:00
Konsta
062049cecd overlay: set default device name
* Set default device name displayed in settings menu.
* I still prefer this displayed as 'Raspberry Pi 4' after commit
  c8117b1305.
2025-04-04 10:33:10 +03:00
Konsta
faa832f059 ramdisk: remove ion 2025-04-02 13:58:03 +03:00
Konsta
27d5b9a0b8 v4l2: don't allocate using ion
Codec2.0 poolMask:
  ION(16)
  BUFFERQUEUE(18)
  BLOB(19)
  V4L2_BUFFERQUEUE(20)
  V4L2_BUFFERPOOL(21)
  SECURE_LINEAR(22)
  SECURE_GRAPHIC(23)

For linear buffer allocation:
  If ION is chosen, then the mask should be 0xf50000
  If BLOB is chosen, then the mask should be 0xfc0000

0xf50000 -> 11110101 0000000000000000
0xfc0000 -> 11111100 0000000000000000
2025-04-02 13:57:38 +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
d10016b71d audio: auto probe pcm card for jack & dac
* When 'jack' is selected using the property, first PCM card that has name
  'Headphones' is used.
  When 'dac' is selected, first PCM card that is not named 'Headphones',
  'vc4hdmi0', or 'vc4hdmi1' is used.
2025-04-02 13:53:14 +03:00
Konsta
4aa73b41a6 audio: cache pcm card and device
* It's always been intended that changing audio output devices requires
  a reboot. Get the PCM card and device once when the HAL is initialized.
  Might save a few ms on start_output_stream.
2025-04-02 13:52:36 +03:00
Konsta
bc7579e2a5 hdmi audio: cache alsa device
* It's always been intended that changing audio output devices requires
  a reboot. Get the ALSA device once when the HAL is initialized.
  Might save a few ms on start_output_stream.
2025-04-02 13:52:25 +03:00
Konsta
5420780e92 bump shipping api level
* HIDL services are not included on API level 35. Add the services since
  we're still using few HIDL HALs.
  4ce8327a8f
* FCM level can't be bumped to 202404 until all HALs have been updated to
  AIDL i.e. at least following HALs reported by 'make check-vintf-all'.

All HALs in device manifest are declared in FCM <= level 202404
ERROR: files are incompatible:
...
android.hardware.camera.provider@2.5::ICameraProvider/legacy/0 is deprecated in compatibility matrix at FCM Version 202404; it should not be served.
    because it matches android.hardware.camera.provider@2.4::ICameraProvider/[^/]+/[0-9]+ from /system/etc/vintf/compatibility_matrix.7.xml
android.hardware.audio@7.1::IDevicesFactory/default is deprecated in compatibility matrix at FCM Version 202404; it should not be served.
    because it matches android.hardware.audio@7.0::IDevicesFactory/default from /system/etc/vintf/compatibility_matrix.8.xml
android.hardware.audio.effect@7.0::IEffectsFactory/default is deprecated in compatibility matrix at FCM Version 202404; it should not be served.
    because it matches android.hardware.audio.effect@7.0::IEffectsFactory/default from /system/etc/vintf/compatibility_matrix.8.xml: Success
INCOMPATIBLE
2025-03-31 19:34:18 +03:00
Konsta
05888d86db camera: add to framework compatibility matrix
* Picked up by 'make check-vintf-all'.

The following instances are in the device manifest but not specified in framework compatibility matrix:
    android.hardware.camera.provider@2.5::ICameraProvider/legacy/0
2025-03-31 19:34:03 +03:00
Konsta
46fe18c658 remove device compatibility matrix
* Use default device compatibility matrix from
  system/libhidl/vintfdata/device_compatibility_matrix.default.xml.
* 282994a8a2
2025-03-31 19:33:55 +03:00
Konsta
2e6ec77756 sepolicy: 64-bit only 2025-03-31 19:33:45 +03:00
Konsta
be863bb0bf switch to 64-bit only target 2025-03-31 19:33:37 +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
667fad95e6 hdmi: cec: remove onHotplugEvent
* HDMI connection HAL should manage this.
2025-03-25 17:58:58 +02:00