USBADB
Jump to navigation
Jump to search
USB ADB[edit | edit source]
To use USB ADB on x000 and x100 generations of head units you need to copy g_android.ko
file into
/system/lib/modules
directory and set correct rights (chmod 755 /system/lib/modules/g_android.ko
)
You can use the following script to enable ADB over USB1:
#!/bin/bash
stop adbd
rmmod uipodcomp_main
insmod /system/lib/modules/g_android.ko
echo 1 > /proc/driver/isp1504_otg_vbus_control
echo 1 > /proc/driver/isp1504_otg_dp_control
echo 1 > /proc/driver/isp1504_otg_fake_id
setprop sys.usb.config mtp,adb
echo 0 > /sys/class/gpio/gpio111/value
And this script to disable ADB and restore USB1 normal functionality:
#!/bin/bash
echo 1 > /sys/class/gpio/gpio111/value
stop adbd
rmmod g_android
insmod /system/lib/modules/uipodcomp_main.ko
echo 0 > /proc/driver/isp1504_otg_dp_control
echo 0 > /proc/driver/isp1504_otg_fake_id
echo 1 > /proc/driver/isp1504_otg_vbus_control