lynx: Regenerate vendor blobs

Signed-off-by: HeroBuxx <me@herobuxx.me>
This commit is contained in:
HeroBuxx committed 2026-11-20 20:50:29 +00:00
1 parent bfe5ab4cfe
commit b329f1388e
1818 files changed
+18493 -12057

No files matched your search

@@ -0,0 +1,5 @@
service vendor.boot-default /vendor/bin/hw/android.hardware.boot-service.default-pixel
class early_hal
user root
group root drmrpc
@@ -6,4 +6,12 @@ service vendor.camera-provider-2-7-google /apex/com.google.pixel.camera.hal/bin/
capabilities SYS_NICE
rlimit rtprio 10 10
task_profiles CameraServiceCapacity CameraServicePerformance
rlimit memlock 268435456 268435456
rlimit memlock 268435456 268435456
on property:vendor.camera.hal.restart=true && property:ro.debuggable=1
restart vendor.camera-provider-2-7-google
setprop vendor.camera.hal.restart ""
on property:vendor.camera.hal.restart=1 && property:ro.debuggable=1
restart vendor.camera-provider-2-7-google
setprop vendor.camera.hal.restart ""
@@ -1,7 +1,5 @@
on post-fs-data
mkdir /data/vendor/chre 0770 context_hub context_hub
on boot
setprop vendor.chre.multiclient_hal.enabled true
service vendor.contexthub-default /vendor/bin/hw/android.hardware.contexthub-service.generic
class hal late_start
@@ -0,0 +1,17 @@
service vendor.health-gs201 /vendor/bin/hw/android.hardware.health-service.gs201
class hal
user system
group system
capabilities WAKE_ALARM BLOCK_SUSPEND
file /dev/kmsg w
service vendor.charger /vendor/bin/hw/android.hardware.health-service.gs201 --charger
class charger
seclabel u:r:charger_vendor:s0
user system
group system wakelock input
capabilities SYS_BOOT
file /dev/kmsg w
file /sys/fs/pstore/console-ramoops-0 r
file /sys/fs/pstore/console-ramoops r
file /proc/last_kmsg r
@@ -0,0 +1,41 @@
service vendor.power-hal-aidl /vendor/bin/hw/android.hardware.power-service.pixel-libperfmgr
class hal
user root
group system
priority -20
on late-fs
start vendor.power-hal-aidl
# Unblock thermalHAL under off mode charge
on charger
start vendor.power-hal-aidl
# Restart powerHAL when framework died
on property:init.svc.zygote=restarting && property:vendor.powerhal.state=*
setprop vendor.powerhal.state ""
setprop vendor.powerhal.audio ""
setprop vendor.powerhal.rendering ""
restart vendor.power-hal-aidl
# Clean up after b/163539793 resolved
on property:vendor.powerhal.dalvik.vm.dex2oat-threads=*
setprop dalvik.vm.dex2oat-threads ${vendor.powerhal.dalvik.vm.dex2oat-threads}
setprop dalvik.vm.restore-dex2oat-threads ${vendor.powerhal.dalvik.vm.dex2oat-threads}
on property:vendor.powerhal.dalvik.vm.dex2oat-cpu-set=*
setprop dalvik.vm.dex2oat-cpu-set ${vendor.powerhal.dalvik.vm.dex2oat-cpu-set}
setprop dalvik.vm.restore-dex2oat-cpu-set ${vendor.powerhal.dalvik.vm.dex2oat-cpu-set}
on property:vendor.powerhal.proc.sys.vm.compact_memory=1
write /proc/sys/vm/compact_memory ${vendor.powerhal.proc.sys.vm.compact_memory}
# Restart powerHAL when debug property set
on property:ro.debuggable=1 && property:vendor.powerhal.config.debug=*
restart vendor.power-hal-aidl
on property:persist.vendor.powerhal.config.debug=*
setprop vendor.powerhal.config.debug ${persist.vendor.powerhal.config.debug}
on post-fs-data
mkdir /data/vendor/powerhal 0700 root system
@@ -1,6 +0,0 @@
service rlsservice /apex/com.google.pixel.camera.hal/bin/rlsservice
class hal
user system
group system
namespace mnt
task_profiles ServiceCapacityLow
@@ -0,0 +1,14 @@
on property:vendor.thermal.link_ready=1
# queue the trigger to start thermal-hal and continue execute
# per-device thermal setup "on property:vendor.thermal.link_ready=1"
trigger enable-thermal-hal
on enable-thermal-hal
restart vendor.thermal-hal
service vendor.thermal-hal /vendor/bin/hw/android.hardware.thermal-service.pixel
class hal
user system
group system
priority -10
disabled
@@ -0,0 +1,33 @@
service vendor.usb /vendor/bin/hw/android.hardware.usb-service
class hal
user system
group system shell wakelock usb
capabilities WAKE_ALARM BLOCK_SUSPEND
on post-fs
chown root system /sys/class/typec/port0/power_role
chown root system /sys/class/typec/port0/data_role
chown root system /sys/class/typec/port0/port_type
chown root system /sys/class/typec/port0/select_usb_power_delivery
chown root system /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/contaminant_detection
chown root system /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/usb_limit_accessory_current
chown root system /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/usb_limit_accessory_enable
chown root system /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/usb_limit_sink_current
chown root system /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/usb_limit_sink_enable
chown root system /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/usb_limit_source_enable
chown root system /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/update_sdp_enum_timeout
chown root system /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/disable_sdp_enum_timeout
chown root system /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/manual_bc12_detect
chmod 664 /sys/class/typec/port0/power_role
chmod 664 /sys/class/typec/port0/data_role
chmod 664 /sys/class/typec/port0/port_type
chmod 664 /sys/class/typec/port0/select_usb_power_delivery
chmod 664 /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/contaminant_detection
chmod 664 /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/usb_limit_accessory_current
chmod 664 /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/usb_limit_accessory_enable
chmod 664 /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/usb_limit_sink_current
chmod 664 /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/usb_limit_sink_enable
chmod 664 /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/usb_limit_source_enable
chmod 664 /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/update_sdp_enum_timeout
chmod 664 /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/disable_sdp_enum_timeout
chmod 664 /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/manual_bc12_detect
@@ -0,0 +1,19 @@
service vendor.usb-gadget-hal /vendor/bin/hw/android.hardware.usb.gadget-service
class hal
user system
group system shell mtp
on post-fs
chown root system /sys/class/typec/port0/power_role
chown root system /sys/class/typec/port0/data_role
chown root system /sys/class/typec/port0/port_type
chown root system /sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025/contaminant_detection
chown root system /sys/devices/platform/11210000.usb/dwc3_exynos_otg_b_sess
chown root system /sys/devices/platform/11210000.usb/dwc3_exynos_otg_id
chown root system /sys/devices/platform/11210000.usb/usb_data_enabled
chmod 664 /sys/class/typec/port0/power_role
chmod 664 /sys/class/typec/port0/data_role
chmod 664 /sys/class/typec/port0/port_type
chmod 664 /sys/devices/platform/11210000.usb/dwc3_exynos_otg_b_sess
chmod 664 /sys/devices/platform/11210000.usb/dwc3_exynos_otg_id
chmod 664 /sys/devices/platform/11210000.usb/usb_data_enabled
+3
View File
@@ -0,0 +1,3 @@
on init
# Permission for USB controller power control
chown system system /sys/devices/platform/11210000.usb/power/control
+3
View File
@@ -0,0 +1,3 @@
on boot
exec_background u:r:gpuflag:s0 -- /vendor/bin/gpuflag
+1 -9
View File
@@ -7,11 +7,9 @@ on early-init && property:ro.debuggable=1
# Convert /dev/block/by-name/persist to ext4 on userdebug builds only
exec -- /system_ext/bin/convert_to_ext4.sh /dev/block/by-name/persist false
mount_all /vendor/etc/fstab.persist --early
write /sys/kernel/mm/lru_gen/enabled n
on early-init && property:ro.debuggable=0
mount_all /vendor/etc/fstab.persist --early
write /sys/kernel/mm/lru_gen/enabled n
on init
# CPU0 cannot be offline
@@ -21,6 +19,7 @@ on init
write /sys/devices/system/cpu/cpuidle/current_governor teo
# Disable util-awareness
write /proc/vendor_sched/teo_util_threshold "1024 1024 1024"
write /proc/vendor_sched/task_placement_retry_count 0
chown system system /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/lcpi_threshold
chown system system /sys/devices/system/cpu/cpufreq/policy0/sched_pixel/spc_threshold
@@ -315,10 +314,6 @@ on post-fs-data
# Compatibility path for TPU
symlink /dev/janeiro /dev/edgetpu
on load_persist_props_action
# ZRAM setup
write /sys/block/zram0/comp_algorithm ${persist.device_config.vendor_system_native_boot.comp_algorithm:-lz77eh}
on zygote-start
# For PixelLogger configuration file.
@@ -586,9 +581,6 @@ on property:sys.boot_completed=1
# Enable ZRAM on boot_complete
swapon_all /vendor/etc/fstab.${ro.board.platform}
# Adjust watermark level
write /proc/sys/vm/watermark_scale_factor 200
# Back to default VM settings
write /proc/sys/vm/dirty_expire_centisecs 3000
write /proc/sys/vm/dirty_background_ratio 10
+13 -22
View File
@@ -37,16 +37,10 @@ on early-boot
# audio_source function
mkdir /config/usb_gadget/g1/functions/audio_source.gs3
# rndis function
mkdir /config/usb_gadget/g1/functions/rndis.gs4
# Modify class/subclass/protocol for rndis.gs4
# Remote NDIS: Class: Wireless Controller (0xe0), Subclass: 0x1, Protocol: 0x3
write /config/usb_gadget/g1/functions/rndis.gs4/class e0
write /config/usb_gadget/g1/functions/rndis.gs4/subclass 01
write /config/usb_gadget/g1/functions/rndis.gs4/protocol 03
write /config/usb_gadget/g1/functions/rndis.gs4/os_desc/interface.ncm/compatible_id RNDIS
write /config/usb_gadget/g1/functions/rndis.gs4/ifname rndis%d
setprop vendor.usb.rndis.config rndis.gs4
# reverse ncm function
mkdir /config/usb_gadget/g1/functions/ncm.gs4
write /config/usb_gadget/g1/functions/ncm.gs4/os_desc/interface.ncm/compatible_id WINNCM
write /config/usb_gadget/g1/functions/ncm.gs4/ifname usb%d
# midi function
mkdir /config/usb_gadget/g1/functions/midi.gs5
@@ -268,6 +262,15 @@ on early-boot
chown system system /config/usb_gadget/g1/functions/mtp.gs0/os_desc/interface.MTP
chown system system /config/usb_gadget/g1/functions/mtp.gs0/os_desc/interface.MTP/compatible_id
chown system system /config/usb_gadget/g1/functions/mtp.gs0/os_desc/interface.MTP/sub_compatible_id
chown system system /config/usb_gadget/g1/functions/ncm.gs4
chown system system /config/usb_gadget/g1/functions/ncm.gs4/dev_addr
chown system system /config/usb_gadget/g1/functions/ncm.gs4/host_addr
chown system system /config/usb_gadget/g1/functions/ncm.gs4/ifname
chown system system /config/usb_gadget/g1/functions/ncm.gs4/os_desc
chown system system /config/usb_gadget/g1/functions/ncm.gs4/os_desc/interface.ncm
chown system system /config/usb_gadget/g1/functions/ncm.gs4/os_desc/interface.ncm/compatible_id
chown system system /config/usb_gadget/g1/functions/ncm.gs4/os_desc/interface.ncm/sub_compatible_id
chown system system /config/usb_gadget/g1/functions/ncm.gs4/qmult
chown system system /config/usb_gadget/g1/functions/ncm.gs9
chown system system /config/usb_gadget/g1/functions/ncm.gs9/dev_addr
chown system system /config/usb_gadget/g1/functions/ncm.gs9/host_addr
@@ -282,18 +285,6 @@ on early-boot
chown system system /config/usb_gadget/g1/functions/ptp.gs1/os_desc/interface.MTP
chown system system /config/usb_gadget/g1/functions/ptp.gs1/os_desc/interface.MTP/compatible_id
chown system system /config/usb_gadget/g1/functions/ptp.gs1/os_desc/interface.MTP/sub_compatible_id
chown system system /config/usb_gadget/g1/functions/rndis.gs4
chown system system /config/usb_gadget/g1/functions/rndis.gs4/class
chown system system /config/usb_gadget/g1/functions/rndis.gs4/dev_addr
chown system system /config/usb_gadget/g1/functions/rndis.gs4/host_addr
chown system system /config/usb_gadget/g1/functions/rndis.gs4/ifname
chown system system /config/usb_gadget/g1/functions/rndis.gs4/os_desc
chown system system /config/usb_gadget/g1/functions/rndis.gs4/os_desc/interface.rndis
chown system system /config/usb_gadget/g1/functions/rndis.gs4/os_desc/interface.rndis/compatible_id
chown system system /config/usb_gadget/g1/functions/rndis.gs4/os_desc/interface.rndis/sub_compatible_id
chown system system /config/usb_gadget/g1/functions/rndis.gs4/protocol
chown system system /config/usb_gadget/g1/functions/rndis.gs4/qmult
chown system system /config/usb_gadget/g1/functions/rndis.gs4/subclass
chown system system /config/usb_gadget/g1/functions/uvc.0
chown system system /config/usb_gadget/g1/functions/uvc.0/control
chown system system /config/usb_gadget/g1/functions/uvc.0/control/bInterfaceNumber
+16
View File
@@ -19,3 +19,19 @@ on init
# disable proactive compaction
write /proc/sys/vm/compaction_proactiveness 0
write /proc/sys/vm/swappiness 60
# b/454519871: Workaround to get block_queue_depth.
# TODO(richardycc): Remove this once the sepolicy 202604 is applied.
service block_queue_depth /vendor/bin/hw/block_queue_depth
class main
user root
group root system
disabled
oneshot
on property:sys.boot_completed=1
start block_queue_depth
write /sys/kernel/vendor_mm/filemap/async_readahead_adj_enable 1
on property:vendor.zram.nr_tags=*
setprop mmd.zram.writeback.nr_tags ${vendor.zram.nr_tags}
+15
View File
@@ -96,6 +96,8 @@ on init
chown system system /proc/vendor_sched/sched_qos/prefer_idle_clear
chown system system /proc/vendor_sched/sched_qos/rampup_multiplier_set
chown system system /proc/vendor_sched/sched_qos/rampup_multiplier_clear
chown system system /proc/vendor_sched/sched_qos/tag_nice_set
chown system system /proc/vendor_sched/sched_qos/tag_nice_clear
chown system system /proc/vendor_sched/sched_qos/sched_qos_none
chown system system /proc/vendor_sched/sched_qos/sched_qos_power_efficiency
chown system system /proc/vendor_sched/sched_qos/sched_qos_sensitive_extreme
@@ -118,6 +120,8 @@ on init
chmod 0220 /proc/vendor_sched/sched_qos/prefer_idle_clear
chmod 0220 /proc/vendor_sched/sched_qos/rampup_multiplier_set
chmod 0220 /proc/vendor_sched/sched_qos/rampup_multiplier_clear
chmod 0220 /proc/vendor_sched/sched_qos/tag_nice_set
chmod 0220 /proc/vendor_sched/sched_qos/tag_nice_clear
chmod 0220 /proc/vendor_sched/sched_qos/sched_qos_none
chmod 0220 /proc/vendor_sched/sched_qos/sched_qos_power_efficiency
chmod 0220 /proc/vendor_sched/sched_qos/sched_qos_sensitive_extreme
@@ -133,6 +137,7 @@ on init
write /proc/vendor_sched/groups/ta/qos_prefer_high_cap_enable 1
write /proc/vendor_sched/groups/ta/qos_prefer_idle_enable 1
write /proc/vendor_sched/groups/ta/qos_rampup_multiplier_enable 1
write /proc/vendor_sched/groups/ta/qos_tag_nice_enable 1
write /proc/vendor_sched/groups/fg/qos_adpf_enable 1
write /proc/vendor_sched/groups/fg/qos_auto_uclamp_max_enable 1
write /proc/vendor_sched/groups/fg/qos_boost_prio_enable 1
@@ -141,6 +146,7 @@ on init
write /proc/vendor_sched/groups/fg/qos_prefer_high_cap_enable 1
write /proc/vendor_sched/groups/fg/qos_prefer_idle_enable 1
write /proc/vendor_sched/groups/fg/qos_rampup_multiplier_enable 1
write /proc/vendor_sched/groups/fg/qos_tag_nice_enable 1
write /proc/vendor_sched/groups/fg_wi/qos_adpf_enable 1
write /proc/vendor_sched/groups/fg_wi/qos_auto_uclamp_max_enable 1
write /proc/vendor_sched/groups/fg_wi/qos_boost_prio_enable 1
@@ -149,6 +155,7 @@ on init
write /proc/vendor_sched/groups/fg_wi/qos_prefer_high_cap_enable 1
write /proc/vendor_sched/groups/fg_wi/qos_prefer_idle_enable 1
write /proc/vendor_sched/groups/fg_wi/qos_rampup_multiplier_enable 1
write /proc/vendor_sched/groups/fg_wi/qos_tag_nice_enable 1
write /proc/vendor_sched/groups/cam/qos_adpf_enable 1
write /proc/vendor_sched/groups/cam/qos_auto_uclamp_max_enable 1
write /proc/vendor_sched/groups/cam/qos_boost_prio_enable 1
@@ -157,6 +164,7 @@ on init
write /proc/vendor_sched/groups/cam/qos_prefer_high_cap_enable 1
write /proc/vendor_sched/groups/cam/qos_prefer_idle_enable 1
write /proc/vendor_sched/groups/cam/qos_rampup_multiplier_enable 1
write /proc/vendor_sched/groups/cam/qos_tag_nice_enable 1
write /proc/vendor_sched/groups/cam_power/qos_adpf_enable 1
write /proc/vendor_sched/groups/cam_power/qos_auto_uclamp_max_enable 1
write /proc/vendor_sched/groups/cam_power/qos_boost_prio_enable 1
@@ -165,6 +173,7 @@ on init
write /proc/vendor_sched/groups/cam_power/qos_prefer_high_cap_enable 1
write /proc/vendor_sched/groups/cam_power/qos_prefer_idle_enable 1
write /proc/vendor_sched/groups/cam_power/qos_rampup_multiplier_enable 1
write /proc/vendor_sched/groups/cam_power/qos_tag_nice_enable 1
write /proc/vendor_sched/groups/rt/qos_adpf_enable 1
write /proc/vendor_sched/groups/rt/qos_auto_uclamp_max_enable 1
write /proc/vendor_sched/groups/rt/qos_boost_prio_enable 1
@@ -173,6 +182,7 @@ on init
write /proc/vendor_sched/groups/rt/qos_prefer_high_cap_enable 1
write /proc/vendor_sched/groups/rt/qos_prefer_idle_enable 1
write /proc/vendor_sched/groups/rt/qos_rampup_multiplier_enable 1
write /proc/vendor_sched/groups/rt/qos_tag_nice_enable 1
write /proc/vendor_sched/groups/sf/qos_adpf_enable 1
write /proc/vendor_sched/groups/sf/qos_auto_uclamp_max_enable 1
write /proc/vendor_sched/groups/sf/qos_boost_prio_enable 1
@@ -181,6 +191,7 @@ on init
write /proc/vendor_sched/groups/sf/qos_prefer_high_cap_enable 1
write /proc/vendor_sched/groups/sf/qos_prefer_idle_enable 1
write /proc/vendor_sched/groups/sf/qos_rampup_multiplier_enable 1
write /proc/vendor_sched/groups/sf/qos_tag_nice_enable 1
write /proc/vendor_sched/groups/sys/qos_adpf_enable 1
write /proc/vendor_sched/groups/sys/qos_auto_uclamp_max_enable 1
write /proc/vendor_sched/groups/sys/qos_boost_prio_enable 1
@@ -189,6 +200,7 @@ on init
write /proc/vendor_sched/groups/sys/qos_prefer_high_cap_enable 1
write /proc/vendor_sched/groups/sys/qos_prefer_idle_enable 1
write /proc/vendor_sched/groups/sys/qos_rampup_multiplier_enable 1
write /proc/vendor_sched/groups/sys/qos_tag_nice_enable 1
write /proc/vendor_sched/groups/nnapi/qos_adpf_enable 1
write /proc/vendor_sched/groups/nnapi/qos_auto_uclamp_max_enable 1
write /proc/vendor_sched/groups/nnapi/qos_boost_prio_enable 1
@@ -197,6 +209,7 @@ on init
write /proc/vendor_sched/groups/nnapi/qos_prefer_high_cap_enable 1
write /proc/vendor_sched/groups/nnapi/qos_prefer_idle_enable 1
write /proc/vendor_sched/groups/nnapi/qos_rampup_multiplier_enable 1
write /proc/vendor_sched/groups/nnapi/qos_tag_nice_enable 1
# cpufreq governor setting
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor sched_pixel
@@ -330,3 +343,5 @@ on property:sys.boot_completed=1
write /proc/vendor_sched/boost_at_fork_value 768
write /proc/vendor_sched/boost_at_fork_duration 1000
# Set rate limit for sched group tracker ftrace events
write /proc/vendor_sched/sched_group_tracker_rate_limit 300
+40 -13
View File
@@ -1,3 +1,8 @@
service backup_ota_log /system_ext/bin/backup_ota_log.sh
user root
disabled
oneshot
on init
# Make foreground and background I/O priority different. none-to-rt was
# introduced in kernel 5.14. promote-to-rt was introduced in kernel 6.5.
@@ -17,14 +22,15 @@ on default_storage_mode
write /dev/sys/fs/by-name/userdata/max_io_bytes 524288
write /dev/sys/fs/by-name/userdata/min_hot_blocks 0
# Priority
write /dev/sys/fs/by-name/userdata/adjust_lock_priority 32
write /dev/sys/fs/by-name/userdata/critical_task_priority 100
# Block
write /dev/sys/block/by-name/rootdisk/queue/nr_requests 128
write /dev/sys/block/by-name/rootdisk/queue/rq_affinity 2
write /dev/sys/block/by-name/zoned_device/queue/rq_affinity 2
# UFS
write /dev/sys/block/bootdevice/clkgate_enable 1
on init
# Symlink /dev/sys/block/bootdevice
wait /dev/block/platform/${ro.boot.boot_devices}
@@ -40,7 +46,6 @@ on init
write /dev/sys/block/by-name/rootdisk/queue/nr_requests 256
# UFS
write /dev/sys/block/bootdevice/clkgate_enable 0
write /dev/sys/block/bootdevice/wb_on 0
write /dev/sys/block/bootdevice/enable_wb_buf_flush 0
@@ -67,8 +72,15 @@ on property:sys.boot_completed=1
chown system system /dev/sys/fs/by-name/userdata/peak_atomic_write
chown system system /dev/sys/fs/by-name/userdata/revoked_atomic_block
write /dev/sys/block/by-name/rootdisk/queue/iostats 1
write /dev/sys/block/by-name/rootdisk/queue/read_ahead_kb 128
write /dev/sys/block/by-name/userdata/queue/read_ahead_kb 128
trigger default_storage_mode
on property:sys.shutdown.requested=*
start backup_ota_log
on charger
trigger default_storage_mode
@@ -76,13 +88,28 @@ on property:ro.boot.mode=charger && property:init.svc.vendor.charger=running
trigger default_storage_mode
on boot
# These settings must be applied during the 'on boot' stage.
# In Kernel 6.12, other sysfs writes in this stage can implicitly reset
# read_ahead_kb to 1024KB. Moving these here ensures they are applied
# AFTER those writes, guaranteeing our desired 128KB value and
# enabling iostats collection early.
write /dev/sys/block/by-name/rootdisk/queue/iostats 1
write /dev/sys/block/by-name/rootdisk/queue/read_ahead_kb 128
write /dev/sys/block/by-name/userdata/queue/read_ahead_kb 128
mkdir /data/vendor/storage 0770 system system
on init && property:ro.boot.hardware.platform=gs101
write /dev/sys/block/bootdevice/clkgate_enable 0
on init && property:ro.boot.hardware.platform=gs201
write /dev/sys/block/bootdevice/clkgate_enable 0
on init && property:ro.boot.hardware.platform=zuma
write /dev/sys/block/bootdevice/clkgate_enable 0
on init && property:ro.boot.hardware.platform=zumapro
write /dev/sys/block/bootdevice/clkgate_enable 0
on default_storage_mode && property:ro.boot.hardware.platform=gs101
write /dev/sys/block/bootdevice/clkgate_enable 1
on default_storage_mode && property:ro.boot.hardware.platform=gs201
write /dev/sys/block/bootdevice/clkgate_enable 1
on default_storage_mode && property:ro.boot.hardware.platform=zuma
write /dev/sys/block/bootdevice/clkgate_enable 1
on default_storage_mode && property:ro.boot.hardware.platform=zumapro
write /dev/sys/block/bootdevice/clkgate_enable 1
-39
View File
@@ -1,41 +1,2 @@
on property:sys.boot_completed=1
# Sysfs
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/force_active
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/fw_ver
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/interactive_calibrate
chmod 666 /sys/devices/virtual/goog_touch_interface/gti.0/interactive_calibrate
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/panel_id
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/offload_id
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ms_base
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ms_diff
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ms_raw
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/self_test
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_base
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_diff
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_raw
# Procfs
chown system system /proc/goog_touch_interface
chown system system /proc/goog_touch_interface/gti.0
chown system system /proc/goog_touch_interface/gti.0/dump
chown system system /proc/goog_touch_interface/gti.0/ms_base
chown system system /proc/goog_touch_interface/gti.0/ms_diff
chown system system /proc/goog_touch_interface/gti.0/ms_raw
chown system system /proc/goog_touch_interface/gti.0/ss_base
chown system system /proc/goog_touch_interface/gti.0/ss_diff
chown system system /proc/goog_touch_interface/gti.0/ss_raw
on property:sys.boot_completed=1 && property:ro.vendor.touch.gti0.resample_latency.enabled=true
write /sys/devices/virtual/goog_touch_interface/gti.0/resample_latency_us ${ro.vendor.touch.gti0.resample_latency_us}
on property:vendor.touch.gti0.ical=*
setprop vendor.touch.gti0.ical.state init
start touch_gti0_ical
wait_for_prop vendor.touch.gti0.ical.state done
service touch_gti0_ical /vendor/bin/touch_gti_ical 0 ${vendor.touch.gti0.ical}
class main
user system
group system shell
disabled
oneshot
+13
View File
@@ -0,0 +1,13 @@
# Deprecated: This file is used only by P23-. Do not touch.
on property:vendor.touch.gti0.ical=*
setprop vendor.touch.gti0.ical.state init
start touch_gti0_ical
wait_for_prop vendor.touch.gti0.ical.state done
service touch_gti0_ical /vendor/bin/touch_gti_ical 0 ${vendor.touch.gti0.ical}
class main
user system
group system shell
disabled
oneshot
@@ -0,0 +1,28 @@
# Deprecated: This file is used only by P23-. Do not touch.
on property:sys.boot_completed=1
# Sysfs
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/force_active
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/fw_ver
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/interactive_calibrate
chmod 666 /sys/devices/virtual/goog_touch_interface/gti.0/interactive_calibrate
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/panel_id
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/offload_id
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ms_base
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ms_diff
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ms_raw
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/self_test
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_base
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_diff
chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_raw
# Procfs
chown system system /proc/goog_touch_interface
chown system system /proc/goog_touch_interface/gti.0
chown system system /proc/goog_touch_interface/gti.0/dump
chown system system /proc/goog_touch_interface/gti.0/ms_base
chown system system /proc/goog_touch_interface/gti.0/ms_diff
chown system system /proc/goog_touch_interface/gti.0/ms_raw
chown system system /proc/goog_touch_interface/gti.0/ss_base
chown system system /proc/goog_touch_interface/gti.0/ss_diff
chown system system /proc/goog_touch_interface/gti.0/ss_raw
+10
View File
@@ -0,0 +1,10 @@
service vendor.usboffmode /vendor/bin/hw/usboffmode
class charger
user system
group system shell wakelock
seclabel u:r:usboffmode:s0
capabilities WAKE_ALARM BLOCK_SUSPEND
on charger
chown root system /sys/class/typec/port0/select_usb_power_delivery
chmod 664 /sys/class/typec/port0/select_usb_power_delivery
@@ -0,0 +1,4 @@
on property:sys.boot_completed=1
# Adjust watermark level
write /proc/sys/vm/watermark_scale_factor 200
+1 -1
View File
@@ -1,6 +1,6 @@
# override default log levels.
on boot
setprop log.tag.GABC E
setprop log.tag.GABC I
# backward-compatible system props.
on property:persist.vendor.camera.gabc.debug_level=0
+11
View File
@@ -0,0 +1,11 @@
on boot
mkdir /dev/thermal 0750 system system
mkdir /dev/thermal/tz-by-name 0750 system system
mkdir /dev/thermal/cdev-by-name 0750 system system
start vendor.thermal.symlinks
service vendor.thermal.symlinks /vendor/bin/thermal_symlinks
user system
group system
oneshot
disabled
+9
View File
@@ -0,0 +1,9 @@
# Storage related init service
service storage_init /vendor/bin/storage_init.sh
user root
disabled
oneshot
on boot
start storage_init
@@ -11,9 +11,20 @@ on property:vendor.all.modules.ready=1
chown system system /sys/devices/virtual/pmic/mitigation/triggered_state/uvlo2_triggered
chown system system /sys/devices/virtual/pmic/mitigation/triggered_state/oilo1_triggered
chown system system /sys/devices/virtual/pmic/mitigation/triggered_state/oilo2_triggered
chown system system /sys/devices/virtual/pmic/mitigation/triggered_state/oilo3_triggered
chown system system /sys/devices/virtual/pmic/mitigation/triggered_state/smpl_triggered
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo_usb_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo_wlc_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo1_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo1_usb_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo1_wlc_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo2_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo2_usb_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo2_wlc_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo3_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo3_usb_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/batoilo3_wlc_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/ocp_cpu1_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/ocp_cpu2_lvl
chown system system /sys/devices/virtual/pmic/mitigation/triggered_lvl/ocp_gpu_lvl
@@ -31,8 +42,11 @@ on property:vendor.all.modules.ready=1
chown system system /sys/devices/virtual/pmic/mitigation/triggered_det/smpl_det
chown system system /sys/devices/virtual/pmic/mitigation/triggered_det/uvlo1_det
chown system system /sys/devices/virtual/pmic/mitigation/triggered_det/uvlo2_det
chown system system /sys/devices/virtual/pmic/mitigation/debounce_time/batoilo1_det
chown system system /sys/devices/virtual/pmic/mitigation/debounce_time/batoilo2_det
chown system system /sys/devices/virtual/pmic/mitigation/debounce_time/batoilo3_det
chown system system /sys/devices/virtual/pmic/mitigation/instruction/dvfs_ramp_enable
chown system system /sys/devices/virtual/pmic/mitigation/userspace/throttle_state
start vendor.battery_mitigation
on property:vendor.all.modules.ready=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,if,otg && property:sys.boot.reason=reboot,uvlo,pmic,if,otg
@@ -62,6 +76,15 @@ on property:vendor.all.modules.ready=1 && property:ro.boot.bootreason=reboot,ocp
on property:vendor.all.modules.ready=1 && property:ro.boot.bootreason=reboot,ocp2,pmic,if && property:sys.boot.reason=reboot,ocp2,pmic,if
setprop vendor.brownout_reason "ocp2,pmic,if"
on property:vendor.all.modules.ready=1 && property:ro.boot.bootreason=reboot,ocp3,pmic,if,otg && property:sys.boot.reason=reboot,ocp3,pmic,if,otg
setprop vendor.brownout_reason "ocp3,pmic,if,otg"
on property:vendor.all.modules.ready=1 && property:ro.boot.bootreason=reboot,ocp3,pmic,if,usb && property:sys.boot.reason=reboot,ocp3,pmic,if,usb
setprop vendor.brownout_reason "ocp3,pmic,if,usb"
on property:vendor.all.modules.ready=1 && property:ro.boot.bootreason=reboot,ocp3,pmic,if && property:sys.boot.reason=reboot,ocp3,pmic,if
setprop vendor.brownout_reason "ocp3,pmic,if"
on property:vendor.all.modules.ready=1 && property:ro.boot.bootreason=reboot,uvlo,pmic,main && property:sys.boot.reason=reboot,uvlo,pmic,main
setprop vendor.brownout_reason "uvlo,pmic,main"
@@ -29,6 +29,7 @@ on property:vendor.all.modules.ready=1 && property:vendor.all.devices.ready=1
chown system system /sys/class/power_supply/battery/aacp_opt_out
chown system system /sys/class/power_supply/battery/aacp_opt_out_cutoff_cycles
chown system system /sys/class/power_supply/battery/aacc_chg_profile
chown system system /sys/class/power_supply/battery/aacv_profile
chown system system /sys/class/power_supply/battery/bd_trickle_enable
chown system system /sys/class/power_supply/battery/bd_trickle_recharge_soc
chown system system /sys/class/power_supply/battery/bd_trickle_cnt
@@ -48,7 +49,6 @@ on property:vendor.all.modules.ready=1 && property:vendor.all.devices.ready=1
chown system system /sys/class/power_supply/wireless/device/mitigate_threshold
chown system system /sys/class/power_supply/wireless/device/rx_fwupdate
chown system system /sys/class/power_supply/wireless/device/rx_vertag
chown system system /sys/class/power_supply/wireless/device/qi22_en_gpio
chown system system /sys/devices/platform/soc/soc:google,charger/bd_drainto_soc
chown system system /sys/devices/platform/soc/soc:google,charger/bd_recharge_soc
@@ -76,6 +76,13 @@ on property:vendor.all.modules.ready=1 && property:vendor.all.devices.ready=1
chown system system /sys/devices/platform/google,charger/bd_temp_enable
chown system system /sys/devices/platform/google,charger/bd_temp_dry_run
chown system system /sys/devices/platform/google,charger/charge_start_level
chown system system /sys/devices/platform/google,charger/charge_stop_level
chown system system /sys/devices/platform/google,charger/dwell_state
chown system system /sys/devices/platform/soc/soc:google,charger/charge_start_level
chown system system /sys/devices/platform/soc/soc:google,charger/charge_stop_level
chown system system /sys/devices/platform/soc/soc:google,charger/dwell_state
chown system system /sys/devices/platform/google,charger/dd_charge_start_level
chown system system /sys/devices/platform/google,charger/dd_charge_stop_level
chown system system /sys/devices/platform/google,charger/dd_settings
@@ -108,3 +115,17 @@ on property:vendor.all.modules.ready=1 && property:vendor.all.devices.ready=1
chown system system /sys/class/power_supply/battery/capacity_level_chg_speed_threshold
chown system system /sys/class/power_supply/battery/capacity_level_thermal_threshold
chown system system /sys/class/power_supply/battery/capacity_level_bd_threshold
chown system system /sys/class/power_supply/battery/bpst_fail_threshold
chown system system /sys/class/power_supply/battery/bpst_chg_rate
chown system system /sys/class/power_supply/battery/bpst_reset
chown system system /sys/class/power_supply/battery/ttx_from_soc
chown system system /sys/class/power_supply/battery/ttx_to_soc
chown system system /sys/class/power_supply/battery/ttx_time
chown system system /sys/class/power_supply/maxfg_secondary/stuck_reset_retry
chown system system /sys/class/power_supply/battery/priority_charging_enable
chown system system /sys/class/power_supply/battery/priority_charging_time
chown system system /sys/class/power_supply/battery/priority_charging_info
@@ -0,0 +1,6 @@
service hal_plat_security /vendor/bin/hw/vendor.google.plat_security-service
class hal
user system
group system
interface aidl vendor.google.plat_security.ISecureTimestamp/default
interface aidl vendor.google.plat_security.ITrustyDecrypt/default
@@ -20,3 +20,13 @@ on property:vendor.all.modules.ready=1 && property:vendor.all.devices.ready=1
chown system system /sys/class/power_supply/wireless/device/fwupdate_data
chown system system /sys/class/power_supply/wireless/device/compatibility
chown system system /sys/class/power_supply/wireless/device/qispec
chown system system /sys/class/power_supply/wireless/device/qiid
chown system system /sys/class/power_supply/wireless/device/maxpower
chown system system /sys/class/power_supply/wireless/device/negopower
chown system system /sys/class/power_supply/wireless/device/txlimitreason
chown system system /sys/class/power_supply/wireless/device/ptmc_id
chown system system /sys/class/power_supply/wireless/device/product_id
chown system system /sys/class/power_supply/wireless/device/run_fwupdate
on property:sys.retaildemo.enabled=1
write /sys/class/power_supply/wireless/device/features 0:20