Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

How to get no adds (hosts file) without rooting a device (samsung only)

$
0
0
I thought of this a few days ago, the concept is pretty easy. and doesn't require root. Of course I recommend everyone to root but this is just for the die-hard no root people that want no adds, this is no absolute beginner tutorial. you must have some knowledge about the kitchen.

Requirements:
- Linux or Cygwin
- Dsixda's Android Kitchen
- Windows
- Odin
- Your stock rom (or boot.img if you have it separately)


1. Install the kitchen on linux/cygwin, go inside the kitchen folder and make a folder called "WORKING_NOADDS" (or so).
2. Place the boot.img from your stock rom inside it
3. now open up ./menu and enter: 0 > 12 > w, this will extract the boot.img
4. now get a hosts file, one that is up to date preferably, place it in the root of the ramdisk
5. open init.rc and add these lines to the bottom:

Code:

service mountster /system/bin/toolbox mount -o remount,rw /system
    class main

service copyster /system/bin/toolbox cp -f hosts /system/etc/hosts
    class main

service modester /system/bin/toolbox chmod 644 /system/etc/hosts
    class main

6. now go back to kitchen and press b to build the boot.img, after this is complete navigate in shell to the working folder and enter:
Code:

tar -c boot.img > noadds.tar
md5sum -t noadds.tar >> noadds.tar
mv noadds.tar noadds.tar.md5

7. Save the file to somewhere where windows can access it. and reboot in windows
8. Open up odin, flash the tar as a one package, and enjoy no adds, without touching root :good:

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>