Related
now that we have an easy way to push update.zip files I was wondering if there was any way to push the host file that adfree android downloads to the sdcard. I know that it doesn't have write access to the system partition when booted but in recovery we do right?
So it should be as simple as creating an update.zip that overwrites the old host right?
I'm going to try to get this working
EDIT: Here's how to get this working
1. Search for Adfree Android on the market
2. Install and run
3. allow it to download and install new hosts file, it will copy it to your sdcard and try to replace /system/etc/hosts but fail (it should reboot the phone shortly)
4. Power off the phone and hold Volume Down and power.
5. Use volume down to select recovery
6. In clockwork recovery volume down to "partitions menu" and hit the track pad to select
7. Select "mount /system" and "mount /sdcard" "mount /data"
8. Plug in your usb cord and open a command line on your pc
9. enter adb shell and type the following commands
cp /sdcard/hosts /data/data/hosts
rm /system/etc/hosts
ln -s /data/data/hosts /system/etc/hosts
10. Reboot your phone and enjoy adfree android.
Thanks to all for help in getting this running.
Just adb push your modified host file to /system/etc/hosts. No need for update.zip
ive already done this doesnt work still have tons of adds
word, I figured it out
junjlo said:
ive already done this doesnt work still have tons of adds
Click to expand...
Click to collapse
what I did was install adfree android, wait for it download and error (the phone will reboot itself) put it into recovery and run the following command from adb shell
cp /sdcard/hosts /system/etc
All my ads are gone
You mind sharing the host file? I'd like to do the same. Now that I can connect as root with 'adb shell' then 'su' after the new Unrevoked^2 root. I'd like to start tweaking with things.
supagene said:
You mind sharing the host file? I'd like to do the same. Now that I can connect as root with 'adb shell' then 'su' after the new Unrevoked^2 root. I'd like to start tweaking with things.
Click to expand...
Click to collapse
just download and install adfree android, it copies the host file to your sdcard.
n0-0ne said:
what I did was install adfree android, wait for it download and error (the phone will reboot itself) put it into recovery and run the following command from adb shell
cp /sdcard/hosts /system/etc
All my ads are gone
Click to expand...
Click to collapse
i may have an older hosts file than but i just used adb push hosts /system/ect/hosts
tryed cp but get a box with busybox info
n0-0ne said:
just download and install adfree android, it copies the host file to your sdcard.
Click to expand...
Click to collapse
I intalled the app and when I hit download and intall I get java/io.FileNotFoundException:/sdcard/hosts
My guess is that it's not downloading.
Tried it on both WiFi and 3G
supagene said:
I intalled the app and when I hit download and intall I get java/io.FileNotFoundException:/sdcard/hosts
My guess is that it's not downloading.
Tried it on both WiFi and 3G
Click to expand...
Click to collapse
ok well here's what was downloaded to my card
https://www.yousendit.com/transfer.php?action=batch_download&batch_id=K0JRUGhYT2JQb0t4dnc9PQ
Thats good for 100 downloads.
Found this. forum.xda-developers.com/showthread.php?t=664532 do you guys know if the zip file with hosts good enough since I can't seem to get the AdFree app to work correctly? Of is there an apk somewhere for this app and I shouldn't have gotten the one in the app store?
host installed still doesnt block ever ad using tikl and fring to test
supagene said:
Found this. forum.xda-developers.com/showthread.php?t=664532 do you guys know if the zip file with hosts good enough since I can't seem to get the AdFree app to work correctly? Of is there an apk somewhere for this app and I shouldn't have gotten the one in the app store?
Click to expand...
Click to collapse
I used the one from the market, it does error but it should copy the hosts file to your SD card (and reboot your phone shortly thereafter).
What now?
Great...
cat /sdcard/hosts > /system/etc/hosts
write: No space left on device
junjlo said:
host installed still doesnt block ever ad using tikl and fring to test
Click to expand...
Click to collapse
I've tested both apps and no ads in either.
The one thing I did different that I didn't post was in recovery under partitions I mounted both system and sdcard. Try that and copy the file over.
Thanks!!
So I downloaded the hosts file, booted in recovery, mounted both /system and /sdcard and then 'adb shell' and 'su' and then 'cd /system/etc' and then 'cat /sdcard/hosts > hosts' and it seemed to have worked.
I go to fring and it displays 'Web page not available', not what I'd like to see but it's better than those retarded ads that I keep clicking on by accident.
can someone post step by step how to get adfree working I installed the one from the market and let it error and reboot then i entered into clockworkmod recovery now what? do i need to mount system and sd how do i enter into adb shell and change host file. thanks in advance for any help.
supagene said:
So I downloaded the hosts file, booted in recovery, mounted both /system and /sdcard and then 'adb shell' and 'su' and then 'cd /system/etc' and then 'cat /sdcard/hosts > hosts' and it seemed to have worked.
I go to fring and it displays 'Web page not available', not what I'd like to see but it's better than those retarded ads that I keep clicking on by accident.
Click to expand...
Click to collapse
Glad it worked out, not sure why your getting page not available, I just get a blank box at the top of my contacts list, other apps show the same as well, a blank box where the ad used to be.
j1000 said:
can someone post step by step how to get adfree working I installed the one from the market and let it error and reboot then i entered into clockworkmod recovery now what? do i need to mount system and sd how do i enter into adb shell and change host file. thanks in advance for any help.
Click to expand...
Click to collapse
Edited OP.
thanks for the quick response everything is good until step 8. I know i sound stupid but i learning fast you say enter adb shell. the way i think you do this is type
1. cd\
2. cd sdk
3. cd tools
4. adb shell
when i do this i get error device not found
can you help from there. thanks
anyone have this please id like to have it ...... and how do i remove the other nav please ( like to save it incase i dont like the HTC NAV )
I don't have the .apk for HTC Navigation, but when/if you do get it, just to to system/app and rename your current nav application (i.e. navigation.apk.old) if you don't want it to show up in your app list, but don't want to uninstall.
http://forum.xda-developers.com/showthread.php?t=700448 At the bottom of post #1 Flip was nice enough to zip all the apks into one zip file. Hope that helps.
Stunna4life888 said:
http://forum.xda-developers.com/showthread.php?t=700448 At the bottom of post #1 Flip was nice enough to zip all the apks into one zip file. Hope that helps.
Click to expand...
Click to collapse
yea i pulled that from the SDcard but it wont install i might have to push it
Sporkman said:
yea i pulled that from the SDcard but it wont install i might have to push it
Click to expand...
Click to collapse
Thats what I had to do, know how do that?
Stunna4life888 said:
Thats what I had to do, know how do that?
Click to expand...
Click to collapse
hmm, could you kindly explain what "pushing" is, and how to do it?
my android pushing and pulling files.
for those of you new to android and adb.
ok here is the real answer
pulled directly from android developer tools.
----------------------------------------------------------------------
Copying Files to or from an Emulator/Device Instance
You can use the adb commands pull and push to copy files to and from an emulator/device instance's data file. Unlike the install command, which only copies an .apk file to a specific location, the pull and push commands let you copy arbitrary directories and files to any location in an emulator/device instance.
To copy a file or directory (recursively) from the emulator or device, use
adb pull <remote> <local>To copy a file or directory (recursively) to the emulator or device, use
adb push <local> <remote>In the commands, <local> and <remote> refer to the paths to the target files/directory on your development machine (local) and on the emulator/device instance (remote).
Here's an example:
adb push foo.txt /sdcard/foo.txt
How to push the file via your sd card
So for an example on pushing a file from a computer to phone make sure you are in recovery mode. And assuming you have the apk somewhere on your sd card. Open command prompt and navigate to your sdk-tools to use adb. THIS EXAMPLE IS STRAIGHT FROM FRESH THATS WHY I SAYS ..../FRESH-REMOVED-APKS/. That is just the location on your sd card so this is where you need to type where the file is. WHATEVERAPP.apk thats what the apk name is. Make sure that it is the same spelling and spacing/no spacing as well. notice the space after .apk as well. Now you are ready simply type the following commands (enter at the end of each line.) Last line is simply where your file is on your sdcard then the file name as it appears in the file on your sd card. Hope this helps!
adb shell mount /sdcard
adb shell mount /system
adb shell
cp /sdcard/fresh-removed-apks/WHATEVERAPP.apk /system/app
EDIT: SORRY EVERYONE - IT SEEMS THAT FOR MOST PEOPLE THE BLOATWARE IS REPLACED UPON REBOOTING THE PHONE. I AM WORKING ON A SOLUTION FOR THIS.
So, I was playing around with the Ace Hack kit, and realized that when you get to step 2, you have temporary root access in the adb shell.
Note: I had to change the USB connection type from 'Charge Only' to 'Disk Drive' for this to work.
DISCAILMER: THIS IS PRETTY EASY, BUT I TAKE NO RESPONSIBILITY IF YOU KILL YOUR PHONE
So, I mounted /system as rw and went to /system/app and removed all the bloatware apk's.
Here are the steps I followed:
Downloaded the ace hack kit found in this thread: http://forum.xda-developers.com/showthread.php?t=952352
Extracted the files and opened the README-WNDOWS file.
I skipped over step 1, because just to get this level of access a gold card is not needed, I went to step 2, and did this:
* Make sure the phone is running and adb debugging is enabled.
* Open a command prompt as administrator and navigate to the location of the extracted ace hack kit
* Run hackerize-ace setup-downgrade
This should give you a # prompt (meaning you have temporary root access)
Next mount /system as rw by typing this at the # prompt:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
once that is done, go to the app folder by tpying:
cd /system/app
do a ls to see what APK's are installed, for the most part you should be able to identify which apks are bloatware. Instead of deleting them, I renamed them just to make sure I wasn't messing anything up by typing this:
mv filename.apk filename.old
you can instantly see the apps removed from the program list.
Once you have rebooted and made sure everything is working ok, and that you have not messed anything up, you can repeat this procedure to delete the .old files, but I just left them, as its not really necessary.
ONE IMPORTANT NOTE: ONCE YOU ARE DONE RENAMING OR DELETING THE APK FILES, DO NOT TYPE EXIT AS INSTRUCTED IN THE README-WINDOWS FILE. INSTEAD, CLOSE THE COMMAND PROMPT WINDOW SO THE BATCH FILE DOES NOT TRY TO CONTINUE TO ROOT THE PHONE
Once you reboot the phone, the temporary root access is gone, and the /system is mounted again as read only.
Hope this helps someone
You should also be able to "Add" apk's in this manner!
Awesome. I'm going to try this.
Brilliant! I hope this works...
I was going to try and use VISIONary when I get mine, but if this is a proven method, then I'll give it a shot.
derekroper said:
* Make sure the phone is running and adb debugging is enabled.
* Open a command prompt as administrator and navigate to the location of the extracted ace hack kit
* Run hackerize-ace setup-downgrade
Click to expand...
Click to collapse
These are the steps I'm not quite sure about. I've never used adb so..Once I open a cmd prompt in windows how exactly do I navigate to the folder, do I have to type something like:
c/documents/apps....
Just want to be sure.
lrs421 said:
These are the steps I'm not quite sure about. I've never used adb so..Once I open a cmd prompt in windows how exactly do I navigate to the folder, do I have to type something like:
c/documents/apps....
Just want to be sure.
Click to expand...
Click to collapse
On your phone, go to Settings -> Applications -> Development and check USB debugging then plug your phone in and set it to charge only.
Find out where you have adb stored at (For me, it's C:\android\tools\adb.exe).
Open a command prompt and issue this command: cd C:\android\tools
Then you can type adb /? and it'll tell you all the available commands you can use. Push is to move files to the phone - pull is to move files to the computer.
lrs421 said:
These are the steps I'm not quite sure about. I've never used adb so..Once I open a cmd prompt in windows how exactly do I navigate to the folder, do I have to type something like:
c/documents/apps....
Just want to be sure.
Click to expand...
Click to collapse
Ok, so here:
* Make sure the phone is running and adb debugging is enabled.
(Do this on the phone by going to Settings -> Applications -> Development -> Check USB Debugging)
* Open a command prompt as administrator and navigate to the location of the extracted ace hack kit
(Depending on your OS, this is a little different, but in windows 7, click Start -> All Programs -> Accessories -> Right click on command Prompt and click Run as Administrator, then change directory to the location that you extracted the files to, this is different depending on where you extracted them, but if you extracted them in c:\files then type cd \files)
* Run hackerize-ace setup-downgrade
(Do this by typing hackerize-ace setup-downgrade)
JaysFreaky said:
On your phone, go to Settings -> Applications -> Development and check USB debugging then plug your phone in and set it to charge only.
Find out where you have adb stored at (For me, it's C:\android\tools\adb.exe).
Open a command prompt and issue this command: cd C:\android\tools
Then you can type adb /? and it'll tell you all the available commands you can use. Push is to move files to the phone - pull is to move files to the computer.
Click to expand...
Click to collapse
Following this method you dont really need to know adb commands, all the adb commands are in the hackerize batch file....
derekroper said:
Ok, so here:
* Make sure the phone is running and adb debugging is enabled.
(Do this on the phone by going to Settings -> Applications -> Development -> Check USB Debugging)
* Open a command prompt as administrator and navigate to the location of the extracted ace hack kit
(Depending on your OS, this is a little different, but in windows 7, click Start -> All Programs -> Accessories -> Right click on command Prompt and click Run as Administrator, then change directory to the location that you extracted the files to, this is different depending on where you extracted them, but if you extracted them in c:\files then type cd \files)
* Run hackerize-ace setup-downgrade
(Do this by typing hackerize-ace setup-downgrade)
Click to expand...
Click to collapse
Thanks guys, I'm going to try this in a few minutes.
Very nice write up, and I assume you still have sound at the end of this, unlike the permanent root?
Chaptop said:
Very nice write up, and I assume you still have sound at the end of this, unlike the permanent root?
Click to expand...
Click to collapse
Yep because I am not uploading a rom, I am only gaining temporary root, this makes no perm changes to your phone except for the APK files you rename or delete.
derekroper said:
Yep because I am not uploading a rom, I am only gaining temporary root, this makes no perm changes to your phone except for the APK files you rename or delete.
Click to expand...
Click to collapse
Awesome, thanks a lot man.
What am I doing wrong....
lrs421 said:
What am I doing wrong....
Click to expand...
Click to collapse
Hmm, dont know, type dir and take a screenshot so I can see the contents of that directory
im at the same position. did everything the same and ended up there also.
lrs421 said:
What am I doing wrong....
Click to expand...
Click to collapse
davwman said:
im at the same position. did everything the same and ended up there also.
Click to expand...
Click to collapse
Ah, I think you guys only downloaded the docs from the Hack kit page, you need to download the actual hack kit from here:
http://forum.xda-developers.com/showthread.php?t=952352
The link says 'Ace Hack Kit V2 Updated hack kit'
derekroper said:
Ah, I think you guys only downloaded the docs from the Hack kit page, you need to download the actual hack kit from here:
http://forum.xda-developers.com/showthread.php?t=952352
The link says 'Ace Hack Kit V2 Updated hack kit'
Click to expand...
Click to collapse
Yup, just figured it out, at the # sign now...fingers crossed.
Ok, so I see the listed apps how the hell do I erase them now
derekroper said:
Ah, I think you guys only downloaded the docs from the Hack kit page, you need to download the actual hack kit from here:
http://forum.xda-developers.com/showthread.php?t=952352
The link says 'Ace Hack Kit V2 Updated hack kit'
Click to expand...
Click to collapse
I downloaded the right thing what am I missing?
Okay, so i trying to push a file to my SGS4G... I thought i got it to work but when i went to find the file it was just some random file with no extension.
e.g. I typed (adb push FFFFFF.FFF /sdcard/download) it says the file was copied but when i go to my phone ffffff.fff is not there, instead a file called /sdcard/download
I followed these instructions....
A:android-sdk-windows installed
B: (on your phone) go to menu>settings>applications>developement and make sure usb debugging is checked.
C: the file you are pushing must be placed in the tools folder of adb so if you are pushing file "build.prop.txt" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices example adb push build.prop.txt /system/bin
6. repeat step 3 for multiple files
7. adb reboot this is how you finish
What am i missing?
i see you are trying to push a file to your download folder on the sd card...
you can just drag and drop for stuff like this.
true true, not sure why i didnt think of that, i do it all the time... But would i use those instructions if i wanted to move a file say a recovery file to the bin directory?
i have never seen the need to use adb for this phone. it is not a nand locked device, so there is no real use for it (im speaking for users, not devs). if you want to push a file, jsut use root explorer or similar. thats all you need.
also, it seems to me like you are trying to get krylons cwm. just flash bali instead. no need for the recovery file or update.zip.
If your phone shuts straight down after pressing the power button and your have no lock screen, read below for solution. Before you do any of this, please note that this was caused by the note radio, aka uclc5, and if u still have it, please remove it! Also causes include a corrupt efs partition. This guide will help to restore key files important to the operation of your phone
There are three methods available. The first and second one are recommended. If you are uncomfortable with adb and command prompt please use method one
UPDATE: This has been confirmed as working on T989!
WARNING!
Method 3 is only to be used if one and two fail, or if you are positive your efs is corrupt!
Original source for solution, with a few method changes by me:
http://forum.xda-developers.com/showthread.php?t=1438451
METHOD ONE
1.) Use busy box installer from the market and re-install even if u have it working
2.) If step one doesn't work, install super su updater, and update it, then try step one again.
3.) Boot into cwm and dark side wipe 3x
4.) Flash rooted 2.3.5 from thread below
5.) Boot into rom and install root explorer
6). Navigate to /efs/imei/
7.) Press menu and select new file
8.) Name it "keystr" exactly as in quotes
9.) Long press keystr and select edit in text editor
10.) Type "ON" and press back, selecting save.
11.) Reboot and make sure keystr file is still present.
12.) Now u have a few options. U can flash ics back using either Odin one click (UCLA4 or UCLD2), but I don't recommend this. Flash one of the ics roms from the development section, we have great devs!
Rooted 2.3.5 zip:
http://d-h.st/ce75z460t847
METHOD TWO
1.) You must have the Samsung drivers installed for the skyrocket, available from here:
http://downloadcenter.samsung.com/c...ng_USB_Driver_for_Mobile_Phones_v1.5.14.0.exe
2.) Once installed, download the attached zip, its a copy of ADB with the needed file inside
3.) Unzip to any location
4.) Boot phone into cwm
5.) Go into Mounts and Storage, and select "mount /efs". Once done connect usb cable to phone and computer
6.) Open command prompt and navigate to the unzipped adb. Issue the following command "adb devices" it should list phone
7.) Now issue the following command "adb push keystr /efs/imei"
8.) Reboot phone and check presence of keystr file in /efs/imei directory with Root Explorer
METHOD 3
Flash attached EFSFix.zip in cwm and reboot.
A SPECIAL THANKS AND SHOUT OUT TO:
mahausrath and Colombiano80 for providing the efs dumps i needed
cmbrown for being a faithful tester!
No download link at thread for Rooted 2.3.6
---------- Post added at 04:03 PM ---------- Previous post was at 03:32 PM ----------
Found a mirror
http://d-h.st/ce75z460t847
---------- Post added at 04:50 PM ---------- Previous post was at 04:03 PM ----------
Still not working. It wont let me write the file keystr to the directory, just says failed, but I can write other things to it. I'm really really confused please help.
I found the error Confusing
instead of putting "NO" put "ON"
Dwolf16 said:
I found the error Confusing
instead of putting "NO" put "ON"
Click to expand...
Click to collapse
typo, main op edited
This may be just me, but I still can't get this method to work. I can't make a file called keystr. I've tried several times using a multitude of Root exploring programs (EStrong, Root Browser, Root Explorer, Astro, ect.) I make sure it's mounted as write and do the works and it just don't work.
did u try the stuff in the pm I sent?
yea im having the same problem its not saving after shut down..
ConfusingCurve said:
This may be just me, but I still can't get this method to work. I can't make a file called keystr. I've tried several times using a multitude of Root exploring programs (EStrong, Root Browser, Root Explorer, Astro, ect.) I make sure it's mounted as write and do the works and it just don't work.
Click to expand...
Click to collapse
I can't create the file either, any help would be appreciated.
i've updated the op with a new method. since efs won't allow you to write from inside android, i've used adb with the push command.
icenight89 said:
i've updated the op with a new method. since efs won't allow you to write from inside android, i've used adb with the push command.
Click to expand...
Click to collapse
Do we need the android sdk for this?
mimart7 said:
Do we need the android sdk for this?
Click to expand...
Click to collapse
nope, I included EVERYTHING u need
Yo ice nthn is working i did everything that it says plus what you've sent me and still nothing
Still nothing
Dwolf16 said:
Still nothing
Click to expand...
Click to collapse
What's the problem? You can't use adb?
Ok so here's the break down
i flashed the efsfix.zip
i go into mounts and storage, and mount /efs ( a error saying Cant Mount /efs!)
i go to cmd.exe and find the Adb folder that has been unzipped
i detect devices with adb devices
i then adb push keystr /efs/imei
it says
C:\ADB>adb push keystr /efs/imei
0 KB/s (2 bytes in 0.002s)
I then reboot go into root explorer and nothings in efs/imei/ and theres nothing in there but the parent folder
Dwolf16 said:
Ok so here's the break down
i flashed the efsfix.zip
i go into mounts and storage, and mount /efs ( a error saying Cant Mount /efs!)
i go to cmd.exe and find the Adb folder that has been unzipped
i detect devices with adb devices
i then adb push keystr /efs/imei
it says
C:\ADB>adb push keystr /efs/imei
0 KB/s (2 bytes in 0.002s)
I then reboot go into root explorer and nothings in efs/imei/ and theres nothing in there but the parent folder
Click to expand...
Click to collapse
alright, that's it. ur efs partition is corrupt, but I need a dump from a fresh stock untouched phone to make sure its fixed properly. In the mean time, I have made a zip of my efs. So change the instructions and do this.
Make a new folder I'm the same folder as adb.exe and name is efs. Extract the contents of attached zip inside efs folder. When u use adb inside cmd, type "adb push efs /". Then reboot. Report back on if that works or not
ok so i rebooted what should i be looking for? when i was in root explorer nothing changed. When i went back into cwm it's still saying "Can't mount efs!" But in the cmd prompt it showed the "adb push efs /" worked
do u have a keystr right in /efs? does ur lock screen work, or power button? If not ur gonna have to wait til I get an efs dump from someone
icenight89 said:
do u have a keystr right in /efs? does ur lock screen work, or power button? If not ur gonna have to wait til I get an efs dump from someone
Click to expand...
Click to collapse
yea i got nothing....also when i did method one originally i would make the file
keystr
type in "ON"
Saved
and it would work until i rebooted...i just there was a way to save it after boot
The push worked, but there is nothing in the imei directory.