[Q] Hosts File and other System Files get restored after reboot - One (M7) Q&A, Help & Troubleshooting

Hi,
i got a annoying Issue with the ONE. If i edit my hosts file manually or with the AdAway App everything works fine until i restart the Phone. (Sometimes it's not necessaryto restart, the files get restored without i recognize some rebooting)
The Hosts and other System Files will be restored to the Original State. See Screenshots below.
Before reboot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After reboot:
SystemInfo:

Your kernel has write protection. Try a custom kernel out a modified stock one with the wire protection disabled. You must be bootloader unlocked afaik.
Sent from my HTC One using xda app-developers app

lampel said:
Your kernel has write protection. Try a custom kernel out a modified stock one with the wire protection disabled. You must be bootloader unlocked afaik.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
ah... thank you... can you recomend some image for the HTC ONE? (Stock Android 4.3)

I've had good luck with flar2's kernels. He has 'bulletproof' if you want a set it and forget kernel or elementalX if you want more control with over/under-clocking and over/under-volting, etc...
Sent from my HTC One using xda app-developers app

Pardon if I'm reviving something of an old thread, but I have the same issue. I have a GS4 that I've flashed to a Google Edition-based ROM (wanted 4.3 kernel and something slimmer that still had Wallet support), but I've noted the exact same thing. Any hosts-based ad-blocker tends to fall flat no matter what the method I used. Any attempt to alter the hosts file is always reset upon reboot.
I've already taken advice and tried a custom kernel (in this case, Chronic Kernel), but not only did this not fix the hosts file problem, it also broke Wallet, so I had to backtrack. I may be stuck with my ROM's kernel due to the Wallet support.
Perhaps someone has another suggestion?

I'm also having the same issue on gs4 any help would be appreciated

Related

[ROM] Deodexed 6.16.217

deodexed and virgin lol! enjoy!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1 is rooted
2 has busybox
3 zipaligned
4 deodexed
5 It has all the apps
6 based off of 6.16.217
install with safestrap 2.0
https://docs.google.com/open?id=0B1lBKdIuoce6UkVfaThOTEN5SnM
https://www.dropbox.com/s/m3zbq6ghacfp4kj/signed_deomotoblur-6.16.217-XT894.zip
down https://www.dropbox.com/s/2kww3heyz5s00ld/signed_deomotoblur-6.16.217-XT894.zip
bump
Thank you! For anyone looking to work on a new rom, this will be very useful! (Or those of us who want back a specific bit for Eclipse, like motorola's clock app.)
omniuni said:
Thank you! For anyone looking to work on a new rom, this will be very useful! (Or those of us who want back a specific bit for Eclipse, like motorola's clock app.)
Click to expand...
Click to collapse
thats why i posted it enjoy!
Does this rom have the QE process?
zeroktal said:
Does this rom have the QE process?
Click to expand...
Click to collapse
no i removed it
Awesome thanks
can this only be flashed to the safe partition or could you use like cwm to flash it as the main rom?
my thinking is if you temp rooted to get recovery installed, booted straight into recovery,
flashed the rom with qe removed you would not have to worry about being caught by qe.
It should be flashed to the safe system. After all, the whole idea of using a safe system is to keep the original intact in case you need to take the phone back.
can I get a live link with this?
none of the links above are
working.
I am stuck at the SIM required screen. I edited build.prop to read keyguard.no_require_sim = false and indeed i get a lock screen but when i get out of it i get the welcome.. screen and though i added ro.setupwizard.enable_bypass=1 I can't get out of the screen. Tried Droid4HD lite too, same.
I do a little mod, for this people what dont like moto_blur, icons in system now look like below
to do this you must change your Settings.apk (in system/app/ folder ) with this from link
https://www.dropbox.com/s/zvcdnnbbn2sbxg8/Settings.apk
dont forgot about promissions

[Q] Bulletproof kernel not working properly

Hi,
First of all, I'm quite a noob, so thanks for your consideration.
I just installed the Bulletproof (version 13.0) kernel on my International HTC One, using TWRP Recovery, to disable write protection.
However, write protection is still active, as I can't edit files in the system folder of my phone.
I guess Bulletproof is installed properly, as the 'Sweep2Wake' function is working.
So, my question is: How do I disable this write protection now I'm in a custom kernel?
I am rooted, using Bulletproof kernel and Android Revolution HD 51.0
Thanks in advance,
Sander
sander_r said:
Hi,
First of all, I'm quite a noob, so thanks for your consideration.
I just installed the Bulletproof (version 13.0) kernel on my International HTC One, using TWRP Recovery, to disable write protection.
However, write protection is still active, as I can't edit files in the system folder of my phone.
I guess Bulletproof is installed properly, as the 'Sweep2Wake' function is working.
So, my question is: How do I disable this write protection now I'm in a custom kernel?
I am rooted, using Bulletproof kernel and Android Revolution HD 51.0
Thanks in advance,
Sander
Click to expand...
Click to collapse
1- ARHD 51.0 kernel already has w/p disabled
2- so you didnt need bulletproof, except if you want the added mods
therefore
3- i guess you're trying to use a file explorer (ES maybe) to edit files? not only do you need to enable root access, you also need to "mount" /system as r/w access, eg:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Wow, I feel really stupid now. Can't believe I missed something that simple.
Thank you very much though! :good:

Please help. Need settings apk for android 4.3.

I updated my settings apk to a 5.5 version from the 5.0 version that is in the stock 4.3 rom, and now I can't access my settings at all.
I know, stupid move not backing up before I did it.
Is there anyone that can please point me to where I can download just the settings apk for the stock 4.3 rom?
Sent from my HTC One using XDA Premium 4 mobile app.
johnequickiii said:
I updated my settings apk to a 5.5 version from the 5.0 version that is in the stock 4.3 rom, and now I can't access my settings at all.
I know, stupid move not backing up before I did it.
Is there anyone that can please point me to where I can download just the settings apk for the stock 4.3 rom?
Sent from my HTC One using XDA Premium 4 mobile app.
Click to expand...
Click to collapse
Downloading a stock 4.3 ROM (from here) and opening it up and looking for it in /system/app or /system/priv-app (in the ROM) might help. After you find it, just use Root Explorer to move it to your own directory where Settings.apk lies in.
Edit: For InsertCoin, it's here:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'd give you it, but it's Sense 6.0.
OK Giving that a try. Also, while waiting for it to download, I'm dissecting my latest nandroid backup and trying to get it from there.
I think I need an odex file for it too. Seems like everything else has one.
Got the files from my backup and copied them to where they needed to be, but it didn't work. Unsure why.
johnequickiii said:
Got the files from my backup and copied them to where they needed to be, but it didn't work. Unsure why.
Click to expand...
Click to collapse
Do they have the same permissions as the other files in the same folder?
I just decided to restore the backup. Everything else I did just froze the phone on the loading screen.
Thanks for the help though. ^^

newbie needs step by step on rooting samsung sm g900A 5.1.1 please

New to this and just would love some help on rooting my phone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my SAMSUNG-SM-G900A using XDA Premium HD app
There is no root method for the GS5 on Lollipop.
so does that mean we can't go to an earlier version and root that?
sullytrny said:
so does that mean we can't go to an earlier version and root that?
Click to expand...
Click to collapse
Unfortunately, no. This phone was only rootable on KitKat.
johnkirchner said:
Unfortunately, no. This phone was only rootable on KitKat.
Click to expand...
Click to collapse
Thanks, and that's ok but not the best of corse, what I have been able to do because the most important thing for me was/is a GPS app I use and it/was a root only app for storage to the sdext for offline maps. I get a popup now that directs me to another window that has a "hint" to select "0000-xxxx" on the next page, then I can select the sdext for storage and the app uses it (very happy) and it seems to happen for other file transfer tasks. I do not know if the app made this possible or if its just native as this was the first app I installed but it's there in any event. so now when my game files get to big for some other task I wish to do I just move the app data file to the sdext and do whatever and move it back when done. Again not the best but livable as I really like the 5.1.1/OJ3 ROM that's on my G870A, good battery live with quick operation after installing the Pro version of Samsung Package Disabler . I really like this phone! And let's hope this new exploit they found for the Verizon phones turns into something!
I also contacted at&t and stressed how important rooting can be (as for me it's a safety issue as there's bad service in the rural area I'm in) and suggested they might even allow it for an extra fee/no or paid support for doing it. I'm not holding my breath.
Thanks again, now I going to put my KFHD back to 8.1.4 and see if I can get OTG to work as this 870 is all I need for gaming now that I got glasses, I'm an old fart (chronologically)
sully

Not working

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
is there anything wrong with this xposed , it was installed along with the rom (wolla sense 7 v2.0 ) , i cant update it or download anything from within, any solution guys ?
Thank you
Sent from my HTC One_M8 using XDA-Developers mobile app
That's normal. There was time when those buttons actually worked but now if you want to update it from now on, you simply flash the latest Xposed zip.
I think its mainly because there are some many different devices now that one zip can't possibly work for all of them so it sort of prevents people downloading an Xposed not designed for their system. This is pure speculation. Rovo89 probably has a proper reasons by yeah.
siddharthsachdeva said:
View attachment 3711579 is there anything wrong with this xposed , it was installed along with the rom (wolla sense 7 v2.0 ) , i cant update it or download anything from within, any solution guys ?
Thank you
Sent from my HTC One_M8 using XDA-Developers mobile app
Click to expand...
Click to collapse
1/ try myandroidtool app and with that app open xposed contants and make sure everything is allowed
this was an issue with mine xposed
may work for you
2/ or just install latest xposed apk and framework(according to your device) through custom recovery
Sent from my SM-G7102 using Tapatalk
If download section within Xposed Installer app is empty, wipe cache of Xposed Installer app and reboot your device.
PBombNZ said:
That's normal. There was time when those buttons actually worked but now if you want to update it from now on, you simply flash the latest Xposed zip.
I think its mainly because there are some many different devices now that one zip can't possibly work for all of them so it sort of prevents people downloading an Xposed not designed for their system. This is pure speculation. Rovo89 probably has a proper reasons by yeah.
Click to expand...
Click to collapse
so i have to just find correct zip and install using twrp?
@siddharthsachdeva Yes

Categories

Resources