Hosts - Legend General

I've found in my sdcard file "hosts", which redirects domains, and in this file are some malware cleaners, p0rn pages and others... Is that any android virus or unsuccessful step to hack my hosts? Thanks...

well i was looking for a hosts file to ad the adblock filters to, and i dont even have one on my sd card :\ so maybe you can delete it ?

The hosts file on your sdcard won't do anything.
To get redirection working you have to put your Legend in recovery mode, mount /system and copy hosts to /system/etc.
In normal mode you can't write to your phone' system partition making it perfectly safe when it comes to viruses trying to alter something there.

Thanks for advices guys.

Related

[Q] Fix DNS Facebook, we need an developer to help

Hi everybody.
I'm come from Vietnam, where the Facebook is now banned.
We need someone to write a program to update the host file in /system/etc/ by just a touch.
Please copy the IP from http://armabloggin.com/2009/07/facebook-dns-block-fix/
to the host file (like AdFree program).
We cannot edit this file by Astro because it read-only. We don't know how to S-OFF our Android.
Thank you so much.
I thought that AdFree is for rooted phones only.
Here's the host file
I've modified the host file for you but I don't think you can get much further until you root your phone, giving yourself access to system/etc/ where the "hosts" file is for replacement.
Remove the .txt extension and replace it with your hosts file in /system/etc/ after rooting.
If your phone cannot be rooted at http://unrevoked.com/ have a look on the sub forum here for your phone.
As previously stated, changing any system file is impossible without root.
Why can't you use a one-click-rooting program? There are plenty around that work for quite a lot of phones. If that doesn't work there will be device specific guides available, unless it's a phone that can't be rooted (is there any?).
Sorry, I've already root the HTC Desire by Unrevoked.com and have RA-recovery.
I mean that I don't have S-OFF in my device.
I also used Astro to copy the host file to SD Card and edited it. But I cannot replace the host file to system/etc/.
So I need you help write a mini-soft like AdFree.
Have you tried using adb to push the hosts file (in recovery) or root explorer? No need to S-OFF.
I think a soft will easy to use for everyone, don't need experiment in adb, root or s-off.
Anyone developer can make it easy?
Sent from my HTC Desire using Tapatalk
I think the problem is that you didn't mounted the system partition. Try ES FileExplorer, it can work as root and can mount partitions
Sent from my GT-I5700 using XDA Premium App
Hi,I am vietnamese too,if you can't root your phone you can follow the full instruction on tinhte.vn forum.
I whipped this up for you.
It doesn't look great but it does the job. Put the 'hosts' file on your sdcard (not in any folder) that you want to move and rename it 'hosts.txt'. Then run the app and press the button. You'll probably need to reboot afterwards.
Enjoy.
This doesn't back up the hosts file on your phone so you may want to do that manually.
[YOU NEED ROOT ACCESS]
Thank you so much.
Meltus said:
I whipped this up for you.
It doesn't look great but it does the job. Put the 'hosts' file on your sdcard (not in any folder) that you want to move and rename it 'hosts.txt'. Then run the app and press the button. You'll probably need to reboot afterwards.
Enjoy.
This doesn't back up the hosts file on your phone so you may want to do that manually.
[YOU NEED ROOT ACCESS]
Click to expand...
Click to collapse
Dear Meltus,
Firstly, I thank you very much to write this apk for me. You're so kind.
But it's maybe something wrong!
I install your apk, put the hosts.txt in SDCard (in the root, not in any folder).
Then run the app and press the button, reboot afterwards.
I used Astro to view the hosts file. But this file is error. It has 0 byte and can be read.
Please fix it. Thank you so much, again.
P/S: Maybe you make an options to chose folder of hosts file.
Further, you can develop this apk to change any file of system by chose the source and destiny paths.

[Q] Cm7.1 root access?

I recently installed Cm7.1 on my Nook Color, does this give me root access? The reason i ask this is because i was attempting to access my build.prop to try to get some games to work but i can not seem to be able to access it via Astro File Manager. Also on a side note, every time i install an app and do not have my sd card in my Nook i am prompted to do so instead of using my internal memory?
Lsjreadingpa said:
I recently installed Cm7.1 on my Nook Color, does this give me root access? The reason i ask this is because i was attempting to access my build.prop to try to get some games to work but i can not seem to be able to access it via Astro File Manager. Also on a side note, every time i install an app and do not have my sd card in my Nook i am prompted to do so instead of using my internal memory?
Click to expand...
Click to collapse
CM7 is a rooted ROM. The file access model is setup to make sure you know what you're doing to prevent you from modifying or deleting a file that is essential to the system even though the ROM itself is rooted. I don't use Astro so I don't know how to get root access for that app. File managers like File Expert (free) or Root Explorer (cheap) will allow you to access the root and system files, but you may have to enable the capability in a setup option. In addition, you will have to set the directory to read/write from read-only to actually modify a file.
Thanks for the info, thought i did something wrong when i was installing cm7
shumash said:
CM7 is a rooted ROM. The file access model is setup to make sure you know what you're doing to prevent you from modifying or deleting a file that is essential to the system even though the ROM itself is rooted. I don't use Astro so I don't know how to get root access for that app. File managers like File Expert (free) or Root Explorer (cheap) will allow you to access the root and system files, but you may have to enable the capability in a setup option. In addition, you will have to set the directory to read/write from read-only to actually modify a file.
Click to expand...
Click to collapse
How do i do set a directory to read/write? Also, i have tried several file explorers and none work, i just cant get root access. I am trying to edit my build.prop to try to play some gameloft games.
Lsjreadingpa said:
How do i do set a directory to read/write? Also, i have tried several file explorers and none work, i just cant get root access. I am trying to edit my build.prop to try to play some gameloft games.
Click to expand...
Click to collapse
If you use ES File Explorer (recommended) then it has a setting to make the system directory read / write. You can then just long touch the file, open it using the built in text editor and save it.
Yup i did that, checked both boxes under root settings but i am unable to navigate out of the sd card
es file explorer
To get out of SD card, go into settings and change home to / instead of /mnt/sdcard next time you open it will start in base directory

[GUIDE] Living with CM9 ICS alpha - Tips & tricks / Troubleshooting

I have been using CM9 ICS on my Note for 4 days on and off. And needless to say, it has been a great experience. So I thought I would start this thread for everyone else who is using CM9 and would like to share their tips/tricks.
- I would like to start off with this particularly useful tip I discovered. The music player crashes a LOT and when you boot back up you notice several copies of you tracks. This happens to me the most with the stock music player. Hence I have switched to winamp which seems to be a lot more stable. The fix for the duplicated files after a crash (force close) is very simple. You either need to perform a factory wipe from clockworkmod (messy) or go to Settings>Apps>ALL>Media Storage>Clear Data and REBOOT. Once you have a fresh start, you need to backup the "[PLAYLISTS] Media Storage" data with Titanium Backup. Next time you have a crash, fire up Titanium Backup and restore the DATA ONLY from the Media Storage backup you made earlier. Reboot. Your library should be free from duplicates now. I also recommend switching to winamp. Winamp too crashes sometimes but you can use the same fix for it. If you happen to load more tracks, launch winamp and make sure the library has updated fine and perform another backup of Media storage from Titanium Backup. BTW, winamp also has an option for lock screen integration.
-I use ES explorer for general messin around with the filesystem. How you set it up is also simple. Get ES explorer, go to settings and enable Root Explorer, superuser will ask for permission, say yes. Now scroll up a bit and you will see the Home Directory option. Set it to "/". Yes, that is just slash. Now when you hit 'up' in the explorer window you can leave the sdcard location and explorer the system files. Now you internal sdcard's(storage) location is "/sdcard" or "/mnt/sdcard". The external (microsd) path is "/mnt/extsdcard". I haven't tried OTG USB mounting but the path for that would be "/mnt/usbdisk".
-There are SEVERAL ways of getting files on you sd, internal or external. The easiest way is to reboot>recovery>mounts & storage>mount USB storage. But that gives you access only to the internal sd. You can use ES explorer for sharing files wirelessly with your windows machine using the SMB protocol which is very robust. I suggest you google for instructions. You can also use QtADB, which gives you access to you external card too. And then there is dropbox. Dropbox now uses a temp system location for downloading files. The path to the temp folder is "/sdcard/Android/data/com.dropbox.android/files/scratch". You can use ES explorer to go to that path and 'retrieve' your downloaded files. Works especially well with .zip's.
-Now, the default boot animation is cropped on the sides and is kinda lame. So I thought I would try and fix it. I couldn't fix it with resizing the jpegs. So I just snagged some bootanimations from the web. I liked the one I attached below the most. It's called Machina and runs full screen on the Note. No cropping Now once you download that zip, you need to get it on your sd. Do it any way you like. Set up root on ES explorer and also enable Write Mode. DON'T FLASH THE ZIP WITH CLOCKWORKMOD. Locate the file on ES explorer, copy it, navigate to "/system/media" and paste it. You'll notice there is a bootanimation.zip there. That is the default one and you should back it up on your sd. Once backed up, delete the default one and rename the download zip to "bootanimation.zip". Reboot. BTW, I take no credit for the boot animation.
Please hit the thanks button if any of this helped you. I will be adding more info as I come across it.
Click HERE to see a quick youtube video of the boot animation.
Camera doesn't work, I'll pass
I got the nexus bootanimation to be fullscreen. I 'borrowed' hdr jpgs from a tablet build. HERE is a short youtube clip. You will find the zip attached below. Again, DO NOT FLASH WITH CLOCKWORKMOD.
stefan.buddle said:
Camera doesn't work, I'll pass
Click to expand...
Click to collapse
Not everyone cares about the camera lol
Thank you for the thread and the animations!
Another tip for file transfer (which has been mentioned earlier, in the CM9 thread) is to use Airdroid. I use that method as it feels more convenient to be able to keep the phone on.
I like the machanic bootanimation thx
Akerskuuug said:
Thank you for the thread and the animations!
Another tip for file transfer (which has been mentioned earlier, in the CM9 thread) is to use Airdroid. I use that method as it feels more convenient to be able to keep the phone on.
Click to expand...
Click to collapse
Airdroid is quite possibly the best/most useful app I have seen on Android until now! Thanks for the tip.
acidburn89 said:
-Now, the default boot animation is cropped on the sides and is kinda lame. So I thought I would try and fix it. I couldn't fix it with resizing the jpegs. So I just snagged some bootanimations from the web. I liked the one I attached below the most. It's called Machina and runs full screen on the Note. No cropping Now once you download that zip, you need to get it on your sd. Do it any way you like. Set up root on ES explorer and also enable Write Mode. DON'T FLASH THE ZIP WITH CLOCKWORKMOD. Locate the file on ES explorer, copy it, navigate to "/system/media" and paste it. You'll notice there is a bootanimation.zip there. That is the default one and you should back it up on your sd. Once backed up, delete the default one and rename the download zip to "bootanimation.zip". Reboot. BTW, I take no credit for the boot animation.
Please hit the thanks button if any of this helped you. I will be adding more info as I come across it.
Click to expand...
Click to collapse
Also you can put the bootanimation.zip to /data/local which makes it permanent if you update the rom(in the future i hope )
Placing the bootanimation in /system/media makes it change in every rom update-flash cause the flash formats the system but leaves /data as it is
And if you have different bootanimations in /system/media and /data/local the /data/local bootanimation wins
afilopou said:
Also you can put the bootanimation.zip to /data/local which makes it permanent if you update the rom(in the future i hope )
Placing the bootanimation in /system/media makes it change in every rom update-flash cause the flash formats the system but leaves /data as it is
And if you have different bootanimations in /system/media and /data/local the /data/local bootanimation wins
Click to expand...
Click to collapse
Nice. I can confirm that it works. Thanks!
acidburn89 said:
-There are SEVERAL ways of getting files on you sd, internal or external. The easiest way is to reboot>recovery>mounts & storage>mount USB storage. But that gives you access only to the internal sd. You can use ES explorer for sharing files wirelessly with your windows machine using the SMB protocol which is very robust. I suggest you google for instructions. You can also use QtADB, which gives you access to you external card too. And then there is dropbox. Dropbox now uses a temp system location for downloading files. The path to the temp folder is "/sdcard/Android/data/com.dropbox.android/files/scratch". You can use ES explorer to go to that path and 'retrieve' your downloaded files. Works especially well with .zip's.
Click to expand...
Click to collapse
What i also discovered.If you connect phone to the pc with usb cable you can not see the sdcards in windows explorer....BUT i installed some time ago the Android Commander windows application (google it) and i can see both sdcards (ext and int) and i can also copy paste files from/to phone to/from pc
afilopou said:
What i also discovered.If you connect phone to the pc with usb cable you can not see the sdcards in windows explorer....BUT i installed some time ago the Android Commander windows application (google it) and i can see both sdcards (ext and int) and i can also copy paste files from/to phone to/from pc
Click to expand...
Click to collapse
Maybe I'm just plain stupid and I have missed something, but I tried installing AC and connecting the phone without result. Did you do anything more than just connect it using USB?
Akerskuuug said:
Maybe I'm just plain stupid and I have missed something, but I tried installing AC and connecting the phone without result. Did you do anything more than just connect it using USB?
Click to expand...
Click to collapse
Nope.Do you have usb debugging ticked?i also have google drivers installed in my pc
Adjust Touch Sound volume
Hi,
I recently flashed my SGN to CM9 Nightlies. still in practical mode
Does anybody know how to lower down the touch sound volume? quite noisy typing at night..
Thanks.

Need help with understanding mount-points, folder structure and file system rights...

Hi everyone,
I need your help. I sometimes face strange issues with my Nexus 4 (Stock Room, Rooted, Matrix Kernel v5). Yesterday I wanted to copy a apk-file for installation on my phone from my home-server. I use ES File Explorer for that. I failed to copy the apk-file to /sdcard/folder-name (operation failed). then i navigated to /data/media/0/folder-name and tried it from there, also it didn't work.
i then copied the file to /sdcard/download and was able to copy it to that and to install it.
i don't really understand why it behaves that way, i was always able to go to /sdcard/folder-name and do what i want. i also noticed another strange thing. i connected my phone via USB (MTP-mode) to the PC and uploaded a few GB of MP3s to it (Folder: Music).
when browsing this folder with ES File Explorer, I cannot delete anything from that folder /sdcard/Music. THOUGH it reports "deletion successful" the files or folders do not get deleted but just remain on the internal SD-card. i could only delete the music successfully via "/data/media/0/Music".
who can explain briefly WTF is going on? i obviously do not really understand the concept and logic behind this. is there a maximum file/path length that must not be exceeded?
thanks in advance and best regards,
hallu
need to bump this, sorry...
does anyone have any idea as to why this phone is behaving the way it is?
I use root explorer and have ZERO issues. That includes pulling apk's.
Try a different file explorer to see if that makes a difference so at least you can determine if the issue is just app specific and not something else.
Check to see of ES isn't mounting certain folders with RW permissions.
Also the actual internal storage is /data/media/0/ so /sdcard/ is just a symlink to that folder. ES seems to be having problems with the symlinks.

[Q] N10 not recreating etc/hosts on reboot

Let me explain- I want to watch HULU Plus on my N10. I'm good until the ads come up then it either force closes, goes gray and nothing or goes gray and I still have the audio of the program (and no ad). I have removed all ad blockers. I have cleaned things up with SD Maid and this didn't fix it.
I found another form that said I needed a new host that didn't have any ad blocking and the way to do this was to delete etc/hosts and when the device reboots it will create a new hosts. So I deleted it, rebooted and now there is NO hosts file at all and the HULU Plus problem continues.
My immediate wish is to re-create etc/hosts to see if this will make it possible for me to "enjoy" HULU ads.
The situation is desperate because I'm up to the first ad in Sleepy Hollow AND Brooklyn Nine-nine AND SNL with Tina Fey.
Any suggestions?
jerryp7 said:
Let me explain- I want to watch HULU Plus on my N10. I'm good until the ads come up then it either force closes, goes gray and nothing or goes gray and I still have the audio of the program (and no ad). I have removed all ad blockers. I have cleaned things up with SD Maid and this didn't fix it.
I found another form that said I needed a new host that didn't have any ad blocking and the way to do this was to delete etc/hosts and when the device reboots it will create a new hosts. So I deleted it, rebooted and now there is NO hosts file at all and the HULU Plus problem continues.
My immediate wish is to re-create etc/hosts to see if this will make it possible for me to "enjoy" HULU ads.
The situation is desperate because I'm up to the first ad in Sleepy Hollow AND Brooklyn Nine-nine AND SNL with Tina Fey.
Any suggestions?
Click to expand...
Click to collapse
You can get the hosts file from any custom ROM zip file. Or just go into /etc and create a text file called hosts with one line:
127.0.0.1 localhost
Change permissions to 777
sttovo said:
You can get the hosts file from any custom ROM zip file. Or just go into /etc and create a text file called hosts with one line:
127.0.0.1 localhost
Change permissions to 777
Click to expand...
Click to collapse
Thanks. I'll give it a shot. I did get one but had to delete all the hulu blocks and it still didn't work. This sounds better.

Categories

Resources