Files
pawlet_rpi4/ramdisk/init.rpi4.rc
oxmc c9cbf289c4 device+ramdisk: Widevine build guard; restore ro.hardware fix
- device.mk: guard the Widevine CDM PRODUCT_COPY_FILES entry with
  $(wildcard ...) so a checkout that hasn't run extract-widevine.sh still
  builds (the HAL dlopen()s it at runtime and degrades gracefully already).
- ramdisk/init.rpi4.rc: restore the ${ro.hardware} mount_all generalization
  (matches pawlet_rpi5, which already had it — this device tree's copy was
  lost when an earlier android-16.0 upstream-sync merge got reset away, and
  android-17.0 was cherry-picked from that same pre-merge baseline).
2026-08-15 01:50:38 -07:00

28 lines
675 B
Plaintext

import /vendor/etc/init/hw/init.${ro.hardware}.usb.rc
on init
symlink /sdcard /storage/sdcard0
# Memory reserve tuning for RPi 4
write /proc/sys/vm/min_free_kbytes 27386
write /proc/sys/vm/lowmem_reserve_ratio "0 0 0"
on fs
mount_all /vendor/etc/fstab.${ro.hardware} --early
on late-fs
mount_all /vendor/etc/fstab.${ro.hardware} --late
on property:ro.debuggable=1
start console
start logcat_uart
service logcat_uart /system/bin/logcat -b all -v threadtime -f /dev/ttyS0
class late_start
user root
group root log
disabled
on property:sys.boot_completed=1
swapon_all /vendor/etc/fstab.zram.${persist.vendor.zram.size}