Related
I was wondering whether there is such software for the android that can capture http posts before sending. i.e. like the firefox addons you can get and apps like http analyzer?
This would be really useful for testing purposes.
Cheers.
Gazos
You can try some general traffic capture tools (Like tcpdump or airodump-ng). If You have rooted phone, check out Shark for Root (tcpdump on phone).
Thanks for the update but I guess what I want is real time captures (and manipulation) like its possible in Firefox using only the phone.
I currently use tcpdump to capture data but want to edit the data before its sent out.
You can try to find/write small proxy server application and run it on phone, so you will be in control.
ex87 said:
You can try to find/write small proxy server application and run it on phone, so you will be in control.
Click to expand...
Click to collapse
Or you could run paros (http://sourceforge.net/projects/paros/files/) on a machine on your network and get the android browser to use it as the proxy (which looks like a bit of a task in it's self.)
The only viable way I can think of to do this (given Android's insane lack of proxy support) is to hack a custom firmware for a Linksys WRT54g so it basically routes everything to a transparent proxy (Fiddler2, Webscarab, Paros, Burp, etc) running on a PC. Something like this:
Android =[wi-fi]=> WRT54g -[ethernet]-> PC with proxy -> internet router
It might even be possible to achieve this without hacking the WRT54g.
The only problem you might still have (not sure) is Android's handling of invalid SSL certs since the proxy would basically be doing a man in the middle attack, and the app running on the Android phone would see an invalid SSL cert.
Be warned that trying this with a Windows host PC is almost guaranteed to fail unless it's Pro/Ultimate, and in any case this is going to involve some seriously hardcore manual routing config that goes beyond anything Windows' config screens were really intended to set up.
You can try to find/write small proxy server application and run it on phone, so you will be in control.
Click to expand...
Click to collapse
I'm pretty sure I saw this discussed on the android.security list, and the consensus was that the current API doesn't give any way to do this transparently, and it's questionable whether you could even implement something like WebScarab natively on Android using the NDK. I believe the general consensus was that if you want to host something like WebScarab on Android, it's going to take a custom kernel to pull it off, and some solution that lets you offload the actual proxying to a regular PC would be infinitely easier to pull off, and less cumbersome to use for actual security testing (it's enough of a pain trying to use Fiddler2 or Webscarab with a 1280x1024 display, let alone 854x480... not to mention trying to cut and paste examples into Word Documents for vulnerability assessment reports (shudder)).
^^^ OMG. I just installed AOSP ("Buufed") for the CDMA Hero, and it actually HAS the ability to set proxy for WiFi. I haven't tried it yet, and I'm not sure whether it's purely an "AOSP" feature or something I've just overlooked up to now that was in DamageControl, but it looks like at least *some* Android builds DO have it now
So I just got my asus transformer the other day, and coming from an avid iPhone/iOS background, I feel a bit let down. In no way am I a fanboy, but theres issues im having with this android device that have never been as such with iOS.
Mainly, proxy settings! I was fortunate enough to get my device a day before the 3.1 update came out, and the update brought with it native support for manually setting the proxies.
unfortunately, these settings dont work. I set it up to work with my workplaces proxy server and even though the info is there, they dont work. not only that, they only apply to the browser. Two huge issues!! Now most people would just discard the device and go back to what theyre used to, but I want to give this device a chance before I (possibly) return it to the store.
Are there any apps for 3.1 that set a UNIVERSAL proxy setting? Something that not only will work, but also apply the proxy settings to youtube, the market place, and anything else that runs on the device. Before the update came out, I tried using AnyCut to setup a shortcut to the hidden proxy settings, but even then it was shoddy at best. Half the time id click on the link and it wouldnt even open up the proxy settings page. (note, Half. it did work sometimes)
Essentially, if I cant get this thing to run at work, its going back and will be exchanged for an Acer Iconia running win7. I really hope theres a solution here!
Yeah, I'm quite disappointed with the proxy support in they included in the update. If they couldn't apply it to everything, at least update the core apps to use it. I mean, I can't even get my email over the proxy.
i used to use TransProxy on my phone and it worked great.
you may not be happy about a honeycomb tablet, but a Windows 7 tablet wil absolutely drive you mad ..
Sent from my Transformer TF101 using XDA Premium App
so I searched for TransProxy in the market place. and found something called ProxyDroid.
tried it, what the hell, and it works Better. I still cant get the facebook app / mobile facebook site to work. but its a step ahead of the silly native proxy support. hmmm never had to go through any of this crap on my iPhone. grr
Hi:
I am loving my HTC HD2 running Windows Mobile and Android. I am using the following latest builds which work very well:
AmericanAndroid
MCCMBoxMax
and another which doesn’t come to my mind.
The only thing that is keeping me from a perfect experience is getting internet connection while in Android.
1. In Android OS, If I am connected to WIFI I get perfect internet at home or anyplace else where there is WIFI
2. In Windows Mobile, if there is no WIFI, I can connect to internet via my cell phone connection. I guess this is called data connection. I seem be having trouble doing this regardless of what Android build I use. Is there some setting I should be using in Android to get this to work? I’m almost certain I have the Mobile network setting checked. If there is some other setting, I must be missing it
I don't get any error messages, just that there is no internet connection when I goto a web page or try to goto Market.
Any help with this issue would be greatly appreciated, and thank you for your help in advance!
Chaz
There are many reasons why your data connection might not be working well because of.
First, your APN Settings may not be correctly set.
Second, in case you're running off NAND and you're using cLK with rmnet.
Third, your phone couldn't resolve the DNS server thus giving you no connectivity.
To fix the:
First, check your settings.
Second, Enable ppp instead of rment.
Third, editing the build.prop in your device.
after opening it, look for DNS1 and DNS2 .
Set DNS1 (or Primary DNS) to: 8.8.8.8
Set DNS2 (or Alternative DNS) to : 8.8.4.4
build.prop is located in system folder in your device.
Reboot, and check if it is working.
Well, maybe I mistated....It doesn't connect to anything while booted in Android. The only so far to get internet connection is thru a WIFI connection. If there is no WIFI then I get nothing. With WINMO 6.x I get data, but not with Android.
Will those instructions you gave still work? If so, I will try it after work.
Thank You!
You mean you see the "H", "3G", "E" or "G" but you can't get internet. or you don't even see them?
what does it say when you turn on Data connection?
Ah...maybe thats the problem. I get 5 bars, but those letters are no where to be found. When I'm on the WINMO side, I get those letters.
Wait....as I'm typing this, I just saw the letter H with up and down arrows below it. What does that mean?
kawazaki said:
There are many reasons why your data connection might not be working well because of.
First, your APN Settings may not be correctly set.
Second, in case you're running off NAND and you're using cLK with rmnet.
Third, your phone couldn't resolve the DNS server thus giving you no connectivity.
To fix the:
First, check your settings.
Second, Enable ppp instead of rment.
Third, editing the build.prop in your device.
after opening it, look for DNS1 and DNS2 .
Set DNS1 (or Primary DNS) to: 8.8.8.8
Set DNS2 (or Alternative DNS) to : 8.8.4.4
build.prop is located in system folder in your device.
Reboot, and check if it is working.
Click to expand...
Click to collapse
How do you enable ppp?
Sent from my HTC HD2 using XDA App
That means you're now connected to the internet, you probably have network select set on "WCDMA Only" and your area has insufficient 3G coverage. Just set it to "WCDMA/GSM Auto" .
Gunblade77 said:
How do you enable ppp?
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Depends on your build, reading the OP of your build will definitely give you the answer but in most cases you can do so by editing the config.txt file on your sd card (create if not there) .. also keep in mind that not all builds support config.txt nor PPP. Refer to your build's thread. you also have to have a compatible kernel.
I'm using HyperDroid GBX v12, couldn't find anything on the rom's thread. Although I did find a ppp.txt right next to my build.txt in my system folder. Does this mean it is enabled?
Sent from my HTC HD2 using XDA App
I'm not really sure, but you could try making a txt file on the root of your sd card and name it "config.txt" and write in it the following:
Code:
ppp_mode=1
Then reboot your phone with sd card on, and see if it works.
chazperx said:
Hi:
I am loving my HTC HD2 running Windows Mobile and Android. I am using the following latest builds which work very well:
AmericanAndroid
MCCMBoxMax
and another which doesn’t come to my mind.
The only thing that is keeping me from a perfect experience is getting internet connection while in Android.
1. In Android OS, If I am connected to WIFI I get perfect internet at home or anyplace else where there is WIFI
2. In Windows Mobile, if there is no WIFI, I can connect to internet via my cell phone connection. I guess this is called data connection. I seem be having trouble doing this regardless of what Android build I use. Is there some setting I should be using in Android to get this to work? I’m almost certain I have the Mobile network setting checked. If there is some other setting, I must be missing it
I don't get any error messages, just that there is no internet connection when I goto a web page or try to goto Market.
Any help with this issue would be greatly appreciated, and thank you for your help in advance!
Chaz
Click to expand...
Click to collapse
I'd advise you to use a permanent Android Version, such as BOYPPC (which is the best in my mind)!
Otherwise install a newer SD-Android Version, and turn on the data connection in settings! Should work.
If there appears a E, G, 3G or H in your task bar, then u have internet connection!
Thank you for all your help and suggestions. I just installed:
[08 JULY][SD/MAGDLR] MccMBoxmaX GS V8 Gingerbread
And I finally got the Data to work. I don't know what happened, but it working. I am so happy I waited a year to by the HD2 Telstra.....Thanks again!
chazperx said:
Thank you for all your help and suggestions. I just installed:
[08 JULY][SD/MAGDLR] MccMBoxmaX GS V8 Gingerbread
And I finally got the Data to work. I don't know what happened, but it working. I am so happy I waited a year to by the HD2 Telstra.....Thanks again!
Click to expand...
Click to collapse
I m having same problem tried Following SD builds:
1.BoxmaX KS.6.5.SD.Tyr5
2.Android 2.2 superram
but no use.. .actually my problem is i am unable to save APN settings...the moment i click save button it doesnt show up even though i filled up all required fields..anyways i hv downloaded above mentioned rom just now...but can you let me know what exactly u did ?...i mean anything else u did other than just applying above mentioned ROM ..which i should do too...
any help on this is highly appreciated!!!
Thanks
Hi all
I am new to Android.
I recently converted my hTC HD2 from Windows to Anadroid NAND. The funny part is regardless which version I use Like [BOYPPC, MIUI, CyanogenMod7 or Ultimate Droid] I can't see my Widgets after I install them. They are in the installed apps menu but not under Widgets menus.
To add more problems, whenever I start up the wireless, it connects and obtains an IP, but there is no Internet. So I installed proxy and now I have Internet. But another problem rises is that the web browser will not allow me to access SSL web pages like gmail or Android Market. Data Connectivity problem: A secure connection could not be established.
So basically the Android HD2 has been reduced to a phone function only with some few apps I can install from web. Some apps I can't download from web cuz it require Adroid market (secure connection could not be established).
I wonder do all Android NAND's exhibit this behavior or is there a workaround to the two problems I have?
What radio version do you have on your phone right now?
Sent from my HTC Desire HD A9191 using XDA App
Radio 2.15
MAGLDR 1.13
Move all widgets to internal storage, otherwise they won't work. And also, no, not a single Android ROM has these as known problems as far as I know, your other problems are due to something else
Agree^
If you are trying to "install" the widgets they will not be seen by the system. I am guessing you have a compolation of widgets that you have aquired over time.
To expand a bit more on the previous post I would advise first un-installing all the widgets you tried installing then copying the widgets to your "/system/app" folder using some file explorer program then restart your phone. I would also advise just to reduce the risk of any other problems to durring the restart go into your recovery then delete cache, delete Dalvic Cache then fix permissions. It may be over kill and it will make the restart take longer but it gets the easy troubleshooting things out of the way early.
As for the no connection problem... the phone worked correcly in WM6.5? Did you try to connect or call prior to installing all of your apps? Have you gone in and phisically made sure that all of the APN settings match with what they should be? Do you know what they should be?
tobiascrystal said:
If you are trying to "install" the widgets they will not be seen by the system. I am guessing you have a compolation of widgets that you have aquired over time.
To expand a bit more on the previous post I would advise first un-installing all the widgets you tried installing then copying the widgets to your "/system/app" folder using some file explorer program then restart your phone. I would also advise just to reduce the risk of any other problems to durring the restart go into your recovery then delete cache, delete Dalvic Cache then fix permissions. It may be over kill and it will make the restart take longer but it gets the easy troubleshooting things out of the way early.
As for the no connection problem... the phone worked correcly in WM6.5? Did you try to connect or call prior to installing all of your apps? Have you gone in and phisically made sure that all of the APN settings match with what they should be? Do you know what they should be?
Click to expand...
Click to collapse
I would think that that is complete overkill for the widget problem, you're making it far too complicated.
@ OP Just go to settings>manage applications>widget which you want to move>move to internal storage, works for me every time without fail. Also you may want to change the default install location to 'automatic' as I'm sure most widgets automatically install to the internal storage anyway
hTC HD2 NAND
Thanks to all who have participated. You have been very helpful
Moving the widgets to the internal RAM has showed up in the Widgets menu. yay.
As for the WM6.5 it worked perfectly with wireless "once the proxy is defined in there".
Now I am down to one problem. Wireless Internet.
The wireless works fine even with Android. But there is no Internet pages as default configuration. Once the Proxy "TransProxy" is installed and running with proxy "IPort" only then there is Internet. Is this normal?
I can access SSL web pages via 3G connection, but the running cost is high. Wireless is the best choice. But I am slapped with "A secure connection could not be established".
I hope I have answered your questions as well, and you guys are great.
No clue whatsoever if this will help but I saw this somewhere else so:
Go to settings>wireless and networks>WiFi settings>menu>advanced>regulatory domain>13 (at least that's what I have) then menu>save. May help, may not and sorry if it doesn't
Thanks again all for the help & tips.
Do I sense that out of a box fresh installation of Android NAND does not support Internet browsing without a proxy app?
kkatkhuda said:
Thanks again all for the help & tips.
Do I sense that out of a box fresh installation of Android NAND does not support Internet browsing without a proxy app?
Click to expand...
Click to collapse
I have been using Android for quite some time now. I haven't had this problem..
If I understood you right, this only happens on wifi right??
And you said you can only download a few apps in market place correct?
I am not certain but the problem could be with MAGLDR... I know that MAGLDr uses whats called RMNET it's a type of connection to internet but thats about all I know.. cLK (the other bootloader) uses whats called PPP instead of RMNET. I am not certain but I've read in several developer threads where cLk (PPP) is more stable than the RMNET.
I do not know if cLK would fix your problem or not, but it could be worth a try. I know these connection types are especially a big factor in the new ICS builds.
Yes this only happens on wifi.
From Hd2: I enable wifi->connect to AP->obtain IP->connected to AP.
Launch web browser from HD2 and nothing happens. To confirm connectivity I use my desktop or laptop to ping the IP address that I obtained from the HD2 and it replies. No issues there. This only confirms that HD2 is indeeded connected to AP.
Since I do not have Internet on HD2, I install TransProxy IPort->enable it and the browser opens Internet. Hmmm.
Actually I cant access the market yet as I cant log-in to Google. HTTPS.
Summing it up:
No proxy = no Internet.
TransProxy = Internet http only. https are slapped with "secure connection could not be established"
I hope this clears things more.
As a last resort, I am thinking to re-flash everything from Zero. I use latest versions.
HSPL- 2.08 HSPL
Radio 2.15.50.14
Task 29
MAGLDR1.13
Recovery 150M repartition & CWR 3.0.2.5
Install ROM from CWR -> HyperDroid-CM7-Killer-Koala-v5.5.2-magldr-signed
Anyone would like to comment on the steps I use?
Once done I will update you with the results.
Thanks all to your help & feedback
I reflashed everything from zero as I mentioned and I still have this problem.
What I meant to say able to download, I meant to say I am able to download files and attachments from normal Internet sites that do not require SSL. I am unable to get into the Android Market as it requires SSL. I never logged into the app market using my android. A secure connection cannot be established once the Proxy is configured. No proxy no Internet. A viscous endless circle.
So to all Androdians out there, you just enable Wifi, get connected to AP and you have Internet without defining a proxy on your Android?
Well, to all of you who have participated, thanks for your help.
I solved my problem with a simple app called AutoProxy. I now can log into the Android Market
I hope this tips would come in handy to anyone searching the forum.
And I am loving the NAND Android on HD2. For the first time in my life I feel I am using a phone for other than a phone. WM6.5 sucked big time.
Keep up the Good work and lets help others.
kkatkhuda said:
Well, to all of you who have participated, thanks for your help.
I solved my problem with a simple app called AutoProxy. I now can log into the Android Market
I hope this tips would come in handy to anyone searching the forum.
And I am loving the NAND Android on HD2. For the first time in my life I feel I am using a phone for other than a phone. WM6.5 sucked big time.
Keep up the Good work and lets help others.
Click to expand...
Click to collapse
Nice to see you've sorted things out
I have a Shield TV arriving later today. On my previous Android box I setup a VPN with a kill switch via AFWall+. This involved the installation of the OpenVPN connect application with my VPN provider details, then I used AFWall+ to prevent any data that didn't originate via a VPN connection, effectively making this a kill switch. This involved allowing both the OpenVPN application and Android's VPN api full access. It's the latter I'm enquiring about, does this api exist on the Shield TV? I've heard that native VPN isn't possible as the normal VPN settings aren't present. But does that include the vpn service api itself?
No one?
Beefheart said:
I have a Shield TV arriving later today. On my previous Android box I setup a VPN with a kill switch via AFWall+. This involved the installation of the OpenVPN connect application with my VPN provider details, then I used AFWall+ to prevent any data that didn't originate via a VPN connection, effectively making this a kill switch. This involved allowing both the OpenVPN application and Android's VPN api full access. It's the latter I'm enquiring about, does this api exist on the Shield TV? I've heard that native VPN isn't possible as the normal VPN settings aren't present. But does that include the vpn service api itself?
Click to expand...
Click to collapse
i have the exact same setup on all my devices, including shield tv, although ive only had to allow the openvpn app, wifi/data/vpn access for things to work, ive never had to allow androids vpn ........is their a specific reason you grant android vpn access?does it not work otherwise?
I use the other openvpn app, by the way
I originally set it up on the tutorial in the link below, which mentions that the VPN Networking service needs to have full access. Is that service present on the Shield?
https://www.privateinternetaccess.c...otection-on-android-with-afwall-requires-root
Beefheart said:
I originally set it up on the tutorial in the link below, which mentions that the VPN Networking service needs to have full access. Is that service present on the Shield?
https://www.privateinternetaccess.c...otection-on-android-with-afwall-requires-root
Click to expand...
Click to collapse
I just checked for you, and yes, its there, mind you, im using zulu's full rom, not sure about stock rom but as with all my devices, i havent needed to allow this for vpn to work.
Unless theres a specific reason to do so, try without on your current devices, i suspect, vpn networking may only apply if you use androids inbuilt vpn found in settings
Edit
By the way, i dont know how far you wanna take it, but afwall has tasker plugin support, which i use to apply an afwall profile, i named "secure", that denies everything when screen turns off......aswell as other things in the same vain
Edit
I do it a little differently then what youre link suggests, i only allow the bare minimum of apps, those that i actually need internet for.......if an app has internet capability, but i have no need for that side of it, its denied, i dont whitelist ALL apps for vpn as your link suggests
I also suspect that guide was written for privateinternets method of using vpn on android, so maybe vpn networking applies if using private internet, but as for my openvpn app, its not needed.......neither is "GPS"
Cheers. Everything set up and working perfectly in stock, no DNS leaks. A combination of AFWall+, VPN and Xprivacy has the device locked down pretty well.
And what a device, the speed is in another league compared to other similar boxes and worth the extra money. I'm glad I returned my newly purchased Minix Neo U1, this thing is so much faster and not as restricted as I was lead to believe. With a bit of work the Shield TV, even on stock, can do as much as any other Android based TV box, even one based on vanilla.
Beefheart said:
Cheers. Everything set up and working perfectly in stock, no DNS leaks. A combination of AFWall+, VPN and Xprivacy has the device locked down pretty well.
And what a device, the speed is in another league compared to other similar boxes and worth the extra money. I'm glad I returned my newly purchased Minix Neo U1, this thing is so much faster and not as restricted as I was lead to believe. With a bit of work the Shield TV, even on stock, can do as much as any other Android based TV box, even one based on vanilla.
Click to expand...
Click to collapse
Yep, ive said it before and ill say it again, the shields an impressive piece of kit for sure
Xprivacy.........snap
We seem to have a very similar setup........believe me, if you wanna take it further at some point in the future.......tasker.........although, fair warning, theres a learning curve
Just some of the more basic things i automate with tasker with plugins like afwalls
When screen goes off, tasker......
Turns off wifi/3g
Turns of bluetooth
Afwall secure profile
Greenify all preselected apps
turn off "unknown sources" for extra measure, as tasker turns this off after it detects an apk install anyway
Turn of "debugging", incase i turn it on one day out of need and forget to turn off
Media volume set to 4 edit:this ones a bit out of place
Aplly afwall profiles depending on what app you happen to be using
Many possibilities with tasker, VERY usefull for many things
Non security related....kinda......... could potentially be used for such if modified
I have a small bluetooth media remote which has the numbers 1 to ten, with tasker and xposed additions module, i fooled around with it, pressing 1 connects the shields bluetooth to the bedroom speakers, long pressing 1 connects to the living room speakers..........i can imagine my self doing some neat stuff with these combination of apps and future accesories
Also, i use it to turn the shields light led to dim to let me now at a glance if the shields on or asleep, without having to change the channel
food for thought for those with similar setups
Edit
By the way, you mention dns leak, i assume you used a test site to check for the leak, any chance of a link? Incase its something very new
This ones the one i use,
https://ipleak.net/
Detects webrtc leaks on the specific browser you happen to be using at the time
Edit
For those interested
More on webrtc here
https://www.privateinternetaccess.c...ome-and-mozilla-firefox-while-using-private-i
If you use firefox or chrome, you can disable manually following this guide
https://www.purevpn.com/blog/disable-webrtc-in-chrome-and-firefox-to-protect-anonymity/
I think there are addons aswell
Edit
"and not as restricted as I was lead to believe"
Yep, i had the same thoughts, just my own assumption really, that android tv was completely different, internally, to "standard" android , pleasantly surprised, no incompatibilities so far............................good to know that stock is like that too :good:
Cheers, I'll read into all that.
One issue I'm finding at the moment is that, on a reboot, AFWall+ doesn't apply as default on the Shield and has to be done manually. This doesn't happen on my Note 3 running Lollipop. I'm sure there is a simple explanation, I'll look into it a bit more.
That website is the one I user to check leaks but there are numerous others too.
Beefheart said:
Cheers, I'll read into all that.
One issue I'm finding at the moment is that, on a reboot, AFWall+ doesn't apply as default on the Shield and has to be done manually. This doesn't happen on my Note 3 running Lollipop. I'm sure there is a simple explanation, I'll look into it a bit more.
That website is the one I user to check leaks but there are numerous others too.
Click to expand...
Click to collapse
Im not sure i understand fully, afwall is not enabled? Or, afwall IS enabled, but your prefered profile is not "applied"?
On full android at least, afwall is enabled upon reboot i havent had any issues in that regard, (saw your other post) i dont need init.d script (usefull to have though, if/when possible)
Have you tried reverting all afwalls settings to default, to rule out that likely suspect
Another likely suspect, xprivacy, but that depends if you restrict everything like i do, including system apps , if so, have you checked xprivacies usage data for afwall and global apps?
Another suspect, could be stock firmware, but i have my doubts about that one
Assuming im understanding the issue correctly
Edit
I dont have "fix startup data leak" checked(as we dont have init.d), nor ipv6 support checked as your link described