[GUIDE] Hosts-Based AdBlocking Without Root - Upgrading, Modifying and Unlocking

This approach is useful for certain OS's where you wish to keep root for security reasons, the system is poorly supported, or for, e.g., Copperhead OS where root won't install properly.
Note: this guide presumes an unlocked boot loader and/or TWRP recovery.
You shall need a hosts file from another android device on which you are currently running AdAway on. Alternately, you could acquire a hosts file from the various sites which offer hosts:
https://filterlists.com/ This has to be the most comprehensive source of URL, spam, AdExcrement, tracking, and malware filter lists known.
...or...
https://github.com/AdAway/AdAway/wiki/HostsSources
To get started, you could go with this:
http://winhelp2002.mvps.org/hosts.txt
Or use the linked hosts file amalgamated from 7 or 8 different blocklist sources. It features almost 70,000 blocked addresses, so that's not a bad haul.
hosts 2.3 MB
https://mega.nz/#!pIsggIpD!9GlmO51-9dndTz9bJIWX8SJ-1wosukIOIU6VJ-l_kuU
Note that going overboard with block lists will start to break webpages and break legitimate webpages. Experiment carefully.
Either way you should harvest your hosts file from /system/etc/ on the devices you have run AdAway on. You will need a root-level file manager (CM File Manager, ES File Explorer, or similar) to get at it.
The exact file is at: /system/etc/hosts. Notice it does not have any file extension. Keep it that way.
0. Copy this blocklist hosts file to the base directory of you SD card, then plug into your computer and copy it over to the PC.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. Next, take your target device and copy the blocklist hosts file over to the SD card on that device.
2. Restart target device into TWRP recovery.
3. Go to the Mount function and mount the System partition as read/write.
4. Go to the File Manager Option.
5. Navigate to the SD card and select the modified hosts file.
6. Copy this hosts file to the /system/etc/ directory, overwriting the original.
7. Restart to system and enjoy.
Any thoughts or questions?

Reserved!

this method does not work on moto g5 cedric

Related

[CWM-APP][1.00] AROMA Filemanager :: 120512-002 :: Open Source Soon [amarullz]

[MODS PLZ MOVE TO PROPER THREAD IF YOU HAVE TOO]
With PERMISSION from AMARULLZ to post in our thread
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The World's First ANDROID Recovery Based Filemanager​
Android Recovery was powerfull system. But it was pain when it come to managing your filesystem
But now AROMA Filemanager is available for everyone to do this common tasks.
Have you ever rebooted your device into recovery, only to find that you forgot to do some basic file management before embarking on your flashing journey? Perhaps instead you shut down your device, but would like to delete or copy some files without having to fully boot your device into the Android OS. Whatever the case, there are dozens of use-cases for being able to manage your files from recovery, and now it is possible.
XDA Recognized Developer amarullz has created AROMA File Manager, which lets users on any standard recovery manage their files in full GUI glory. You may assume that installing a recovery-based file manager would be quite complicated. However, it is quite simple. To run AROMA File Manager, all you have to do is “install” the update.zip, as you would with any other update.zip. Rather than physically installing onto your device, AROMA will instead be launched and allow you to cater to your file management needs. According to the developer:
How To Use?​
Copy the zip into your sdcard, then reboot your device into recovery mode. Choose install from sdcard, then select the AROMA Filemanager ZIP. The file manager will starting, and you are ready to managing your filesystem (copy, cut, delete, make new folder, etc) while you are in recovery.
---------------------A-R-O-M-A---F-i-l-e-m-a-n-a-g-e-r-----------------------​
DOWNLOAD:
ORIGINAL THREAD FOR DOWNLOAD​
I saw this yesterday and tried it. Pretty freaking awesome stuff.
I'll give it a go, I'm always flashing tests.
Just wondering, can you moun the sd card to the computer?
This is amazing.
Not bad at all. I give this app a 9/10

[TUTORIAL] How To Extract Files From a TAR.MD5 Stock ROM (SPH-L900)

I recently did this for the E4GT and have been asked to do it here as well.
I've received a TON of PM's and emails asking how to do this and I've decided to do a write-up for everyone. Now to start off, this does not automatically make you a Super Duper Developer, this does not show you how to make your own TAR ROMs, nor does it show you how to make your own Odin One-Clicks. What it does do is show you how to pull files from those stock leaked/official ROMs so that you can proceed to make yourself into a Super Duper Developer!
In essence if the Developer knows what they are doing they could use this method to extract all the files from the build and could then add them to a ZIP and have a stock odexed ROM within minutes and do it all through Windows! Depending on time I may or may not do a tutorial on that as well...
So let's begin!
We've all seen those pesky TAR.MD5 packages that we can flash through Odin. How often have you wanted to look inside them and see what is inside before flashing? There are several ways to do it and the most common answer requires Linux and Dsixda's Kitchen utility. This tutorial gives you the ability to do that through Windows and without having to extract the full ROM. These instructions are specific to the Samsung Galaxy S3 (all variants) but can be used on most Samsung Galaxy phones.
Each TAR.MD5 release contains multiple files. Each of these files corresponds to a specific partition on your device. These files are formatted to be mounted by your device but not by a computer. We will be converting them from a .img.ext4 partition type to an ext4.img type partition so we can mount them and read them through Windows. For this tutorial we will be opening up the system.img.ext4 (the system files partition).
Before you dive in there are a few things you'll need.
- A PC running Windows.
- A stock TAR.MD5 release. Several are available at www.rwilco12.com.
- DiskInternals Linux Reader (must be installed on the Windows PC). You can download DiskInternals Linux Reader here.
- SGS2toEXT4 Utility available here. *Be sure to extract the JAR file from the ZIP archive.
- 7-Zip available here.
For the rest of the tutorial please visit my site: www.rwilco12.com
Enjoy!
Reserved.
Do you sleep?! Another great RW production!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
fryingpan0613 said:
Do you sleep?! Another great RW production!
Click to expand...
Click to collapse
Sleep is overrated!
Great Work Buddy!!!!
This will make things easier for Devs!!!
Sent from my SPH-L900 using JellyBombed Tapatalk 2

[Bootscreen] bios boot screen

I came across a bios boot screen on a dutch forum. I liked it very much but couldn't find a good one for the i9300. Now I managed to do that, I ported it to the i9000. So here it is!
BIOS BOOT ANIMATION:
EXAMPLE:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Install instructions with Root Explorer:
Root Explorer: Play Store Link
1. Download the boot animation zip file to your phone.
2. Open the Root Explorer App
3. Locate the bootanimation.zip in your downloads folder
4. Copy zip file to System/Media Folder
Long Press on bootanimation.zip
Select Copy
Select Parent Folder
Select Parent Folder again
Select System
Select Media
Press “Mount R/W” (If it says “Mount R/O” Leave alone)
5. Select Paste
6. Set permissions to rw-r--r--
7. Change owner and group to "0 - root"
8. Reboot
Download link:
http://www.mediafire.com/?1eseknfrbgpf333
I will try to make a flashable zip when I have time again.
Have you managed to make a zip file to flash from recovery..??
Sent from my blazing SGS I9000 using Tapatalk 2
Roots said:
Have you managed to make a zip file to flash from recovery..??
Sent from my blazing SGS I9000 using Tapatalk 2
Click to expand...
Click to collapse
Make your choice lol:
http://forum.xda-developers.com/sitesearch.php?q=energy star bios bootanimation
That bootanim exists everywhere, maybe the most diffused ever.
I wanted to make a cwm zip for you but after having a look in the bootanimation.zip from here you can be sure it won't work (someone tested it?Not even sure your device will boot,pretty rare to be that buggy for a bootanim..)
I found one Samsung Galaxy S tagged, only bad side is that it's maybe a little too fast (30fps) we could reduce that later if you want.
For now if you want to test here's a cwm zip that will push it to data/local (I prefer it like this, that way you'll keep your bootanim even if you upgrade your rom unless you wipe data).
http://db.tt/XljPVikX
Thanks! remind me of my old PC
is it good for i9001 too? it's my first boot animation...

Enable init.d support on any rom [Stock] without any app

One thing that i like very much about android is init.d support which enable user to run script during the device boot up so by putting Boost script in the init.d folder which is present in /system/etc/init.d can significantly improve device performance..
So without say much here is the method :
Requirement:
1 Rooted Phone obviously
2 File Explorer like Esfile Explorer with root access option enable
3 BusyBox Latest 1.22.1
4 A Good Luck
Process:
1 Open ESFiles Explorer and navigate to /system/etc and look for init.d folder if there is no folder name [init.d] then create one by click on +new button on ESFiles Explorer, or if init.d folder present than Goto step 2
2 Navigate to /system/etc folder and look for file name "install-recovery.sh" if present then Goto step 3
3 In /system/etc folder Create one file name "init.post_boot.sh"
4 Now open both "install-recovery.sh" & "init.post_boot.sh" one by one and write down following command at the beginning of the both file
Command:
#!system/bin/sh
run-parts /system/etc/init.d/*
{Above Lines are case sensitive}
5) Download the test.init.d.zip file from the below attachment link
6) put the 0test file in /system/etc/init.d folder and set permission rwx-rwx-rwx
7) Reboot device :fingers-crossed:
NOTE after Reboot open ESFiles Explorer and navigate to /data and there you will see Test.log file meaning init.d support working perfectly
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
HIT Thanks if you like the post
Nice Turotial. But there is already an app called "Universal Init.d Support" that does all the job easily with just one click.
Here is the apk.
Credit for the app goes to its respective owner.
Yeah thats true But being a geek I like to do things by myself also uni-init v does the same thing as what I said it. uni-init enable works the same way and did the same tweak to enable init.d support
nice information,,thanks for a great script

[J737P] J7 Refine How to modify APN [ROOT]

First, before you start, this is for root users.
*Remember to follow the steps correctly
1. You will need those apps:
1 CSC Features expert
2 Mix Explorer
3 link2sd
*all the app will need root permissions
2. Open the Csc app And find: Opmenu
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And Rename the SPR To GLOBAL
You will see that the changes will not apply when you save it, do not worry, all you need is the file feature.xml
3. Open Mix Explorer go to: / System / csc There is the file features.xml Open it with the tx editor from the MIX and verify that the changes were applied correctly, find this: ConfigOpMenuStructur That should look like
If it is in GLOBAL, do not modify it, but if it still says SPR, change it to GLOBAL.
* Now we will move that file to this address: / odm / omc / BST / conf * Being there we will find several files
* Rename the file [cscfeature.xml] To [Originalcscfeature.xml] and now Rename the file [features.xml] as [cscfeature.xml] * It will have to look like this.
4. Open Link2sd and find: Sprint OMADM And freeze. Since this is the app to refresh the APN every so often.
*Now go back to the initial screen of the app
and do a Quick Reboot * After doing the Quick Reboot, now we are ready to modify our APN
5. Go to Settings,connections, Mobile network, Access points names
open it and modify what you need to modify and do not forget to save the changes.
6. go back to the mix explorer app and let's rename the previous files to their original state
[cscfeature.xml] To [fakecscfeature.xml] and now Rename the file [Originalcscfeature.xml] as [cscfeature.xml] * It will have to look like this.
AND NOW DO A SIMPLE RESTAR AND THAT'S ALL
Where uable to do anything else with the apn ie unlock..?

Categories

Resources