[Q] Re-block Ads? - Epic 4G Q&A, Help & Troubleshooting

I'm on SRF 1.2 and installed SSHDroid. I accidently allowed it to remove my Ad block stuff, so now a bunch of other apps are showing ads. How does ad blocking work on SRF, and how can I reenable it?

dzl said:
I'm on SRF 1.2 and installed SSHDroid. I accidently allowed it to remove my Ad block stuff, so now a bunch of other apps are showing ads. How does ad blocking work on SRF, and how can I reenable it?
Click to expand...
Click to collapse
Try reflashing the ROM or just download AdFree from the market.

Or, get a firewall and if possible block the ad-utilizing apps from the web. I do it with angry birds, no ads.
sent from my miui-ified epic

I'd rather not reflash the rom just to get ad blocking back, and I'd rather not install an app just to block ads if it didn't need an app to begin with.
What I'm really asking is, how does SRF block ads, or what sshdroid did to remove that block.

Srf and adblock do the same thing...in fact you can run ad block, block ads, and uninstall ad block
sent from my miui-ified epic

OK so I'll answer this myself.
The AdFree app from the market just applies a new /system/etc/hosts file. Download this file from here http://winhelp2002.mvps.org/hosts.txt
run dos2unix on the file to remove the annoying line breaks from windows (I have a linux desktop, so the command is built in). Then mount the /system partition as r/w (this app is great for this - https://market.android.com/details?id=com.beansoft.mount_system&feature=search_result). Then push the file to /system/etc like this
./adb push hosts /system/etc/
That should be it.

dzl said:
OK so I'll answer this myself.
The AdFree app from the market just applies a new /system/etc/hosts file. Download this file from here http://winhelp2002.mvps.org/hosts.txt
run dos2unix on the file to remove the annoying line breaks from windows (I have a linux desktop, so the command is built in). Then mount the /system partition as r/w (this app is great for this - https://market.android.com/details?id=com.beansoft.mount_system&feature=search_result). Then push the file to /system/etc like this
./adb push hosts /system/etc/
That should be it.
Click to expand...
Click to collapse
If you wanted that explanation, you should've named the title "command line only way to block ads" or similar. Installing, running, and uninstalling ad block should be enough for most people though.
sent from my miui-ified epic

Related

[SOLVED] here is copy of an adfree hosts file, and where to put it

i tried to get adfree to work using the supersonic rooted ROM, and managed to allow it root access, but it barfed every other time i try to run it, and when it doesn't barf, it forces a system reboot.
after doing some searching, i found a solution. at least for those of us with rooted evos. not sure if you other folks could push it or not, since it writes to /system
okay, for anyone that also hates ads, i found this thread that has a hosts file.
i did have a copy of that file. but i updated in the reply below (thanks phiqtion for the original!)
the way i got it to work was DL the hosts file, unzipped it, put it in my sdk/tools folder, then
adb reboot recovery
*i ran maejrep/flipz/pauls recovery bat file*
adb shell
# mount /dev/block/mtdblock4 /system
# exit
adb push hosts /system/etc
adb reboot
and voila! no more ads
of course, if anyone has a functioning copy of adfree and a more up to date hosts file, please post!
*note - i am running toastcfm's rooted pc36img ROM now, because the supersonic kept throwing up. but, this probably will not work if you are not rooted.
updated hosts file HERE
thanks mediocrehippie!
Here's one for you:
When I use an ad free hosts file on my EVO and I connect to the internet on my PC via the EVO and Android WiFi tether, it blocks ads on my PC browser as well!
Sweet!
you can put it in your computer and will block them even if you dont connect through your evo.
here is a copy of the latest hosts file from 7/31
-deck
Hmm. I've been doing it with root explorer. Copy the hosts file to /system/etc and over write existing file, then reboot. I think some off the new progs are pushing ads to us in other ways that the hosts file doesn't come into play with.
Sent from my PC36100 using XDA App
this needs root, no?
herbthehammer said:
Hmm. I've been doing it with root explorer. Copy the hosts file to /system/etc and over write existing file, then reboot. I think some off the new progs are pushing ads to us in other ways that the hosts file doesn't come into play with.
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
when i try to do this it says there is not enough available memory. any thoughts?
I just used the hosts file from:
someonewhocares.org/hosts/​
He updates is very regularly, I haven't seen an add get by yet.
So, its has been awhile since the last update, here's the latest updated hosts file I just work on today...
timothydonohue said:
updated hosts file HERE
thanks mediocrehippie!
Click to expand...
Click to collapse
Is there a link to an updated and maintained hosts file?
m4f1050 said:
Is there a link to an updated and maintained hosts file?
Click to expand...
Click to collapse
Bump for info?...
Anybody knoe of an updated hosts file
Does adfree work now or do I have it installed for nothing? I used root explorer to replace the hosts file.
pittnuma said:
Anybody knoe of an updated hosts file
Does adfree work now or do I have it installed for nothing? I used root explorer to replace the hosts file.
Click to expand...
Click to collapse
Ad-free just installs the hosts file, so if you're doing it manually then the app is pointless. Gimme a sec & I'll upload an updated hosts for you.
Edit: here you go. This is from the app AdAway, it's better than Adfree imo.
http://db.tt/DKzwDtXl
Many thanks, appreciated.
if i'd like to add adfree hosts sources, which urls i need to use?
thanks, great app!

[Q] frozen rom blocking sites?

i installed syndicate frozen and now some of the websites i used before cannot open it just says this webpage not available. but it was working on other roms and i know the websites are working correctly(checked on comp. and they work) is there a setting i am missing or something. it will open most websites but there are a few adult sites that will not work on at all?
Probably due to the ad blocking in the hosts file, either:
Adb pull it to your pc and edit out the sites you want to use, to preserve some ad blocking.. then adb push it back
Make sure and chmod 644, chown root, chgrp root
Delete and let android create a new one, no adblocking
Download ad-free from the market and choose the revert option, no ad blocking..
The file is located at /system/etc/hosts
Sent from my SPH-D700 using XDA App
that did it thank you i downloaded adfree from the market worked great. now i can go back to living up to my user name,lol
I also recommend any browser besides the stock one .... it sucks at "Browsing"

unable to delete persistent file - Syntax error: "(" unexpected

hi, pls help. any advise thks.
any ideas how to get rid (delete) pre-load app file name EzLinkAndroid_v1.0_(2).apk.
it give this syntax error: "(" unexpected when i try to manual remove it (in system/app folder).
i use "root uninstall" app to removed most of pre-load apps tat i dun need.
left this persistent app tat cant be delete.
manually try to delete under "su", cant delete.
cant change filename, cant chmod, came out with syntax error: "(" unexpected.
stock GB 2.3.6, kernel 2.6.35.7 dxlm3.
LOL SBS doesn't want you to remove its stuff. Anyway, check if you mounted R/W. Try other root uninstaller like ES File Explorer. Try Terminal Emulator.
iDelta said:
LOL SBS doesn't want you to remove its stuff. Anyway, check if you mounted R/W. Try other root uninstaller like ES File Explorer. Try Terminal Emulator.
Click to expand...
Click to collapse
i tried with several root uninstaller apps, manually terminal emulator too.
now try to access phone root with pc/android commander but not able to get root with the program need to hard root the phone with boot.img hack.
my phone is already rooted, i removed several pre-loaded apps, only one left.
saintsoh said:
i tried with several root uninstaller apps, manually terminal emulator too.
now try to access phone root with pc/android commander but not able to get root with the program need to hard root the phone with boot.img hack.
my phone is already rooted, i removed several pre-loaded apps, only one left.
Click to expand...
Click to collapse
Seems like your filesystem got corrupted somehow. Probably formating the system partition and restoring a backup or reflashing the rom will be the only solution that will work.
thks anyway.
i suspect its the font of the file name tat causes the syntax error.
happen b4 on other files which i was working on, those i can correct by renaming it.
in this case, i just leave it be. since i had ridden most of unwanted apps my phone.
my phone is running faultlessly.
thks guys.

Marshmallow not reading /system/etc/hosts?

This is a weird one. I can't seem to get my T-Mobile One M8 running Marshmallow to use the entries in the hosts file.
First I rooted my phone and installed Adaway. Went through and made the sym link from /system/etc/hosts to /data/data/hosts, Adaway succeeded - but no ads were blocked. I opened both the raw file and the symlink in Root Explorer, and they looked fine, but pinging any of the entries went to the real server instead of 127.0.0.1.
So I tried more basic and put the stock /system/etc/hosts file back in place, then copied over StevenBlack's host file over it. Same result. It's like Marshmallow doesn't even give a crap that there's a hosts file there and refuses to load anything from it. I even verified it was saved in UNIX format via Notepad++.
For all the steps, I only made changes in TWRP after mounting the system rw, and the changes in the hosts files stayed after a reboot.
Any ideas? I'm really stumped.
Did you ever figure this out? I have the same issue...
Hi!
I've had the same problem on my M8s. Checked multiple times the permissions, file formatting and nothing worked. Then I've added a line
Code:
net.tethering.noprovisioning=true
to the /system/build.prop file and now hosts file is working as it should
Since I can't post links in my posts due to xda policy PM me if you need link to a full guide how to do this.
Spend long time to figure out why ad blocking doesn't work on mine HTC one. Thanks !

Question How to actually delete gmail app from system?

I'm looking for a way to actually delete/uninstall gmail from system.
I know you can do a command in adb to uninstall, but that just disables the app and leaves the files in the partition.
Looking for a way to actually delete the file, and when i install it through Play Store, it just installs like a regular app, not as system app.
I've been looking through files with MiX explorer. But I'm scared if i delete the file i find, that it bricks my phone after reboot.
it shouldn't
root and use system app remover
I'm rooted and use debloater module in magisk to delete system apps. I like that I can save the list of apps I want to delete and just flash the module after each update to repeat the process.
Deleting an app folder shouldn't break anything, but if you ever have concerns just rename the folder instead of deleting. That way the system can't find it, but it's still there if you need it back.
Make sure usb debugging is active on phone in developer options, download fastboot tools connect phone to computer and select always allow usb debugging from this computer on text pop up on phone.
Open cmd line in fastboot tools dir and type
adb shell pm uninstall --user 0 com.google.android.gm
Or try this
[TOOL] ADB AppControl 1.8.0 🚀 Ultimate App Manager & Debloat Tool + Tweaks
ADB AppControl 🚀 Root is not required. Works with any Android device. Can do almost everything you dreamed about with applications. ADB AppControl - the desktop program, that will allow you to easily manage applications on your android device...
forum.xda-developers.com
toolhas4degrees said:
Make sure usb debugging is active on phone in developer options, download fastboot tools connect phone to computer and select always allow usb debugging from this computer on text pop up on phone.
Open cmd line in fastboot tools dir and type
adb shell pm uninstall --user 0 com.google.android.gm
Or try this
[TOOL] ADB AppControl 1.8.0 🚀 Ultimate App Manager & Debloat Tool + Tweaks
ADB AppControl 🚀 Root is not required. Works with any Android device. Can do almost everything you dreamed about with applications. ADB AppControl - the desktop program, that will allow you to easily manage applications on your android device...
forum.xda-developers.com
Click to expand...
Click to collapse
This is the command i was talking about. It doesn't delete the apk. After i run this and reinstall the app from play store, it is back into system app.
Why are you reinstalling it if you want to delete it?
Maybe look at systemize module to move it from system to data if that's what you are trying to do
FizzyAps said:
it shouldn't
root and use system app remover
Click to expand...
Click to collapse
That doesn't work.
It is only able to delete the updates. System apk remains.
According to the app it is located here:
/product/app/Gmail2/Gmail2.apk
I dunno if i can delete it, since this phone uses A/B partitions. Usually system apps are located in a different folder.
toolhas4degrees said:
Why are you reinstalling it if you want to delete it?
Maybe look at systemize module to move it from system to data if that's what you are trying to do
Click to expand...
Click to collapse
I'm trying to delete it to see if it fixes the notifications.
This phone is hunted with push notifications not receiving at all for this app.
Hoping that this would fix it.
bokkoman said:
I'm trying to delete it to see if it fixes the notifications.
This phone is hunted with push notifications not receiving at all for this app.
Hoping that this would fix it.
Click to expand...
Click to collapse
Try a different email app hasn't been solved yet, lot of false claims around here. There is a thread on it.
toolhas4degrees said:
Try a different email app hasn't been solved yet, lot of false claims around here. There is a thread on it.
Click to expand...
Click to collapse
I've read all those. No one has tried this yet.
Hence I'm trying to delete it
bokkoman said:
I'm looking for a way to actually delete/uninstall gmail from system.
I know you can do a command in adb to uninstall, but that just disables the app and leaves the files in the partition.
Looking for a way to actually delete the file, and when i install it through Play Store, it just installs like a regular app, not as system app.
I've been looking through files with MiX explorer. But I'm scared if i delete the file i find, that it bricks my phone after reboot.
Click to expand...
Click to collapse
I use alpha backup pro to delete gmail (and many other apps), which will permanently remove a system app (need root), however, if you want to do it the safe way, use de-bloater (playstore), which removes apps via magisk, i.e systemless, so you can revert if you f something up. cheers
Titanium Backup (root) can delete, freeze, and of course, backup system and user apps. Make a backup first, and look over the list of system apps, there are a lot there which are google-related. Freezing will do the same as pm disable....... Uninstall will remove it completely. Whether your device is A/B or not will not matter.
The nice thing about TB is you can see the actual (full) filenames of the packages, and any uninstall/freezes are easily reversible. There are probably other (google) notification service-type apps which are giving you the undesired notifications,
Good luck!
All these apps can't delete the actual apk in the /products folder.
I guess I'll have to do it manually.
bokkoman said:
All these apps can't delete the actual apk in the /products folder.
I guess I'll have to do it manually.
Click to expand...
Click to collapse
Not sure what you mean. Several of these apps do exactly that.
De-bloater Pro (from playstore) deletes the apk from /product (or /vendor, etc.) and moves it to its own folder in /data/adb/modules so that you can restore it later if you so choose (or if you accidentally delete the wrong thing and bootloop).
Debloater (magisk module for terminal) does the same thing. I use it to fully remove several system apps (Netflix, YouTube, YTMusic, etc.) in order to install non-system versions.
terlynn4 said:
Not sure what you mean. Several of these apps do exactly that.
De-bloater Pro (from playstore) deletes the apk from /product (or /vendor, etc.) and moves it to its own folder in /data/adb/modules so that you can restore it later if you so choose (or if you accidentally delete the wrong thing and bootloop).
Debloater (magisk module for terminal) does the same thing. I use it to fully remove several system apps (Netflix, YouTube, YTMusic, etc.) in order to install non-system versions.
Click to expand...
Click to collapse
Well, the apps i tried all failed with an error it could not delete it.
I didn't try that one you mentioned, because you have to pay for it.
So i went and tried the debloater module, and you are right. It did delete it. Thank you!
Let's see if this makes any difference.
So far, so good.
I have been receiving notifications from Gmail since i deleted the system app and installed it from Play Store as a regular app
Let's see if this continues working.

Categories

Resources