Hello XDA Assist Team,
A few days ago I installed AdAway (via F-Droid) to increase mobile surfing speed. Now I got the problem that while using Wifi, suddenly every app had a 10-15 seconds delay before actually starting to download/ starting to load the web page etc. Once "getting a firm grip" on the connection, the download speed was fine as usual (120 mbit/s). This problem did occur on every app while using wifi, but not while using mobile internet.
So I uninstalled AdAway. Now no application can access the internet. Regardless of wifi or mobile internet, no application managed to access the internet since the deinstallation.
The only host files in the /etc/host folder seems to be the localhost on "127.0.0.1" and another localhost with "::1" . At least that's what the Hosts Editor app said. I installed it via USB to check on the host file.
My system:
Oneplus Two, Oxygen OS 3 (Android 6.0.1), rooted
installed were AFWall+ and Xprivacy. I deactivated, then deinstalled them to make sure they won't interfere. The only other App I installed recently is Cerberus. Except for devouring my battery alive, it did not have any negative effects I could observe.
I tried searching the Unofficial AdAway Thread, but I was discouraged by the 600+ pages. I tried, but didn't didn't find anything useful. I posted my question there as well, but got no reply.
I don't have many skills regarding Android. I installed the OS, xposed framework etc. by closely following the instructions given here on XDA. I have a basic understanding on how to use all these applications but I don't know much about what happens behind the UI. I would really appreciate if you could help me out here and point me in the right direction, prefereably without having to nuke my OS. My last Nandroid backup is about 2 months old, unfortunately.
With kind regards,
Fennec
Edit: My progress:
1. I found a tutorial of how to find and delete the hosts file (http://forum.xda-developers.com/showthread.php?t=2717261) . It was stated that android would rebuild the missing file on reboot. That was not the case. Now in /system/etc there is no "hosts" file and my Internet still does not work. Hope that helps. I tried googling to find an untouched hosts file that I could copy into the folder, was not lucky yet.
2. Found a hosts file here: http://forum.xda-developers.com/galaxy-s2/help/hosts-file-missing-to-t2276818 . Copied it into the folder. Did not work. Help.
Please help me out.
Solved!
Writing down the facts I realized that I haven't tried disabling cerberus yet. I don't know why uninstalling adaway triggered the internet problem but Cerberus seems to have been the cause. It ran for 2 weeks without problem. Now my internet is free again. Either the deinstallation triggered the problem or it was a very nasty coincidence, coinciding with cerberus making trouble. Or maybe cerberus didn't like the system files being tinkered with and decided to lock a potential remote attacker out.
Android Os using data even using af wall plus or other firwall apps with root & xpose
hey i am using data with af wall plus with root & xposed
but still below apps are using data & cant restrict them ?
android OS
GOOGLE SERVICES
Please see screenshot & help me guyz !!
You sure you restricted them? Does AFWall give you any messages when you enable it? Not all kernels are suitable for this firewall - disable it and enable again to see if is applies iptables with no errors. You can also try LightningWall Xposed module as secondary firewall to make sure you've got no data leaks. Network Log (look for it in f-droid store) can also give you mire detailed look into connections your apps make, maybe they exchange data with NTP servers or something
thank you for detailed response .. i searched a lot & many people asking same that Android OS & other system apps are leaking data & no solution found yet bro !
i got a social pack from cellular company & all my credit gone due to this data leak .
i m using af wall plus & droid wall with restrict background data - but all i m getting is data leak !
can you suggest me more like which kernal i should use or any other app ???
Fahadroid said:
can you suggest me more like which kernal i should use or any other app ???
Click to expand...
Click to collapse
I only use stock kernel and I know it's working fine with AFWall. CM stock kernel is also good, if you're using CM. AFWall has an option to "fix startup data leak" in Preferences > Experimental. However, init.d or su.d is needed for it to work and stock kernel don't have them AFAIK. What you can do is to remove SIM before system initial boot, because both data and wifi are enabled by default and you can't disable them until you're done with setup wizard. Also - disable data before each reboot. I'm not an expert but I believe the only way to secure yourself is making your own custom rom, that will have some extra security tweaks baked in. It's basically a question of making a script that will block all connections untill AFWall is active, so you can really controll yuor data traffic. There's an interesting discussion about such stuff on xda:
http://forum.xda-developers.com/general/security/tuto-how-to-secure-phone-t2960077
The said script is mentioned here:
http://forum.xda-developers.com/showpost.php?p=63000225&postcount=236
You can try to contact @optimumpro, he's still on XDA, and I believe he knows much more than me about data leaks and things like that.
minimale_ldz said:
I only use stock kernel and I know it's working fine with AFWall. CM stock kernel is also good, if you're using CM. AFWall has an option to "fix startup data leak" in Preferences > Experimental. However, init.d or su.d is needed for it to work and stock kernel don't have them AFAIK. What you can do is to remove SIM before system initial boot, because both data and wifi are enabled by default and you can't disable them until you're done with setup wizard. Also - disable data before each reboot. I'm not an expert but I believe the only way to secure yourself is making your own custom rom, that will have some extra security tweaks baked in. It's basically a question of making a script that will block all connections untill AFWall is active, so you can really controll yuor data traffic. There's an interesting discussion about such stuff on xda:
http://forum.xda-developers.com/general/security/tuto-how-to-secure-phone-t2960077
The said script is mentioned here:
http://forum.xda-developers.com/showpost.php?p=63000225&postcount=236
You can try to contact @optimumpro, he's still on XDA, and I believe he knows much more than me about data leaks and things like that.
Click to expand...
Click to collapse
Thanks for your response !
let me tell you detail,
i m using Resurrection remix ROm on moto x play with below apps,
root
xposed
afwall plus
droid wall
LightningWall (xposed mod to restrict data)
Restrict background data - enabled in settings
but all is fail as android os & other system apps using data as leak !
researched a lot & couldnt find solution !!
@optimumpro bro can you help me on this issue , Please !!
Fahadroid said:
Thanks for your response !
let me tell you detail,
i m using Resurrection remix ROm on moto x play with below apps,
root
xposed
afwall plus
droid wall
LightningWall (xposed mod to restrict data)
Restrict background data - enabled in settings
but all is fail as android os & other system apps using data as leak !
researched a lot & couldnt find solution !!
@optimumpro bro can you help me on this issue , Please !!
Click to expand...
Click to collapse
Are you sure they keep using data, or have they only used it once? After you flash new rom and boot it for the first time it will start with data enabled and use some data before you even have a chance to install and set up any firewall, but once it happens it shouldn't happen anymore if you restrict them with firewall. Check your data counters and see if they keep connecting or not. If not - remember to remove SIM card when you boot a new rom for the first time. Otherwise you'll either have a leak again or if you wanna avoid it, you'll have to mess with your rom's ramdisk prior to its installation, like it's descripted in the link I gave you in my previous post. If you set up your firewalls properly you shouldn't have any data leaks right now.
Fahadroid said:
Thanks for your response !
let me tell you detail,
i m using Resurrection remix ROm on moto x play with below apps,
root
xposed
afwall plus
droid wall
LightningWall (xposed mod to restrict data)
Restrict background data - enabled in settings
but all is fail as android os & other system apps using data as leak !
researched a lot & couldnt find solution !!
@optimumpro bro can you help me on this issue , Please !!
Click to expand...
Click to collapse
First of all, never use more than one firewall, as they will conflict. Use only Afwall. In Afwall go to Settings/Preferences/Binaries and pick builtin iptables. Also, use afwall white list and tick only the apps you want to connect to the internet for both wifi and data. All others will be denied by default...
optimumpro said:
First of all, never use more than one firewall, as they will conflict. Use only Afwall. In Afwall go to Settings/Preferences/Binaries and pick builtin iptables. Also, use afwall white list and tick only the apps you want to connect to the internet for both wifi and data. All others will be denied by default...
Click to expand...
Click to collapse
NO LUCK BRO !
i deleted other firewalls & just using Af wall plus &
I DID SAME BUT STILL f***** ANDROID data is eating my data.
i think rom hasnt cable to restrict it !
minimale_ldz said:
Are you sure they keep using data, or have they only used it once? After you flash new rom and boot it for the first time it will start with data enabled and use some data before you even have a chance to install and set up any firewall, but once it happens it shouldn't happen anymore if you restrict them with firewall. Check your data counters and see if they keep connecting or not. If not - remember to remove SIM card when you boot a new rom for the first time. Otherwise you'll either have a leak again or if you wanna avoid it, you'll have to mess with your rom's ramdisk prior to its installation, like it's descripted in the link I gave you in my previous post. If you set up your firewalls properly you shouldn't have any data leaks right now.
Click to expand...
Click to collapse
Thanks dear
but fact is ANdroid OS is leaking data in all the way !
i have done everything but no luck bro !
Looking at the screenshot, the amount of data is really small. Once you did all the suggested solutions, did the amount increased a lot?
So I'm having this issue where my SM-G950F looses ALL known Networks when Wifi gets toggled.
I installed the update which came on the 21.04 but since I'm rooted I can't recieve OTA Updates anymore
Wlan driver is: Wlan v1.0 Release 1
Is there any fix for this?
Exactly the same issue with root here
I'm also rooted and having the same issue
Still happening .... does noone have a clue how to fix this ?
I've got the very same issue. It's very annoying. Hope someone finds a fix soon.
I'm also on a rooted Samsung S8+.
I think I have the same problem, but only when the WiFi-network has a password. It will remember the networks without password but as soon as I reboot or toggle Wifi it will have forgotten the network and password.
I also noticed the information disappears from the wpa_supplicant.conf-file.
I tried to solve it by:
- Deleting cache and data of google backup transport
- Deleting the DHCP-folder in /data/mics/
- Deleting the network-info in wpa_supplicant.conf
- Setting ro.secure.storage=false to false in BuildProp
- Deleting the ss_data-folder in /efs/
Nothing worked.
I have a Galaxy S8 (SM-G950F), Android 7.0 rooted with Magisk. To make room for Open GApps I had to remove some system-apps.
- Any of you installed Open GApps as well?
- I also noticed I had to enter a bluetooth passkey today. Although I previously connected my phone to my car. Could it be bluetooth is also affected?
Verplrke said:
I think I have the same problem, but only when the WiFi-network has a password. It will remember the networks without password but as soon as I reboot or toggle Wifi it will have forgotten the network and password.
I also noticed the information disappears from the wpa_supplicant.conf-file.
I tried to solve it by:
- Deleting cache and data of google backup transport
- Deleting the DHCP-folder in /data/mics/
- Deleting the network-info in wpa_supplicant.conf
- Setting ro.secure.storage=false to false in BuildProp
- Deleting the ss_data-folder in /efs/
Nothing worked.
I have a Galaxy S8 (SM-G950F), Android 7.0 rooted with Magisk. To make room for Open GApps I had to remove some system-apps.
- Any of you installed Open GApps as well?
- I also noticed I had to enter a bluetooth passkey today. Although I previously connected my phone to my car. Could it be bluetooth is also affected?
Click to expand...
Click to collapse
I've also rooted with Magisk but I haven't removed any apps/installed GApps.
I've noticed the same with Bluetooth, my Zenwatch3 will ask me to confirm the passkey on my phone before pairing.
Did you by any chance enable 'unified hosts adblock' in Magisk? It was the cause of my problems. Disabled that and it worked.
Verplrke said:
Did you by any chance enable 'unified hosts adblock' in Magisk? It was the cause of my problems. Disabled that and it worked.
Click to expand...
Click to collapse
Hmm interesting...
I've enabled "systemless host" in magisk but I'm using AdAway app rather than the "Unified Hosts Adblock" module.
I'll mess about with these and see if it resolves.
Same issue here on 955f, rooted with magisk, dhcp folder and file changed, systemless host off and still no wifi in memory. Has someone performed wipe to see if the issue has been resolved this way? Thanks
Hello
Can someone help me with this please?
I have a Tab A SM-P580, unrooted tablet on android 8.1
I have used this to login to many wifi networks, and I need to retrieve those wifi passwords, to use on other devices.
I have tried the adb method, but it gives me error file not found(wpa_supplicant.conf) or permission denied(/data/misc/wifi).
Is there any other way to retrieve those passwords?
All the apps I checked are for rooted devices.
thanks
I have managed to Flash the LineageOS official ROM to my Dynalink TV box
I thought how it might be interesting to turn this into a small Android PC of sorts running standard phone / tablet Android
with a mouse and a keyboard over USB. (although OTG doesn't appear to work on the Official Lineage ROM)
I'd guess the difference is mostly a different Launcher.
Would it be something that could be done via ROOT using Magisk?
Or would it require modifying the Rom?
Thanks for any insight!
I've tried installing the LineageOS Trebuchet launcher and it works but you don't get your normal settings app etc. I'm pretty sure it is going to be a bit more involved than this.
Tried installing standard settings app from ADB and get error about [INSTALL_FAILED_CONFLICTING_PROVIDER Scanning Failed.: Can't install because provider name com.android.settings.files (in package com.android.settings) is already used by com.android.tv.settings
Tried uninstalling com.android.tv.settings with root ADB but still can't install normal settings app.
Not sure if this road is feasible or need to look at installing a different rom.