Commit Graph

166 Commits

Author SHA1 Message Date
Konsta
90ac461e90 wifi: overlay: enable background scan 2025-04-04 15:39:48 +03:00
Konsta
62eb1144d2 wifi: overlay: set default name for hotspot 2025-04-04 15:39:48 +03:00
Konsta
77d8790ce1 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 15:39:48 +03:00
Konsta
a01ce599e7 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 15:39:48 +03:00
Konsta
94c7ada425 ramdisk: remove ion 2025-04-04 15:39:48 +03:00
Konsta
866bf15787 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-04 15:39:48 +03:00
Konsta
d6b9ffa0a7 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-04 15:39:48 +03:00
Konsta
c163d769fd 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-04 15:39:48 +03:00
Konsta
efd4ccabbe 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-04 15:39:48 +03:00
Konsta
8d1405c02b sepolicy: various fixes for graphics 2025-04-04 15:39:48 +03:00
Konsta
12cca4b6d9 add chipset properties
* This became needed for CTS some years ago.
  faa63a37c0
2025-04-04 15:39:48 +03:00
Konsta
0356cfa6cb 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-04-04 15:39:48 +03:00
Konsta
75789c00c9 set TARGET_BOOTLOADER_BOARD_NAME
* Populate 'ro.product.board' as well.
* Fixes b310542c14.
2025-04-04 15:39:48 +03:00
Konsta
39e664fbae 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-04-04 15:39:48 +03:00
Konsta
966588f8a6 car: device path has car directory
* Fixes ef8706e703.
2025-04-04 15:39:48 +03:00
Konsta
203595a7e3 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-04-04 15:39:48 +03:00
Konsta
3013eb147b 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-04-04 15:39:48 +03:00
Konsta
17ce2e5af8 reorganize board config 2025-04-04 15:39:48 +03:00
Konsta
d3724efd6d 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-04-04 15:39:48 +03:00
Konsta
d032c4dd63 sepolicy: remove libglapi
* Fixes c2723ef018.
2025-04-04 15:39:48 +03:00
Konsta
1c66db5f75 Revert "overlay: disable screen dimming by default"
* In practice, doesn't disable dimming.

This reverts commit 637bc3f0cd.
2025-04-04 15:39:48 +03:00
Konsta
94162a0ec8 suspend_blocker: move service to init fragment 2025-04-04 15:39:48 +03:00
Konsta
9bf3646dc7 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-04-04 15:39:48 +03:00
Konsta
4445fb6814 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-04-04 15:39:48 +03:00
Konsta
e56edf1c7b virtualization: report vm as supported
* 8c352a4c5c
* Fixes dc1fc3a6e3.
2025-04-04 15:39:48 +03:00
Konsta
f13adde9c0 add touchscreen permission 2025-04-04 15:39:48 +03:00
Konsta
599a4858f5 Revert "car: BT AVRCP target enabled"
* AVRCP target should be enabled with A2DP source and
  AVRCP controller should be enabled with A2DP sink.

This reverts commit cf4022a69486612ba3f892d086800f2ed4461b53.
2025-03-03 17:20:47 +02:00
Konsta
c2723ef018 graphics: remove libglapi from mesa packages
* No longer exists on Mesa 25.0.
2025-03-03 17:20:37 +02:00
Konsta
9a884b980e graphics: disable hwc config groups
* 613a9440a0.
2025-03-03 17:20:24 +02:00
Konsta
83404b1c04 audio: proprietary -> vendor 2025-03-03 17:19:52 +02:00
Konsta
6ed5200894 suspend_blocker: proprietary -> vendor 2025-03-03 17:19:45 +02:00
Konsta
f1dd2ce2df overlay: proprietary -> vendor 2025-03-03 17:19:36 +02:00
Konsta
3674a40bcc 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-03-03 17:19:28 +02:00
Konsta
637bc3f0cd overlay: disable screen dimming by default 2025-03-03 17:19:18 +02:00
Konsta
5b869ecb56 health: fake more battery stats
Change-Id: Ic511604c9ed5e5972af34ef0afb120affacd0586
2025-03-03 17:19:10 +02:00
Konsta
701855aaac cec: add rpi hal implementation
* TODO: Convert to AIDL.
2025-03-03 17:19:01 +02:00
Konsta
625166b4d3 cec: remove mock hal 2025-03-03 17:18:52 +02:00
Konsta
bbfd9e6e92 cec: copy hidl hal
* Copy from hardware/interfaces/tv/cec/1.0/default
  at b04e2f3df5ebbbeea46f555d0965357f05aa1457.
2025-03-03 17:18:41 +02:00
Konsta
defbbe6ab4 cec: remove legacy hal
This reverts commit c0a8378d8b and more.
2025-03-03 17:18:34 +02:00
Konsta
0151cc35c1 mkimg: increase image size to fit 16GB storage device
* This will create a flashable image that is 15569256448 bytes.
* I checked several 16GB sdcards and USB storage devices and the
  actual byte size ranged from 15646851072 to 16008609792.
2025-03-03 17:18:24 +02:00
Konsta
e8e50c8c90 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-03-03 17:18:14 +02:00
Konsta
7c4843cf48 mkimg: set image owner 2025-01-30 20:05:34 +02:00
Konsta
20c58262fd mkimg: minor cleanups 2025-01-30 20:05:34 +02:00
Konsta
edafb8762a mkimg: check partition images exist 2025-01-30 18:49:55 +02:00
Konsta
827581e630 mkimg: strip aosp_ from build target 2025-01-30 18:49:55 +02:00
MinnieTheMoocher
357c27c66a mkimg: use existing env variables instead of hardcoded strings
* this requires to run "lunch" before, the script checks for that
2025-01-30 18:49:55 +02:00
Konsta
193a130304 graphics: add libgbm_mesa to mesa packages
* This gets built as a dependency to minigbm gbm_mesa_driver's
  libgbm_mesa_wrapper but add it here for completeness.
* Move Mesa gbm libraries under separate section.
2024-12-05 19:54:11 +02:00
Konsta
6847630ded sepolicy: update mesa libraries
* Adapt to changes in Mesa 24.2/24.3.
2024-12-05 19:53:06 +02:00
Konsta
cab82fc38b usb: convert gadget hal to aidl
* Based on hardware/interfaces/usb/gadget/aidl/default.
2024-11-22 15:49:54 +02:00
Konsta
a91af8e006 usb: add gadget lib
* Copy from hardware/interfaces/usb/gadget/1.2/default.
2024-11-22 15:49:54 +02:00