diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2011-11-11 15:08:43 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2011-11-11 15:08:43 +0530 |
commit | cace97b72fd8b5976fcc23bf6dbaa5bd06a3ac4e (patch) | |
tree | 19abd84588e101986d1ad0d1c6a27df5b873debe | |
parent | acccc65756623cc8f66a9d3d9521a7d091d936d4 (diff) |
init.origen.rc adb user space initializationlinaro_android_2.3.5
Following commands need to be run from android console to start
usb adb functionality.
echo 0 > /sys/class/android_usb/android0/enable
echo adb > /sys/class/android_usb/android0/functions
echo 1 > /sys/class/android_usb/android0/enable
Troubleshooting:
On HOST machine if you get "insufficient permissions" or
"permission denied" error then run following commands from HOST machine.
sudo adb kill-server
sudo adb start-server
Change-Id: Iac93d8c03c8a609582b47ea164c7685a98b8d042
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r-- | init.origen.rc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/init.origen.rc b/init.origen.rc index 60fa9e5..3c1e5bf 100644 --- a/init.origen.rc +++ b/init.origen.rc @@ -91,6 +91,12 @@ on boot insmod /system/modules/cfg80211.ko # insmod /system/modules/ath6kl.ko + # Enable Android usb gadget functionality + ## adb for the time being + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/functions adb + write /sys/class/android_usb/android0/enable 1 + # Initialize the SGX driver service pvrsrvinit /system/bin/pvrsrvinit user root |