Commit Graph

355 Commits

Author SHA1 Message Date
oxmc fe369531ea wrimg: fix misc zero by specifying exact count via blockdev 2026-06-09 23:27:09 -07:00
oxmc 4ab05b94d3 sepolicy: use dontaudit for vendor_default_prop; allow rules violated neverallow
get_prop(domain, vendor_default_prop) expands to allow rules that AOSP's
neverallow at public/property.te:353 blocks for all system/app domains.
Switch to dontaudit to suppress the log spam without an allow rule.
2026-06-09 22:40:39 -07:00
oxmc c5112e340b sepolicy: fix vendor_default_prop denials, label v4l2/camera devices
- Allow system_server, mediaswcodec, platform_app, system_app,
  untrusted_app_all, priv_app to read vendor_default_prop; eliminates
  RenderThread SELinux spam that was causing render lag
- Label android.hardware.media.c2.IComponentStore/v4l2 as
  hal_codec2_service in service_contexts so system_server can find it
- Add /dev/media* and /dev/video* as video_device in file_contexts
- Allow hal_camera_default to access video_device:chr_file and dir
2026-06-09 22:09:49 -07:00
oxmc df441e2d0f Add ZRAM swap with configurable size (default 50%)
Adds four fstab.zram.{25p,50p,75p,none} variants copied to vendor/etc.
init.rpi5.rc activates swap at boot_complete using persist.vendor.zram.size.
Adds vm.min_free_kbytes/lowmem_reserve_ratio memory tuning on init.
SELinux: declares vendor_zram_config_prop for persist.vendor.zram.size.
2026-06-09 06:55:11 -07:00
oxmc 2305b68a69 Fix: rename pawlet_ota_prop to vendor_pawlet_ota_prop for VTS compliance 2026-06-09 05:23:44 -07:00
oxmc c4cc0d5da1 Fix: replace handheld_core_hardware.xml with targeted phone permissions 2026-06-09 04:47:14 -07:00
oxmc c1404c181f Fix: SELinux neverallow violations; rename pawlet OTA property to vendor namespace
Remove vendor_default_prop and bluetooth_lea_prop get_prop rules — both violate
AOSP neverallow rules (vendor_default_prop is banned for all app domains;
bluetooth_lea_prop is a platform type not exported to the vendor policy interface).
Remove generic sysfs:file allow for init and system_server — both violate
neverallow rules in init.te and coredomain.te; proper labeled sysfs types are
needed when specific paths are identified from avc: denied logs.
Rename ro.pawlet.ota. -> ro.vendor.pawlet.ota. to satisfy VTS vendor property
namespace enforcement.
2026-06-09 04:40:53 -07:00
oxmc 14c7bd67f9 Fix: SELinux priv_app/system_app prop access; enable TCP ADB on userdebug
- priv_app.te: get vendor_default_prop + bluetooth_lea_prop (Settings, priv apps)
- system_app.te: get vendor_default_prop
- device.mk: persist.adb.tcp.port=5555 for userdebug builds only
2026-06-08 08:51:55 -07:00
oxmc 182e88ac30 Fix: SELinux denials from Android 16 boot log; add missing configs/
- hal_boot_control: allow kmsg_device write for slot operation logging
- init: allow sysfs file write (block queue tuning) and debugfs_bootreceiver_tracing
- service_contexts: label ffmpeg IComponentStore as hal_codec2_service
- property.te / property_contexts / vendor_init: add pawlet_ota_prop type
- system_server: get vendor_default_prop, read sysfs (HID keyboard layout)
- platform_app: get vendor_default_prop and bluetooth_lea_prop (SystemUI)
- untrusted_app_all: get vendor_default_prop (HWUI render thread)
- hal_camera: allow sysfs dir read for camera node enumeration
- configs/provisioner/vendor.cfg: add missing file referenced by all product makefiles
2026-06-08 06:02:13 -07:00
oxmc 559b085c0c product: add LawnchairQuickStep to PRODUCT_PACKAGES
Now that the prebuilt defines a separate LawnchairQuickStep module,
include it alongside Lawnchair so Launcher3QuickStep (recents/overview)
is also replaced by the Lawnchair APK.
2026-06-08 01:09:09 -07:00
oxmc 6afef06aa1 fstab: remove discard from metadata; make opt-in via BOARD_STORAGE_SUPPORTS_DISCARD
mkbootimg: use stamp file for rpiboot, uppercase FAT label

fstab: USB drives don't support TRIM — requesting discard stalls jbd2
journal commits and causes Watchdog kills. Add fstab.rpi5.discard for
devices that do support TRIM (SD card, SSD); select via
BOARD_STORAGE_SUPPORTS_DISCARD := true in BoardConfig.mk.

mkbootimg: stamp file fixes ninja 'outputs should be files' warning.
Uppercase BOOT label suppresses mkfs.fat lowercase label warning.
2026-06-07 03:26:39 -07:00
oxmc d8c1072ad4 mkimg: update system (8GB) and vendor (2GB) partition sizes 2026-06-05 14:48:10 -07:00
oxmc e15e17b20e BoardConfig: system 8GB, vendor 2GB 2026-06-05 14:28:57 -07:00
oxmc 3a6e8549d0 wrimg: grow userdata to fill the device on flash
Writing the fixed-size disk image to a larger device leaves userdata at its
image size (128M) and strands the backup GPT header mid-disk. wipe_userdata now
relocates the backup GPT to the true end of the device (fixing the 'Alternate
GPT header not at the end of the disk' kernel warning) and recreates partition 9
spanning all remaining free space before formatting it.
2026-06-04 17:16:01 -07:00
oxmc 7a9fde6491 rpi5: disable AVB (no vbmeta partition in layout)
Match rpi4. Our partition layout has no vbmeta partition, so Android Verified
Boot must be off or first-stage init fails verification and bootloops.
2026-06-04 17:03:27 -07:00
oxmc 3cd43b017d rpi5: set androidboot.boot_devices for by-name partition mounts
Mirror of the rpi4 fix. First-stage init only creates /dev/block/by-name/*
symlinks for partitions on a declared boot device, and our fstab mounts
by-name. RPi5 USB is on the RP1 chip behind the internal PCIe and RP1's xHCI
is a platform device, so init matches at the .usb node (deeper than RPi4's
VL805). List NVMe (external PCIe) and the RP1 USB controllers; exact-match set
makes extra entries harmless. To be verified/trimmed against an RPi5 serial log.
2026-06-04 17:02:17 -07:00
oxmc 7b98436cda wrimg: stamp androidboot.slot_suffix in cmdline.txt after boot partition writes 2026-06-04 15:43:44 -07:00
oxmc 7051272055 sepolicy: add BootControl HAL policy and fix partition file_contexts 2026-06-04 10:03:30 -07:00
oxmc 6a371a34c5 wrimg: use PARTLABEL for device detection, fix system_ext bracket syntax 2026-06-04 07:23:47 -07:00
oxmc 099e9f6f4e Fix git lfs 2026-06-03 22:17:57 -07:00
oxmc 55f65f73cd Fix package name 2026-06-03 01:48:50 -07:00
oxmc 6af6e4d1b8 Fix paths 2026-05-30 01:59:03 -07:00
oxmc adc1e9859f Fix include path and disable recovery/twrp 2026-05-30 01:13:28 -07:00
oxmc 15c9fe59f3 Seperate into new repo 2026-05-26 06:40:20 -07:00
oxmc 798ac81e8a Update to upstream 2026-05-26 05:50:46 -07:00
oxmc 7154c4308e Common stuff 2026-03-20 06:17:48 -07:00
oxmc 92cf568647 Fix partition layout 2026-03-05 00:39:54 -08:00
oxmc 6b73f9e084 Update to same as upstream 2026-03-04 22:07:31 -08:00
oxmc 0177fa4da6 wifi: start wpa_supplicant as user wifi (same as upstream) 2026-01-17 04:42:14 +00:00
oxmc 9410896a8e Update graphics to same as upstream 2025-12-21 23:21:21 -08:00
oxmc 20895097df Update BoardConfig.mk 2025-12-02 10:38:25 -08:00
oxmc 9f770b0411 Move recovery before kernel info 2025-12-02 10:27:49 -08:00
oxmc 22c7e65643 Fix fstab path 2025-12-02 10:25:52 -08:00
oxmc 07b69507f9 Recovery support (Part 1) 2025-12-02 10:22:04 -08:00
oxmc 09cbef18b6 Update mkimg.sh 2025-11-29 15:30:28 -08:00
oxmc c248664f12 vendor_block_device does not exist, change to system 2025-11-29 15:11:00 -08:00
oxmc c482516758 Sync with upstream 2025-11-28 23:40:17 -08:00
oxmc c23f42ba65 Reset to upstream, add my changes 2025-11-17 23:14:01 -08:00
Konsta b3f65b991a overlay: enable desktop mode
* Also add required permission for freeform windows.
2025-11-17 13:29:04 +02:00
Konsta 3020cb6a51 overlay: update qs tiles for AOSP16 QPR1 2025-11-17 13:29:04 +02:00
Konsta ac7f9da4af keylayout: update for AOSP16 QPR1
* Changes from frameworks/base/data/keyboards/Generic.kl.
2025-11-17 13:29:04 +02:00
Konsta 072b879a33 sepolicy: update for AOSP16 QPR1
* Gets blocked by neverallow rules.
2025-11-17 13:29:04 +02:00
Konsta b6370969b2 car: update for AOSP16 QPR1
* liblargeparcelablejni was added to
  packages/services/Car/car_product/build/car_system.mk in AOSP16 QPR1 [1].
* TODO: It seems packages/services/Car/car_product/build/car.mk hasn't been
  kept up-to-date in a while. Look into inheriting partition specific
  configuration instead.

[1]: https://android.googlesource.com/platform/packages/services/Car/+/28dd44d3a708e1c2f49a0529a6e87e3f5fe38fb6
2025-11-17 13:29:04 +02:00
Konsta 25de8e0a9d apex: disable compressed packages
* Decompressing APEX can take couple of minutes on the very first boot.
  For some reason this is significantly slower on AOSP16 than it was
  on AOSP15.
* This takes ~170 MB more space on the system partition which we can
  afford.
2025-11-17 13:29:00 +02:00
Konsta 6ef087c43c overlay: rename car package
* Targets com.android.car.updatable so this should be packagename.rpi.
2025-11-14 10:07:35 +02:00
Konsta d629d9391e overlay: rename bluetooth package
* Targets com.android.bluetooth so this should be packagename.rpi.
2025-11-14 10:07:26 +02:00
Konsta 3b3f230a67 virtualization: move hypervisor property from cmdline
* This would get parsed into ro.boot property by init's property service
  in any case.
2025-11-14 10:07:08 +02:00
Konsta 6e2ba22220 wifi: move country code property from cmdline
* This would get parsed into ro.boot property by init's property service
  in any case.
2025-11-14 10:06:19 +02:00
Konsta 67433cbc2b sepolicy: graphics: address some denials
* Labeling vendor allocator libraries became necessary for some reason
  after moving minigbm gralloc to APEX.
* Address remaining drm_hwcomposer denials.
2025-11-10 17:17:55 +02:00
Konsta b0ac7bf7c7 sepolicy: graphics: label drm_hwcomposer properties 2025-11-10 17:16:19 +02:00