bangkk: Convert rootdir to init
Change-Id: I43ccc55b98231d984474e6bba3c9fa1266bb7351
This commit is contained in:
parent
697783adcd
commit
dfc2fec546
3 changed files with 13 additions and 6 deletions
11
init/Android.bp
Normal file
11
init/Android.bp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
//
|
||||
// SPDX-FileCopyrightText: The LineageOS Project
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
prebuilt_etc {
|
||||
name: "init.mmi.overlay.rc",
|
||||
src: "init.mmi.overlay.rc",
|
||||
sub_dir: "init/hw",
|
||||
vendor: true,
|
||||
}
|
||||
130
init/init.mmi.overlay.rc
Normal file
130
init/init.mmi.overlay.rc
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
on post-fs
|
||||
# "Tap to wake" gesture
|
||||
chown root input /sys/class/sensors/dt-gesture/enable
|
||||
chmod 0660 /sys/class/sensors/dt-gesture/enable
|
||||
chown root input /sys/class/sensors/dt-gesture/poll_delay
|
||||
chmod 0660 /sys/class/sensors/dt-gesture/poll_delay
|
||||
|
||||
on post-fs
|
||||
chown system system /sys/devices/platform/soc/4804000.ufshc/clkgate_enable
|
||||
chown system system /sys/devices/platform/soc/4804000.ufshc/devfreq/4804000.ufshc/min_freq
|
||||
|
||||
on post-fs-data
|
||||
|
||||
chown system system /sys/devices/platform/soc/soc:fm_wcn39x0/elna_en
|
||||
# touch api
|
||||
chown system system /sys/class/touchscreen/primary/interpolation
|
||||
chmod 0660 /sys/class/touchscreen/primary/interpolation
|
||||
chown system system /sys/class/touchscreen/primary/first_filter
|
||||
chmod 0660 /sys/class/touchscreen/primary/first_filter
|
||||
chown system system /sys/class/touchscreen/primary/edge
|
||||
chmod 0660 /sys/class/touchscreen/primary/edge
|
||||
# change permission for stylus
|
||||
chown system system /sys/class/touchscreen/primary/palm_settings
|
||||
|
||||
# Change ownership and permission for bq25960-standalone factory testing
|
||||
chown system system /sys/class/power_supply/bq25960-standalone/voltage_now
|
||||
chown system system /sys/bus/iio/devices/iio:device6/in_index_bq25980_cp_enabled_input
|
||||
chmod 0644 /sys/class/power_supply/bq25960-standalone/voltage_now
|
||||
chmod 0664 /sys/bus/iio/devices/iio:device6/in_index_bq25980_cp_enabled_input
|
||||
|
||||
# Add for Egis Fod fingerprint
|
||||
mkdir /data/vendor/egis 0770 system system
|
||||
mkdir /mnt/vendor/persist/egis 0770 system system
|
||||
mkdir /data/vendor/tzstorage/egis 0770 system system
|
||||
mkdir /data/vendor/egis/cqa 0770 system system
|
||||
|
||||
# Add for after-sale ois gyro cal
|
||||
mkdir /mnt/vendor/persist/camera/gyro_compat 0770 vendor_tcmd camera
|
||||
|
||||
# Add for OIS hall test result
|
||||
mkdir /mnt/vendor/persist/camera/ois_hall 0770 vendor_tcmd camera
|
||||
|
||||
# Add for fod fps calibration
|
||||
chown system system /sys/class/backlight/panel0-backlight/brightness
|
||||
chown system system /sys/class/drm/card0-DSI-1/panelName
|
||||
chown system system /sys/class/drm/card0-DSI-1/panelId
|
||||
chown system system /d/dri/0/debug/motUtil
|
||||
chmod 0666 /d/dri/0/debug/motUtil;
|
||||
chmod 0666 /sys/class/backlight/panel0-backlight/brightness
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/panelName
|
||||
chmod 0666 /sys/class/drm/card0-DSI-1/panelId
|
||||
|
||||
#bluetooth sar
|
||||
write /data/vendor/radio/bluetooth_sar disable
|
||||
chmod 0644 /data/vendor/radio/bluetooth_sar
|
||||
chown radio /data/vendor/radio/bluetooth_sar
|
||||
|
||||
on early-init
|
||||
insmod /vendor/lib/modules/leds_aw99703.ko
|
||||
insmod /vendor/lib/modules/leds_lm3697.ko
|
||||
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -r -d /vendor/lib/modules/${ro.vendor.mot.gki.path} zram
|
||||
|
||||
on boot
|
||||
# vibrator hal need to access this sysfs node for AF noise issue
|
||||
chown system system /sys/devices/platform/soc/soc:mot,cam-actuator/onekey_actuator
|
||||
chmod 0660 /sys/devices/platform/soc/soc:mot,cam-actuator/onekey_actuator
|
||||
# change permission for capsensor
|
||||
chown system system /sys/class/capsense/reset
|
||||
chown system system /sys/class/capsense/int_state
|
||||
chown radio system /sys/class/capsense/reg
|
||||
chown radio system /sys/class/capsense/fw_download_status
|
||||
chown system system /sys/class/capsense/mode
|
||||
chmod 0660 /sys/class/capsense/reset
|
||||
chmod 0660 /sys/class/capsense/int_state
|
||||
chmod 0660 /sys/class/capsense/reg
|
||||
chmod 0660 /sys/class/capsense/fw_download_status
|
||||
# touch
|
||||
chown system system /sys/class/touchscreen/primary/interpolation
|
||||
chmod 0660 /sys/class/touchscreen/primary/interpolation
|
||||
chown system system /sys/class/touchscreen/primary/sample
|
||||
chmod 0660 /sys/class/touchscreen/primary/sample
|
||||
chown system system /sys/class/touchscreen/primary/edge
|
||||
chmod 0660 /sys/class/touchscreen/primary/edge
|
||||
chown system system /sys/class/touchscreen/primary/gesture
|
||||
chmod 0660 /sys/class/touchscreen/primary/gesture
|
||||
chmod 0660 /sys/class/capsense/mode
|
||||
chmod 0666 /dev/gtp_tools
|
||||
|
||||
on fs
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/rbs_fod_mmi.ko
|
||||
|
||||
on boot && property:ro.vendor.mot.gki.path=5.4-gki
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/nfc_i2c.ko
|
||||
|
||||
on late-init
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/qpnp_adaptive_charge.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi-smbcharger-iio.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_parallel_charger_iio.ko
|
||||
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/${ro.vendor.mot.gki.path} moto_mm moto_swap
|
||||
|
||||
on early-boot
|
||||
# Add for egis fingerprint
|
||||
chown system system /dev/esfp0
|
||||
chmod 0664 /dev/esfp0
|
||||
|
||||
chown system camera /dev/cci_intf
|
||||
chmod 0660 /dev/cci_intf
|
||||
|
||||
on charger
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/qpnp_adaptive_charge.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi-smbcharger-iio.ko
|
||||
insmod /vendor/lib/modules/${ro.vendor.mot.gki.path}/mmi_parallel_charger_iio.ko
|
||||
|
||||
on post-fs-data && property:ro.boot.mode=charger
|
||||
setprop persist.vendor.hvdcp_opti.start 1
|
||||
|
||||
service capsense_reset /vendor/bin/capsense_reset
|
||||
class core
|
||||
user system
|
||||
group system input
|
||||
disabled
|
||||
|
||||
on property:vendor.bluetooth.sar_state=connect
|
||||
write /data/vendor/radio/bluetooth_sar connect
|
||||
|
||||
on property:vendor.bluetooth.sar_state=disconnect
|
||||
write /data/vendor/radio/bluetooth_sar disconnect
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
start capsense_reset
|
||||
Loading…
Add table
Add a link
Reference in a new issue