shfmt -i4 -w
This commit is contained in:
parent
a8b1cfb7cb
commit
c97cc4c507
16
rw-system.sh
16
rw-system.sh
@ -29,8 +29,7 @@ fixSPL() {
|
||||
/system/lib64/vndk-26/libsoftkeymasterdevice.so /vendor/bin/teed \
|
||||
/system/lib64/vndk/libsoftkeymasterdevice.so /system/lib/vndk/libsoftkeymasterdevice.so \
|
||||
/system/lib/vndk-26/libsoftkeymasterdevice.so \
|
||||
/system/lib/vndk-27/libsoftkeymasterdevice.so /system/lib64/vndk-27/libsoftkeymasterdevice.so \
|
||||
;do
|
||||
/system/lib/vndk-27/libsoftkeymasterdevice.so /system/lib64/vndk-27/libsoftkeymasterdevice.so; do
|
||||
[ ! -f "$f" ] && continue
|
||||
# shellcheck disable=SC2010
|
||||
ctxt="$(ls -lZ "$f" | grep -oE 'u:object_r:[^:]*:s0')"
|
||||
@ -58,7 +57,7 @@ changeKeylayout() {
|
||||
cp -a /system/usr/keylayout /mnt/phh/keylayout
|
||||
changed=false
|
||||
|
||||
if getprop ro.vendor.build.fingerprint | \
|
||||
if getprop ro.vendor.build.fingerprint |
|
||||
grep -qE -e ".*(crown|star)[q2]*lte.*" -e ".*(SC-0[23]K|SCV3[89]).*"; then
|
||||
changed=true
|
||||
|
||||
@ -118,7 +117,6 @@ fixSPL
|
||||
|
||||
changeKeylayout
|
||||
|
||||
|
||||
if grep vendor.huawei.hardware.biometrics.fingerprint /vendor/manifest.xml; then
|
||||
mount -o bind system/phh/huawei/fingerprint.kl /vendor/usr/keylayout/fingerprint.kl
|
||||
fi
|
||||
@ -127,7 +125,7 @@ if ! grep android.hardware.biometrics.fingerprint /vendor/manifest.xml && ! grep
|
||||
mount -o bind system/phh/empty /system/etc/permissions/android.hardware.fingerprint.xml
|
||||
fi
|
||||
|
||||
if getprop ro.hardware |grep -qF qcom && [ -f /sys/class/backlight/panel0-backlight/max_brightness ] && \
|
||||
if getprop ro.hardware | grep -qF qcom && [ -f /sys/class/backlight/panel0-backlight/max_brightness ] &&
|
||||
grep -qvE '^255$' /sys/class/backlight/panel0-backlight/max_brightness; then
|
||||
setprop persist.sys.qcom-brightness "$(cat /sys/class/backlight/panel0-backlight/max_brightness)"
|
||||
fi
|
||||
@ -237,8 +235,8 @@ done
|
||||
mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkTheme.apk || true
|
||||
mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkThemeOverlay.apk || true
|
||||
|
||||
if grep -qF 'PowerVR Rogue GE8100' /vendor/lib/egl/GLESv1_CM_mtk.so || \
|
||||
grep -qF 'PowerVR Rogue' /vendor/lib/egl/libGLESv1_CM_mtk.so || \
|
||||
if grep -qF 'PowerVR Rogue GE8100' /vendor/lib/egl/GLESv1_CM_mtk.so ||
|
||||
grep -qF 'PowerVR Rogue' /vendor/lib/egl/libGLESv1_CM_mtk.so ||
|
||||
(getprop ro.product.board | grep -qiE -e msm8917 -e msm8937 -e msm8940); then
|
||||
|
||||
setprop debug.hwui.renderer opengl
|
||||
@ -267,11 +265,11 @@ fi
|
||||
|
||||
if getprop ro.vendor.build.fingerprint | grep -iq -E -e 'huawei|honor' || getprop persist.sys.overlay.huawei | grep -iq -E -e 'true'; then
|
||||
p=/product/etc/nfc/libnfc_nxp_*_*.conf
|
||||
mount -o bind "$p" /system/etc/libnfc-nxp.conf || \
|
||||
mount -o bind "$p" /system/etc/libnfc-nxp.conf ||
|
||||
mount -o bind /product/etc/libnfc-nxp.conf /system/etc/libnfc-nxp.conf || true
|
||||
|
||||
p=/product/etc/nfc/libnfc_brcm_*_*.conf
|
||||
mount -o bind "$p" /system/etc/libnfc-brcm.conf || \
|
||||
mount -o bind "$p" /system/etc/libnfc-brcm.conf ||
|
||||
mount -o bind /product/etc/libnfc-nxp.conf /system/etc/libnfc-nxp.conf || true
|
||||
|
||||
mount -o bind /system/phh/libnfc-nci-huawei.conf /system/etc/libnfc-nci.conf
|
||||
|
Loading…
Reference in New Issue
Block a user