[TUT] HTTP Proxy through USB Cable - XPERIA X8 Android Development

Intro
Warning: this tutorial is highly technical for many users!
Yeah, as I mentioned in FroyoBread thread, we can use HTTP proxy via USB cable for Browsers and Maps (only in FroyoBread v011 and later) and some other apps (OperaMini for example). Market, Facebook and XDA app don't support Proxy though.
That means these apps can access the internet with an HTTP Proxy installed in your computer.
It's rather complicated, and platform-dependent (Linux or Windoze).
Requirements
High IQ!
A mini USB cable that connects your PC with your Phone!
Rooted
A ROM with dropbear included. All CM6/CM7 ROMs has dropbear already. SE's Eclair does NOT have dropbear.
adb (officially from android sdk)
FroyoBread v011 or higher for stock Browser and Maps
An SSH client in your PC, capable of client-2-server port forwarding
General instruction
These are general steps to show the idea. Don't worry, the specific part is below.
Install HTTP Proxy in your PC
Install an SSH client in your PC
Start adb server
Generate dropbear's rsa and dss keys in phone.
Start dropbear in phone.
Forward port 22 from your phone to port 2222 in your PC
From PC, ssh to localhost, port 2222 (that means ssh to phone's dropbear, port 22), enable client-2-server port forwarding for the proxy port
Configure proxy settings in phone
Enjoy
Linux
These instructions are specific for Linux. I assume that you use Ubuntu. Other distros should be similar. All of these commands are used in your PC.
Install HTTP Proxy in your PC. We use tinyproxy in this example.
Code:
$ sudo apt-get install tinyproxy
Install an SSH client in your PC. Ubuntu has ssh client (ssh) by default, but just in case you don't have that:
Code:
$ sudo apt-get install ssh
Start adb server
Code:
$ sudo adb kill-server
$ sudo adb start-server
Generate dropbear's rsa and dss keys in phone.
Code:
$ adb shell mkdir -p /data/dropbear
$ adb shell dropbearkey -t rsa -f /data/dropbear/dropbear_rsa_host_key
$ adb shell dropbearkey -t dss -f /data/dropbear/dropbear_dss_host_key
Start dropbear in phone
Code:
$ adb shell dropbear
Forward port 22 from your phone to port 2222 in your PC
Code:
$ adb forward tcp:2222 tcp:22
From PC, ssh to localhost, port 2222 (that means ssh to phone's dropbear, port 22), enable client-2-server port forwarding for the proxy port 8080 (default with tinyproxy)
Code:
$ ssh localhost -p 2222 -R 8080:localhost:8080
Configure proxy settings in phone with these parameters:
Code:
Host: localhost
Port: 8080
Enjoy
Code:
Try OperaMini (for other ROMs) or Browser and Maps included in FroyoBread
Windoze
Unfortunately I don't have Windoze right now. I will finish this part when I have access to a Windoze machine. Stay tuned.

Cheers for the words of wisdom dx, I might give this a go now thanks to this tutorial

Omg this tutorial required a high IQ.
Some problem will appear for me.
anyway this is show promise.
Thanks for the tutorial dx. Its awesome.
Let's do it
Sent from my X8 using XDA Premium App

ummmm. i think its windows not windoze.

read fast both words, and tell where is the difference !?

I'm thinking of making an all in one app for this... Don't know if this is possible, will look into it. Also would it be possible to apply this to the rom itself and make an option where if this option is enabled,we could channel all net traffic through the browser which would effectivly mean reverse usb tethering. Don't know if its possible though
Sent from my X8 using XDA App

tojnas said:
ummmm. i think its windows not windoze.
Click to expand...
Click to collapse
You are right because I read win -do -ze when I read Windows right this win-dovs.
Not same think.
Sent from my X8 using XDA Premium App

Look here. It's a slang to refer to Windows. I'm not a fan of Windows. LOL.

as mario you are very desperate boy

as-mario said:
You are right because I read win -do -ze when I read Windows right this win-dovs.
Not same think.
Sent from my X8 using XDA Premium App
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Dare-Devil Inside said:
Click to expand...
Click to collapse
What you want?

Dare-Devil Inside said:
Click to expand...
Click to collapse
Calm down. He/she didn't get the joke, what's the problem?
Also, Winblows is better than Windoze ok

Related

where to get jbed aka. java box by esmertec

Hey guys, I'm just wondering where to get that java box for the hero phone ( like in the modaco Rom)
Thanks in advance!
i would also like this, I extracted the apk but i need more then that because it wont run on my friends stock hero.
im an mgmaps user so java is required!
huh, any replies to this? i'm not rooted, stock upgraded rom, can i get java and where can i find a suitable app?
http://lmgtfy.com/?q=jbed+android+apk
first link ... took me 5 secs
alright dudes, here is the tutorial for that.. thought everyone had found it for himself, but okay ;-)
http://home.leakdroid.com/2009/08/31/java-app-for-android/comment-page-1/
keyra74 said:
http://lmgtfy.com/?q=jbed+android+apk
first link ... took me 5 secs
Click to expand...
Click to collapse
yeah, aren't you cute, found that myself, thank you oh-so-very-much....now, this:
adb remount
adb install Jbed.apk or adb push Jbed.apk /system/app
adb push libjbedvm.so /system/lib
adb shell reboot
is French to me....je ne parle pas francais!!!!
so, illiterate as i am, i turned to a forum of experts for a bloody answer....so, once again, thank you oh-so-very-much for providing it
i hope i've embedded enough sarcasm to make you realize you haven't helped a bit!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. Download this
2. Start a shell (i prefer adb shell), and type the following (each line confirmed with the return key)
Code:
adb remount
adb install Jbed.apk or adb push Jbed.apk /system/app
adb push libjbedvm.so /system/lib
adb shell reboot
Ready to take off with Java!
suisen said:
yeah, aren't you cute, found that myself, thank you oh-so-very-much....now, this:
adb remount
adb install Jbed.apk or adb push Jbed.apk /system/app
adb push libjbedvm.so /system/lib
adb shell reboot
is French to me....je ne parle pas francais!!!!
so, illiterate as i am, i turned to a forum of experts for a bloody answer....so, once again, thank you oh-so-very-much for providing it
i hope i've embedded enough sarcasm to make you realize you haven't helped a bit!
Click to expand...
Click to collapse
They helped you out to much if you ask me...
Don't forget that this is a development sub-forum! If you don't understand the things mentioned here you should post your question in the general forum where they could help you out step by step.
does not work with the new rom release(rooting was no problem with flashrec and does work)
ginchiller said:
does not work with the new rom release(rooting was no problem with flashrec and does work)
Click to expand...
Click to collapse
in modaco it is already included, with normal rom it works (tested and using it)
that is just a proof that it is working in the new release, but how could it be installed without flashing to modaco?
maybe by reading this thread?
http://forum.xda-developers.com/showpost.php?p=4545215&postcount=7
yeah,...thanks... but as i said this method is not working with the new rom...
i figured out how to install it on the new rom!!!
as i said i have allready rooted it with this tutorial
Flashrec
so i had the cm-hero-recovery.img on my phone again
i restarted the phone holding POWER+HOME (not power+back)
then i typed in the following commands into the cmd (be sure that you have the Jbed.apk & libjbedvm.so in your android sdk tools folder)
Code:
adb shell mount /system
adb push Jbed.apk /system/app
adb push libjbedvm.so /system/lib
adb shell reboot
and after the reboot there it should be, i hope i could help someone with the same problem
Worked perfectly ginchiller ty
Is there a way to fullscreen mode?
I have installed the new opera mini but it has bugs with landscape.
Without landscape its ok but I want it in fullscreen...
for those j2me apps i tried yet, fullscreen works perfectly
How to install applications? When i run jbed i see sdcard folder. What i have to do?
close jbed, open a file browser, goto the folder where you stored the java-program (*.jar) and open/execute it with jbed (just open it, normally after a successful installation of jbed, jbed will pop up)
ohh, i will try another file manager because when i tap on .jar file in SUBFS its try to extract files not execute)))

[TT/RELEASE] Ubuntu for (inside of) SCH-I500

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NOTES:
This version of Karmic (9.10) Ubuntu was made for desktops. It is not a mobile OS and has no phone/text apps. It runs as a completely separate OS that displays on your phone.
While this OS does run "natively", you can only see the lxde gui through a VNC viewer. The filesystem file stays on your sd card.
Installing with the install script does not fully install the OS to your phone, but rather allows you to boot and run with commands from /system/bin instead of the ones placed in /sdcard/ubuntu
Any changes made can be reversed by typing rm -rf /sdcard/ubuntu in a shell/terminal or deleting that folder from root explorer/astro. While this can do no harm to your phone whatsoever, it can freeze it and hog the cpu completely.
I can guarantee that no one will keep this on his/her phone for more than a week. It is simply proof of concept.
You can view the OS on your computer, but you must use WiFi.
Other similar ports *cough* Vibrant *cough* lack features such as many graphical apps, but this strives to be as fully featured as possible. All apps should run, but don't try to multitask. It's a phone. Not a computer.
This is a thinktank because it's not polished enough for me to flat out call it a release. There are many errors and crappy ways of doing things. If you want to help (I don't expect you to; it's futile and useless) run things from terminal and look at the bugs in the README on the desktop.
Thank you to bubs and st0101 for testing and confirming the ability of this port.
Please don't try this if you can't follow directions or are completely new to command line/linux/android/smartphones/technology
All directions and credits are hardcoded in. If you read the outputs of the commands, you will have no problem. However, a starter's guide is below.
Download ubuntu.zip and unzip it
Mount your sd card to your computer
Copy the ubuntu folder to your sd card *!THIS TAKES UP 2 GIGABYTES!* and it will take a while to copy.
Unmount your sd card, but keep your phone connected to your computer
Open an adb shell (adb shell if you have the binaries installed, ./adb shell in the tools folder of the sdk if you don't have them installed)
cd /sdcard/ubuntu
su (also grant superuser rights on the phone when it pops up)
sh ./ubuntu.sh (errors are common, but you will receive the directions to type 'bootlinux' if everything succeeded)
bootlinux
Follow the directions on screen! To use a command line, [email protected]# means that you have access. To use a gui:
cat gui (and then follow the directions)
Read every readme that you can find
cat gui will give you instructions on how to set up a localhost VNC server with no network lag.
DOWNLOAD:
http://www.megaupload.com/?d=VCVD5C95
Screenshots!
nice work!!!
I don't know why anyone would want to do this but it's a great feat. Good job!
Sent from my Dirrk overclocked/lagfixed SCH-i500
Haha, that's the point
I really want to do this so I can run this on my phone and be super cool, just for the browser alone, but I am feeling like I would get lost.
destroyerbmx said:
I really want to do this so I can run this on my phone and be super cool, just for the browser alone, but I am feeling like I would get lost.
Click to expand...
Click to collapse
Get lost? It's easy as balls
Posted from my SCH-I500 (Samsung Fascinate with Voodoo @ 1200 MHz)
Gitykins said:
Get lost? It's easy as balls
Posted from my SCH-I500 (Samsung Fascinate with Voodoo @ 1200 MHz)
Click to expand...
Click to collapse
I don't play with balls on a regular basis, so it might not be as easy as it looks to some. lol jk
Pretty neat.
it works good thanks again
bubs
Sent from my SCH-I500 using XDA App
Thanks guyz.

[TUT] SetUp Adb (aka AndroidDebugBridge)

Here my next tut!
How to set-up easily adb from a Windows PC (From XP To 8) !
REQUISITES :
The tool : Avaiable HERE ==> Downloads - Adb Driver Installer (9.0 MB!)
An Android Device
NOW INSTALL IT !
Open ADB Driver Installer
Connect the Device at PC...
Now you will have a look like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now click Driver Incorrectly
And after click Install...
Niw the tool will install correct Drivers... Wait a while like 1/2 Minuts
You will get a look like this when it finish
Finish...ADB Drivers Installed..
Now you can delete ADB Driver Installer and disconnect the device!!!
SOURCE : HERE
R: [TUT] SetUp Adb (aka AndroidDebugBridge)
Reserved...
Is this a standalone ADB tool or just an automated ADB-Driver installer??
Thanks bro
I was searching a tut for this
I used this tool few weeks ago
R: [TUT] SetUp Adb (aka AndroidDebugBridge)
RockitOut11 said:
Is this a standalone ADB tool or just an automated ADB-Driver installer??
Click to expand...
Click to collapse
Automated adb dricer
GEKTHEBOSS said:
Here my next tut!
How to set-up easily adb from a Windows PC (From XP To 8) !
REQUISITES :
The tool : Avaiable HERE ==> Downloads - Adb Driver Installer (9.0 MB!)
An Android Device
NOW INSTALL IT !
Open ADB Driver Installer
Connect the Device at PC...
Now you will have a look like this
Now click Driver Incorrectly
And after click Install...
Niw the tool will install correct Drivers... Wait a while like 1/2 Minuts
You will get a look like this when it finish
Finish...ADB Drivers Installed..
Now you can delete ADB Driver Installer and disconnect the device!!!
SOURCE : HERE
Click to expand...
Click to collapse
how to use adb after that??
niku4uster said:
how to use adb after that??
Click to expand...
Click to collapse
Use minimal adb and fastboot
GEKTHEBOSS said:
Use minimal adb and fastboot
Click to expand...
Click to collapse
i actually want to pull log file of recovery...and this software is saying that drivers are installed...but when i check via cmd it says no device connected..
hey
I have successfully installed the adb drivers in my pc...
but I got this error :
[device not found ]
[email protected]:/ $ adb devices
List of devices attached
[email protected]:/ $ adb shell
error: device not found
1|[email protected]:/ $ su
[email protected]:/ # adb root
error: device not found
1|[email protected]:/ #
siddheshvartak said:
hey
I have successfully installed the adb drivers in my pc...
but I got this error :
[device not found ]
[email protected]:/ $ adb devices
List of devices attached
[email protected]:/ $ adb shell
error: device not found
1|[email protected]:/ $ su
[email protected]:/ # adb root
error: device not found
1|[email protected]:/ #
Click to expand...
Click to collapse
I am sure that the problem is that the adb isn't installed properly
so you have to reinstall the flashtool drivers and make sure you
check the xperiaU drivers and the last two checks (flashmode drivers,fastmode drivers)
but if you didn't install the flashtool already, then just install this:
http://www.mediafire.com/?s411nyyuu58zugl
I have already installed flashtool in my pc.
2 days before only I have flashed stock ics on my xu..
N yesterday I have flashed experimental kernel using adb via flashtool...
So do I need to install the drivers again???
Sent from my ST25i using XDA Premium 4 mobile app
siddheshvartak said:
I have already installed flashtool in my pc.
2 days before only I have flashed stock ics on my xu..
N yesterday I have flashed experimental kernel using adb via flashtool...
So do I need to install the drivers again???
Sent from my ST25i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
have you turned on usb debugging
Yup
Sent from my ST25i using XDA Premium 4 mobile app
siddheshvartak said:
Yup
Sent from my ST25i using XDA Premium 4 mobile app
Click to expand...
Click to collapse
your phone needs to be booted in order for adb to work...try simple adb multi-tool...

Any app to make sd card as installation location app Huawei Mediapad T3 10

i got Huawei Mediapad T3 10 but storage to install app is very limted
so any app to make installation app in sd card momery
as i read the device not support that
but in ask any app or method to solve this
ant_gamal said:
i got Huawei Mediapad T3 10 but storage to install app is very limted
so any app to make installation app in sd card momery
as i read the device not support that
but in ask any app or method to solve this
Click to expand...
Click to collapse
You achieve this via ADB: Run the following command to set the default install location to your SD card:
Code:
adb shell pm setInstallLocation 2
Of course you will be required to enable the USB debugging option in the Developer option and download the ADB client on your computer - if not already done yet. To enable Developer option, go to Settings > About device > Build number and tap Build number seven times. Once activated, you will see a message that reads, “You are now a developer”. After enabling USB debugging, plug in your phone to your PC using USB and invoke ADB.
jwoegerbauer said:
You achieve this via ADB: Run the following command to set the default install location to your SD card:
Code:
adb shell pm setInstallLocation 2
Of course you will be required to enable the USB debugging option in the Developer option and download the ADB client on your computer - if not already done yet. To enable Developer option, go to Settings > About device > Build number and tap Build number seven times. Once activated, you will see a message that reads, “You are now a developer”. After enabling USB debugging, plug in your phone to your PC using USB and invoke ADB.
Click to expand...
Click to collapse
thank could you give me link to ADB and how to use
sorry i am not expert
i entered developer mode already
ant_gamal said:
thank could you give me link to ADB and how to use
sorry i am not expert
i entered developer mode already
Click to expand...
Click to collapse
Supposed your desktop is a Windows machine:
Matching ADB driver you'll get here
You preferredably install it to C:\ADB
You add C:\ADB to Windows PATH variable to easily access ADB from anywhere
Code:
set PATH=%PATH%;C:\ADB
You reboot Windows & reboot your HUAWEI
You connect your HUAWEI and Windows machine via USB cable
You open Windows command prompt and run following commands - one by one
Code:
adb devices
adb shell pm setInstallLocation 2
HTH
jwoegerbauer said:
Supposed your desktop is a Windows machine:
Matching ADB driver you'll get here
You preferredably install it to C:\ADB
You add C:\ADB to Windows PATH variable to easily access ADB from anywhere
Code:
set PATH=%PATH%;C:\ADB
You reboot Windows & reboot your HUAWEI
You connect your HUAWEI and Windows machine via USB cable
You open Windows command prompt and run following commands - one by one
Code:
adb devices
adb shell pm setInstallLocation 2
HTH
Click to expand...
Click to collapse
my pc run with win10 and i did what you say but could not run any line
see photos
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i use left shift with right click
device not found although i connect the tab
@ant_gamal
I can't open the images provided.
jwoegerbauer said:
@ant_gamal
I can't open the images provided.
Click to expand...
Click to collapse
i tried many site to upload photos
if not view plz suggest web host site
@ant_gamal
Oops, was my fault:
Deprecated syntax
Code:
adb shell pm setInstallLocation 2
New syntax ( Android 4x)
Code:
adb shell pm set-install-location 2
Example screenshot:
Note: First switch from PS to CMD
i did not restart pc or tab
i did but say adb not recognize
i attach the tab and choose transfer file
then i tried what you said and give me this in photo
is there is any package software need to install first before do this commend line
ant_gamal said:
is there is any package software need to install first before do this commend line
Click to expand...
Click to collapse
No.
What you're doing wrong is entering an invalid path/to/ADB: in your case is must be C:\ADB\adb
is there is any tool
does not work
same message device not found
ant_gamal said:
is there is any tool
does not work
same message device not found
Click to expand...
Click to collapse
Of course you can install on your Android device a Terminal Emulator, if not done yet, and therein run command
Code:
pm set-install-location 2
FYI: I no longer participate on this thread, sorry for this.
jwoegerbauer said:
The tool to be used is ADB, nothing else.
FYI: I no longer participate on this thread, sorry for this.
Click to expand...
Click to collapse
i think problem that not recognize the device
ant_gamal said:
i think problem that not recognize the device
Click to expand...
Click to collapse
I've edited my post you quoted: re-read it.
hi, i have same problem with mediapad T3, lower space.
i make procedure adviced from jwoegerbauer.
first command: Ok, i see device connected
second command: Error: java.lang.SecurityException: Package Android does not belong to 2000
any help? thank you

[help] Reverse app and root

Hi guys,
I need some idea, I have two problems. I'm a beginner...
The first one is the next.
I have reversed an app. I need to see how the app behaves after a purchase (I need to see the network traffic), but after my reverse I can't do any purchase the error is : "The version of the application is not configured for billing..."
Any idea for that ?
The second problem I can't root my emulator, I use android studio.
I've been following this :
https://stackoverflow.com/questions/5095234/how-to-get-root-access-on-android-emulator
But I m stuck at this step :
Make sure you are running adb as root and also you need to remount. Just enter these codes
adb root
adb remount
Click to expand...
Click to collapse
I have this message :
Not running as root. Try "adb root" first.
Click to expand...
Click to collapse
Yet this command seems to work :
emulator -avd {emulator_name} -writable-system
Click to expand...
Click to collapse
My OS is windows, and android version is 7.1.
Oh and I have a last question. How I can debug my app when it start ?
adb forward tcp:8700 jdwp:$(timeout 0.5 adb jdwp | tail -n 1)
Click to expand...
Click to collapse
This command not work on windows, I use "adb shell ps" and I take the pid...
Thanks.
Rdmzied said:
Oh and I have a last question. How I can debug my app when it start ?
This command not work on windows,
Code:
adb forward tcp:8700 jdwp:$(timeout 0.5 adb jdwp | tail -n 1)
I use "adb shell ps" and I take the pid...
Click to expand...
Click to collapse
A: Make sure your app has android:debuggable="true" in Android Manifest.
B: To debug an application using JDWP:
In Windows:
Open the command prompt
Add to the PATH environment variable <jdk/bin> where jdk is the installation directory of the JDK.
Add the path to Android SDK platform-tools to PATH environment variable.
Reboot computer
Open the command prompt and run
Code:
adb forward tcp:8700 jdwp:<JWPD_ID>
to forward JDWP service to localhost where <JWPD_ID> you obtain via running command
Code:
adb jwpd
In Android Studio:
Turn on "USB debugging" and use "Select debug app" to select your app in "Developer options" on Android device
Start your application
Create a new "Remote" debug configuration (Run->Edit Configurations), and change the debug port to 8700
Select Run -> Debug
@Rdmzied
How to root the Android Emulator is well explained here.
jwoegerbauer said:
A: Make sure your app has android:debuggable="true" in Android Manifest.
B: To debug an application using JDWP:
In Windows:
Open the command prompt
Add to the PATH environment variable <jdk/bin> where jdk is the installation directory of the JDK.
Add the path to Android SDK platform-tools to PATH environment variable.
Reboot computer
Open the command prompt and run
Code:
adb forward tcp:8700 jdwp:<JWPD_ID>
to forward JDWP service to localhost where <JWPD_ID> you obtain via running command
Code:
adb jwpd
In Android Studio:
Turn on "USB debugging" and use "Select debug app" to select your app in "Developer options" on Android device
Start your application
Create a new "Remote" debug configuration (Run->Edit Configurations), and change the debug port to 8700
Select Run -> Debug
Click to expand...
Click to collapse
Thanks for your answers. I think you did not understand. I can debug my app, but I want to debug when the application start.
jwoegerbauer said:
@Rdmzied
How to root the Android Emulator is well explained here.
Click to expand...
Click to collapse
Your link is the same tutorial than my link...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I m not root...
Rdmzied said:
I m not root...
Click to expand...
Click to collapse
To gain ROOT requires you have successfully installed SuperSU app. That's all.

Categories

Resources