35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
# Slider specific init.rc
|
|
import /vendor/etc/init/hw/init.gs101.rc
|
|
|
|
on init
|
|
# NFC streset tool name
|
|
setprop persist.vendor.nfc.streset libstreset21
|
|
setprop persist.vendor.se.streset libstreset21
|
|
|
|
# When ro.build.flavor=factory_slider-userdebug, add vendor/bin/factory to default path
|
|
on init && property:ro.build.flavor=factory_slider-userdebug
|
|
import /vendor/etc/init/hw/init.factory.rc
|
|
|
|
on init
|
|
# logbuffer
|
|
chown system system /dev/logbuffer_6-0057
|
|
|
|
on early-boot
|
|
# Wait for insmod_sh to finish all common modules
|
|
wait_for_prop vendor.common.modules.ready 1
|
|
start insmod_sh_slider
|
|
|
|
|
|
service insmod_sh_slider /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.slider.cfg
|
|
class main
|
|
user root
|
|
group root system
|
|
disabled
|
|
oneshot
|
|
|
|
# charger driver exposes now finer grain control, map demo mode to those properties
|
|
# NOTE: demo mode can only be exit wiping data (which reset the persist properties)
|
|
on property:sys.retaildemo.enabled=1
|
|
setprop persist.vendor.charge.stop.level 35
|
|
setprop persist.vendor.charge.start.level 30
|