Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lavender #260

Open
wants to merge 9 commits into
base: android-11.0
Choose a base branch
from
33 changes: 29 additions & 4 deletions rw-system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,25 @@ if getprop ro.vendor.build.fingerprint | grep -q -i \
-e xiaomi/nitrogen -e xiaomi/whyred -e xiaomi/platina \
-e xiaomi/ysl -e nubia/nx60 -e nubia/nx61 -e xiaomi/tulip \
-e xiaomi/lavender -e xiaomi/olive -e xiaomi/olivelite -e xiaomi/pine \
-e Redmi/lancelot -e Redmi/galahad; then
-e Redmi/lancelot -e Redmi/galahad -e Redmi/merlin -e Redmi/angelican -e Redmi/dandelion; then
setprop persist.sys.qcom-brightness "$(cat /sys/class/leds/lcd-backlight/max_brightness)"
fi

#Xiaomi Redmi Note 9, Redmi 9 (Prime)
if getprop ro.vendor.build.fingerprint |grep -qi -e Redmi/merlin -e Redmi/lancelot -e Redmi/angelican -e Redmi/dandelion; then
setprop persist.sys.overlay.devinputjack true
fi

# UMIDIGI A3X & A9
if getprop ro.vendor.build.fingerprint |grep -qi -e UMIDIGI/A3X -e UMIDIGI/A9; then
setprop persist.sys.overlay.devinputjack true
fi

# CUBOT KINGKONG MINI2
if getprop ro.vendor.build.fingerprint |grep -qi -e CUBOT/KINGKONG_MINI2; then
setprop persist.sys.overlay.devinputjack true
fi

#Realme 6
if getprop ro.vendor.product.device |grep -iq -e RMX2001 -e RMX2151 -e RMX2111 -e RMX2111L1;then
setprop persist.sys.phh.fingerprint.nocleanup true
Expand Down Expand Up @@ -399,7 +414,7 @@ if getprop ro.vendor.build.fingerprint | grep -iq \
-e motorola/hannah -e motorola/james -e motorola/pettyl -e xiaomi/cepheus \
-e xiaomi/grus -e xiaomi/cereus -e xiaomi/cactus -e xiaomi/raphael -e xiaomi/davinci \
-e xiaomi/ginkgo -e xiaomi/laurel_sprout -e xiaomi/andromeda \
-e redmi/curtana -e redmi/picasso \
-e redmi/curtana -e redmi/joyeuse -e redmi/picasso \
-e bq/Aquaris_M10 ; then
mount -o bind /mnt/phh/empty_dir /vendor/lib64/soundfx
mount -o bind /mnt/phh/empty_dir /vendor/lib/soundfx
Expand Down Expand Up @@ -519,7 +534,11 @@ fi

if getprop ro.vendor.build.fingerprint | grep -iq -e xiaomi/daisy; then
setprop debug.sf.latch_unsignaled 1
setprop debug.sf.enable_hwc_vds 1
fi

if getprop ro.vendor.build.fingerprint | grep -iq -e xiaomi/lavender; then
setprop debug.sf.latch_unsignaled 1
setprop ro.netflix.bsp_rev Q660-13149-1
fi

if getprop ro.vendor.build.fingerprint | grep -iq -E -e 'huawei|honor' || getprop persist.sys.overlay.huawei | grep -iq -E -e 'true'; then
Expand Down Expand Up @@ -633,6 +652,10 @@ if getprop ro.vendor.build.fingerprint | grep -qiE '^samsung/' && [ "$vndk" -ge
fi
fi

if getprop ro.vendor.build.fingerprint | grep -q -e Sony/aosp_f5121/suzu; then
chown system:system /sys/class/leds/*/breath
fi

# For Nubia Red Magic 6 audio policy configuration
if getprop ro.vendor.build.fingerprint | grep -q -e nubia/NX669; then
umount /vendor/etc/audio
Expand Down Expand Up @@ -878,8 +901,10 @@ if getprop ro.vendor.build.fingerprint |grep -iq xiaomi/cepheus;then
setprop ro.netflix.bsp_rev Q855-16947-1
fi

if getprop ro.vendor.build.fingerprint |grep -qi redmi/curtana;then
if getprop ro.vendor.build.fingerprint |grep -qi -e redmi/curtana -e redmi/joyeuse; then
setprop ro.netflix.bsp_rev Q6250-19132-1
setprop debug.sf.latch_unsignaled 1
setprop sys.use_fifo_ui 1
fi

# Set props for Vsmart Live's fod
Expand Down