From 9e6e2b655612b203bdd2dcafb1af66f5066d35f2 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Tue, 2 Feb 2021 22:03:11 +0100 Subject: [PATCH] Mute console for everyone, not just secure usecase --- rw-system.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rw-system.sh b/rw-system.sh index 0372b10..1aac947 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -617,6 +617,8 @@ if getprop ro.vendor.build.fingerprint | grep -qiE '^samsung/' && [ "$vndk" -ge fi fi +setprop ctl.stop console +dmesg -n 1 if [ -f /system/phh/secure ];then copyprop() { p="$(getprop "$2")" @@ -625,8 +627,6 @@ if [ -f /system/phh/secure ];then fi } - setprop ctl.stop console - dmesg -n 1 copyprop ro.build.device ro.vendor.build.device copyprop ro.system.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 fi +resetprop ro.adb.secure 0 +setprop ctl.restart adbd + + for abi in "" 64;do f=/vendor/lib$abi/libstagefright_foundation.so if [ -f "$f" ];then @@ -805,6 +809,8 @@ if getprop ro.vendor.build.fingerprint |grep -qiE \ fi resetprop service.adb.root 0 +setprop persist.sys.usb.config mtp,adb + # This is for Samsung Galaxy devices with HBM FOD # On those devices, a magic Layer usageBits switches to "mask_brightness" # But default is 255, so set it to max instead