How to remote debug android via network with screen casting? - IDEs, Libraries, & Programming Tools

Hi guys,
One of our tester is working in other city( long distance from us). while testing our apps, his devices raise some strange bugs often,
and we have to send our new debug apk to let him install and test every time, then we have to wait for his feedback( sometime need screencap or screenrecord etc.)
it lose us much time.
can we have a solution to find a way that remote debug a android device via network( optative with screencast to our PC ), not via wifi?
Like he connect his android device to his PC, and install some software, and our developers can using their eclipse to remote debug the tester's devices?
Thx so much.

if no solution , find a way to remote logcat is also ok

Related

[ADB & ROOT] Control Android from your computer!!

ex-Windows Mobile users like me should know what My Mobile is..
Android has a similar app. Its called Screencast.
You first need to get the ADB, and you should be able to run commands on the shell. If you can, Screencast can do the rest.
root users can control the android's touchscreen as well as the keyboard, and non-roots can do nothing but watch (and record video)
download and run. if you have adb u must have JRE so it should work perfectly.
Link to Google Project page
Download
Ahh,gonna chk it out !!
thanks. i use something quite similar to look at the contents of my android... it's called myphoneexplorer. =D
Android ScreenControl without root
If you have not rooted your device have a look at
http://piglings.blogspot.com/2011/08/android-screen-control-without-root.html
Cheers,
Vikram.
NO control over android
I have a rooted phone with android 2.3.5, usb debugging enabled and the cracked display (digitizer not working too). I was able to see android screen on pc using adb and [email protected] but can not control it from mouse or keyboard. Any idea why?
Thanks! Saw someone doing the same concept on iOS.
andarian said:
I have a rooted phone with android 2.3.5, usb debugging enabled and the cracked display (digitizer not working too). I was able to see android screen on pc using adb and [email protected] but can not control it from mouse or keyboard. Any idea why?
Click to expand...
Click to collapse
Same here. I am running 4.2.2 on a nexus 5 and get the same thing. I am looking for a way to control phone through USB only. No internet this program seems to only do the display half of thing unfortunately. It is so frustrating that it's all over internet which I would think is much more complicated than just plug in and control but apparently not. Just getting so frustrated now.
dugie33 said:
Same here. I am running 4.2.2 on a nexus 5 and get the same thing. I am looking for a way to control phone through USB only. No internet this program seems to only do the display half of thing unfortunately. It is so frustrating that it's all over internet which I would think is much more complicated than just plug in and control but apparently not. Just getting so frustrated now.
Click to expand...
Click to collapse
I'm on a SGS2 i727R (rogers/fido version) Skyrocket running JB 4.1, rooted, usb debugging enabled and also cannot control through androidscreencast, only view. Phone's screen is busted, digitizer is gone but the non-screen touch buttons respond, as I'm able to make screenshots (power/stndby + home). My lockscreen is pattern so to manually input touch events to unlock my pattern seems pretty daunting.
To mention, I did buy another i727 (at&t version), did a blind backup of the broken one through cwm (4down, enter, 5down, enter) and restored it to the new one but all the calendar entries and notes I took through samsung's bloatware sNote, didn't restore and I had a lot of them. I can't seem to find where they're located on the filesystem and I never had a samsung account (required to sync your notes and calendar entries) so they're not backed up online. My guess is they might be encrypted locally and only be available to the same device/uid, though I might be wrong.
I was hoping to use androidscreencast to get past the unlock screen (pattern lock) and eventually export or sync the notes and calendar entries. Considering the phone's rooted, I'm wondering why I can't input touch events using androidscreencast. Is there an ADB command or a variable I have to change for this to be possible?

[Q] Could someone test this app for me?

I'm doing a little bluetooth serial connection to a PCB I've done for my thesys. It should work, since it is based on the one posted at anddev, and I've only added an xml interface and now it connects and send a msg using 2 buttons.
Problem is I don't have an Android phone right now, and I need to test it. PC emulator doesn't support BT, and using VirtualBox doesn't work for my laptop either.
When I run the app, an error appears, and application is forced to shutdown. Can anyone test it to see if this error is due to not having bluetooth at the emulator or some code error?
If you have a look at the code and make some suggestions I won't complain. I have attached the Eclipse project
(I hope this is allowed at this forum)
ill check it out, but without the PCB you have i dont think i could test any functionality. you want me to just check for any FCs while pressing buttons and what not?
The apk in the bin/ folder of your eclipse project won't install. Error parsing package
Ill try to compile when I get home but try to just post an apk
From something awesome
I just realised that I was using a virtual machine running 2.1 for an app using 3.0 libraries. I'm fixing it, but anyway I'd love you to have a look at the app, just for getting the bluetooth running, even without connecting

Why my json code don't work in Android browser ??

Hi all,
For my project i need to interact with a server. To do this i use a tablet and Tasker with HTTPGET commando.
The home automation server is from Domoticz, wich is a very good open source project !
I'am not much of a coder, so i can't understand what's happening in the situation below:
Put this code in my browser:
192.168.178.100:8080/json.htm?type=command&param=switchlight&idx=99&switchcmd=Set%20Level&level=6
Everything works fine. Dimming lights works great !
The Domoticz server is also on the same PC.
Now,
I open a browser on my Android tablet and i get an error.
Using the Tasker app in Android (HTTPGET) the command doesn't work either. However clean "on" and "off" works. But the dimvariable is not. A fault message appear and read that there is some %20level issues.
Can somebody help ?
Thx.!

Flakie's ADB GUI Version 2

Not sure if any are using it here but version 2 of my ADB GUI app is available (Flakie ADB GUI)
But a quick update:
Version 2 or my ADB GUI app is now available.
My ADB GUI App - Flakies Blog
A Windows GUI wrapper for ADB that allows APK install, update uninstall and pull/download to desktop. Supports rebooting ADB devices, custom ADB Shell commands, remote control of an Android device with scrcpy and video recording of the remote session. Integration with ngrok Internet cloud relay...
flakie.co.uk
Direct download:
https://flakie.co.uk/downloads/FlakieADBGUI.zip
There is a GUI for the common ADB commands and an integration with scrcpy (as in version 1)
It now has an experimental option to use ADB and ADB Shell commands by typing/pasting them in.
Works quite well (mostly).
It also has an integration with ngrok.
This allows you to securely control a Firestick through the Internet (or other ADB device) without any port forwarding on a router.
A full guide for ngrok use, with screenshots is here:
Using ngrok (to access a remote Firestick 4K) - Flakies Blog
We can manage a Firestick 4K (and other android devices) using ADB. This is an app/service that is run from the command prompt, by manually typing in the ADB commands.This can be done on the local network (LAN) or on a remote network (WAN) via the Internet.I am going to show two methods to...
flakie.co.uk
A simplified text version of the instructions is here:
https://flakie.co.uk/downloads/configure-termux-and-ngrok.txt
Once you have become familiar with the process it can be completed in about 4 minutes.
Cheers
Nice. Thank you!
Hi Flakie
Awesome app . . . There should be more marketing of this app, and I will be one to recommend it to everyone
Question:
What port is used to connect to your mobile phone . . i have used 5555 & 8080 with no luck . . plz can u give instructions to connect the mobile phone . . . 5555 works perfectly to the TV Box
Now . . . I'm excited and cant wait for your version 3 to be launched . . I'm checking your blog daily
Thanks again for this awesome app
Nivan0611 said:
Awesome app
Click to expand...
Click to collapse
Glad you like the app. New version is a bit away as I have been working on a couple of Android apps. Hopefully it will be in June. I am toying with adding a tabbed interface and putting in a file browser/manager for the attached devices. Though that may likely be coming in the version 4.
To attach the phone you will need to attach it to a USB cable first and showing as such in the app. Then enter the IP address of the phone (you can get this in the phones settings) and the port 5555. Then tick the box Enable TCP/IP mode and click on the Connect ADB Device button. Don't close the pop-up windows that appears. After 30 seconds or so it will show the phone as being connected by both USB and the WiFi. You can unplug the USB cable at this point and use the devices IP address to manage it. The phone can then be used in TCP/IP mode until it is rebooted. This also includes accessing it from a remote location with either port forwarding (if this is setup on the local router) or ngrok etc.
The next version it will not be necessary to specify the IP address as this will be acquired automatically by the app. TBH this is another reason for the delay in the next version, as it is still not reliable enough getting the IP address on all phones. Soon though
Marketing, not been too worried about that but grateful for any recommendations. Tech Doctor UK did a nice YouTube review (of version1) which generated more interest. There have been over 11,000 downloads in total (including the 2.3K from the tech doctor site), over the last year or so. Far more interest than I expected when I released it publicly. Thanks again for the comments.
Flakie said:
Not sure if any are using it here but version 2 of my ADB GUI app is available (Flakie ADB GUI)
But a quick update:
...
Click to expand...
Click to collapse
Jusr received my second Firestick 4k to put in bedroom, i'll play with it in order to root it and customize it to my needs, your blog seems pretty interesting, i'll probably read a lot out there before i dig in !
Thanks for the shares !
This is cool
my wishlist:
1. be able to save multiple adb ip addresses
2. be able to launch cmd window with shell instead of being forced to use shell in the app
Flakie said:
Not sure if any are using it here but version 2 of my ADB GUI app is available (Flakie ADB GUI)
But a quick update:
Version 2 or my ADB GUI app is now available.
My ADB GUI App - Flakies Blog
A Windows GUI wrapper for ADB that allows APK install, update uninstall and pull/download to desktop. Supports rebooting ADB devices, custom ADB Shell commands, remote control of an Android device with scrcpy and video recording of the remote session. Integration with ngrok Internet cloud relay...
flakie.co.uk
Direct download:
https://flakie.co.uk/downloads/FlakieADBGUI.zip
There is a GUI for the common ADB commands and an integration with scrcpy (as in version 1)
It now has an experimental option to use ADB and ADB Shell commands by typing/pasting them in.
Works quite well (mostly).
It also has an integration with ngrok.
This allows you to securely control a Firestick through the Internet (or other ADB device) without any port forwarding on a router.
A full guide for ngrok use, with screenshots is here:
Using ngrok (to access a remote Firestick 4K) - Flakies Blog
We can manage a Firestick 4K (and other android devices) using ADB. This is an app/service that is run from the command prompt, by manually typing in the ADB commands.This can be done on the local network (LAN) or on a remote network (WAN) via the Internet.I am going to show two methods to...
flakie.co.uk
A simplified text version of the instructions is here:
https://flakie.co.uk/downloads/configure-termux-and-ngrok.txt
Once you have become familiar with the process it can be completed in about 4 minutes.
Cheers
Click to expand...
Click to collapse
Why disabled ADB shell in your GUI and disabled backup of apps also?
just by streaming some thing remotely (scrcpy) and not able to use remote ADB Shell is useless !
Troubleshooting won't work without shell commands,
Port forwarding works great without your ngrock app ! Tunnel is of no use,
Why pay ngrock to use shell in your App, when ADB shell is available freely over USB , Wifi and port forwarding with fire stick 4k.
Thanks and regards
Subhash India
subhash_india said:
Why disabled ADB shell in your GUI and disabled backup of apps also?
just by streaming some thing remotely (scrcpy) and not able to use remote ADB Shell is useless !
Troubleshooting won't work without shell commands,
Port forwarding works great without your ngrock app ! Tunnel is of no use,
Why pay ngrock to use shell in your App, when ADB shell is available freely over USB , Wifi and port forwarding with fire stick 4k.
Thanks and regards
Subhash India
Click to expand...
Click to collapse
ngrok free works well (and the app is setup to use the free version) and of course you can use port forwarding if you want to. Nice to have the choice and nice not to have to have to use port forwarding which is less secure.
No-one forces you to use the app or ngrok
Or you could write your own.
Cheers.
fragtion said:
This is cool
my wishlist:
1. be able to save multiple adb ip addresses
2. be able to launch cmd window with shell instead of being forced to use shell in the app
Click to expand...
Click to collapse
1. You can save as many adb profiles as you wish
2. Was thinking of this be then you could just open a cmd window in any case. Might consider it further
The next version has a few more features but I am a bit too busy atm to finalise it. Still hope for it to be released at some point in the summer.
This is such a great tool! Thank you.
May I ask can I use it to clone a Firestick? I have a 4k Firestick and have just bought a 4k MAX. The key application I'm wanting to migrate is Kodi 19.3 and all my addons and settings. Most other apps are standalone or near enough to standalone.
If anyone has any pointers or even a procedure document it would be fantastically appreciated.
Thank you.
Dands said:
This is such a great tool! Thank you.
May I ask can I use it to clone a Firestick? I have a 4k Firestick and have just bought a 4k MAX. The key application I'm wanting to migrate is Kodi 19.3 and all my addons and settings. Most other apps are standalone or near enough to standalone.
If anyone has any pointers or even a procedure document it would be fantastically appreciated.
Thank you.
Click to expand...
Click to collapse
I wouldn't mind the ability to use adb backup and restore too for app data.
Flakie said:
A simplified text version of the instructions is here:
https://flakie.co.uk/downloads/configure-termux-and-ngrok.txt
Click to expand...
Click to collapse
Is there an updated link for this please?
brentonv said:
Is there an updated link for this please?
Click to expand...
Click to collapse
Sorry file had been deleted in error. Should be back up now.
Flakie said:
Sorry file had been deleted in error. Should be back up now.
Click to expand...
Click to collapse
Thanks so much mate
Off topic I'm also looking for the 4k mantis & extra files. Could you please fix that too?
Much appreciated
brentonv said:
Thanks so much mate
Off topic I'm also looking for the 4k mantis & extra files. Could you please fix that too?
Much appreciated
Click to expand...
Click to collapse
Should be back too now.
amazing app, wanted to say thank you and I'm puzzled why more ppl in the forum arent talking about this
I was so happy someone made a GUI version but the most I was looking for was ease of file transfer. Can you please add sharing files using your GUI?
God i would love to see v3 out of beta and give a fire tablet toolbox toolset

Android Wear app debugging with mobile application connectivity issue

Hey guys
I've created an android application with a wearos module contained within it. This might be a rookie issue given that I'm new to android development (I'm from a web dev background) but I'm struggling to get my wear and mobile apps to communicate, when they are in debug mode.
Basically, I have written some code in the mobile application to detect if the wearOS app exists on a connected watch, and if it does, allow the user to monitor the sensor activity on the watch.
When I run the mobile application debugger on a physical device through USB, I see it doesn't package the wear application with it and so I cannot install the linked watch application on my watch (which is linked to android studio through ADB over wi-fi). While the mobile device debugger is running, I run the debugger for the watch app too and the app then runs on the watch, but it doesn't look like the code in the app is actually detecting the watch. This functionality does work though when downloading the published app through the play store, and then installing it on the watch through the play store too using the 'apps on your phone' menu on my watch.
How can I achieve the connectivity between the watch and phone apps through the debugger? This is a massive pain point for me and I can't seem to find anything online that addresses this and that describes how best to set up debug environments so that these apps are linked on the 2 devices and can communicate in debug mode. My mobile device app is heavily dependent on detecting watch sensors and interacting with them and so I need an efficient way to test this.
Thanks!

Categories

Resources