Add persist.sys.phh.no_vendor_overlay property to ignore vendor overlay

This commit is contained in:
Pierre-Hugues Husson 2020-04-05 00:55:24 +02:00
parent 11a2fd96cc
commit a8c3c6124b
4 changed files with 16 additions and 1 deletions

View File

@ -56,6 +56,7 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/phh/treble/rw-system.sh:system/bin/rw-system.sh \ 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/phh-prop-handler.sh:system/bin/phh-prop-handler.sh \
device/phh/treble/fixSPL/getSPL.arm:system/bin/getSPL device/phh/treble/fixSPL/getSPL.arm:system/bin/getSPL

7
phh-on-data.sh Normal file
View 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

View File

@ -3,6 +3,7 @@
/system/etc/usb_audio_policy_configuration.xml u:object_r:vendor_configs_file:s0 /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/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-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/asus-motor u:object_r:phhsu_exec:s0
#/system/bin/fsck\.exfat u:object_r:fsck_exec:s0 #/system/bin/fsck\.exfat u:object_r:fsck_exec:s0

View File

@ -5,6 +5,12 @@ on post-fs
setprop ro.vndk.version ${persist.sys.vndk} setprop ro.vndk.version ${persist.sys.vndk}
export LD_PRELOAD : 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 service phh_on_boot /system/bin/phh-on-boot.sh
oneshot oneshot
disabled 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" 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=* 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"