Commit Graph

181 Commits

Author SHA1 Message Date
Konsta
971d5b6c09 mkimg: detach loop device 2025-06-08 12:28:34 +03:00
Konsta
a567111d10 wrimg: add more block devices to search 2025-06-08 12:28:26 +03:00
Konsta
30ed6bc9d9 increase system partition size
* Make room for unspecified add-ons.
2025-05-08 15:55:37 +03:00
Konsta
0a545bee4d camera: remove unneeded media profiles property
* This hasn't been needed in years.
  72ad8cb0ae
2025-05-08 15:55:02 +03:00
Konsta
641342d40d 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 15:31:34 +03:00
Konsta
f73605e466 mkimg: improve error message 2025-04-04 15:31:34 +03:00
Konsta
ad8d8e119f wifi: overlay: enable background scan 2025-04-04 15:31:34 +03:00
Konsta
981d1a86ed wifi: overlay: set default name for hotspot 2025-04-04 15:31:34 +03:00
Konsta
374fd0a10f bluetooth: set default device name
* Set default device name for bluetooth.
* I still prefer this displayed as 'Raspberry Pi 5' after commit
  acfacd0969.
2025-04-04 15:31:34 +03:00
Konsta
a10139112e overlay: set default device name
* Set default device name displayed in settings menu.
* I still prefer this displayed as 'Raspberry Pi 5' after commit
  acfacd0969.
2025-04-04 15:31:34 +03:00
Konsta
24261912e5 ramdisk: remove ion 2025-04-04 15:31:34 +03:00
Konsta
2d13fe7084 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:31:34 +03:00
Konsta
503bafe5fc 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:31:34 +03:00
Konsta
ca32aa9f6a 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:31:34 +03:00
Konsta
f194ef56dc boot: remove start_x
* On Pi 5 firmware is self-contained in the bootloader EEPROM. There's no
  extended firmware files.
2025-04-04 15:31:34 +03:00
Konsta
e42d7c2c85 add chipset properties
* This became needed for CTS some years ago.
  faa63a37c0
2025-04-04 15:31:34 +03:00
Konsta
336b3acbd3 sepolicy: various fixes for graphics 2025-04-04 15:31:34 +03:00
Konsta
f1b945544c sepolicy: add more drm devices
* Pi 5 has independent cards for DSI-0, DSI-1, DPI, and VEC.
  In theory we could have two DSI displays so add two more entries.

avc:  denied  { ioctl } for  path="/dev/dri/card2" dev="tmpfs" ino=749 ioctlcmd=0x64bc scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
2025-04-04 15:31:34 +03:00
Konsta
803dff31a4 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:31:34 +03:00
Konsta
ea4a9de2a1 set TARGET_BOOTLOADER_BOARD_NAME
* Populate 'ro.product.board' as well.
* Fixes 1bd1c53659.
2025-04-04 15:31:34 +03:00
Konsta
85f0c2e7df 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 c724e60c78.
2025-04-04 15:31:34 +03:00
Konsta
1d0fbde1c2 car: device path has car directory
* Fixes c2277d28e8.
2025-04-04 15:31:34 +03:00
Konsta
adcc7decfb 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:31:34 +03:00
Konsta
fb4ea86709 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:31:34 +03:00
Konsta
c90767f8ad reorganize board config 2025-04-04 15:31:34 +03:00
Konsta
489b0dd7e1 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:31:34 +03:00
Konsta
72c361529a sepolicy: remove libglapi
* Fixes 63fb691e8f.
2025-04-04 15:31:34 +03:00
Konsta
c197b6e434 Revert "overlay: disable screen dimming by default"
* In practice, doesn't disable dimming.

This reverts commit 9d51fc04b6.
2025-04-04 15:31:34 +03:00
Konsta
f59051b83c suspend_blocker: move service to init fragment 2025-04-04 15:31:34 +03:00
Konsta
60ce02b873 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:31:34 +03:00
Konsta
3529558f7e virtualization: report vm as supported
* 8c352a4c5c
* Fixes dc1fc3a6e3.
2025-04-04 15:31:34 +03:00
Konsta
800892454f add touchscreen permission 2025-04-04 15:31:34 +03:00
Konsta
179295783b 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 cf4022a694.
2025-03-03 17:08:14 +02:00
Konsta
63fb691e8f graphics: remove libglapi from mesa packages
* No longer exists on Mesa 25.0.
2025-03-03 17:07:30 +02:00
Konsta
6ccded2c27 graphics: disable hwc config groups
* 613a9440a0.
2025-03-03 17:07:21 +02:00
Konsta
b2699d4cda audio: proprietary -> vendor 2025-03-03 17:07:09 +02:00
Konsta
84a9f581c0 suspend_blocker: proprietary -> vendor 2025-03-03 17:06:52 +02:00
Konsta
e995a55705 overlay: proprietary -> vendor 2025-03-03 17:06:38 +02:00
Konsta
934d780093 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:06:14 +02:00
Konsta
9d51fc04b6 overlay: disable screen dimming by default 2025-03-03 17:06:07 +02:00
Konsta
6be4c4397c health: fake more battery stats
Change-Id: Ic511604c9ed5e5972af34ef0afb120affacd0586
2025-03-03 17:05:57 +02:00
Konsta
8908ca4289 cec: add rpi hal implementation
* TODO: Convert to AIDL.
2025-03-03 17:05:41 +02:00
Konsta
d4bc9c6804 cec: remove mock hal 2025-03-03 17:05:13 +02:00
Konsta
72fbf40c67 cec: copy hidl hal
* Copy from hardware/interfaces/tv/cec/1.0/default
  at b04e2f3df5ebbbeea46f555d0965357f05aa1457.
2025-03-03 17:05:06 +02:00
Konsta
67ee38657f cec: remove legacy hal
This reverts commit c0a8378d8b and more.
2025-03-03 17:04:46 +02:00
Konsta
60497874a8 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:03:01 +02:00
Konsta
b9cf3a20dc 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:01:39 +02:00
Konsta
96ef319127 mkimg: set image owner 2025-01-30 20:06:19 +02:00
Konsta
40fa313664 mkimg: minor cleanups 2025-01-30 20:06:19 +02:00
Konsta
b654f2f634 mkimg: check partition images exist 2025-01-30 18:51:19 +02:00