yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Osid:
I'm using SandroProxy to redirect some ports to 443 as SSL because I've a mobile data plan, with my network operator, which allow only HTTP(S)/POP3/IMAP (layer 7) protocols only on standard services destination ports , UDP is limited to DNS, ecc.

Also I must use am HTTP(S) proxy (configured in APN profile).

Using port redirection on 5228 (along with proxy chaining 'cause SandroProxy doesn't use APN proxy), for example, I can also use google services on mobile data.

It could be interesting to control SandroProxy conditionally on interface used (wnet0 or rmnet0), start/stop it via intent with Tasker/Locale/LLama, ecc.

Specifically i would to stop proxy or disable proxy chaining and port redirection when wifi interface is used and enable proxy chaining and port redirection on mobile data.

Is possible with SandroProxy?

Managing iptables with an sh script seems impossibile 'cause I'm unable to implement proxy chaining.

It seems that Drony could do the job but it seems also that lacks the ability to conditionally configure it on different network interfaces and also it doesn't do port remapping.

Any suggestions?
[Android Software Development] SandroBSupp:
I must say interesting use of SandroProxy :)

I think that also SP starts/stops if it finds that android wifi os settings has set to localhost:8008.

No such trigger is done for other interfaces.

But probably can be done. Maybe you know what should be looked for in code to start stop on wnet0, rmnet0?

More generic solution would be that SP can be triggered (start/stop) from other apps with Intent.

Drony is done with any access to root user. So it can not make any iptable rules.
[Android Software Development] Osid:
An approach could be a broadcast receiver on intent action CONNECTIVITY_ACTION

The NetworkInfo for the affected network is sent as an extra

networkInfo.getType() will return '0' when connected to mobile network or '1' when connected trough WIFI

networkInfo.isConnected() will tell you whether or not you have an active connection

You could allow different "profiles" based on "trigger actions" or allow control through a 3rd party app like Llama/Locale/Tasker throufh intents as you have acknowledged :).

[/quote]
[Android Software Development] SandroBSupp:
Will go with the option to implement triggering from external Intent.

Reasons to trigger actions on SP can be very different: location, time, network provider, ... so should be coordinated from outside

Like also idea of different profiles. But it is quite big change to implement proper. So it will wait for additional requests from user.

I can add you to beta testing group so you can test before hits production.

You need to be member of https://groups.google.com/forum/#!forum/sandroproxy-beta-test

[/QUOTE]
[Android Software Development] SandroBSupp:
There is new beta version on GooglePlay. 1.5.97. It allows external intents to start/stop proxy.

Feature will be upgraded to more actions and gui to display if external app should be allowed to make such actions.

https://play.google.com/apps/testing/org.sandroproxy

http://code.google.com/p/sandrop/wiki/SandroProxyExternalActivation

[/QUOTE]
[Android Software Development] musaxci:
Hi guys, I don't know much about networking and proxies so I pretty much hardly understand most of the things on this thread, so I was hoping one of you could help me connect to my university's wifi network which uses a proxy and requires authentication. My problem is that when I connect to it, only the browser connects and every other app can't. I would appreciate if you guys shared a method on how I can configure Sandro Proxy to enable all my apps including Google Play to connect to the WiFi network without rooting
[Android Software Development] SandroBSupp:
Just use Drony instead.

https://play.google.com/store/apps/details?id=org.sandroproxy.drony

http://code.google.com/p/sandrop/wiki/HowToUseDronyWithOtherProxy

If you will still have problems send mail to supp.sandrob@gmail.com
[Android Software Development] musaxci:
Thanks. will try it just now

UPDATE: Not working
[Android Software Development] SandroBSupp:
Must say that not all apps works. But Google Play, twitter, G+ and all that respect android OS proxy settings should.

Please send mail to supp.sandrob@gmail.com to help you more.
[Android Software Development] Krishna_MDual:
how to use whatsapp?

hey i need to access whatsapp, YouTube and ES download manager through university wifi...

It has authentication, I can use some apps with sandroproxy /drony but YouTube, whatsapp doesn't work..

I tried the method u mentioned to check http and https box of Whatsapp app but it's not working???

help me to configure it....?
[Android Software Development] SandroBSupp:
You need also extra check box for ALL to be ON. This will also redirect 5228, 5222 ports as ssl (443) through university proxy.
[Android Software Development] Krishna_MDual:
Okay i will try it next time i goto my clg.and will update you. Thanks for replying.. :fingers-crossed:
[Android Software Development] Krishna_MDual:
Hey i ticked all the checkbox but still it's not working though playstore is working fine.,but whatsapp YouTube not working..

Here is the screenshot of setting
[Android Software Development] SandroBSupp:
You don't need to tick all. Just first line that means all traffic despite of app that makes it.

After this you need to start/stop SandroProxy. Maybe also to kill whatsapp or other apps that they forgets network that they used before.
[Android Software Development] Krishna_MDual:
Okay sir, thanks for the quick reply, I will try it tomorrow..

:good:

So i am supposed to do like this? right.
[Android Software Development] SandroBSupp:
Not sure about YouTube. Works in mysterious ways :eek:. If anyone can show me how it works maybe I can prepare something.
[Android Software Development] Krishna_MDual:
[QrE=SandroBSupp;51361862]Not sure about YouTube. Works in mysterious ways :eek:. If anyone can show me how it works maybe I can prepare something.[/QUOTE]

Okay no problem:p... i need whatsapp and es downloader to work.. It's ok for me if YouTube doesn't work...:o
[Android Software Development] the_gunners:
anyone know how to make this work on whatsapp and line ?
[Android Software Development] Sapiem:
Please click one of the Quick Reply icons in the posts above to activate Quick Reply.

I use SandroProxy with Line with the standard settings. I check HTP, HTTPS and EXTRAS for all.

I don't use WhatsApp
[Android Software Development] SandroBSupp:
There are instructions how to make Whatsapp and some google services work.

http://code.google.com/p/sandrop/wiki/YouTubeWhatsAppInst

They do not respect android os proxy settings and they are using some ports that probably are not allowed through proxies.

So solution is to redirect that ports (5222, 5228) as https (443) through proxy.

Recently I tested. YouTube should also work.
[Android Software Development] iamtapu:
I asked the following question on Google Play app review:

How to get the sandroproxy app to run automatically when it connects with a specific wifi network and maybe disconnect/disable sandroproxy when that specific wifi is not available?

and received a prompt reply from the developer with the following:

It should work if android OS proxy is set to same port as SP listens. Or you can use intent to trigger SP to start/stop from some tasks managers. https://code.google.com/p/sandrop/wiki/SandroProxyExternalActivation

But I am unsure what needs to be done here.

The mentioned link on reply (https://code.google.com/p/sandrop/wiki/SandroProxyExternalActivation) goes to a page that says:

I am not sure how to use that.

Is it some kind of script? am I supposed to enter those two start stop codes inside sandroproxy? if yes, would some one kindly advise how?
[Android Software Development] SandroBSupp:
What is version of android OS that you have on device?
[Android Software Development] iamtapu:
Thanks for your reply.

My Device: Nexus 5

Android Version: 4.4.4

ROM: SlimKat 4.4.4 Build Official 5277

Kernel: 3.4.94
[Android Software Development] SandroBSupp:
And you need to connect to another proxy? Try using Drony instead SandroProxy.
[Android Software Development] iamtapu:
Thanks for your reply and advise.

I followed the link bellow to setup drony instead of sandroproxy.

https://code.google.com/p/sandrop/wiki/HowToUseDronyWithOtherProxy

Drony opens up and connects automatically when it finds the specific wifi network.

But another issue just came up. I found that some app's such as Viber (viber is the most imp app for me) does not connect via drony unless I enable the VPN mode on DRONY.

and Every time Drony connects automatically , i have to manually put drony on VPN MODE.

Is there is any way that DRONY will connect on VPN mode directly?

Thank you in advance.
[Android Software Development] SandroBSupp:
After you confirm on VPN dialog app is trusted to use VPN service.

It should stay that way until phone is rebooted,

you disconnect with VPN dialog

or you decide that some other app should use VPN.

So when wifi goes down/up VPN mode

should start also with Drony with not additional action required.
[Android Software Development] hmdknight:
I have tried to get the whatsapp & line to work with sandara. The problem is that the wifi I am using has a username and password as well as proxy address. In the "other proxy" section, the proxy setting and user name and password are entered. However, I can't even get the chrome browser to work with it.

- should I fill in the proxy setting in advance section (of android itself) while setting up the wifi or just in the SandroProxy?

- the username for the domain is in the form of "username@domain.com", how should I fill in the related box?

It would be great if you provide a walk-through for apps like viber, line, whatsapp.

regards
[Android Software Development] SandroBSupp:
Maybe you just try Drony. It's easier to setup.
[Android Software Development] georgiecasey:
Wow OP. I came across this app a few months ago to sniff HTTPS requests and have been using it for a while. I'm blown away by the capabilities. How many hours have you invested in this?! Where can i donate?

I'm currently writing a custom plugin to block some requests and let others through. It's a developers dream.
[Android Software Development] SandroBSupp:
I'm glad that you find it useful. Let me know when stuck somewhere in code, so you don't waste to much time.

btw: I will update git repo with support for latest sdk, ndk support soon.
[Android Software Development] diogo.sena:
[MENTION=4274518]SandroBSupp[/MENTION] , Can you implement profiles? or implement transparent proxy in drony?

edit: another request, socks support (can be without authentication) so i can use ssh tunnels
[Android Software Development] SandroBSupp:
Profiles: There are wifi profiles and one for non wifi networks

Transparent proxy: implemented with vpn mode. When used all traffic is redirected to Drony.

SOCKS support: upper proxy can be SOCKS4a, SOCKS5 server. There is also option to use Drony with Orbot(Tor, SOCKS proxy on 9050) and ConnectBot.

Send mail to supp.sandrob@gmail.com to help you more.
[Android Software Development] diogo.sena:
Great, i'll try and report back, thank you!
[Android Software Development] SandroBSupp:
Some wiki pages for local SOCKS proxy support.

https://code.google.com/p/sandrop/wiki/DronyWithConnectBot

https://code.google.com/p/sandrop/wiki/DronyWithOrbot
[Android Software Development] .Jung.:
How can get Context in a custom plugin? if possible, I like add toast to mine.
[Android Software Development] SandroBSupp:
Well, not quite sure if you can at the moment. Logging to adb logcat is not okey for your case?
[Android Software Development] .Jung.:
I would show some information to final user and show a dialog for configure some parameter of the plugin
[Android Software Development] SandroBSupp:
Hmm... let me look at the code and will get back to you.
[Android Software Development] SandroBSupp:
I think that some hack with reflection on next plugin can be done. Will test it and send you how to do it.
[Android Software Development] SandroBSupp:
Dirty hack to get context from sqllite store. Creating Looper and showing toast to user

https://gist.github.com/SuppSandroB/002b66354597123f066f#file-sandroproxy-custom-plugin-with-toast-to-show-text-to-user
[Android Software Development] .Jung.:
I'll try it immediately, Thank you!
[Android Software Development] Pradhan_89:
[MENTION=4274518]SandroBSupp[/MENTION]: Drony is not activating automatically in android M. Please have a look.
[Android Software Development] SandroBSupp:
I tested on Nexus5 M and it worked okey. Had to change some logic but after that it works okey.

Please send more info about configuration to supp.sandrob@gmail.com to help you more.
[Android Software Development] mangusZen:
Hi Sandro, can we have systemless root support for this wonderful app (I mean sandroproxy)?

It would be great

thank you very much
[Android Software Development] SandroBSupp:
You can use SandroProxy whitout root if you point android os local proxy to localhost 8008.

You can use Drony if you need just proxy features.

You can even use Drony and then forwards all traffic to SandrProxy. Just be sure that you have rule that all from SandroProxy makes direct connections.
[Android Software Development] mangusZen:
Well, in not really into it but sandroproxy is the only thing that makes my phone work in my corporate network. I tried drony but I didnt get it to work flawlessy like sandroproxy.

It simply works, routing all the traffic like whattsup without nothing to do with the rest of the OS.

I really hope you can do this sooner or later..merry xmas and happy new year.
[Android Software Development] SandroBSupp:
Drony works also okey for many users. Please send mail to supp.sandrob@gmail.com to help you more about your problem.
[Android Software Development] djtreo:
Seems like forever I've been on this post, but yeah it worked! -only on browsing. But if I try to Settings -> Add Account (for Google Play, new device) it won't work.

EDIT: Got it working now. But I'm trying an app that still wont work (maybe included on the blacklist of server domains for apps and games filtering). Many thanks!
[Android Software Development] darodriguez:
Hello, I need to know if which specific authentication schemes NTLM suite are supported, I mean NTLMv1, NTLMv2 and NTLM Session
[Android Software Development] FammasMaz:
Can you plz tell me how to setup sandroproxy for http proxy for all apps, including dns proxy cuz facebook etc are blocked here. I do have root access
[Android Software Development] SandroBSupp:
Try with Drony
[Android Software Development] FammasMaz:
Dns proxy doesnt connect via drony...i tried it....plus autoconnect not working either
[Android Software Development] SandroBSupp:
There are few options for dns and also autoconnect should work (flag in wifi settings how to start)
[Android Software Development] FammasMaz:
Can you walk me through...i just need global http proxy that also unblocks sites...

---------- Post added at 11:28 AM ---------- Previous post was at 11:10 AM ----------

Actually I solved the other problems, the only thing that i cant figure out is how to unblock websites like facebook etc, plz help me on that plz
[Galaxy S III Q&A, Help & Troubleshooting] titans1187:
Im running stock ALF2 rooted with CWM. I ran a nandroid, installed CM9 and decided like an hour later to go back to stock. I restored to my backup and I noticed today that my power control widget is missing. Is there anyway to get it back or am I SOL?
[Galaxy S III Q&A, Help & Troubleshooting] 1Android:
download "widgetsoid" and make your own! customize what you want on there along with colors and other options. waaaay gooder brah! :cool:
[Galaxy S III Q&A, Help & Troubleshooting] titans1187:
Is it possible that it is not even included on the stock rom? Can someone who is stock check for me. I just want to make sure nothing is missing even though I never went in and deleted anything.
[Samsung Infuse 4G] utfrazier:
I recently have a problem with my Rogers infuse. I searched the internet, and even ask this via PM from another person who have the same problem, but no solution. Here is my problem:

During one of my recovery attempts, I flashed a ATT ROM using Odin which also includes the infuse.pit file. After that, the initial logo of ROGERS which was shown in the beginning is gone. I later installed ROGERS rom, but the logo is still not there.

I had full nandoird backups before that, but restoring none of them solved the problem. Is it possible for one of the people who have a ROGERS infuse to create a full back (using heimdall) and share the .pit file and the different partitions (mainly non system and non data partitions)?

I could not find any complete ROGERS rom. Although there are some complete ATT roms (such as SGH_I997-UCKE3-Stock-Noboot-One-Click ), there is no one for ROGERS.
[Samsung Infuse 4G] qkster:
I believe you can use any of the ATT STOCK Firmware but under the APN, just put in Roger's network for connection.

Roger's natively start at 2.3.3 GB.

Some of the Roger's users may have a stock version around in cyberspace
[Samsung Infuse 4G] utfrazier:
Thanks for your reply. However, as I said, my problem is not the ROM. I installed a ATT Full recovery ROM that includes the .pit file, and I think a series of partitions other than system and data. So although I reinstall a Rogers ROM, I still have no initial ROGERS logo in boot up, and instead, it shows a random series of lines. I have no other problem in the functionalities of the phone.
[Samsung Infuse 4G] Dani897:
that's because you flashed an att param.ifs. you must have used a froyo unbrick package. i dont know if there is a rogers dump with param.ifs but there are captivate threads (old ones) that have tools to change that splash screen and i have heard it works on the infuse but the mod never became popular around here. if i were you i'd flash an att rom and modem with a custom kernel,(better camera performance, and better battery life) change the apn and then change the splash and boot animation to something cool! unless of coarse you are worried about the warranty. if you are worried about insurance just report the thing missing...
[Samsung Infuse 4G] utfrazier:
I tried to flash att roms, but they never boot after flash. That was why I return to Rogers rom, and now I am using ICS. Could you provide more detail about those splash screen changing tools? And also, is there anyone here with an Rogers Infuse that can send me the param.ifs file from his phone?
[Samsung Infuse 4G] SpleenWeen:
Mine's a Rogers Infuse and I'm sure at one point I used an unbrick package that changed my splash screen from Rogers to At&t.

If I remember correctly, I used Odin and a "return to stock" which brought back my Rogers splash screen.

I'll try and track down the package I used...

*edit* try this: http://xdaforums.com/showthread.php?t=1193927
[Samsung Infuse 4G] utfrazier:
Thanks for the link. I had tested this one. It did not solve my problem. I think that my phone's param.lfs partition is overwritten by something else. I am mainly searching for for a heimdall stock. Is it possible for you to create a backup using heimdall, and send it to me?
[Samsung Infuse 4G] SpleenWeen:
I'll take a look and see what I can come up with - I've never used Heimdall before, only Odin.
[Samsung Infuse 4G] Clark Joseph Kent:
Heimdall for one click is great, but get with jedi master qkster he can provide....
[Samsung Infuse 4G] qkster:
Hey, pd0gg.

We can try to put together a heimdall for Rogers' users.

If you have odin'ed to rogers stock, flash an insecure gb kernel (bedwa, zen, entropy..doesn't matter which one) and run adb or terminal to get access to system files.

this shows you how to dump the partition:

http://xdaforums.com/showthread.php?t=1348392

from adam's op:

su

#Mount The /system folder as RW so we can read and write to it

mount -o remount,rw /system /system

#Make our folder to write the firmware package onto the SDCard

mkdir /sdcard/firmwarepackage

#Begin transfer of all relevant blocks to sdcard

dd if=/dev/block/stl9 of=/sdcard/firmwarepackage/factoryfs.img bs=4096

dd if=/dev/block/bml7 of=/sdcard/firmwarepackage/zImage bs=4096

dd if=/dev/block/stl10 of=/sdcard/firmwarepackage/dbdata.img bs=4096

dd if=/dev/block/stl11 of=/sdcard/firmwarepackage/cache.img bs=4096

dd if=/dev/block/bml12 of=/sdcard/firmwarepackage/modem.bin bs=4096

#Done

echo done

Use the lines above. The other parts doesn't apply.

Pull the pit file from the unbrick or any of the 1 click package.

Make up the 1click from the op. :)

The other option would be to pull the data from the odin tar and put them into a 1 click

As Dani897 has stated though, I think it's really pointless as the Roger's Firmware is inferior. No hdmi or Hd video etc...using the att firmware, change out the boot screen and add roger's apn is a better idea.
[Samsung Infuse 4G] SpleenWeen:
Thank-you, qkster! I very much appreciate you taking the time to help.

I'll give it a whirl and see what happens.
[Samsung Infuse 4G] utfrazier:
Thank you guys. I will wait to see if it can help me.
[Samsung Infuse 4G] SpleenWeen:
With it being a long weekend I'm likely going to be away from my computer til Tuesday.

I have the files we need I just need to package then into a one-click.
[Samsung Infuse 4G] qkster:
If you run into problems, let me know.

It is usually advisable to try it before you post it.

For the record, I'm not keen on flashing Roger firmware on my native att Infuse. :)

Gl
[Samsung Infuse 4G] SpleenWeen:
The one-click has been generated; however, I have not had a chance to test it. It's been a busy day and I simply ran out of time.

As an aside, I had never even looked at Heimdall until I responded to this thread. I can see now why folks use it and recommend it :)
[Samsung Infuse 4G] utfrazier:
Thanks for your help. Any update? Can you upload it to somewhere?
[Samsung Infuse 4G] SpleenWeen:
I'm sorry, no update yet. Usb drivers are giving me grief so I've still not managed to test it.

I do have it uploaded but, because it is still untested, I am reluctant to give the url.

---------- Post added at 05:58 PM ---------- Previous post was at 05:45 PM ----------

Okay, got the usb things sorted out and just finished flashing. Everything looks a-okay.

Here's the link:

https://docs.google.com/open?id=0B8hYM72TRTvzZzh0ZHplZFBjOTA

Or here:

http://db.tt/l1Y0LgXM

*edit* I should note, this is not a complete return to stock as it is rooted.
[Samsung Infuse 4G] qkster:
If this works as intended, we may want to link this to the Rogers thread or Big Joe, you may want to ISet this

Sent from my SAMSUNG-SGH-I997
[Samsung Infuse 4G] Clark Joseph Kent:
If so...shot me post in the iset page, plz so don't forget...:D:eek:
[Samsung Infuse 4G] SpleenWeen:
Ya, hopefully this helps utfrazier out and if so I would be happy to see it linked to from the Rogers thread or a mention in iset.
[Samsung Infuse 4G] utfrazier:
Thanks for the package.

I installed it. Although it installed successfully, it does not solve my problem. The first boot screen, before the SAMSUNG logo, is still a set of random artifacts.

When I reboot to 3e recovery, it shows the following error:

-- Copying media files...

Successfully copied meida files.

# MANUAL MODE #

-- Appling Multi-CSC...

Install Multi-CSC

Can't access to '/system/csc/RWC/system'.

Successfully applied multi-CSC.

PS: When I installed the rom using the .jar file, it seems that it does not install the param partition. I installed it through the heimdall GUI to force it to install the param partition, but the result was the same.