From bb31984dc557e75d66b29f8ba9b4e5e586e5b505 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Thu, 29 Mar 2018 14:09:28 +0800 Subject: [PATCH] init.sh: disable Bluetooth if no hci interface This should avoid some unnecessary Bluetooth crashing. --- init.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.sh b/init.sh index 0ae2135..ccd1058 100644 --- a/init.sh +++ b/init.sh @@ -377,6 +377,8 @@ function do_netconsole() function do_bootcomplete() { + hciconfig | grep -q hci || pm disable com.android.bluetooth + init_cpu_governor [ -z "$(getprop persist.sys.root_access)" ] && setprop persist.sys.root_access 3 -- 2.11.0