OSDN Git Service
(root)
/
android-x86
/
device-generic-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
11a667c
)
init.sh: disable Bluetooth if no hci interface
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Thu, 29 Mar 2018 06:09:28 +0000
(14:09 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Thu, 29 Mar 2018 06:09:28 +0000
(14:09 +0800)
This should avoid some unnecessary Bluetooth crashing.
init.sh
patch
|
blob
|
history
diff --git
a/init.sh
b/init.sh
index
0ae2135
..
ccd1058
100644
(file)
--- 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