How do I edit hosts file? - Galaxy S III Q&A, Help & Troubleshooting

There is short link site (adfly) which is not working, when I remove the hosts file from the system/etc folder the short link works. What do I have to change in that file to make the adfly links work?

Related

Extract *.apk?

If I have a *.apk that I download, is there anyway to backup/extract it?
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
ghostfaced said:
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
Click to expand...
Click to collapse
Right but how do I find the *.apk if I am downloading it off of the market?
apps are located in data/app/
There are also various apps in the market that will backup apps.
I use appmonster incedently.
7zip can extract and view contents of an apk without renaming.
backup and reinstalling apps....
view the first link in my signature.
I used MyBackup Pro to do a backup of my apps onto the sd card, then I used ASTRO file manager to navigate to /sdcard/rerware/MyBackup/AllAppsBackups where I found the file LastBackupApps.zip. I then used androzip or something similar to unzip that file and it contained the apk for every one of the apps I backed up.
how to extract .apk.p files
ghostfaced said:
The apk is really just a ZIP file. Try renaming the file to whatever.apk.zip and open using your favorite ZIP utility. You should be able to view all the contents. Resources (such as images) can be extracted. The java code is compiled into a .dex file so you can't view the raw code, but there are utilities (like this one) to decompile it: http://dedexer.sourceforge.net/
Click to expand...
Click to collapse
I have a zip file with .apk.p files in it which are exracted with package_extract_file in the updater script. Is there a way to manually extract these, since renaming to .zip doesn't help if I open them with any unzipper program?
Thanks
lxrose said:
I have a zip file with .apk.p files in it which are exracted with package_extract_file in the updater script. Is there a way to manually extract these, since renaming to .zip doesn't help if I open them with any unzipper program?
Thanks
Click to expand...
Click to collapse
I believe the files you are referring to - the files ending in ".p" - are "patch" files. They only appear in the OTA download .zip file, and they are worthless to you. They are not complete files, but just enough data to patch the corresponding 1.5 app .apk so that it turns into the 2.1 version.
If you want the complete .apk files which they correspond to, just download the Leak-V3 .zip file, extract the "system.img" file, and then unpack that file using the "unyaffs" utility (search for it, you'll find it at code.Google.com).
bftb0
bftb0 said:
I believe the files you are referring to - the files ending in ".p" - are "patch" files. They only appear in the OTA download .zip file, and they are worthless to you. They are not complete files, but just enough data to patch the corresponding 1.5 app .apk so that it turns into the 2.1 version.
If you want the complete .apk files which they correspond to, just download the Leak-V3 .zip file, extract the "system.img" file, and then unpack that file using the "unyaffs" utility (search for it, you'll find it at code.Google.com).
bftb0
Click to expand...
Click to collapse
Thanks for the info. I thought I can update the apk files manually, because from recovery it doesn't work (it is a rooted image, so signature not accepted) and there are some fixes in the new update that I wanted to give a chance.
Unable to install ddx1.14.jar in my HTC wildire
I hve downloaded dexeder.jar file in to my SD card. but i can't install it in my HTC wildfire...
it shows an error...
"ddx1.14.jar cannot be installed because critical information is missing from the application file (MIDlet-Name). Please contact the application provider for more information."
Help me Pls..... Thanks in advance.....
apk download
did you search for the apk online?

[Q] Downloading files wrong/ corrupt?

Whenever I download a file from file hosting sites like filesonic or megaupload, the browser always downloads a .htm file and not the one I wanted like a .rar file. And only like 30kb is in the .htm file. Any way to correct this?
kenfly said:
Whenever I download a file from file hosting sites like filesonic or megaupload, the browser always downloads a .htm file and not the one I wanted like a .rar file. And only like 30kb is in the .htm file. Any way to correct this?
Click to expand...
Click to collapse
Are you sure you're clicking the correct links?
Its a browser issue. I usually copy my links into firefox nightly to download them correctly.
I'm still looking for a download manager to handle this. Gonna test out jdownloader later today.

how to change gingerbread stock music background

please help me to change gingerbread stock music background in tabview i.e the background of song list, artist, album etc..
please anyone,,(
I guess....
Okay.. Unzip that Original file.... Can you see that file? If you can see that .xml file?
Then... Just Put it(edited & compiled xml file) original apk file for replacement!
As you said, that xml file is belongs resource file.. You can't see that xml file before decompiling apk file...
check this out.
-Did you signed the apk file after building?
you must decompile...editing.. compile.. signing.... and then copy & put that resource file to the original one.
92st said:
Okay.. Unzip that Original file.... Can you see that file? If you can see that .xml file?
Then... Just Put it(edited & compiled xml file) original apk file for replacement!
As you said, that xml file is belongs resource file.. You can't see that xml file before decompiling apk file...
check this out.
-Did you signed the apk file after building?
you must decompile...editing.. compile.. signing.... and then copy & put that resource file to the original one.
Click to expand...
Click to collapse
thanks but I already tried all, but nothing helped,, I found an alternate way, btw thx

[Q] deleted hosts file

I deleted my hosts file on my droid RAZR Max could somebody tell me how to replace it or place a link for it so I can download it.
Thank you
While you're at it u should just flash this adblocking hostfile
http://forum.xda-developers.com/showthread.php?t=1916098

How to modify hosts file

Hi guys, i got root on my Honor 10 and would like to modify the hosts file to block ads.
I assume the correct one is /sytsem/etc/hosts right?
I can confirm that i have root acces because i can rename the hosts file and create other files.
I am using the AdAway app which worked just fine on my old phones.
But this time it says "replacement of hosts file failed" ... no further information.
Since i know the sources where AdAway is getting its information from i would like to simply modify the host file by myself.
What format does the hosts file needs to have to work? Like .txt file and remove the file extension afterwards.
Any ideas?
If you are rooted why not try masigk host file?

Categories

Resources