[Q] problem with edit the hosts file - Nexus 5 Q&A, Help & Troubleshooting

hi
I try to edit the hosts file in my nexus and it just not work that mean I puuled it out and edit it and when I try to push it back I get an error so I did it with my root explorer (I have root device)and still I can get to the site what am I doing wrong?
thank you

I7210I said:
hi
I try to edit the hosts file in my nexus and it just not work that mean I puuled it out and edit it and when I try to push it back I get an error so I did it with my root explorer (I have root device)and still I can get to the site what am I doing wrong?
thank you
Click to expand...
Click to collapse
Did u mount R/W the system partition? You can also use Hosts Editor app for that.

yes I mount r/w about the editor I want something you can't change in easly that way I want it manually
it suppose to be like these right (about google)
127.0.0.1 www.google.com
127.0.0.1 google.com
?

I7210I said:
yes I mount r/w about the editor I want something you can't change in easly that way I want it manually
it suppose to be like these right (about google)
127.0.0.1 www.google.com
127.0.0.1 google.com
?
Click to expand...
Click to collapse
127.0.0.1 domaine_name without "www." - always like that

still not blocking

I7210I said:
still not blocking
Click to expand...
Click to collapse
How can I help you with such information??? Which browser? Which domain?....

Related

Revert Adblocking on WB 2.3.3

Hello guys
I really like this rom but there is one thing that takes the piss, i normally use adblock app from market so i can block and later on revert so i can use apps like TV Shows stream, Animewatch and stuff that need advertisements to work. I'd like to know the IP wolf used to revert his adblocking.
Thanks in advance
P.S: I didn't know where to place this so i went for the ''Apps'' section.
Isn't there a RESTORE on the app itself?
Sendou said:
Hello guys
I really like this rom but there is one thing that takes the piss, i normally use adblock app from market so i can block and later on revert so i can use apps like TV Shows stream, Animewatch and stuff that need advertisements to work. I'd like to know the IP wolf used to revert his adblocking.
Thanks in advance
P.S: I didn't know where to place this so i went for the ''Apps'' section.
Click to expand...
Click to collapse
ad block is directly at hosts file
location /system/etc/hosts
if you want to remove ad block temporarily just create a backup copy of hosts and write a new hosts file with just one line
127.0.0.1 localhost
that will remove native adblocking....
now if you want to use any ad blocking software you can also use that.
Thank you, Sir
Looks like it's the app that is malfunctioning.
edit the host files at /system/etc/hosts using root explorer.
anantshri said:
ad block is directly at hosts file
location /system/etc/hosts
if you want to remove ad block temporarily just create a backup copy of hosts and write a new hosts file with just one line
127.0.0.1 localhost
that will remove native adblocking....
now if you want to use any ad blocking software you can also use that.
Click to expand...
Click to collapse
thanks sir =)
anantshri said:
ad block is directly at hosts file
location /system/etc/hosts
if you want to remove ad block temporarily just create a backup copy of hosts and write a new hosts file with just one line
127.0.0.1 localhost
that will remove native adblocking....
now if you want to use any ad blocking software you can also use that.
Click to expand...
Click to collapse
thx..
it works on me~

[Q] Unlock APN

Hi There,
I bought an atrix 2 that is supposedly unlocked and rooted. I download a root checker and it says it is rooted. I was reading that if it is unlocked that u can use a different carrier which I have been. The phone was set up at the beginning to use T Mobile with a APN set up for this carrier and it worked fine. To save some money I switched to simple mobile which is also working fine. This might seem petty but the T Moblie APN is locked and i would like to delete it but dont know how. Can anyone help? My phone is running the currant ICS 4.0 update.
Thank you
chrisroch40 said:
Hi There,
I bought an atrix 2 that is supposedly unlocked and rooted. I download a root checker and it says it is rooted. I was reading that if it is unlocked that u can use a different carrier which I have been. The phone was set up at the beginning to use T Mobile with a APN set up for this carrier and it worked fine. To save some money I switched to simple mobile which is also working fine. This might seem petty but the T Moblie APN is locked and i would like to delete it but dont know how. Can anyone help? My phone is running the currant ICS 4.0 update.
Thank you
Click to expand...
Click to collapse
You'll need SQLite editor for this.
Using that goto settings storage (com.motorola.android.providers.settings)
Open settings.db
Search for and change dun_apn_changeble,dun_enable to 1.
Reboot.
Sent from my MB865 using xda premium
I Tried
deveshmanish said:
You'll need SQLite editor for this.
Using that goto settings storage (com.motorola.android.providers.settings)
Open settings.db
Search for and change dun_apn_changeble,dun_enable to 1.
Reboot.
Sent from my MB865 using xda premium
Click to expand...
Click to collapse
I Installed SQLite and couldnt find the file u were referring to. I found something ending with providers settings but it was empty
Update
chrisroch40 said:
I Installed SQLite and couldnt find the file u were referring to. I found something ending with providers settings but it was empty
Click to expand...
Click to collapse
Ok I found the database and changed the dun_apn_changable and the dun_enable value from 0 to 1 and rebooted and the t-mobile apn is still locked?????????
Help!!!!
Hey just to be clear before anything else what exactly do you mean the apn is locked???Have you tried adding the apn for your new carrier manually by going into settings/more/mobile Network/acces point name/new apn???
Sent from my MB865 using xda premium
Locked APN
deveshmanish said:
Hey just to be clear before anything else what exactly do you mean the apn is locked???Have you tried adding the apn for your new carrier manually by going into settings/more/mobile Network/acces point name/new apn???
Sent from my MB865 using xda premium
Click to expand...
Click to collapse
When I got the atrix 2 it was set up for T-Mobile with a tmobile apn. This apn has a locked symbol next to it. All i can do is open it and look at it. Cant edit or delete it. I added a simple mobile apn and the phone works fine with everything I am just wondering if there is any way to unlock the t-mobile apn so I can delete it????
You can still use your new apn even if the t-mobile apn is still there
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
I know that
rdhoggattjr said:
You can still use your new apn even if the t-mobile apn is still there
Sent from my SAMSUNG-SGH-I717 using Tapatalk 2
Click to expand...
Click to collapse
I know it works I have stated that already I just want to clean up my phone and get rid of the t mobile apn. Man I didn't think it would be this hard anybody got any suggestions. Somebody put it in the phone and locked it there has to be a way to reverse this.
Thank You
chrisroch40 said:
I know it works I have stated that already I just want to clean up my phone and get rid of the t mobile apn. Man I didn't think it would be this hard anybody got any suggestions. Somebody put it in the phone and locked it there has to be a way to reverse this.
Thank You
Click to expand...
Click to collapse
If you really must remove it, there is only one way.... I will tell you that it is a little dangerous if you mess up you will bootloop and have to fxz.
You will need the android SDK.
Your phone needs to be rooted.
You need to use adb to pull the /system/etc/apns-conf.xml file to your computer.
Code:
adb pull /system/etc/apns-conf.xml
Now you can edit it with any text editor you want, and you will need to remove the whole block that has the tmo APN.
You will need to mount /system read write:
Code:
adb shell
su
mount -o remount, rw /system
exit
exit
Then using adb put it back in place with this:
Code:
adb push apns-conf.xml /data/local
adb shell
su
cp /data/local/apns-conf.xml /system/etc
exit
exit
And do this to set the perms and owner correctly:
Code:
adb shell
su
chmod 644 /system/etc/apns-conf.xml
chown root /system/etc/apns-conf.xml
chgrp root /system/etc/apns-conf.xml
mount -o remount, ro /system
exit
exit
Now you can also just leave it there and it will hurt nothing.
Yes some things on this phone are harder to hack, but to me that makes it a little more fun and challenging.
Editing File
jimbridgman said:
If you really must remove it, there is only one way.... I will tell you that it is a little dangerous if you mess up you will bootloop and have to fxz.
You will need the android SDK.
Your phone needs to be rooted.
You need to use adb to pull the /system/etc/apns-conf.xml file to your computer.
Code:
adb pull /system/etc/apns-conf.xml
Now you can edit it with any text editor you want, and you will need to remove the whole block that has the tmo APN.
You will need to mount /system read write:
Code:
adb shell
su
mount -o remount, rw /system
exit
exit
Then using adb put it back in place with this:
Code:
adb push apns-conf.xml /data/local
adb shell
su
cp /data/local/apns-conf.xml /system/etc
exit
exit
And do this to set the perms and owner correctly:
Code:
adb shell
su
chmod 644 /system/etc/apns-conf.xml
chown root /system/etc/apns-conf.xml
chgrp root /system/etc/apns-conf.xml
mount -o remount, ro /system
exit
exit
Now you can also just leave it there and it will hurt nothing.
Yes some things on this phone are harder to hack, but to me that makes it a little more fun and challenging.
Click to expand...
Click to collapse
Ok i pulled the file with no problems and opened it with notepad. Do i delete everything in the file? I see the words T-mobile through out the whole file.
Permission denied
chrisroch40 said:
Ok i pulled the file with no problems and opened it with notepad. Do i delete everything in the file? I see the words T-mobile through out the whole file.
Click to expand...
Click to collapse
OK i deleted the block and did like u said to push back to phone but keep getting permission denied..Help!!!!
chrisroch40 said:
OK i deleted the block and did like u said to push back to phone but keep getting permission denied..Help!!!!
Click to expand...
Click to collapse
You did not follow my directions then. I gave you every step. Take another look, as you can not copy files directly to /system/etc with out root perms.
permission denied
chrisroch40 said:
Ok i pulled the file with no problems and opened it with notepad. Do i delete everything in the file? I see the words T-mobile through out the whole file.[/QU
Ok i did like u said and deleted the block but when i try pushing back to phone i get permission denied. Please Help.
Click to expand...
Click to collapse
Ok i pulled the file and deleted the T-mobile block i figure that out but when I tried to push back to phone i get permission denied. I followed the instructions.
jimbridgman said:
You will need to mount /system read write:
Code:
adb shell
su
mount -o remount, rw /system
exit
exit
Then using adb put it back in place with this:
Code:
adb push apns-conf.xml /data/local
adb shell
su
cp /data/local/apns-conf.xml /system/etc
exit
exit
Click to expand...
Click to collapse
So Again, you can not just push the file to /system/etc.... follow that above and it will work, I do this all the time.
I do it exactly as u posted.
jimbridgman said:
So Again, you can not just push the file to /system/etc.... follow that above and it will work, I do this all the time.
Click to expand...
Click to collapse
I do it exactly as u say changing it to read write and that part goes fine. When i try pushing the file after that I get permission denied.

[Q] Playstore no connection

My playsore is giving no connection error on wifi but works fine in gprs. I tried the wifi of my neighbors but still it didn't work. I wiped dalvik, flashed a different rom nothing happened... Also deleted the host file... I am using HTC incredible s... Any solutions?
razahood said:
My playsore is giving no connection error on wifi but works fine in gprs. I tried the wifi of my neighbors but still it didn't work. I wiped dalvik, flashed a different rom nothing happened... Also deleted the host file... I am using HTC incredible s... Any solutions?
Click to expand...
Click to collapse
Sorry bro.... But I don't know what is "playsore"?
The guy above is just a troll.
Try this, inside the etc folder of system. Create a .txt file. Inside the file add this - 127.0.0.1 localhost
Once done, save, then rename the file to hosts do not give it an extension (.txt)
TheArc said:
The guy above is just a troll.
Try this, inside the etc folder of system. Create a .txt file. Inside the file add this - 127.0.0.1 localhost
Once done, save, then rename the file to hosts do not give it an extension (.txt)
Click to expand...
Click to collapse
i think that step for youre problem
I was also facing this since 1 week, my brother dont face this it was only in my mobile its temporary
Sent from my A2 using xda app-developers app

persmission editing

Anyway to edit system file permission without root? ADB or something?
aviranx said:
Anyway to edit system file permission without root? ADB or something?
Click to expand...
Click to collapse
This is the meaning of rooting the device

build.prop

I think I messed something up, can you share build.prop file please?
How is it possible you request the build.prop file if you need to be a root user to be able to modify it, and the Mate 30 Pro has the bootloader blocked?
You cant exit the build prop file, retrack what you did to what files.
luisvalino said:
How is it possible you request the build.prop file if you need to be a root user to be able to modify it, and the Mate 30 Pro has the bootloader blocked?
Click to expand...
Click to collapse
You can use ADB to pull buildprop file out to your PC via this command: adb shell getprop > yourbuildpropname.txt

Categories

Resources