I managed to conect my phone to the computer and I am able to debug with eclipse but I need internet conection but the phone I got has no sim card and wifi at work doesn't work well (not possible to use wifi) so I woul like to create a bridge like instructed here but it doesn't work.
The problem is I think is that the phone is not rooted. I am not allowed to do any modification to the device like the rooting instructions you can find on the net. Is there something else I can do? just a temporary "su" or sudo on the device? I have the terminal installed on the device and I tried typing su and it says "permission denied". Is there an apk to just activate the su temporary to make the conection and that's it?
The phone is a nexus one with Android 2.3.4.
EDIT: I know I need a linux pc. And at the top of the page it was written that you need a rooted phone but I decided to try it anyway but it doesn't work it seams the phone doesn't "allow it" I also tried what was written on the link suggested but it doesn't work for me either.
You don't need root for reverse usb tethering. You can follow the steps normally without having to type "su" on your device?
If you read the page, you need a linux computer if you want to use reverse tethering AND adb and the same time.
The trick is that you need to execute this I guess:
./adb shell netcfg usb0 dhcp
to get the usb-connection on your phone.
Related
I'd like to power on and off a USB device in Android. I know the method on Linux and it is pretty straightforward (see https://loginroot.com/power-off-and-on-usb-device-in-linux-ubuntu/). Unfortunately the command lsusb -t does not work on Android terminal.
Do you know how to deactivate a specific USB port on Android? Alternatively, getting the USB device tree should be enough, but I don't know how to achieve that either.
I'm just testing the adb and I'm wondering if this is possible.
I mean, let's say I have adb installed on a aws instance, whatever the Ip it may be.
Then from there, I want to connect to my Android device via adb I don't know if adb connect can do the trick having the external Ip of the device.
From what I've learned, seems like it is possible, but it's kind of confusing.
Also, I see it's possible to connect without having the device rooted.
But most tutorials or examples are based on wifi, I just want to know if there is a workaround or even a command which can make this possible remotely.
Any ideas?
Thanks in advance!
I would try looking into Vysor. The main purpose of this tool is to be able to control an Android device remotely, but it also provides an option to share the adb connection to the device without a root. Its a powerful tool, that as many applications.
Hello StackOverflowers,
I am eager to try out some Android programs on my tablet in the early phase. However, I do not have root access to the Linux machine I am using (OpenSUSE 12.1). Due to this, I am having trouble to let the system find my device.
This tutorial http://developer.android.com/tools/device.html, as well as almost every post I can find online, do not mention ways to walk around the 51-android.rules setting without root. Some post even mention that, to find the device, the adb command should be run with root.
Does this mean I have no hope of on-device debugging? Thanks in advance!
I dont think you need root access for adb. Though for the device to be detected, AFAIK you need to add device details in rules.d .
If you have device and the computer on the same network, you could use adb over wifi. But to put the device in tcp mode , you need root access on phone or another computer where device can be detected.
Your device doesn't have to be rooted. After you add your device in 51-android.rules, make sure you restart adb server by using these commands:
adb kill-server
adb start-server
And one more thing, make sure you turn On Debugging Mode
So here's the thing. I use MyPhoneExplorer in USB mode which uses ADB to communicate with the phone. Whenever my phone is connected (using MyPhoneExplorer) and try to test an app in eclipse on my EMULATOR, ADB crashes, rendering both MPE and the emulator useless.
My question is: Is there any way to prevent adb from accessing one phone from multiple sources? (In this case its trying to access the phone for both Eclipse and MPE).
Weird/Confusing question I know, but would really appreciate some help.
I haven't tested this, but how about directing ABD at a given device with this:
adb -s <serialNumber> <command>
http://developer.android.com/guide/developing/tools/adb.html#directingcommands
Use adb devices to find out the serial number of your emulator.
But from what you describe it might be that ADB's device detection that's breaking things.
I read many articles on how we can launch an Android emulator faster.
I found this SO post where user286101 said that he "can load the app over wifi onto the real device in a fraction of the time".
My question is : how can I load an application, from Eclipse, to my real device through wifi ?
Regards.
I believe you must connect adb to your device using the command line: adb connect <host>[:<port>]. Then Eclipse will adb your device over WiFi.
Check out the adb docs.
This is adb wireless : http://www.appbrain.com/app/siir.es.adbWireless
butt your phone has to be rooted
I do it all the time via dropbox.com takes just a matter of seconds.
Just move the .apk to your dropbox folder and then open it from your device. This will work for both wifi and 3G.
In addition to bytebender's suggestion, you can transfer your apk with kies air as well, and run it by locating it with your Android's file browser. It's not exactly launching from eclipse, but this is what I had to do because I didn't have an OEM usb connector and the 3rd party (cheap) ones I had weren't connecting to my PC. I couldn't get the adb method to work. My phone does not have ROOT access.