4

OS: Android JB.

HW Platform 1: sama5d31-ek (ATMEL ARM)

HW Platform 2: TI-Sitara SK

Enable USB debugging for android at android Linux command prompt.

Usually USB debugging for android is enabled through Settings > Developer option > USB debugging.

How can the same thing be achieved on a Headless Android Application? Since there is no user input from the touch screen what is the process to switch on the same feature at Android Linux command prompt.

The following links give some suggestions as to how it can be done but was not able to successfully achieve the objective.

HW Platform 1: sama5D31-ek (Atmel ARM) board has two USB/Serial input from android Linux can be accessed. From one USB/Serial port the adb shell can be executed when the USB debugging is enabled. The access provides root privileges.

The other USB/Serial access point pretty much for debugging, and has very limited privileges.

Thanks

  • Interesting question. It may help us to know a bit more about your setup. Your title seems to indicate that you have a working shell on the Android device. Is this the case? What options do you have to interface with the device, since you don't have a touchscreen? – dotVezz Nov 5 '13 at 17:50
  • It might be possible to call some intent (via am start) to trigger that. But I don't know if such exists, and which it might be. You could try this Google search for some hints. – Izzy Nov 5 '13 at 18:12
  • Perhaps try start adbd in the console? – Alvin Wong Nov 6 '13 at 17:47
  • Try this link : stackoverflow.com/questions/14877951/… – BrotskyTv Oct 16 '15 at 5:26
0

You should be able to just type:

setprop persist.service.adb.enable 1

This will enable USB debugging on the device and persist across reboots.

  • 2
    You should be rooted to do that.. – Gokul NC Jun 29 '16 at 12:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.