Merge: Tool to enable/disable ADB
This commit is contained in:
parent
0f34d709e4
commit
3a2da4c1ab
9 changed files with 118 additions and 15 deletions
|
|
@ -1,10 +1,5 @@
|
|||
#!/system/bin/sh
|
||||
|
||||
# Enable Android Debug Bridge
|
||||
if [ -f /misc/enableADB ]; then
|
||||
/usbdbg.sh device
|
||||
fi
|
||||
|
||||
echo 0xF > /sys/devices/system/cpu/autoplug/plug_mask
|
||||
|
||||
TF1_PATH=/mnt/mmc # ROMS partition
|
||||
|
|
@ -31,6 +26,11 @@ if [ $? -ne 0 ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# Enable Android Debug Bridge
|
||||
if [ -f /mnt/mmc/enableADB ]; then
|
||||
/usbdbg.sh device
|
||||
fi
|
||||
|
||||
if [ -d ${TF1_PATH}${SYSTEM_FRAG} ] || [ -f ${TF1_PATH}${UPDATE_FRAG} ]; then
|
||||
if [ ! -L $TF2_PATH ]; then
|
||||
# .system found on TF1 but TF2 is present
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue