[Q] SDK debugging through charles proxy - Networking

Okay, I'm running an android 1.5 emulator and I'm trying to debug an app using charles proxy.
emulator -http-proxy 127.0.0.1:8888 (a)andemu
Well, everything works (browser and all) BUT nothing shows up in my charles proxy.
I'm in the process of trying fiddler2 to do this using the same ip and port.
I'm also quite new at this and I hope someone can tell me how stupid I am for trying this and failing completely... and then tell me how to do it right. I'm sure I'll get plenty of the former, hopefully some of the latter too
Thank you in advance for your help,
Tek.
Edit: Fiddler2 didn't work either. I've been reading up on it and I'm going to try to create a new APN using the actual emulator and set the APN as my 127.0.0.1:8888 and hope that works. I don't know what to put in instead of that so I can set that as my proxy and use an APN... Not even sure what that is actually...
Edit2: And no. Of course not. Seems nothing I try works. Am I using the wrong emulator? I just need something that I can debug via proxy. I can't even get it to run through my proxy so how will I know what's working and what's not?

Related

transferring files to g1 from my computer without the usb cable

Hey all, I was very surprised that i couldnt find any info on this by googling or searching forums...
i have an apk i want to send to my phone, but i don't have the usb cable with me.
my phone is rooted and is running JFV1.3 and i want to be able to use telnet or ftp or something (file sharing?) to transfer files to it but i can't seem to see how to do it - am i missing something? is this impossible for some reason?
please help, i really wanna try out this thing and i have no patience to wait till i get home and look for my cable...
Thanks,
E.
Well you could either try to telnet into the phone after running telnetd, run an ssh or ftp server in debian, or (more simply) start an apache server on your desktop and host the file then download it off your phones web browser.
huh?
can you do that again, but slowly?
I've tried to connect with scp and couldn't, i have also tried telneting to it and could, that was allot of fun )) but i didn't know how to send files
I'm gonna try installing an ftp on my machine and d/ling a client from the market and connecting to my pc and getting it from there, see if that works...
but seriously can u elaborate on the other ideas u gave?
Edit:
Yay, ftp server on PC and ftp client on phone and now i have my game on!
thanks guys, any thoughts about samba file sharing?
Oh yeah maybe telnet won't let you send files by default. Glad to see you got it working.

Wifi connection problems.

I am trying to connect to my university's wireless.
We have two different wireless ssid's that i can connect to with my laptop.
The first, called UBC is unsecured, but when you connect, it takes you to a web page where you enter your username/password.
The second, called ubcsecure, can authenticate with either WPA2 or WPA ( it shows up as WPA2-Enterprise).
The encryption method is AES for WPA2, and TKIP for WPA.
EAP type: PEAP v0 , Authentication protocol is MS-CHAP-V2
there is an option for mutual authentication using a certification server:
secure.wireless.ubc.ca
I am unable to connect to either using the stock HTC magic ROM, the HoFo community rom, and most recently, myHero 1.0.1
I have tried editing /system/etc/wifi/wpa_supplicant.conf to include
network={
ssid="ubcsecure"
proto=WPA
key_mgmt=WPA-EAP
pairwise=TKIP
group=TKIP
eap=PEAP
identity="[email protected]"
password="password"
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
Any ideas as to how to connect?
Data wipe.
Try to reset your phone's basic settings.
It could rebuild the information necessary to acquire the specific IP from their connection.
Manually entering the data couldn't hurt either. This is something that usually I would consider consulting the school about. Privatized internet connections could cause a number of issues for those seeking to utilize Wi-Fi.
The NAT settings might be too strict to support a handheld device.
Me too!
have you found any other solution??
i m here in ubc as well with my htc magic 1.5
when i'm trying to connect to ubc,, it keeps requiring the ip but doesnt connet
and ubcsecure doesnt even show up!
is really frustrating not being able to use internet in universityyy..
i thought by activating the wpa enterprise will work for the ubcsercure, i guess not??
will any of the heros rom work??
Im having this problem too.. anyone find a fix?
I have no idea why but ubcsecure seems to be working using JesterBlur ROM. http://forum.xda-developers.com/showthread.php?t=567122
it works on the Dream? or sapphire? I don't think it matters but... be interesting to know
Dream. Theres a version for the Sapphire. Maybe give it a shot? ubcsecure still working here.
Ask for working setting
absolutcamper said:
Dream. Theres a version for the Sapphire. Maybe give it a shot? ubcsecure still working here.
Click to expand...
Click to collapse
Did you use the UI setting or you edit the "wpa_supplicant.conf" file manually?
would you please send us your "wpa_supplicant.conf" file or its ubcsecure part? it would be the great help to have a working setting.
Cheers,
Ali
I used the UI that came up during first boot. How can I get to that file?
the wpa_supplicant is in /data/misc/wifi. But considering how it works using the ui settings, i dont think changing the config file will work...but please still post it.
I also tried replacing the wlan.ko from the jesterblur rom... and doesnt seem to be compatible with magic which is apparently normal because there is a patch for magic users that fixes wifi apparently. I will try the wlan.ko from the fix soon probably to see if it works.
Hi guys,
I'm at UBC with the same problem (I can't even connect to the regular UBC network). I went to the UBC help desk and they basically told me that they don't support android at all. The funny thing is I can connect to the fatport network with no problems but cannot connect to ubc, ubcsecure or eduroam networks on campus. I'm currently runnning on Cyanongen 4.2.4 (waiting for 32a kernel to upgrade to 4.2.5) on a rogers htc magic.
Anyway, the point of this post. If anyones interested in meeting up at UBC to find a solution to this problem it'd be great. I'm hoping we can eventually create a package of some sort that'll fix any android phone but lets focus on fixing the current prob first.
Also @fnkaze - aren't the dream and sapphire the same thing?
Er, i think the dream is the G1 and the sapphire is the G2 aka the rogers magic... well i think the dream has a differnt wifi driver? maybe.. thats the problem
I think the reason why they dont support android is because the stock rogers rom doesnt have native wpa2 support i think.... but the custom roms should have it.. the hero rom does have it... at home my wpa2 wifi works fine
I can also connect to fatport, i think the eduroam is also using the same thing...tho ive heard eduroam seems to work on the rogers rom at different univeristies..
I still have yet to try the jester rom wifi driver tho, ill try it soon...
Thanks for the clarification. And the reason eduroam works at other universities is because the WPA encryption settings are based on the uni's actual/main wireless network. So at different universites the authentication protocols might be a bit different.
What phone do you have? The dream or the magic? The jester rom doesn't work on my magic.
i have the magic, but i think it should work on the magic, they also have a seperate patch to get Wifi working for the it.. so im assuming its possible..
So yeah, Concordia University in Montreal has the same WPA2-Enterprise and this is how I got WIFI to work on my Magic (with HoFo's Sense UI ROM, would still probably work with a rooted 1.5/1.6 ROM)
In fact it will probably work with any rooted Dream or Magic
Remember you need your phone to be rooted for this to work, you will also need to have the drivers installed for your phone from the Android SDK.
- Go into recovery mode
- mount the /data/ folder
Code:
adb shell mount /data
- With ADB Pull the /data/misc/wifi/wpa_supplicant.conf file to your computer (in this example it will go to the tools folder where you have your androidsdk)
Code:
adb pull /data/misc/wifi/wpa_supplicant.conf .
- Make a backup of your conf file in case you mess something up
- Edit it and add in the configuration settings given by your University for Linux wpa_supplicant.conf files, so in your case
Code:
network={
ssid="ubcsecure"
proto=WPA
key_mgmt=WPA-EAP
pairwise=TKIP
group=TKIP
eap=PEAP
identity="[email protected]"
password="password"
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
- With ADB Push the wpa_supplicant.conf from your computer to the /data/misc/wifi/ folder
Code:
adb push wpa_supplicant.conf /data/misc/wifi/
mydewji13 said:
UBC help desk and they basically told me that they don't support android at all.
Also @fnkaze - aren't the dream and sapphire the same thing?
Click to expand...
Click to collapse
Honestly that person at the helpdesk probably doesn't even know what Android is. If they says they don't support Android at all, well using their logic any Linux distro using wpa_supplicant.conf isn't supported which OBVIOUSLY isn't the case.
And no the Dream and Magic are far from being the same device.
Thanks!
I'll try this solution and see if it works. Will post back to let you know how it goes.
Hi,
Ok, I just finished installing the sdk, fixing udev to recognize my phone etc...
The problem I'm having is that everytime I run:
Code:
adb shell mount /data
I get the following error:
Code:
mount: cannot read /etc/fstab: No such file or directory
Help?!?!
NVM after reading the adb -help i tried this:
Code:
adb pull /data/misc/wifi/wpa_supplicant.conf /home/myuser
Ok something really wierd happened...I pushed a new wpa supplicant file and the rebooted the phone and it stopped seeing wireless networks! But ubcsecure showed up as a known network. If I long press it an 'forget it' I can see networks again, but still cant connect to any ubc network?
WTF>?
Is there anyway I could use by ubuntu wpa_supplicant settings? Anyone know where the file is on Karmic? b/c I cant find it at all

Proxy for Android?

Ok so here is my problem, I have my HERO running on metropcs, as some of you know, Internet works( Not for me ATM) and no other apps work, so is there any chance of having a proxy running to tell the apps and everything on the phone to run trough wap.metropcs.com port 3128 ?
Thanks

[Q] solution for wifi conflict

My brother and I have two HD2 devices
but when we use the wifi in the android at the same time
a kind of conflict occurred and the last one who turn the wifi on can use the internet and the other is disconnected
so, is it kind of ip problem and how to solve it?
just to be sure: I guess when both are in WinMo all is working fine?
yes
yes they work great
kingo08 said:
yes they work great
Click to expand...
Click to collapse
I'm not a dev btw, just curious, sorry about bringing your hopes up
I searched some here as well as elsewhere, because I've read somewhere, a while ago something about changing the designated IP adress of the phone.
It sounds to me your router is try to give the phones the same IP. You could check the router for that. I'd first try and give each MAC adress a designated IP (a different one ofc).
Damn, I'm sure there's a post somewhere here about this, just can't find it...
Just found this:
http://ip208-100-42-21.static.xda-developers.com/showthread.php?p=8360637
In short: it's the MAC adress which is the same on the phones. You could try different build, but start with the mentioned thread first
This must be it:
"The only fix so far is run different kernels. That's what I've been doing."
and
http://forum.xda-developers.com/showpost.php?p=8455440&postcount=7397
Thanksssssssssssssssssssss
I really appreciate your efforts
as long as there is a solution somewhere here i will try to find it
Good!
Always willing to help
I surely hope it'll work!
I'm sure the problem is that you both use the same Mac address. Maybe the new desire hd & z use the original Mac address. So you both use the same android build and also use wifi
Sent from HD2
dusdus said:
Just found this:
http://ip208-100-42-21.static.xda-developers.com/showthread.php?p=8360637
In short: it's the MAC adress which is the same on the phones. You could try different build, but start with the mentioned thread first
This must be it:
"The only fix so far is run different kernels. That's what I've been doing."
and
http://forum.xda-developers.com/showpost.php?p=8455440&postcount=7397
Click to expand...
Click to collapse
hi
are u have that file for fixing mac address?
if u have it upload here .that link have problem
To do this, you need superuser app and terminal. You also need to know your true wireless mac address.
1) open terminal and type su
2) type ifconfig eth0 hw ether [mac address]
This should change your mac address, but you have to do this every time you reboot.
Sent from my Nexus One using XDA App
cma1032 said:
To do this, you need superuser app and terminal. You also need to know your true wireless mac address.
1) open terminal and type su
2) type ifconfig eth0 hw ether [mac address]
This should change your mac address, but you have to do this every time you reboot.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
by this way can i change mac address from 00:90:4c:c5:00:34 to 00:11:22:33:44:55 ?
and i do that and any happening?
If you return it back to 00:11:22:33:44:55 will return that mac address. If there's 2 people with hd2 and an android rom will encounter a conflict because both will have 00:11:22:33:44:55.
cma1032 said:
To do this, you need superuser app and terminal. You also need to know your true wireless mac address.
1) open terminal and type su
2) type ifconfig eth0 hw ether [mac address]
This should change your mac address, but you have to do this every time you reboot.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
Thanks for that cma. Is it possible to make this into a script which could then perhaps be run at startup?
I don't know how this could be done at startup because you need wifi activated first before running it.
Sent from my Nexus One using XDA App
Can you write how we must put the wifi mac address;
Do we need [ ] and : between the numbers; I am trying with both ways,but nothing changes

Rooting my 2017 16 gb shield help plz

hello all!
i managed to do do the rooting thing by myself (thats what i think) and i just need u guys to tell me if i did right
1- i followed this guide : https://forum.xda-developers.com/shield-tv/development/how-to-root-android-pie-8-0-1-nvidia-t3982709
2- my shield is now showing that error message at the start telling its unlocked,
3- i have now magisk and twrp installed and i can see the root directory.
Now to the things that i need to understand here is what do i need the rooted image from nvidia for? and why cant i access the root from ftp ? only my usb drive and sd card is showing but root not accessed from ftp.
MY android is: 8.1
Thanx in advance for all help.
2- it's not an error, but a warning.
Don't worry about it
The development image from nvidia is running a developer build of android which is prerooted and in theory su's like magisk should be easier to install.
The stock ota/recovery images comes with more protection which makes them harder to root and to do changes to the system, but thanks to people like @rootfan it's pretty much painless.
Are you sure it's ftp and not smb?
Smb just shows the internal and external drives.
If you are using an ftp server app on the shield you need to setup the paths yourself within that app.
Thanx for clearifying this, so in my case i dont need any image cuz i alredy done it i guess.
I tried to set up the ftp server to point to the root directory in my nvidia shield but i could not find any app that can point the root. All apps seems old.
How do you guys fix this?
I'm using servers ultimate.
I also think the app just called ftp server can do it.
Solid explorer might also be able to.
Atleast in servers ultimate I have to manually type in the path which is just "/" that should bring you to the root folder.
I use server ftp and server ultimate. The first one works flowless but no root. The second one that you said have root access but i cant connect to the server for unkbown reason. Could be the port
mLgz0rn said:
I'm using servers ultimate.
I also think the app just called ftp server can do it.
Solid explorer might also be able to.
Atleast in servers ultimate I have to manually type in the path which is just "/" that should bring you to the root folder.
Click to expand...
Click to collapse
I tried that ultimate one and it says its runing but i cant connect to it from pc. My unrooted ftp server app works without problems. Any other apps out there that i can try?
Edit: after testing few things i managed to run ftp from browser bytyping ftp:// my external ip : port
But this doesnt work from an ftp client from my pc at the same netwrok. Even if i give the box internal ip.
aricemax said:
I tried that ultimate one and it says its runing but i cant connect to it from pc. My unrooted ftp server app works without problems. Any other apps out there that i can try?
Edit: after testing few things i managed to run ftp from browser bytyping ftp:// my external ip : port
But this doesnt work from an ftp client from my pc at the same netwrok. Even if i give the box internal ip.
Click to expand...
Click to collapse
Which one of the ftp servers within servers ultimate are you running?
I can only get "ftp server" to work and not the native one.
mLgz0rn said:
Which one of the ftp servers within servers ultimate are you running?
I can only get "ftp server" to work and not the native one.
Click to expand...
Click to collapse
i found the problem, it was network problem, not ftp server, all worked fine, when i changed to another ftp client (total commander) instade of (winscp) it worked, i guess its has something to do with passive or active mod in the connection. now when i connect from pc i can run ftp root ( / ). thanks alot for helping me out.
i know its not so big thing rooting the shield cuz these days u can allmost do anything by sideloading apps or games but do you guys have any tips what do to with rooted box that cant be done with sideloading?

Categories

Resources