Mute console for everyone, not just secure usecase

This commit is contained in:
Pierre-Hugues Husson 2021-02-02 22:03:11 +01:00
parent 72c62260b9
commit 9e6e2b6556

View File

@ -617,6 +617,8 @@ if getprop ro.vendor.build.fingerprint | grep -qiE '^samsung/' && [ "$vndk" -ge
fi fi
fi fi
setprop ctl.stop console
dmesg -n 1
if [ -f /system/phh/secure ];then if [ -f /system/phh/secure ];then
copyprop() { copyprop() {
p="$(getprop "$2")" p="$(getprop "$2")"
@ -625,8 +627,6 @@ if [ -f /system/phh/secure ];then
fi fi
} }
setprop ctl.stop console
dmesg -n 1
copyprop ro.build.device ro.vendor.build.device copyprop ro.build.device ro.vendor.build.device
copyprop ro.system.build.fingerprint ro.vendor.build.fingerprint copyprop ro.system.build.fingerprint ro.vendor.build.fingerprint
copyprop ro.bootimage.build.fingerprint ro.vendor.build.fingerprint copyprop ro.bootimage.build.fingerprint ro.vendor.build.fingerprint
@ -672,6 +672,10 @@ if [ -f /system/phh/secure ];then
setprop ctl.restart adbd setprop ctl.restart adbd
fi fi
resetprop ro.adb.secure 0
setprop ctl.restart adbd
for abi in "" 64;do for abi in "" 64;do
f=/vendor/lib$abi/libstagefright_foundation.so f=/vendor/lib$abi/libstagefright_foundation.so
if [ -f "$f" ];then if [ -f "$f" ];then
@ -805,6 +809,8 @@ if getprop ro.vendor.build.fingerprint |grep -qiE \
fi fi
resetprop service.adb.root 0 resetprop service.adb.root 0
setprop persist.sys.usb.config mtp,adb
# This is for Samsung Galaxy devices with HBM FOD # This is for Samsung Galaxy devices with HBM FOD
# On those devices, a magic Layer usageBits switches to "mask_brightness" # On those devices, a magic Layer usageBits switches to "mask_brightness"
# But default is 255, so set it to max instead # But default is 255, so set it to max instead