How to prevent some applications to connect to internet - Android Q&A, Help & Troubleshooting

Hi,
I am looking how to prevent an application to connect to internet either on wifi or on data network mode.
My problem is that some applications are connecting, in background, to internet and I would like to restrict it.
For example in windows, you have a firewall and you can allow or prevent each program to connect to internet.
Thanks.
Daniel

Danielfr said:
Hi,
I am looking how to prevent an application to connect to internet either on wifi or on data network mode.
My problem is that some applications are connecting, in background, to internet and I would like to restrict it.
For example in windows, you have a firewall and you can allow or prevent each program to connect to internet.
Thanks.
Daniel
Click to expand...
Click to collapse
First off... Got Root? :fingers-crossed:
DroidWall - Android Firewall
If you ain't got Root than I got no idea how you can do it... but if you are over at xda I believe you got

-m3ta- said:
First off... Got Root? :fingers-crossed:
DroidWall - Android Firewall
If you ain't got Root than I got no idea how you can do it... but if you are over at xda I believe you got
Click to expand...
Click to collapse
Thank you.
I am rooted. It works .
Daniel

Related

How to not let data to tranfer when Data Connection is Enabled?

Imagine the situation that Any data plan is not activated and as soon as u enable the data connection hundereds of thing in android want to connect to internet and when u disable the data connection again . Ur money is deducted.
Now u will ask me if i dont have a data plan why i enable the data connection.?
So here is the thing I want the data connection to be enabled so that i can open free site like facebook on Opera Mini.
So is there any way so that i can enable the data connection but my phone does not connect to internet to itself but i control which app connects. In my case opera mini.
Please tell me a way to do it. Or is there any app.
Thanks Any help will be appreciated.
Search for "Droidwall" in market.
MoPhoACTV Initiative
If you are running CyanogenMod 7, you can disable the "internet access" permission for each app. You can also turn off sync and "allow background data" in settings.
Droidwall require root access and is there any firewall for android that does not require rooting.
abhishekcal said:
Droidwall require root access and is there any firewall for android that does not require rooting.
Click to expand...
Click to collapse
absolutely no..
Sent from my LT18i
thanks all for replying

[Q] Tethering with rooted ICS phone

I have searched extensively on Google, and XDA but can't find the right answer.
I want to tether my phone. I can do this directly in Android but my current carrier brings up a message in the browser saying it's not supported on my current plan.
I'm addressing this, but in the mean time I'm curious if there is a way round it, hypothetically.
I have seen some Apps, such as ClockWork Mod Tether, but since my phone is rooted I wondered if there is a more elegant solution that doesn't involve any software to be added to my PC.
I read about using TB to freeze a specific App/Process but couldn't find any details.
Any advice would be great,
thanks
helppme said:
I have searched extensively on Google, and XDA but can't find the right answer.
I want to tether my phone. I can do this directly in Android but my current carrier brings up a message in the browser saying it's not supported on my current plan.
I'm addressing this, but in the mean time I'm curious if there is a way round it, hypothetically.
I have seen some Apps, such as ClockWork Mod Tether, but since my phone is rooted I wondered if there is a more elegant solution that doesn't involve any software to be added to my PC.
I read about using TB to freeze a specific App/Process but couldn't find any details.
Any advice would be great,
thanks
Click to expand...
Click to collapse
HOW have you not heard of android wifi tether? One of the first reasons I had for rooting the first Android phone I got.
There's also Barnacle Tether, available on the play store.
Guess Barnacle is gone... but there are other tethering apps on the play store though.
And I'm wrong again. Barnacle is still there, but doesn't show up when I search from my phone. How curious.
Since your phone is rooted you can download wireless tether.
Google it and you will easily find the download link or even directly via the play store.
Sent from my GT-I9100 using xda premium
ctomgee said:
HOW have you not heard of android wifi tether? One of the first reasons I had for rooting the first Android phone I got.
There's also Barnacle Tether, available on the play store.
Guess Barnacle is gone... but there are other tethering apps on the play store though.
And I'm wrong again. Barnacle is still there, but doesn't show up when I search from my phone. How curious.
Click to expand...
Click to collapse
I appreciate the reply, but if you read my post again the issue I'm having is not an app to enable wifi tether directly on the handset, it's that the packet data is being detected as not from the phone so I get a message, on the computer, in the internet browser saying my priceplan doesn't include tethering. I cant get around this 3 website redirect. So, I need a way to tether, without the network knowing... The apps you mention work when the block is at the phone level I believe.... This is something different Three is doing..
Please correct me if I'm wrong though...
Oh, and as for the apps not showing up, the mobile phone providers asked google to block these apps for certain customers.. if you connect to a wifi network when in flight mode, and go the google market, you should still be able to see them...
panoramixmeister said:
Since your phone is rooted you can download wireless tether.
Google it and you will easily find the download link or even directly via the play store.
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
same issue, this app doesnt get around they way three is detecting tether usage :-(
helppme said:
I appreciate the reply, but if you read my post again the issue I'm having is not an app to enable wifi tether directly on the handset, it's that the packet data is being detected as not from the phone so I get a message, on the computer, in the internet browser saying my priceplan doesn't include tethering. I cant get around this 3 website redirect. So, I need a way to tether, without the network knowing... The apps you mention work when the block is at the phone level I believe.... This is something different Three is doing..
Please correct me if I'm wrong though...
Oh, and as for the apps not showing up, the mobile phone providers asked google to block these apps for certain customers.. if you connect to a wifi network when in flight mode, and go the google market, you should still be able to see them...
Click to expand...
Click to collapse
I WAS on wifi.
And did you ACTUALLY download the tether app and try, or were you using the tether built into the settings of Android? Because it sure doesn't sound like you downloaded the app...
And I don't have tethering on my carrier plan, but the tether app works just fine for me.
ctomgee said:
I WAS on wifi.
And did you ACTUALLY download the tether app and try, or were you using the tether built into the settings of Android? Because it sure doesn't sound like you downloaded the app...
And I don't have tethering on my carrier plan, but the tether app works just fine for me.
Click to expand...
Click to collapse
Initially when I first posted I was trying the built in app but I downloaded the app you suggested anyway, but it didn't work. would connect to the computer but no data connection. Unsure if its an app problem or still a three problem, but I don't see how this app would fix the three problem. Does it somehow mask the PC data connection??? I couldn't see anything in the settings or set up that suggest that it would, it just looks like a more feature rich wifi hotspot app?? In addition I found mention that that others with my issue have also tried these apps like barnacle and it didn;t resolve the problem....
helppme said:
I have searched extensively on Google, and XDA but can't find the right answer.
I want to tether my phone. I can do this directly in Android but my current carrier brings up a message in the browser saying it's not supported on my current plan.
I'm addressing this, but in the mean time I'm curious if there is a way round it, hypothetically.
I have seen some Apps, such as ClockWork Mod Tether, but since my phone is rooted I wondered if there is a more elegant solution that doesn't involve any software to be added to my PC.
I read about using TB to freeze a specific App/Process but couldn't find any details.
Any advice would be great,
thanks
Click to expand...
Click to collapse
They can suspend your service if they discover you are doing tethering on your device if you are not alowed in your current plan.
I Hope you wont have any issues.
Otherwise it is possible that the sim card lock the feature even on rooted phone when detect thetering or it is impossible ?
jsmasterx said:
They can suspend your service if they discover you are doing tethering on your device if you are not alowed in your current plan.
I Hope you wont have any issues.
Otherwise it is possible that the sim card lock the feature even on rooted phone when detect thetering or it is impossible ?
Click to expand...
Click to collapse
yes I suppose they could do, but like I say I'm resolving this with my contract. It's more that I'm curious how they are doing it, and on principle don't like being told what I can and can't do
It can't be a sim lock.
I just tried tethering a Macbook, and amazingly that worked!.. SO, It must be something to do with the Packet Headers I'm guessing.. Or they are doing some other more detailed packet sniffing... It means there is definitely a software route around it... Need a clever developer to read this thread
I guess clockworkMod Tether might work, but I want a solution without a PC install..
helppme said:
yes I suppose they could do, but like I say I'm resolving this with my contract. It's more that I'm curious how they are doing it, and on principle don't like being told what I can and can't do
It can't be a sim lock.
I just tried tethering a Macbook, and amazingly that worked!.. SO, It must be something to do with the Packet Headers I'm guessing.. Or they are doing some other more detailed packet sniffing... It means there is definitely a software route around it... Need a clever developer to read this thread
I guess clockworkMod Tether might work, but I want a solution without a PC install..
Click to expand...
Click to collapse
That doesn't make any sense. If it works with a mac book, it should work with your windows machine too. Unless your windows machine has some kind of proxy?
ctomgee said:
That doesn't make any sense. If it works with a mac book, it should work with your windows machine too. Unless your windows machine has some kind of proxy?
Click to expand...
Click to collapse
no proxy.. I'm as confused as you. The headers are different on a mac though, Unix based system... Need to know how 3 detect at a network level its not phone data... this difference with a mac must be a clue...
pda net 3.50. Had to install pc software.. Is a USB tether solution.. but it works, so will do, until I get my price plan sorted.... Still would like a more elegant wifi solution though.. Come on you clever devs, .... SCRATCH that :-(((( It worked for 5 mins, now it comes up with same message in the internet Browser.. damn it!!! three are too smart :-(
helppme said:
pda net 3.50. Had to install pc software.. Is a USB tether solution.. but it works, so will do, until I get my price plan sorted.... Still would like a more elegant wifi solution though.. Come on you clever devs, .... SCRATCH that :-(((( It worked for 5 mins, now it comes up with same message in the internet Browser.. damn it!!! three are too smart :-(
Click to expand...
Click to collapse
Try proxoid.
ctomgee said:
Try proxoid.
Click to expand...
Click to collapse
They are blocking the port 80.. they sent you to their walled garden page. I think its on your provider proxy side now
Sent from my GT-I9100 using Tapatalk
jsmasterx said:
They are blocking the port 80.. they sent you to their walled garden page. I think its on your provider proxy side now
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
Is there a way around this. What do you mean by, on the provider proxy side?
Shortly after PDA net stopped working, I was also getting the three message on the browser directly on my phone.. after about an hour, my phone web browser started working normall again :-(
helppme said:
Is there a way around this. What do you mean by, on the provider proxy side?
Shortly after PDA net stopped working, I was also getting the three message on the browser directly on my phone.. after about an hour, my phone web browser started working normall again :-(
Click to expand...
Click to collapse
When you use thetering, you embark to the provider internet network.
for example my provider is Bell Canada and their proxy is web.wireless.bell.ca
this one is for the device internet
for the thetering one they use another configuration settings when i connect my device to the computer.
What happen is when you plug your device to the computer, a signal is sent to the provider stating you entered in thetering mode. You don't have access to thetering so your internet connection is limited to the walled garden of the provider stating you are not subscrided to the service. Thats why i think they blocked the port 80 on your device and redirect you to that page.
Now for the Macintosh story.. It is not impossible that you can connect without problem with a mac and safari. I know a lot of people emulating a handled device with the Mac and the safari browser and those peeps didnt had a thetering plan.
The differences came with the drivers installed. Mac OS one are quite different in term of functionality than windows, thats why maybe the provider is able to sniff more easily people using windows but i am not a senior programmer. I am currently taking courses to become one but for now it is only suppositions. If i am wrong feel free to correct me but I am quite sure about what i am saying and that's why you dont have issues with a mac
jsmasterx said:
When you use thetering, you embark to the provider internet network.
for example my provider is Bell Canada and their proxy is web.wireless.bell.ca
this one is for the device internet
for the thetering one they use another configuration settings when i connect my device to the computer.
What happen is when you plug your device to the computer, a signal is sent to the provider stating you entered in thetering mode. You don't have access to thetering so your internet connection is limited to the walled garden of the provider stating you are not subscrided to the service. Thats why i think they blocked the port 80 on your device and redirect you to that page.
Now for the Macintosh story.. It is not impossible that you can connect without problem with a mac and safari. I know a lot of people emulating a handled device with the Mac and the safari browser and those peeps didnt had a thetering plan.
The differences came with the drivers installed. Mac OS one are quite different in term of functionality than windows, thats why maybe the provider is able to sniff more easily people using windows but i am not a senior programmer. I am currently taking courses to become one but for now it is only suppositions. If i am wrong feel free to correct me but I am quite sure about what i am saying and that's why you dont have issues with a mac
Click to expand...
Click to collapse
This sounds correct to me. I'm pretty annoyed though. Only had the contract a month, I was told I could move onto a more expensive plan within contract if I needed more allowance etc.. Phone up 3, not only do they not let you PAY MORE for a different plan, but they also don't let anyone shift onto the one plan ever, unless its a new contract.. So basically **** them... so even if I want to pay extra for tethering I can't... absolute nonsense...
I had the same issue with three. I downloaded masqued crusader from play store. Activated it and then started wireless/usb tether. It worked. That was a while back tho. On a payg sim card on a galaxy s on gb. Its worth a try though.
Sent from my GT-I9100 using XDA

Issue for certain apps connecting to wifi in nexus 5

Hi,
I'm facing one particular issue. I had used noroot firewall in my nexus 5 unrooted device to limit data access. However, recently, google applications like gmail,youtube,play store etc was not able to access my wifi (showing connection failed) whereas it can access data connection. However, using Chrome i can access wifi connection successfully, so I believe its not a hardware issue. Same is the case with google now, it doesn't work using wifi, but works in mobile data. I believe its because of some setting change caused by noroot firewall. Please help.
aneeshco said:
Hi,
I'm facing one particular issue. I had used noroot firewall in my nexus 5 unrooted device to limit data access. However, recently, google applications like gmail,youtube,play store etc was not able to access my wifi (showing connection failed) whereas it can access data connection. However, using Chrome i can access wifi connection successfully, so I believe its not a hardware issue. Same is the case with google now, it doesn't work using wifi, but works in mobile data. I believe its because of some setting change caused by noroot firewall. Please help.
Click to expand...
Click to collapse
Using a great firewall requires root permissions imo so I suggest you to root and use AFWall+.
Primokorn said:
Using a great firewall requires root permissions imo so I suggest you to root and use AFWall+.
Click to expand...
Click to collapse
ok, i agree. but how to resolve existing issue?
aneeshco said:
ok, i agree. but how to resolve existing issue?
Click to expand...
Click to collapse
Disable or uninstall noroot firewall
Primokorn said:
Disable or uninstall noroot firewall
Click to expand...
Click to collapse
I tried uninstalling and resetting the phone. Still didn't work. However, I installed the app again and gave permissions to all apps again using Mobile data and now its working fine

[App][4.0+][NoRoot] ReverseTethering NoRoot

Hi,
I was constantly annoyed by the poor wifi signal when I had my devices connected to the computer, so I wondered why I could not use my computer's Internet connection on the Android devices when they were already connected via a USB cable. Extensive Google searches only showed solutions that would not work at all or required the Android device to be rooted. That's when I decided to develop my own solution:
ReverseTethering NoRoot allows you to share your computer's Internet connection with your Android device via a USB cable.
Use Android apps that require Internet in places where you don't have or are not allowed to have a wireless Internet connection!
Your Android device's Internet connection is slow and unstable? You've your Android device already connected to your computer for charging, file syncing or app debugging? Why not use your computer's fast, stable Internet connection on your Android device?.
Features:
Use your computer's Internet connection on your Android device
Works with Mac, Windows and Linux
Works on all Android versions starting from 4.0
NO root needed
Easy set-up, no messing around with tons of command lines
The only way to have wired Internet on devices that do not support Ethernet
There is also a pro version with these additional features:
Connections longer than 10 minutes per 30 minutes
Get rid of the ads
Links:
Play Store: https://play.google.com/store/apps/details?id=com.floriandraschbacher.reversetethering.free
PRO Version: https://play.google.com/store/apps/details?id=com.floriandraschbacher.reversetethering.pro
Please keep in mind that this is the very first version of the application. There will be issues. Please report them below and I'll give my best to fix them as soon as possible. The app was tested on Android 4.1, 4.2 and 6.0, but it should work on all devices running Android versions 4.0 and above.:fingers-crossed:
Let me know if you have any questions or suggestions! Any feedback is highly appreciated !
I just released version 1.0.1 with these changes:
Improved speed on older devices
Bug fixes
Great
looks cool , gonna check it
skanzi said:
looks cool , gonna check it
Click to expand...
Click to collapse
Thanks! Let me know how it works! :fingers-crossed::laugh:
skanzi said:
looks cool , gonna check it
Click to expand...
Click to collapse
Have you tried it? Has everything worked? Any feedback?
FD_ said:
Have you tried it? Has everything worked? Any feedback?
Click to expand...
Click to collapse
Anyone else tried the app yet?:fingers-crossed:
FD_ said:
Anyone else tried the app yet?:fingers-crossed:
Click to expand...
Click to collapse
No-one?
FD_ said:
No-one?
Click to expand...
Click to collapse
Hello I tested the APP and works normally , but some important app do not work well because it does not recognize the network.
thank you this is the best reverse tethering app for lollilop
whatsapp does not work
playstore works but not download
facebook does not work
My Asus Zenfone 5 cell
sorry for English. Translate By google
nikerbr said:
Hello I tested the APP and works normally , but some important app do not work well because it does not recognize the network.
thank you this is the best reverse tethering app for lollilop
whatsapp does not work
playstore works but not download
facebook does not work
My Asus Zenfone 5 cell
sorry for English. Translate By google
Click to expand...
Click to collapse
Hi,
Thanks for your feedback
As I've mentioned in the app description, some apps do not recognize ReverseTethering's connection because they only look for a Wifi or 3G connection. This is not an issue of ReverseTethering, but of those third-party apps. If you want to use ReverseTethering with such a third-party app, please contact the respective author of the third-party app.
As a side note: This incompatibility of some third-party app is nothing specific to ReverseTethering NoRoot, but applies to all reverse tethering solutions.
Thanks for the app.I will give it a try and send you my feedback.
leprince2007 said:
Thanks for the app.I will give it a try and send you my feedback.
Click to expand...
Click to collapse
Thanks! Let me know how it works
can you plz upload its apk file ...plz
it's showing "waiting for server program to respond".
how it solve?
Manish320843 said:
it's showing "waiting for server program to respond".
how it solve?
Click to expand...
Click to collapse
Hi!
Is the server program running? Does it say it detected the device?
This app works fine on Android ICS. I am able to access full internet. I managed to download apps from google play . There is an Xposed module (HackserviceConnectivity) which fools the apps that they are connected to wifi or mobile network. Device needs to be rooted though. But I cant tether the tethered internet. I need to tether he tethered internet via WiFi tether but it is not working. unable to access the internet. Any idea?
please give me a link to download reverse tethering server application,as the program needs this running in windows.
AdithyanCS said:
This app works fine on Android ICS. I am able to access full internet. I managed to download apps from google play . There is an Xposed module (HackserviceConnectivity) which fools the apps that they are connected to wifi or mobile network. Device needs to be rooted though. But I cant tether the tethered internet. I need to tether he tethered internet via WiFi tether but it is not working. unable to access the internet. Any idea?
Click to expand...
Click to collapse
On my Galaxy Note 8 (JB 4.1) and Galaxy S4 (JB 4.3), sharing the reverse tethered connection via wifi tethering worked. Please note I switched the device to offline mode, then connected reverse tethering, then started wifi tethering. For starting wifi tethering, I used my app FastFileTransfer (link in my signature), because the System UI does not allow enabling wifi tethering when in offline mode. Being in offline mode might have been essential, so just try if it helps.
leprince2007 said:
please give me a link to download reverse tethering server application,as the program needs this running in windows.
Click to expand...
Click to collapse
The windows program is available here: http://fdmobileinventions.blogspot.com/p/reversetethering-server.html. Let me know if you need further help setting it up.
OP, add a copy of the free app at the end of the thread. People would find that interesting. Good job!
FD_ said:
On my Galaxy Note 8 (JB 4.1) and Galaxy S4 (JB 4.3), sharing the reverse tethered connection via wifi tethering worked. Please note I switched the device to offline mode, then connected reverse tethering, then started wifi tethering. For starting wifi tethering, I used my app FastFileTransfer (link in my signature), because the System UI does not allow enabling wifi tethering when in offline mode. Being in offline mode might have been essential, so just try if it helps
Click to expand...
Click to collapse
I'm sorry but What do you mean by offline mode? Thank you for replying btw
How to run adb file server

How do apps connect to wifi?

More of a technical/dev question, I notice when I go to WiFi settings it'll take a while to connect then I can ping things from adb shell but when I'm not on that screen I cannot ping things... does anyone know what exactly is triggered to connect to the WiFi? Or if I can use the existing bluetooth connection to my phone to connect to the internet?
I'm trying to build some apps for the amazfit but I need either a consistent connection or to connect when the apps are opened... I noticed wpa_supplicant in the /etc/wifi folder which means I could potentially start a daemon with root but I'm wondering if there's a better way?
There must be something doing it as the updater app can start the WiFi connection as required... just can't quite figure out what's doing it yet.
Monotoko said:
More of a technical/dev question, ...
Click to expand...
Click to collapse
Welcome to the mystery of Amazfit wifi
Not really. I wrote about it a while ago here. https://forum.xda-developers.com/showpost.php?p=74857110&postcount=36
TLTR; your app just has to turn the wifi on by itself and (once connected) then can use the connection normally. The connection is lost when the watch is asleep though. So, your app needs to keep the watch awake until it's done with the connection.
anox said:
Welcome to the mystery of Amazfit wifi
Not really. I wrote about it a while ago here. https://forum.xda-developers.com/showpost.php?p=74857110&postcount=36
TLTR; your app just has to turn the wifi on by itself and (once connected) then can use the connection normally. The connection is lost when the watch is asleep though. So, your app needs to keep the watch awake until it's done with the connection.
Click to expand...
Click to collapse
Thanks a lot! That should work for my first app... I only need a few updates stored, also wondering if it's possible to connect to the internet via BT through the phone?
Monotoko said:
Thanks a lot! That should work for my first app... I only need a few updates stored, also wondering if it's possible to connect to the internet via BT through the phone?
Click to expand...
Click to collapse
https://forum.xda-developers.com/smartwatch/amazfit/dev-library-amazfit-communication2-t3779946
and
https://forum.xda-developers.com/smartwatch/amazfit/app-amazfit-internet-companion-generic-t3779945

Categories

Resources