Reputation: 1233
I am looking for a way to debug a device remotely over the Internet.
I am getting a lot of bug reports from my users which I can't even reproduce. It would be easy to solve them if I could debug the device over the Internet as if it were connected to my PC. Is this possible?
I heard about debugging over wifi in local network, maybe there is similar way to achieve it over the Internet?
Upvotes: 40
Views: 31262
Reputation: 31
I have a one solution that make your device remotely available using remote.it .
Follow the below step to debugging your app on internet.
Step 1: Download remote.it app from app store. https://play.google.com/store/apps/details?id=com.remoteit
Step 2: Sign up into app and follow the steps same as screenshots.
Step 3: open app.remote.it panel and follow the steps.
Step 4: connect your remote device using adb.
Upvotes: 1
Reputation: 3843
You can use Crashlytics in your app.. It helps you to get the detailed crash logs. Whenever an app crashes, it will send you the detailed crash report, from which you can figure out what is happening at the client side. Get more info about adding crashlytics to the app from here.
Send this new app to the client so can have workaround:
Upvotes: 3
Reputation: 1410
Steps to Follow:
as an example.
adb connect <ip-address-of-your-device>:5555
as an example:
adb connect 10.10.0.21:5555
The terminal should show something like below
adb server is out of date. killing...
*daemon started successfully*
connected to 10.10.0.21:5555
Now run shell command
adb shell
you will get the prompt something like this, i my case i used android x86 device for debugging.
shell@x86_64:/$
Now if you go to the task bar in the android studio and click on Run options and then Run'app' you will be able to see the device as your Deployment Target.
Hope it helps !
Upvotes: 2
Reputation: 659
You can also use adb via tcp ip:
adb connect ip:port
In your machine with adb installed do:
adb connect public_ip:port
After being connected, you can do:
adb logcat
or
adb shell
Or any adb command you want to.
Upvotes: 2
Reputation: 27
try Debugging Firefox for Android over Wifi it's working with me
Upvotes: 0
Reputation: 1061
It is possible to setup Android device for debugging over Internet, however it requires USB connection to enable it or root access on the device. In addition to that you will have to setup port forwarding to device to accept incoming ADB connections from the the Internet. It hardly can help unless users of your app are developers with great desire to cooperate.
You can find detailed instructions here: http://www.cleansoft.lv/debugging-android-applications-remotely/
Upvotes: 6