-Get your self a file browser (e.g I have Root Explorer)
-Go to /etc/hosts
-Open the hosts file in a text editor
-Delete everything apart from 127.0.0.1 localhost
-Your Done!!
Sent from my Moto G
GameAware said:
-Get your self a file browser (e.g I have Root Explorer)
-Go to /etc/hosts
-Open the hosts file in a text editor
-Delete everything apart from 127.0.0.1 localhost
-Your Done!!
Sent from my Moto G
Click to expand...
Click to collapse
I have the problem and the only line in the file is 127.0.0.1 localhost
Sent from my Motorola Moto G XT1032
Me too only line I have is as above
We need a fix some expert please help
Sent from my XT1032 using Tapatalk 2
The solution would be to just delete the hosts file and restart the phone. On reboot play store will rebuild the hosts file and you should be able to connect.
Sent from my XT1033 using Tapatalk
This issue might not be due to host file... Even people running stock are having the issue and there host file will be exactly same as specified in OP
madman said:
This issue might not be due to host file... Even people running stock are having the issue and there host file will be exactly same as specified in OP
Click to expand...
Click to collapse
Hmm.. but deleting the host file and restarting the phone has always worked for me, whether i was on stock rom or custom... the other solution i can think of if this does not work is log out of google and login with a different id.. i think read this somewhere when i first faced the issue, but never had to use it..
Sent from my XT1033 using Tapatalk
Hi I get this error " hosts file cannot be deleted" using file explorer on stock kitkat
Sent from my XT1032 using Tapatalk 2
Problem is not the host file. we need an ota by motorola to fix this "connection drop".
"Guides" like this should be deleted immediately as OP has no tiniest clue on what he is talking about. If access to Youtube/PlayStore were blocked via hosts file - it wouldn't work at all. Ever. Plus, a lot of guys with this issue are on stock ROMs with no root access and with locked bootloaders, so their "hosts" file can not be modified at all.
Being that said, OP is either:
a) troll
b) app developer (deleting hosts file would disable add blocking )
c) just another ignorant person
Sent from my XT1032 using xda app-developers app
MS. said:
"Guides" like this should be deleted immediately as OP has no tiniest clue on what he is talking about. If access to Youtube/PlayStore were blocked via hosts file - it wouldn't work at all. Ever. Plus, a lot of guys with this issue are on stock ROMs with no root access and with locked bootloaders, so their "hosts" file can not be modified at all.
Being that said, OP is either:
a) troll
b) app developer (deleting hosts file would disable add blocking )
c) just another ignorant person
Sent from my XT1032 using xda app-developers app
Click to expand...
Click to collapse
Sorry mate but this trick helped me, so I was just sharing it because it had been an issue. No need to cry
Sent from my XT1032 using XDA Premium 4 mobile app
AndroidHtc101 said:
Hi I get this error " hosts file cannot be deleted" using file explorer on stock kitkat
Sent from my XT1032 using Tapatalk 2
Click to expand...
Click to collapse
You will definitrely need Root for doing changes in hosts file.
Thus it is impossible that host will can be issue on unrooted stock as its hostfile is almost blank (localhost doesn't count)
denzel09 said:
Problem is not the host file. we need an ota by motorola to fix this "connection drop".
Click to expand...
Click to collapse
well I can say that I have seen this isssue on several other phones as well. My secondary phone is also having the issue. My friends are also having this issue on other phones. So definitely not Moto's problem either I would say.
zazzy24 said:
The solution would be to just delete the hosts file and restart the phone. On reboot play store will rebuild the hosts file and you should be able to connect.
Sent from my XT1033 using Tapatalk
Click to expand...
Click to collapse
Ignore the above, it is 100% completely wrong.
scott_doyland said:
Ignore the above, it is 100% completely wrong.
Click to expand...
Click to collapse
How do u know its completely wrong? Have you tried it and didn't work? Obviously it needs root access.. don't dismiss a method without trying it.. i have used it on samsung y, samsung s duos as well as moto g with full success.. and u must have a 100% correct method for sure, y don't u mention it?
Sent from my XT1033 using Tapatalk
zazzy24 said:
How do u know its completely wrong? Have you tried it and didn't work? Obviously it needs root access.. don't dismiss a method without trying it.. i have used it on samsung y, samsung s duos as well as moto g with full success.. and u must have a 100% correct method for sure, y don't u mention it?
Sent from my XT1033 using Tapatalk
Click to expand...
Click to collapse
You said:
'On reboot play store will rebuild the hosts file'
That is just completely wrong. You really think an app (which BTW never uses root) rebuilds the hosts file!!!
scott_doyland said:
You said:
'On reboot play store will rebuild the hosts file'
That is just completely wrong. You really think an app (which BTW never uses root) rebuilds the hosts file!!!
Click to expand...
Click to collapse
Again have u ever tried it? When i say you require root access, i mean to say you require it to delete the hosts file as you will not be able to do so with the stock file manager without root access..
Sent from my XT1033 using Tapatalk
Thus is not working for me right now? Changed host file multiple times rebooted nothing... Host file remains the same and the market still no connection. Any other ideas?
Sent from my XT1032 using xda app-developers app
ykdr-scott said:
Thus is not working for me right now? Changed host file multiple times rebooted nothing... Host file remains the same and the market still no connection. Any other ideas?
Sent from my XT1032 using xda app-developers app
Click to expand...
Click to collapse
As I said, hosts file is irrelevant here, unless its been altered to have an entry for the hostname of the playstore in it which points to an invalid IP. But let's face it, that is not the case.
If you have no connection at all though then your issue is different to the original issue in this thread.
I want the moderator to ban me.
Very nice.It helps me about my gadget.
Related
i need a the default Hosts file that comes with the american android.
i flashed a chinese rom and i dont live in china so i cant go on Youtube.com unless i change the hosts file from c.youtube.com to youtube.com.
this normally would be easy but youtube has over 200 lines with c.youtube.com in the hosts file.
thanks in advance!
EDIT: anybody? all you have to do is navigate to /etc/hosts/ in root manager then copy the text inside and paste it in a private message or post on here.
wrongbutton
Here is everything in my hosts file:
127.0.0.1 localhost
I hope I have been of great service to you.
Now if you really want to fix your problem, you may try adding:
72.14.204.91 youtube.com
What I would do though is delete them all and allow the US DNS server that you are routing through direct you to the host.
did you read my post at all?
Sent from my MB860 using xda premium
Uh, yes. My /etc/hosts file contains one line:
127.0.0.1 localhost
So there is your answer.
i deleted everything under #youtube and added 72.14.204.91 youtube.com then restarted, youtube works fine now.
thanks!
Sent from my MB860 using xda premium
No problem.
Just to note, you generally do not need to specify hosts in the hosts file, unless something is screwed up with the nameservers and dns through the ISP. It's interesting that the rom you flashed had edited those hosts, even though they have the 'great firewall'. China is weird...
yeah i was wondering the same thing. i hope i didnt come off a rude in my previous posts
Sent from my MB860 using xda premium
I recently rooted my stock AT&T Samsung Galaxy S4 (MF3) and have been implementing a few improvements that I've found on this thread but have run into a strange error twice already when trying to replace an existing system app with a modded version.
With other phones in the past I simply paste an app into system/app and set RW-R-R permissions, then reboot the phone. During the next boot it usually says "android is upgrading 1 of 1" and creates a matching .odex file in the /system/app folder and everything works perfect.
So far I've tried to replace the SecPhone.apk with a version that allows call recording, and the TetheringProvision.apk with one that will let me tether on my AT&T phone. In both instances I reboot, but it never says "upgrading", nor is an .odex file created, and then the app fails to work. With the TetheringProvision.apk I also kept getting a "failed to change permissions" error in ES File Explorer, so I retried with Root Explorer, and SMangager but none of them could change the permission on the apk once it was in the system/app folder (yes /system was mounted R/W). I'm not sure if this is related to the above problem or not.
Has anyone else had a similar issue? I have frozen most of the Samsung bloatware apps and while I've been careful, I suppose I could have accidentally frozen something important, but everything other than these replacement system apps seems to be working perfectly. I thought android automatically checked for new apps on every boot, but apparently not on my phone.
Is there any way to force an app check on boot? Thanks for the help.
So I guess no one else has had a similar issue...
Sent from my GT-I9505 using xda app-developers app
You can not mod a rom that is odexed...period, unless it is made for odex.
TheAxman said:
You can not mod a rom that is odexed...period, unless it is made for odex.
Click to expand...
Click to collapse
Sorry, what do you mean by "period, unless it is made for odex"? Can you or can't you?
Sent from my GT-P7510 using xda premium
stinky73 said:
Sorry, what do you mean by "period, unless it is made for odex"? Can you or can't you?
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
For an Odexed system, an Odex file is required to be installed along with the original file. So if a mod is created for an "Odexed" system, it will have a .odex file accompanying it that must be installed also. Installing a deodexed file into an odexed system doesn't work unless the deodexed file is split down into its 2 parts again (original file, plus .odex file)..
This was very helpful. Is there a guide you could recommend to me on how to make an odex file from the modded apk that I have so that I can get these programs working on my S4?
Sent from my GT-I9505 using xda app-developers app
stephend9 said:
This was very helpful. Is there a guide you could recommend to me on how to make an odex file from the modded apk that I have so that I can get these programs working on my S4?
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
Following article explains the odexing procedure "http://forum.xda-developers.com/showthread.php?t=1208320"
Install a transparent notification bar, forgot to keep a copy of the original sysmui. Now i have no status bar and a black baground. If anyone can copy it from their phone, i really appreciated. Im on a active with mf3. Thanks
Sent from my SAMSUNG-SGH-I537 using Tapatalk 2
Could you go into a little detail on what happened and what you have done to try to fix it? I don't understand what your saying.
I think he wants the systemUI.apk for the active because he fubar'd his.
jd1639 said:
I think he wants the systemUI.apk for the active because he fubar'd his.
Click to expand...
Click to collapse
Any ideas where to get that? I don't even think that will install without flashing, but can't flash on MF3 yet.
Sent from miPhone using XDA Premium HD app
agent929 said:
Any ideas where to get that? I don't even think that will install without flashing, but can't flash on MF3 yet.
Sent from miPhone using XDA Premium HD app
Click to expand...
Click to collapse
You can copy the file from root explorer without flashing. I was able to get a copy of the systemui and place it into the sys/app folder. Now everything is back to normal.
Sent from my SAMSUNG-SGH-I537 using Tapatalk 2
Sweet nice job. Will remember that for the future
Where did you get it from?
Sent from miPhone using XDA Premium HD app
agent929 said:
Sweet nice job. Will remember that for the future
Where did you get it from?
Sent from miPhone using XDA Premium HD app
Click to expand...
Click to collapse
Got it from a friend who just picked up a s4 active.
Sent from my SAMSUNG-SGH-I537 using Tapatalk 2
So you just copied the apk off his phone I'm assuming? I'm also assuming it's the same apk as the regular S4? (I'm just trying to get better knowledge so I can help somebody in the future.)
agent929 said:
So you just copied the apk off his phone I'm assuming? I'm also assuming it's the same apk as the regular S4? (I'm just trying to get better knowledge so I can help somebody in the future.)
Click to expand...
Click to collapse
As the other person replied - with root access, you can download ES File Explorer, or Root Browser, give the app root access via SuperSU, navigate to the System > apps folder, find the file(s) you want, copy/move them where you need.
FourPointedFreak said:
As the other person replied - with root access, you can download ES File Explorer, or Root Browser, give the app root access via SuperSU, navigate to the System > apps folder, find the file(s) you want, copy/move them where you need.
Click to expand...
Click to collapse
Yeah I'm well aware you can do that but I didn't know that apk would actually function like an apk if you did that. Just thought it was more to it than that.
Sent from miPhone using XDA Premium HD app
agent929 said:
Yeah I'm well aware you can do that but I didn't know that apk would actually function like an apk if you did that. Just thought it was more to it than that.
Sent from miPhone using XDA Premium HD app
Click to expand...
Click to collapse
As long as you have the appropriate odex file along with it and you know how to do it - it should be fine. You have to know how an APK file works, Applications are basically glorified ZIP archives. The java code is stored in a file called classes.dex and this file is parsed by the Dalvik JVM and a cache of the processed classes.dex file is stored in the phone's Dalvik cache.
An odex is basically a pre-processed version of an application's classes.dex that is execution-ready for Dalvik. When an application is odexed, the classes.dex is removed from the APK archive and it does not write anything to the Dalvik cache. An application that is not odexed ends up with 2 copies of the classes.dex file--the packaged one in the APK, and the processed one in the Dalvik cache. It also takes a little longer to launch the first time since Dalvik has to extract and process the classes.dex file.
If you are building a custom ROM, it's a really good idea to odex both your framework JAR files and the stock apps in order to maximize the internal storage space for user-installed apps. If you want to theme, then simply deodex -> apply your theme -> reodex -> release.
Is there no way to get system/app to r/w? Been trying every app and terminal command to let me remount so I can reinstall my backup of the messaging apk and it just doesn't work.
I use Root Explorer and have had no problem using"Mount R/W" in system/app.
Sent from my Galaxy Note 3.
GirLuvsDroid said:
I use Root Explorer and have had no problem using"Mount R/W" in system/app.
Sent from my Galaxy Note 3.
Click to expand...
Click to collapse
Ok that worked but it crashes attempting to install the backup, anyone got a stock messanging.apk they can toss my way?
crimsonsin said:
Ok that worked but it crashes attempting to install the backup, anyone got a stock messanging.apk they can toss my way?
Click to expand...
Click to collapse
Hopefully, this is the right one.
the heyetryo
Bleh. Copied to system/app, still get application not installed. Reboot with it in there and it doesn't show up either. At a loss here.
GirLuvsDroid said:
Hopefully, this is the right one.
Click to expand...
Click to collapse
Any chance you can toss me the matching .odex file to that apk?
crimsonsin said:
Any chance you can toss me the matching .odex file to that apk?
Click to expand...
Click to collapse
Another thought, did u make sure permissions were right ?
Sent from my HTC Rezound using Tapatalk 2
crimsonsin said:
Any chance you can toss me the matching .odex file to that apk?
Click to expand...
Click to collapse
Here you go. You'll need to rename the file to delete the .zip extension.
mjh68 said:
Another thought, did u make sure permissions were right ?
Sent from my HTC Rezound using Tapatalk 2
Click to expand...
Click to collapse
Yep, they're set correctly
Now it's giving me the option to update or new install this system app. Problem is I don't see an already installed version obviously.
try downloading a custom rom for your cellphone, just for extracting the messaging app
Sent from my XT920 using Tapatalk 4
have you tried to use adb to install it?
http://forum.xda-developers.com/showthread.php?t=2715657
OK so as you have noticed kit kat does NOT allow third party apps to write to the SD card, this is stupid, but lucky for us we have a fix IF you are rooted
we have 2 solutions
1) using root explorer or something similar go to
/system/etc/permissions/platform.xml
Click to expand...
Click to collapse
and enter the permission that i have circled in red below (see attached) then it will work. Enter it so it looks EXACTALLY like it does below
2) the other option that MAY work is to go to the play store and download SDFix, that does the same thing (however myself and a few others are reporting that it isnt working as it is written)
big thanks to Mr Sam Epic for showing the fix, which came from Unknown Force in a SGS4 forum
****edit 4/19
had a few reports of SDFix not working, it didnt for me, i thought it was just a random error, what i did to fix it was to go into platform.xml and manually edit the permission so it looks exactally like the image below, i put in the extra return after the permission, there is not a logical reason why this fixed it, but it did
Also if you're going the non-rooted approach, although not necessarily preferred, it does work to just copy stuff with the stock my files app, as it is a system app rather than third party.
Sent from my SM-G900W8 using Tapatalk
I'm having to copy my movie and music files to sdcard via the my files app. The app makers need to update so we can automatically save to sd.
Sent from my SM-G900F using Tapatalk
simacca said:
I'm having to copy my movie and music files to sdcard via the my files app. The app makers need to update so we can automatically save to sd.
Sent from my SM-G900F using Tapatalk
Click to expand...
Click to collapse
If you are rooted and do the fix I listed above and then reboot you should be able to change the directory it saves to, if not uninstall and reinstall the app and all should be fine
evilbeef54 said:
If you are rooted and do the fix I listed above and then reboot you should be able to change the directory it saves to, if not uninstall and reinstall the app and all should be fine
Click to expand...
Click to collapse
Thanks, but will only root when there is a way that doesn't invalidate warranty.
Sent from my SM-G900F using Tapatalk
Use an app called File expert. This app has been updated and can read/write to external xd card without root.