I cannot replace hosts file in /system partition, I have root access. - Android Q&A, Help & Troubleshooting

I'd like to replace the hosts file in the /system partition in order to get rid of the annoying in app ads that keep interrupting whatever task I'm perfoming on the phone, mostly when I'm watching a movie/video. Every 5 minutes or so the adds are displayed.
I'm able to rename the hosts in the /system partition but after that I'm unable to paste the one I have.
The bootloader is unlocked.
What workaround is there?

Install Busybox before hand
Open terminal , type
Code:
-su
-mount -o rw,remount,rw /system
-busybox cp a b
the last command copies file from a to b
PS: If your device is HTC , you have to S-Off before making changes to your android.
If you want to make changes to your android without S-Off , you can try the above commands in Custom CWM of TWRP
---------- Post added at 01:41 PM ---------- Previous post was at 01:39 PM ----------
oidicle said:
I'd like to replace the hosts file in the /system partition in order to get rid of the annoying in app ads that keep interrupting whatever task I'm perfoming on the phone, mostly when I'm watching a movie/video. Every 5 minutes or so the adds are displayed.
I'm able to rename the hosts in the /system partition but after that I'm unable to paste the one I have.
The bootloader is unlocked.
What workaround is there?
Click to expand...
Click to collapse
Also to get rid of Ads , instead of going through so much , Install VLC player , it is Ad Free

Akash,
Firstly, Thank you for your reply and effort.
Secondly, I'm a newbie, maybe you haven't noticed the number of posts i have to my name. I used ES File Explorer to try copying the hosts file to the /system/etc location (as I read on some other site). So please don't treat me like a anything but a newbie. I've never used busybox and terminal before, so I can't even begin to know where or how to start following your instruction, as it isn't detailed, specifically that 'copy from and to' command without the pathname structure, but I'm a quick learner as long as the instructions are clear.
In the playstore there a few apps with 'busybox' and 'terminal' names to them from different developers, so which is which?
About the ads; I mean to remove ads from the whole device, not just for my video app, as I mentioned, the video app ads are what annoy me most, but not the sole reason for my trying to do this. So, sorry to say, but Vlc is not the solution for me because I use Mx Player and I'm not willing to give up on it(to each, his taste).
I'm running lollipop 5.1 on an Itel 1508 phone.

oidicle said:
Akash,
Firstly, Thank you for your reply and effort.
Secondly, I'm a newbie, maybe you haven't noticed the number of posts i have to my name. I used ES File Explorer to try copying the hosts file to the /system/etc location (as I read on some other site). So please don't treat me like a anything but a newbie. I've never used busybox and terminal before, so I can't even begin to know where or how to start following your instruction, as it isn't detailed, specifically that 'copy from and to' command without the pathname structure, but I'm a quick learner as long as the instructions are clear.
In the playstore there a few apps with 'busybox' and 'terminal' names to them from different developers, so which is which?
About the ads; I mean to remove ads from the whole device, not just for my video app, as I mentioned, the video app ads are what annoy me most, but not the sole reason for my trying to do this. So, sorry to say, but Vlc is not the solution for me because I use Mx Player and I'm not willing to give up on it(to each, his taste).
I'm running lollipop 5.1 on an Itel 1508 phone.
Click to expand...
Click to collapse
Have you tried mount system partition r/w first then copy hosts files.

I don't know how...
Please take me through the process of doing that.

oidicle said:
Please take me through the process of doing that.
Click to expand...
Click to collapse
Go to root partition click on system folder and go to properties and give permission as r/w.

It already is R/W
I just checked the folder properties and, according to ES File Explorer, it already is readable and writable.

Related

[Q] Media/Music Player That Can View Internal Storage?

Now that we are able to use the 11+ Gb of internal storage (assuming you are rooted) are there any media players (e.g., mp3 and/or mp4) that can view data or data/media?
Media files can be seen/played via Root Explorer or ES File Explorer (although it's very kludgy) but I have not been able to find any player capable of accessing this storage area.
I'm pretty sure that you can specify which directory to use with MX Player
SG Pillar said:
I'm pretty sure that you can specify which directory to use with MX Player
Click to expand...
Click to collapse
And make sure you get the arm7 codec too.
Sent from my Galaxy Nexus using Tapatalk
HMG10 said:
And make sure you get the arm7 codec too.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Does it ever ask to download the codecs? It never asks to me download anything. I tried to play with the codecs and without them and I noticed no difference. However the player supports HW for h.264 codec only in both cases.
p.s. PowerAMP is a one of the best audio players. And it can access /mnt/* including "internal" linked to your internal storage.
I must have missed something here.
How exactly can we access the 11 gigs of storage on the nook?
Can someone point me to the thread that explains that process?
I used this method:
forum.xda-developers.com/showpost.php?p=20401344&postcount=72
nook_lover said:
Does it ever ask to download the codecs? It never asks to me download anything. I tried to play with the codecs and without them and I noticed no difference. However the player supports HW for h.264 codec only in both cases.
p.s. PowerAMP is a one of the best audio players. And it can access /mnt/* including "internal" linked to your internal storage.
Click to expand...
Click to collapse
Nope, doesn't work (neither MXVideo Player or Poweramp) at least does not work for me. I placed an MP4 and a MP3 in some subfolders in the data directory (which shows 11.6 Gb free). I was able to make data/media/vids and data/media/auds using Root Explorer - I can also see the files in ES File Explorer (and play them by clicking on either one and selecting the app to use.
But I cannot get any music or video player to find the file - is there some simple fix? And maybe I don't understand the meaning of "/mnt/* including "internal" linked to your internal storage" .
docfreed said:
Nope, doesn't work (neither MXVideo Player or Poweramp) at least does not work for me. I placed an MP4 and a MP3 in some subfolders in the data directory (which shows 11.6 Gb free). I was able to make data/media/vids and data/media/auds using Root Explorer - I can also see the files in ES File Explorer (and play them by clicking on either one and selecting the app to use.
But I cannot get any music or video player to find the file - is there some simple fix?
Click to expand...
Click to collapse
That is because MXPlayer does not run as root, and thus cannot list the /data directory. (Which is "--x" for anyone but root)
You have to ensure that the permissions on your media directory are setup so that MXPlayer can actually perform a directory listing.
cfoesch said:
That is because MXPlayer does not run as root, and thus cannot list the /data directory. (Which is "--x" for anyone but root)
You have to ensure that the permissions on your media directory are setup so that MXPlayer can actually perform a directory listing.
Click to expand...
Click to collapse
Just took a quick look at data/media and in Root Explorer, the permissions are all checked - that is for read, write and execute and the owner is shown as root.
Ah, Success
Changed the permissions of the /data directory to allow "others" to read and write and I can now play my media. Thanks to all for the help - that's why I absolutely love this forum!
doc, mind posting the full command you used?
howcansheslap said:
doc, mind posting the full command you used?
Click to expand...
Click to collapse
No command - using Root Explorer. First, I set /data from Read Only to Read Write. If you long press on either a file or folder you see nine "boxes" . Three down read Owner, Group and Others and three across are Read, Write and Execute. All i did was to set Others, i.e., check the box, for Read, Write and Execute. I then reset /data to be Read Only. Of course, you need to be rooted.
I think by setting Others to Read, Write and Execute (rwx) it allows media players to access the file.
nook_lover said:
I used this method:
forum.xda-developers.com/showpost.php?p=20401344&postcount=72
Click to expand...
Click to collapse
I'm trying to follow this method, but keep getting an error telling me the operation is not permitted, when I try to use the "mount" command.
Help?
loribuono said:
I'm trying to follow this method, but keep getting an error telling me the operation is not permitted, when I try to use the "mount" command.
Help?
Click to expand...
Click to collapse
Are you typing the commands manually? I used the script attached. No issues for me. Of course Tablet is rooted.
nook_lover said:
Are you typing the commands manually? I used the script attached. No issues for me. Of course Tablet is rooted.
Click to expand...
Click to collapse
Yeah, trying to enter them manually. I tried the script method, but the mkdir command didn't work for me either. It doesn't appear I'm allowed to do anything in ADB. Am I missing something? Is this even necessary? Someone else said they just changed permissions in Root Explorer. It's confusing. All I want is for non-B&N apps to recognize content I store in the large internal storage space, specifically music.
NT's rooted, too.
loribuono said:
Yeah, trying to enter them manually. That's what the instructions say. The script is in the next step. I assume I have to follow step 2 before step 3, or maybe I'm really not understanding this at all.
And my NT is rooted.
So, I don't get it. Do I have to follow the instructions as written, or not?
Click to expand...
Click to collapse
You don't have to type them. Just replace the file after backing it up. Set the same permissions as the the original.
---------- Post added at 06:09 PM ---------- Previous post was at 06:06 PM ----------
loribuono said:
Yeah, trying to enter them manually. I tried the script method, but the mkdir command didn't work for me either. It doesn't appear I'm allowed to do anything in ADB. Am I missing something? Is this even necessary? Someone else said they just changed permissions in Root Explorer. It's confusing. All I want is for non-B&N apps to recognize content I store in the large internal storage space, specifically music.
NT's rooted, too.
Click to expand...
Click to collapse
Follow the steps as provided. Manual adding is optional.
Okay, rebooting now. I'm confused about what I just did, though. What was the purpose of the usrdata folder I created?
I don't really know if this worked. I can choose any folder on my Nook, from within MX Player, but it doesn't appear to be scanning in the following location: /media/My Files/Videos. No .avi files that are within that, or in its subfolders, show up in MX Player. It sees other .avi files, like one in /system/media/videos.
Is there something else I need to do?
Why are there so many "media" folders on this thing, and which one should I be putting things into? there's one under /. There's one under /mnt, although they appear to be the same location, as the contain the same files. There's one under /system. And, of course, I've got one on my SD Card.
If anyone can clear up any or all of these questions, I'd be eternally grateful. Well, at least, grateful for a long time... like a few weeks, at least.
loribuono said:
Okay, rebooting now. I'm confused about what I just did, though. What was the purpose of the usrdata folder I created?
I don't really know if this worked. I can choose any folder on my Nook, from within MX Player, but it doesn't appear to be scanning in the following location: /media/My Files/Videos. No .avi files that are within that, or in its subfolders, show up in MX Player. It sees other .avi files, like one in /system/media/videos.
Is there something else I need to do?
Why are there so many "media" folders on this thing, and which one should I be putting things into? there's one under /. There's one under /mnt, although they appear to be the same location, as the contain the same files. There's one under /system. And, of course, I've got one on my SD Card.
If anyone can clear up any or all of these questions, I'd be eternally grateful. Well, at least, grateful for a long time... like a few weeks, at least.
Click to expand...
Click to collapse
If the script is working now, you can put any of your files to /mnt/internal.
nook_lover said:
If the script is working now, you can put any of your files to /mnt/internal.
Click to expand...
Click to collapse
Okay. Why? Why would I put them there? You just added yet another folder option to my confusion. I appreciate your help, but I'm one of those people who like to understand what I'm doing and why I'm doing it, rather than just follow someone's instructions.
loribuono said:
Okay. Why? Why would I put them there? You just added yet another folder option to my confusion. I appreciate your help, but I'm one of those people who like to understand what I'm doing and why I'm doing it, rather than just follow someone's instructions.
Click to expand...
Click to collapse
The script is linked to /mnt/internal and makes it possible to use the internal storage after each reboot keeping all of the permissions properly set.

[Q] Google Music saved to external SD card solution?

Ok this is going to be a bit of thread necromancy, but another user, GMtom1 was helpful enought to find the thread, albeit for another phone, but this might be able to solve one of the problems people have been having with their phone and it not utilizing the external SD cards correctly. Or not, I'm hoping someone smarter than me can lend a hand.
And without further ado....
FuzzyMeep Two said:
This is a fix i figured out piecing together other peoples attempts.
Use this as a script
mount -o bind sdcard2/android/data/com.​google.android.music sdcard/android/data/com.​google.android.music
Alternately you can change the first location to the location of your choosing as long as it resides on the external as card.
Ex.
Mount - o bind sdcard2/music sdcard/Android/data/com.​google.Android.music
will bind:
sdcard/Android/data/com.​google.Android.music (google's forced save location)
to
sdcard2/music
Go to google music (play music now) settings and clear any music that is currently saved to your device.
this only applies to music made available offline. If you do not clear it before running the script the music will exist on your internal sdcard but not be accessible.
open script manager and find the script you made
Select it and make sure to click set on boot and superuser
Run Your script.
That is it now your default save location for google music is bound to the location on the external sdcard. the device will see the location as its default but really be saving to the external sdcard.
You can check this by going to google music. Selecting "make available offline" and look at the free space. It should shoe the space available on your external sdcard.
TLR Version (noob version)
I was getting a lot of questions about the preliminary steps here (i.e. rooting, writing script, etc) so i decided to attach the noob version in case anyone needs verification on how to accomplish these steps.
HOW DO I ROOT?
So, Rooting gives you full access and control over your phone. instructions for how to root are device specific. so i would start by searching XDA for "YOUR DEVICE one click root"
ex. samsung galaxy s2 one one click root
some devices are easier to root than others. i cannot provide steps for your particular device, but through XDA, and google you CAN find everything you need.
some devices have one click root tools, some do not, so the rooting process is more in depth for those devices.
rooting instructions are so device specific i could not find a generic set of instructions, and don't want to mislead anyone by linking them to a set of instructions not ​compatible with their device.
There is a risk of bricking your device (making it inoperable) while rooting, although the risk is minimal... almost non existent if you carefully follow instructions. I have rooted 5 seperate devices without bricking any, and, in most cases even if bricked the device can still be restored.
there are additional benefits to rooting, such as overclocking
for example my Galaxy S2 normally runs at 1.5 GHZ, i have increased the speed to 1.8GHZ
(NOTE** Without XDA DEVELOPERS i would have rooted 0 devices, and probably bricked at least one, so thank you to all of you out there who have helped me, I hope this method will help some of you in return.)
NOW THAT YOU ARE ROOTED...
INSTALL SCRIPT MANAGER..
First, to install script manager just go to google market (Play Store) and search for script manager
INSTALL ES FILE EXPLORER..
To make a script go to google market (Play Store) and find ES File Explorer
WRITE SCRIPT..
Open es file explorer when install completes.
in es file explorer click the menu button, and select "new"
when prompted select "File"
name your file something you'll remember
Ex.MusicScript
Click your new file
when prompted select "Text"
type this EXACTLY how you see it
Mount - o bind sdcard2/music sdcard/Android/data/com.​​google.Android.music
press back and when prompted to save click yes
MAKE DESTINATION FOLDER..
now on es file explorer click "Favorites" (the star)
a new menu will pop up, at the top you willsee a picture of a phone with "/" underneath it click the phone
this will take you to the root directory
click the folder Sdcard2
click the menu button, and select "new"
when prompted select "Folder"
Name the folder music
Your script and destination music location are created
EXECUTE SCRIPT..
now open script manager
find your script which should be located in the directory /mnt/sdcard and the file name you chose earlier
select the script
open as script/executable
make sure script is selected not executable
click the buttons for "Su" and "Boot"
click save
Go to google music (play music now) settings and clear any music that is currently saved to your device.
this only applies to music made available offline. If you do not clear it before running the script the music will exist on your internal Sdcard but not be accessible.
now reboot the script will run at boot a prompt will appear asking for superuser rights, click yes and remember this selection (it may say something different than remember this selection whichever option resembles remember needs to be selected.)
YOU'RE DONE!!!
your music should now save to sdcard2/music but the device will still think it is saving to the default sdcard/Android/data/​com.​google.Android.music
You can check this by going to google music. Selecting "make available offline" and look at the free space. It should shoe the space available on your external sdcard.
So try your hardest to figure out how to root using google, and if your not confident enough to attempt it this fix may not be for you.
if you have tried everything you can and are still stuck message me back, including what device you have, and i will see if i can find a link to the rooting instructions for your particular device.
I assume no responsibility if you damage your device... These steps do work, and if followed will fix your music issues as well as introducing you to a world of additional benefits of being a rooted user.
Click to expand...
Click to collapse
This seems like a workable solution to me but like I said, anyone smarter out there?
I think it would be a lot easier just to change the mounts:
SDCard = External
SDcard2 = internal
I have been searching on a way to do that but I cant find anything...
I know it's been awhile since anyone has posted on this, but I was having this issue on CM10 and found a solution.
I changed the script to say: mount -o bind /external_sd/GoogleMusic/ /sdcard/Android/data/com.google.Android.music/
The issue I was having was the naming convention for the internal & external storage. Depending on the file explorer I used, the name for the external SD card varied from "ext_sd", "external_sd", "sdcard1". The name for the internal storage also varied between "sdcard" & "sdcard0".
Also, some of the threads I found that were discussing this problem had the "/mnt/" in front of the "ext_sd". When I tried that, it didn't work for me.
YMMV, but I thought I would share the solution that worked for me.
omadhaun said:
I know it's been awhile since anyone has posted on this, but I was having this issue on CM10 and found a solution.
I changed the script to say: mount -o bind /external_sd/GoogleMusic/ /sdcard/Android/data/com.google.Android.music/
The issue I was having was the naming convention for the internal & external storage. Depending on the file explorer I used, the name for the external SD card varied from "ext_sd", "external_sd", "sdcard1". The name for the internal storage also varied between "sdcard" & "sdcard0".
Also, some of the threads I found that were discussing this problem had the "/mnt/" in front of the "ext_sd". When I tried that, it didn't work for me.
YMMV, but I thought I would share the solution that worked for me.
Click to expand...
Click to collapse
THANK YOU, I've been searching for something like this for weeks! I'm going to give this a shot tonight in hopes that I can free up my internal SD which is currently full! I hope this work and I'll keep you posted.

[Q] Android Stock Browser - help please!

Hi to all
My Streak 5 is running DSC ROM v1.1 and am using the included Android stock browser (v2.3.3).
When I try to view adfly web pages (eg *******/), I am not able to see them - I get the 'web page not available' error message.
What do I need to do to both view these kind of web pages and also for them to load properly in the Android browser? I can see the pages on any PC but have singularly failed to find a way via the browser on my phone
Many many thanks to anyone who can put me out my misery..
This may be due to the modified hosts file that is included with DSC. Look in /system/etc/ and find a file named hosts. Make a backup of it. Open the original in a text editor and remove everything but this line:
127.0.0.1 localhost
Leave a blank line at the end of the file, save and exit.
It may require a reboot to be effective. If it doesn't work, just revert to your backup.
lordmorphous said:
This may be due to the modified hosts file that is included with DSC. Look in /system/etc/ and find a file named hosts. Make a backup of it. Open the original in a text editor and remove everything but this line:
127.0.0.1 localhost
Leave a blank line at the end of the file, save and exit.
It may require a reboot to be effective. If it doesn't work, just revert to your backup.
Click to expand...
Click to collapse
Thanks very much for the quick reply - much appreciated. Your suggestion about the hosts file gave me a clue.
I have AdAway installed, which blocks ads (on both webpages and those sent/displayed by apps and games) by modifying the hosts file. I disabled AdAway and reverted to the DSC ROM hosts file - and I can now see adfly pages on the browser.
However, I still wish to block ads on web pages, while still being able to use adfly-type sites. I also don't want to lose the ability to block ads shown/sent by apps & games. Is there an alternative method to block these?
AdAway was extremely effective at doing its job and I'd be loath to lose that functionality. For example on my PC, I use Chrome with AdBlockPlus extension which allows me to see and navigate through adfly-type sites while not being subject to ads.
Any advice or suggestions would be gratefully received. Thanks again for your help.
Cheers
AdAway and other such programs only combine the lists of blocked sites compiled by well-known sites into a single HOSTS file. They currently cannot exclude specific sites. For that, you have to edit the file manually.
Continue using AdAway, but use a text editor afterward to manually update the HOSTS file to exclude the site you want to see.
Strephon Alkhalikoi said:
AdAway and other such programs only combine the lists of blocked sites compiled by well-known sites into a single HOSTS file. They currently cannot exclude specific sites. For that, you have to edit the file manually.
Continue using AdAway, but use a text editor afterward to manually update the HOSTS file to exclude the site you want to see.
Click to expand...
Click to collapse
Actually AdAway has a whitelist facility. I've added ******* to it but can still see all the ads, unlike when I use AdBlock Plus under Chrome on a PC. Guess that'll have to do, unless anyone knows of a more elegant solution..
Cheers
I've used AdAway for months now and didn't realize it had a whitelist. Good to know the feature exists, though I am unlikely EVER to use it.
lordmorphous said:
This may be due to the modified hosts file that is included with DSC. Look in /system/etc/ and find a file named hosts. Make a backup of it. Open the original in a text editor and remove everything but this line:
127.0.0.1 localhost
Leave a blank line at the end of the file, save and exit.
It may require a reboot to be effective. If it doesn't work, just revert to your backup.
Click to expand...
Click to collapse
thanks bro!!!
I stop using adaway due to this problem. SO many website can't be opened. MOdify the host file and now things work again or just click disable adaway and it will modify the host file for you
For the app, you might want to use lucky patcher to block the ads
lordmorphous said:
This may be due to the modified hosts file that is included with DSC. Look in /system/etc/ and find a file named hosts. Make a backup of it. Open the original in a text editor and remove everything but this line:
127.0.0.1 localhost
Leave a blank line at the end of the file, save and exit.
It may require a reboot to be effective. If it doesn't work, just revert to your backup.
Click to expand...
Click to collapse
Can't find system , can you be more specific , not able to find in file manager
pramodb said:
Can't find system , can you be more specific , not able to find in file manager
Click to expand...
Click to collapse
You need to be using a file manager that allows root functions, such as ES File Explorer, Root Explorer, etc. A non-root enabled file explorer won't allow you to see /system/
lordmorphous said:
You need to be using a file manager that allows root functions, such as ES File Explorer, Root Explorer, etc. A non-root enabled file explorer won't allow you to see /system/
Click to expand...
Click to collapse
Dude , I used es explorer and I'm still not able to find system
pramodb said:
Dude , I used es explorer and I'm still not able to find system
Click to expand...
Click to collapse
Did you enable the root explorer features of ES? I'm not sure where to go from here to help you. Finding /system/ is pretty basic stuff.
If you are familiar with using adb, you can use it to pull the file to your computer, edit it, and push it back into place. The command would be:
adb pull /system/etc/hosts
adb push hosts /system/etc/hosts
There are lots of guides available for using adb and it is a worthwhile tool to know and use.
I like Notepad ++ for editing files on my computer. It's free and simple to use.
I'm willing to help, but keep in mind that I no longer have this phone as I moved on to the S3 last July.
lordmorphous said:
Did you enable the root explorer features of ES? I'm not sure where to go from here to help you. Finding /system/ is pretty basic stuff.
If you are familiar with using adb, you can use it to pull the file to your computer, edit it, and push it back into place. The command would be:
adb pull /system/etc/hosts
adb push hosts /system/etc/hosts
There are lots of guides available for using adb and it is a worthwhile tool to know and use.
I like Notepad ++ for editing files on my computer. It's free and simple to use.
I'm willing to help, but keep in mind that I no longer have this phone as I moved on to the S3 last July.
Click to expand...
Click to collapse
Okay , got it but it is already in the way you said of should he , what do you suggest I do now
lordmorphous said:
Did you enable the root explorer features of ES? I'm not sure where to go from here to help you. Finding /system/ is pretty basic stuff.
If you are familiar with using adb, you can use it to pull the file to your computer, edit it, and push it back into place. The command would be:
adb pull /system/etc/hosts
adb push hosts /system/etc/hosts
There are lots of guides available for using adb and it is a worthwhile tool to know and use.
I like Notepad ++ for editing files on my computer. It's free and simple to use.
I'm willing to help, but keep in mind that I no longer have this phone as I moved on to the S3 last July.
Click to expand...
Click to collapse
Okay , I got it and its in the way you said it should be , so any suggestions. And BTW I'm using gt-p5100 on job 4.2.2 via CyanogenMod
Well, that ruled out the hosts file. I'm stumped now. If I think of something I'll post it.
lordmorphous said:
Well, that ruled out the hosts file. I'm stumped now. If I think of something I'll post it.
Click to expand...
Click to collapse
Hi
I had the same problem like others had so what i did , i just move the host file from system/etc to just system , now i can open adf and other sites but now i can see ads running in my apps and games . Now i want to manually edit the hosts file so that the ads won't run in apps & games but it won't block adf . So can u tell me which data to remove from the host file ??
Okay i just remove the adf (dot)ly and cdn(dot)adf(dot)ly from the hosts and now i can open adf and also no ads in the apps or games.
But has problem with the linkbucks , still can't open it and can't find it in the hosts also
easy video tutorial made by me
https://www.youtube.com/watch?v=Kaochdv3cbs
Hi
hi
after doing that i have this error
unable to connect proxy server
how to fix this?

[Q] How to access the whole file system?

Hi,
I wanted to see the whole file system of my phone. I have already rooted it.
This is what I want to do :
I have installed an app. by the name "Printershare". It is, as the name says, for printing. When I connect a printer to the phone, it downloads some driver pack from the internet. I want to check what it downloaded (All the files everything in the 'Driver Pack'). But when I connect my phone to my system, using samsung kies, I can only access the phone data and not the data internal to the apps.
Is there any way of accessing everything on the phone?
NOTE: Phone is already rooted.
Thanks
-Sahil
Download a file manager on your phone like ES File Explorer or something similar. Those usually allow you to browse to root directory after gaining superuser privileges.
Or if you want to just view them you can install terminal emulator and do a
Code:
cd /
Well via a pc I dont think there is a method to access system partitions...but if you use ES file explorer ..you will be able to access all your system files through your phone itself....but be careful not to delete any important files in the system good luck
hope this helped
use adb shell
sadeshmagic said:
Well via a pc I dont think there is a method to access system partitions...but if you use ES file explorer ..you will be able to access all your system files through your phone itself....but be careful not to delete any important files in the system good luck
hope this helped
Click to expand...
Click to collapse
Thanks for ur reply
That really helped..
One more question...Where would the application data be stored, I mean in which folder??
I explained the problem in more detail in my first post on this thread.
Thanx
sahilh14 said:
Thanks for ur reply
That really helped..
One more question...Where would the application data be stored, I mean in which folder??
I explained the problem in more detail in my first post on this thread.
Thanx
Click to expand...
Click to collapse
If the app you installed is a normal apk file....and I mean if you installed it like normal....some of the app data will be in the data folder of your root ....that means you need to go back up to the root folder...then you will see a folder called data....go into that folder and you will see many folders....there are two important folders....one again is named data...the other is named app....but please if you dont know what you are you better not go in...as there maybe risks to the system....
/data/app
/data/data
these are the two pathways of the folders
good luck...hope this helps
SIII data folder
SIII application data folders are here
/sdcard/Android/data
and
/sdcard/Android/obb
obb is common used by large HD games like those from gameloft.
tigerporc said:
SIII application data folders are here
/sdcard/Android/data
and
/sdcard/Android/obb
obb is common used by large HD games like those from gameloft.
Click to expand...
Click to collapse
no. that's external data. app data is in /data/data

Android System ignores hosts file

Hey guys,
I have a problem with editing the hosts file on Android.
At first, some general information: My Phone is a rooted Samsung Galaxy S6 with Android 7.0 and for editing I use the 'Total Commander for Android' tool by C. Ghisler (Version 2.90).
So here's my problem: I put together a huge hosts file for my Windows PC (some own entries, a lot of entries copied from someonewhocares.org/hosts) and wanted to copy the entries from my PC to my phone. So I duplicated the file, used Notepad++ and did " Edit --> EOL Conversion --> Unix (LF) ". I then sent the file via e-mail, so I could easily download it from my phone. Said and done, I downloaded it and put it into /system/etc , but when I try to visit one of the sites in the hosts file, it works although it should'nt work.
When I open the hosts file on my phone via total commander and add an entry manually, it works (site is unavailable after doing so).
But if copied into the file (even in Unix format) the system will just ignore the entry.
I have a list with a little less than 10,000 entries, I can't type them all on my phone. What can I do now, so that the Android system will use the hosts file as it should?
Thank you very much
Sieefi
Sieefi said:
Hey guys,
I have a problem with editing the hosts file on Android.
At first, some general information: My Phone is a rooted Samsung Galaxy S6 with Android 7.0 and for editing I use the 'Total Commander for Android' tool by C. Ghisler (Version 2.90).
So here's my problem: I put together a huge hosts file for my Windows PC (some own entries, a lot of entries copied from someonewhocares.org/hosts) and wanted to copy the entries from my PC to my phone. So I duplicated the file, used Notepad++ and did " Edit --> EOL Conversion --> Unix (LF) ". I then sent the file via e-mail, so I could easily download it from my phone. Said and done, I downloaded it and put it into /system/etc , but when I try to visit one of the sites in the hosts file, it works although it should'nt work.
When I open the hosts file on my phone via total commander and add an entry manually, it works (site is unavailable after doing so).
But if copied into the file (even in Unix format) the system will just ignore the entry.
I have a list with a little less than 10,000 entries, I can't type them all on my phone. What can I do now, so that the Android system will use the hosts file as it should?
Thank you very much
Sieefi
Click to expand...
Click to collapse
Nevermind. Problem solved.
Sieefi said:
Nevermind. Problem solved.
Click to expand...
Click to collapse
Please explain how you solved it, that may help others with the same issue(seek help and provide help ). Thanks!
strongst said:
Please explain how you solved it, that may help others with the same issue(seek help and provide help ). Thanks!
Click to expand...
Click to collapse
Oh, that is, in fact, pretty simple. It was pretty late when I did this yesterday and I was tired but wanted to get this done before going to sleep. So I made some stupid mistake. I don't know what it was, might have been that I reopened the file in windows editor, might be that I copied the wrong file, I really don't know.
Did it again today (this time without making a stupid mistake) and it works like a charm.
So for everyone who wants to do this, here's a step-by-step instruction (works with Total Commander or with ES File Explorer and should also work with every other root file explorer)
1. Edit your hosts file on your Windows (or Apple) PC as you wish
2. Copy the hosts file and put the duplicate into any other folder on your PC (just not the one with the original hosts file )
3. Open the duplicate with Notepad++ and change the format into Unix (Edit --> EOL Conversion --> Unix (LF))
To control whether everything is changed as necessary you can show the format of the line breaks by clicking View --> Show Symbol --> Show End of Line
4. Move the file to your Dropbox or OneDrive or send it to yourself via mail or, or, or...
5. On your Smartphone copy or move (as you wish) the file from your selected file exchange system into /system/etc
6. Done.
Of course this is only possible, if your Smartphone is rooted and your file explorer has root access.
If your using a Linux system and want to copy the hosts file from your PC to your smartphone you can leave out the third step because the file will already be written in Unix format

Categories

Resources