Add persist.sys.phh.no_vendor_overlay property to ignore vendor overlay
This commit is contained in:
parent
11a2fd96cc
commit
a8c3c6124b
1
base.mk
1
base.mk
@ -56,6 +56,7 @@ PRODUCT_PACKAGES += \
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/phh/treble/rw-system.sh:system/bin/rw-system.sh \
|
||||
device/phh/treble/phh-on-data.sh:system/bin/phh-on-data.sh \
|
||||
device/phh/treble/phh-prop-handler.sh:system/bin/phh-prop-handler.sh \
|
||||
device/phh/treble/fixSPL/getSPL.arm:system/bin/getSPL
|
||||
|
||||
|
7
phh-on-data.sh
Normal file
7
phh-on-data.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
if getprop persist.sys.phh.no_vendor_overlay |grep -q true;then
|
||||
for part in odm vendor;do
|
||||
mount /mnt/phh/empty_dir/ /$part/overlay
|
||||
done
|
||||
fi
|
@ -3,6 +3,7 @@
|
||||
/system/etc/usb_audio_policy_configuration.xml u:object_r:vendor_configs_file:s0
|
||||
/system/bin/rw-system.sh u:object_r:phhsu_exec:s0
|
||||
/system/bin/phh-on-boot.sh u:object_r:phhsu_exec:s0
|
||||
/system/bin/phh-on-data.sh u:object_r:phhsu_exec:s0
|
||||
/system/bin/asus-motor u:object_r:phhsu_exec:s0
|
||||
|
||||
#/system/bin/fsck\.exfat u:object_r:fsck_exec:s0
|
||||
|
8
vndk.rc
8
vndk.rc
@ -5,6 +5,12 @@ on post-fs
|
||||
setprop ro.vndk.version ${persist.sys.vndk}
|
||||
export LD_PRELOAD :
|
||||
|
||||
on property:vold.decrypt=trigger_restart_framework
|
||||
exec - root -- /system/bin/phh-on-data.sh
|
||||
|
||||
on early-boot
|
||||
exec - root -- /system/bin/phh-on-data.sh
|
||||
|
||||
service phh_on_boot /system/bin/phh-on-boot.sh
|
||||
oneshot
|
||||
disabled
|
||||
@ -27,4 +33,4 @@ on property:persist.sys.phh.oppo.usbotg=*
|
||||
exec_background u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.oppo.usbotg"
|
||||
|
||||
on property:persist.sys.phh.xiaomi.dt2w=*
|
||||
exec_background u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.xiaomi.dt2w"
|
||||
exec_background u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.xiaomi.dt2w"
|
||||
|
Loading…
Reference in New Issue
Block a user