Can we push an adblock host file to /etc/hosts/ if we are running a custom rom? Or is that just an asinine idea that would never work? The HTC browser is my preferred but pop-ups and ads are killing me. This or any other solution to this problem?
mcampos7 said:
Can we push an adblock host file to /etc/hosts/ if we are running a custom rom? Or is that just an asinine idea that would never work? The HTC browser is my preferred but pop-ups and ads are killing me. This or any other solution to this problem?
Click to expand...
Click to collapse
Is this coming from an unlocked phone?.. stock phone..
since we are write protected, I think you could prob push it, and it would work until reboot, to which you'd have to do it again.
Unlocked... Newts Rom
So, in theory I could pull an adblock host file from, say a Rom I ran on my DNA or Rezound and flash it using your empty flashable zip. Or are the host files device dependent?
mcampos7 said:
Unlocked... Newts Rom
So, in theory I could pull an adblock host file from, say a Rom I ran on my DNA or Rezound and flash it using your empty flashable zip. Or are the host files device dependent?
Click to expand...
Click to collapse
flash away my friend.
it's all blocking the same sites
at worst, you make a nand before hand.
Personally though I use the same hosts file for all my ROMS..
andybones said:
flash away my friend.
it's all blocking the same sites
at worst, you make a nand before hand.
Personally though I use the same hosts file for all my ROMS..
Click to expand...
Click to collapse
So flashing would be a more permanent solution to using an app like adblock or adaway?
I'm currently using the latter, but if anyone has a flashable zip which would be more permanent (I'm on unlocked stock ROM), I'd be so appreciative.
Thanks~!
If you have root from an unlocked bootloader and a custom rom with a kernel that does not WP system, yes.
---------- Post added at 05:37 PM ---------- Previous post was at 05:36 PM ----------
cyberstraz said:
So flashing would be a more permanent solution to using an app like adblock or adaway?
I'm currently using the latter, but if anyone has a flashable zip which would be more permanent (I'm on unlocked stock ROM), I'd be so appreciative.
Thanks~!
Click to expand...
Click to collapse
adaway writes a hosts file to /etc.... what do you think it does lol? you would be doing the exact same thing as flashing a zip but you get updated lists. adblock is the piece of crap one that redirects traffic.
cyberstraz said:
So flashing would be a more permanent solution to using an app like adblock or adaway?
I'm currently using the latter, but if anyone has a flashable zip which would be more permanent (I'm on unlocked stock ROM), I'd be so appreciative.
Thanks~!
Click to expand...
Click to collapse
Going to be looking into/working on this today.
123421342 said:
If you have root from an unlocked bootloader and a custom rom with a kernel that does not WP system, yes.
---------- Post added at 05:37 PM ---------- Previous post was at 05:36 PM ----------
adaway writes a hosts file to /etc.... what do you think it does lol? you would be doing the exact same thing as flashing a zip but you get updated lists. adblock is the piece of crap one that redirects traffic.
Click to expand...
Click to collapse
To answer your question, I was trying to determine whether flashing in recovery bypassed the read-only privileges which seem to be in place.
Why do people feel the need to mock those that only seek to learn?
Edit: I forgot to thank you for clarifying regarding the stock vs custom ROM. I'm not above appreciating input, regardless of how snarkily it was disseminated.
Thank you.
cyberstraz said:
To answer your question, I was trying to determine whether flashing in recovery bypassed the read-only privileges which seem to be in place.
Why do people feel the need to mock those that only seek to learn?
Edit: I forgot to thank you for clarifying regarding the stock vs custom ROM. I'm not above appreciating input, regardless of how snarkily it was disseminated.
Thank you.
Click to expand...
Click to collapse
Exactly why I am hesitant to post in this forum. We are in Q&A though, no? If you flash recovery in recovery it bypasses Write Protection. Write protection is only while system is booted (I think, before someone jumps down my throat), but now I'm wondering why it is so stupid to flash a host file? When Devs create a ROM with ad blocking do they not usually include an ad blocking host file, as Andy commented above, rather than an ad blocking app? Correct me if I am wrong.. I know you will.
AND I was totally unaware custom Kernels were available to us... I thought we were waiting for source. The Kernels most be posted under Original Development, cuz they aren't in the Dev section. Nope not there either! Where are these custom Kernels dip**** was talking about?!
cyberstraz said:
To answer your question, I was trying to determine whether flashing in recovery bypassed the read-only privileges which seem to be in place.
Why do people feel the need to mock those that only seek to learn?
Edit: I forgot to thank you for clarifying regarding the stock vs custom ROM. I'm not above appreciating input, regardless of how snarkily it was disseminated.
Thank you.
Click to expand...
Click to collapse
Did not mean it like that hence the lol. I believe recovery mode removes write protect.
Sent from my HTC6500LVW using xda app-developers app
No worries. I appreciate the follow up. Cheers
Sent from my HTC6500LVW using Tapatalk 4
I've been using this one on several of my devices. Works like a charm. I like it because you don't have to deal with an adblock app. Just flash in recovery. Read thru it, nandroid, and give it a shot!
http://forum.xda-developers.com/showthread.php?t=1916098
mcampos7 said:
Exactly why I am hesitant to post in this forum. We are in Q&A though, no? If you flash recovery in recovery it bypasses Write Protection. Write protection is only while system is booted (I think, before someone jumps down my throat), but now I'm wondering why it is so stupid to flash a host file?
Click to expand...
Click to collapse
Well I am running the BoneStock ROM and using root explorer, I simply dropped my 1MB host file in /etc/hosts and it never goes away on reboot. I don't see how that would be any different from using an app or flashing it from the bootloader.
firepacket said:
Well I am running the BoneStock ROM and using root explorer, I simply dropped my 1MB host file in /etc/hosts and it never goes away on reboot. I don't see how that would be any different from using an app or flashing it from the bootloader.
Click to expand...
Click to collapse
BoneStock has built in ad blocking, Did you have to install the host file or was it to kill additional sites?
one4thewings said:
BoneStock has built in ad blocking, Did you have to install the host file or was it to kill additional sites?
Click to expand...
Click to collapse
With the default install of bonestock I was still getting ads on some pages and in YouTube until I added my custom hosts file
hoof hearted said:
I've been using this one on several of my devices. Works like a charm. I like it because you don't have to deal with an adblock app. Just flash in recovery. Read thru it, nandroid, and give it a shot!
http://forum.xda-developers.com/showthread.php?t=1916098
Click to expand...
Click to collapse
If you have the ability to write to system this is a bad idea because you won't get updated definitions ala adaway
Sent from my HTC6500LVW using xda app-developers app
if you guys would be kind enough to hook me up with the missing links I could add them to my hosts file
thank you all
It's so much better without the ads
Sent from my HTC6500LVW using XDA Premium 4 mobile app
123421342 said:
If you have the ability to write to system this is a bad idea because you won't get updated definitions ala adaway
Sent from my HTC6500LVW using xda app-developers app
Click to expand...
Click to collapse
The cool thing about the motherlist is you can add the hosts link listed there in that thread to AdAway and it will be included with the auto-updates.
Combined, I haven't seen a single ad pop up since installing both. Love it.
sawedust said:
The cool thing about the motherlist is you can add the hosts link listed there in that thread to AdAway and it will be included with the auto-updates.
Combined, I haven't seen a single ad pop up since installing both. Love it.
Click to expand...
Click to collapse
I tried adaway and adblock and both had issues with my CM ROM (error messages or permanent icon on notification bar). The only one that worked for me is adfree. It also gets hostfiles on it's own so after first setup you don't have to worry about it.
http://adfree.bigtincan.com/
Related
If your /system partition is write protected like on the HTC One (M7) and you try to use an advertisement blocker like AdAway, you will encounter that changes to /system/etc/hosts are lost after reboot and ad blocking doesn't work. You have basically 3 methods to get around this:
A) Link /system/etc/hosts to a partition AdAway can write to
Install symlink_hosts_to_data.zip via your custom recovery (like CWM) to create a symbolic link from /system/etc/hosts to /data/data/hosts. Afterwards you can configure AdAway to use /data/data/hosts (as shown in attached screenshot) and it will work perfectly with updates and everything.
B) Flash the hosts file directly
Install adaway_hosts_2014-04-14.zip via recovery. Now you have the hosts file as AdAway created on April 14th 2014. Disadvantage: you would need to flash again for updates. Advantage: you don't need the AdAway app at all. Note: many custom ROMs include such a hosts file already in their distribution.
C) Make /system partition writable
Use this kernel extension or a custom ROM including it to have the /system partition writable all the time. AdAway will work out-of-the-box then.
If you like to restore original state after having flashed one of the recovery zips above, use the attached restore_original_hosts.zip
Mantelinho said:
The attached recovery flashable update.zip modifies your /system/etc/hosts file just like AdAway or Adblock Plus would. Useful if your /system partition is write protected like on the HTC One (and changes are lost after reboot).
You need
a custom recovery like ClockWorkMod on your device
the understanding that you will use this script at your own risk
You could also
make the /system partition writable via kernel patch and use the app
use a custom ROM which comes with an ad-blocking hosts file already
This uses the hosts list from AdAway as of June 17th 2013. All credits for this to AdAway and its contributors
Click to expand...
Click to collapse
Can you create a script which creates the symbolic link i.e. the approach recommended in AdAway help (S-ON/S-OFF)? That would allow the file to be updated by the app over time...
melando said:
Can you create a script which creates the symbolic link i.e. the approach recommended in AdAway help (S-ON/S-OFF)? That would allow the file to be updated by the app over time...
Click to expand...
Click to collapse
This makes sense if you want to keep using the app, thanks for the hint. I uploaded symlink_hosts_to_data.zip and updated the opening post. This will work also after having the other zip already applied.
Cheers, do I need all 3 zips or just the one dated today?
Sent from my Nexus 7 using xda app-developers app
jonny68 said:
Cheers, do I need all 3 zips or just the one dated today?
Click to expand...
Click to collapse
Either the one dated (and you're fine) OR the symlink one if wanting to use AdAway configured to write to /data/data/hosts. The third file is only for restoring original state.
Cheers, so should this block all ads then, I had the ad block apk. But it didn't block all annoying ads?
Sent from my Nexus 7 using xda app-developers app
jonny68 said:
Cheers, so should this block all ads then, I had the ad block apk. But it didn't block all annoying ads?
Click to expand...
Click to collapse
This should block all ads so far (at least it absolutely does for me). However the list of ad servers is actively maintained by hosts-file.net. If you should find an ad host not blocked you can post it there and it will find its way back to AdAway. To be always up-to-date I recommend using AdAway with the symlink method from OP.
Dunno why but it doesn't block ads on the goal.com app but for some reason no adblock app ever really did, strange!
Sent from my Nexus 7 using xda app-developers app
sinna ketskm
Hey, just inquiring...
I've done the "flash host files directly" step, and playing Subway Surfers.
It would seem that ads are only blocked on that game when I have system set to RW...(I think...?...not 100% sure, but it would seem this way)
I was under the impression that it shouldn't matter because I'm flashing the host file directly?
Can anyone offer their thoughts please.
B BOY DRAW2 said:
Hey, just inquiring...
I've done the "flash host files directly" step, and playing Subway Surfers.
It would seem that ads are only blocked on that game when I have system set to RW...(I think...?...not 100% sure, but it would seem this way)
I was under the impression that it shouldn't matter because I'm flashing the host file directly?
Can anyone offer their thoughts please.
Click to expand...
Click to collapse
Yes, after flashing the hosts files directly no further steps should be necessary and ads be gone. Can you verify that ads also exist in other applications (or websites)? Maybe this is an issue with the app you are using, for example if it loads its apps from its own (unblocked) server.
Yeah, I think you're right about it perhaps being app related. I think maybe I need to monitor it a bit more closely and take random notes...
like sometimes I'm bombarded with advertisments any time I touch to advance or go back through menus...but just in that app...then I'll reboot...and sometimes it'll go a full day without ads...?
I also use a local news app which would normally advertise dating links, but those don't seem to appear...so it's definitely working.
All good though...thanks for answering that for me!
Much appreciated!!!
Mantelinho said:
Install symlink_hosts_to_data.zip via your custom recovery (like CWM) to create a symbolic link from /system/etc/hosts to /data/data/hosts. Afterwards you can configure AdAway to use /data/data/hosts.
Click to expand...
Click to collapse
Thanks so much for this info Mantelinho, I had been looking for a solution. When using this 1st method, do I need to flash symlink_hosts_to_data.zip in recovery after every ROM flash? I.e., I'm dirty-flashing CyanogenMod nightlies every other day or so and I'm not sure if need to re-create the symlink after every flash.
edit: I have discovered I DO need to flash symlink_hosts_to_data.zip after every ROM flash.
Sorry to bump an old thread. Will this work on the new M8 variant of the One, or will it only work on the M7 variant?
TrainAss said:
Sorry to bump an old thread. Will this work on the new M8 variant of the One, or will it only work on the M7 variant?
Click to expand...
Click to collapse
im sure it works
Child's Play said:
im sure it works
Click to expand...
Click to collapse
It does work. I forgot to change data location.
Sent from my HTC One (M8) using Tapatalk Pro
Can i use twrp and will work in moto x?
Hi, is this guide specific for the HTC One? Or would it perhaps work on my HTC One S too?
Sandeman1976 said:
Hi, is this guide specific for the HTC One? Or would it perhaps work on my HTC One S too?
Click to expand...
Click to collapse
Its for htc phones with s-on
---------- Post added at 11:26 AM ---------- Previous post was at 11:11 AM ----------
gskelter said:
Can i use twrp and will work in moto x?
Click to expand...
Click to collapse
If cwm or twrp is available for ur device, u can flash cwm or twrp
Child's Play said:
Its for htc phones with s-on
Click to expand...
Click to collapse
Ok, thanks!
FF.
I root for two reasons: Tethering and ad blocking. I currently can't tether on my AT&T M8. Now I can't get ad blocking working. I have tried adaway and it can't apply the hosts file.
This is the same issue as with the M7. The system is writable, so it can't modify the hosts file. I tried flashing the hosts zip file manually, but that isn't working either. Anyone know of a workaround? If I can't block ads, this thing is going back. I'm starting to wonder why I even bothered unlocking my bootloader.
Update: neither Adaway or Adfree work. They randomly stop blocking ads and cause the phone to restart when you try to apply the hosts file. Adblock Plus does seem to be working well, however. I'd still prefer a hosts file method of blocking, but this seems to be the only solution without s-off.
If your rooted what about xposed framework, there is a really good ad blocking module you can download that works better than ad away etc not sure if you have to be s-off or not I was using it on my One M7, waiting to get the M8
Sent from my Nexus 7 using Tapatalk
you need root and atleast adaway to disable advertisments
mushages said:
you need root and atleast adaway to disable advertisments
Click to expand...
Click to collapse
I am rooted. Adaway does not work. In fact, it reboots the phone.
Sent from my iPad using Tapatalk HD
greyhulk said:
I am rooted. Adaway does not work. In fact, it reboots the phone.
Sent from my iPad using Tapatalk HD
Click to expand...
Click to collapse
I'm having same problem with adaway so I'm using adblock pro seems to be working ok search for it on xda
Neither will work right now because the system is protected. Kernel module is being worked on which will disable write protect, and then adblockers will work.
M.
mattman83 said:
Neither will work right now because the system is protected. Kernel module is being worked on which will disable write protect, and then adblockers will work.
M.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2701816
I think this might be the answer
As an update: I was having issues with Adblock Plus as well (it stopped working a few times and had to be force closed after completely blocking my internet connection). I finally went here: http://forum.xda-developers.com/showthread.php?t=2327934
And flashed the Adaway hosts through TWRP. It flashed successfully and now all is well. Tested and working all ads are blocked. Does anyone know where I could find a more updated flashable hosts file? That one was from June of last year.
Thanks.
jaythenut said:
http://forum.xda-developers.com/showthread.php?t=2701816
I think this might be the answer
Click to expand...
Click to collapse
Thanks! That looks a tad risky at this point. I will wait until it's a little more tested. I managed to flash the hosts file manually, so I'm good for now.
greyhulk said:
As an update: I was having issues with Adblock Plus as well (it stopped working a few times and had to be force closed after completely blocking my internet connection). I finally went here: http://forum.xda-developers.com/showthread.php?t=2327934
And flashed the Adaway hosts through TWRP. It flashed successfully and now all is well. Tested and working all ads are blocked. Does anyone know where I could find a more updated flashable hosts file? That one was from June of last year.
Thanks.
Click to expand...
Click to collapse
Get it from here (might have to replace the file in your ZIP with this new one)...
http://forum.xda-developers.com/showthread.php?t=1916098
EddyOS said:
Get it from here (might have to replace the file in your ZIP with this new one)...
http://forum.xda-developers.com/showthread.php?t=1916098
Click to expand...
Click to collapse
That one doesn't work. It was the first one I tried to flash. It fails to flash in TWRP, at least the version installed on my M8.
I am using xposed module xad and it works great. The one in the xposed app wouldnt install for some reason so downloaded the apk and installed it that way. No more ads.
skoobee said:
I am using xposed module xad and it works great. The one in the xposed app wouldnt install for some reason so downloaded the apk and installed it that way. No more ads.
Click to expand...
Click to collapse
Details? First, Xposed is working on the M8? Second, where did you get the manual apk for ad blocking?
greyhulk said:
Details? First, Xposed is working on the M8? Second, where did you get the manual apk for ad blocking?
Click to expand...
Click to collapse
Yes xposed works great. As has been posted on a few threads you have to install xposed as a zip from recovery. I googled xad apk and it was one of the first few results that came up.
greyhulk said:
That one doesn't work. It was the first one I tried to flash. It fails to flash in TWRP, at least the version installed on my M8.
Click to expand...
Click to collapse
Take the hosts file and replace the one in the ZIP file that you already have
EddyOS said:
Take the hosts file and replace the one in the ZIP file that you already have
Click to expand...
Click to collapse
Not a bad suggestion. I may try that.
Sent from my HTC One_M8 using Tapatalk
AdBlock Plus is working for me. At least for now.
Correctly downloaded from the Amazon App-shop.
Thank you!!
I use adfree on my Verizon m8 and it has been working fine.
http://adfree.bigtincan.com
You do have to be rooted to use.
buddahj said:
I use adfree on my Verizon m8 and it has been working fine.
http://adfree.bigtincan.com
You do have to be rooted to use.
Click to expand...
Click to collapse
Adfree seems to work fine at first, but it will cause your phone to reboot when you update it. Unless you have S-off, it will have issues sim linking the host file and writing it.
Sent from my HTC One_M8 using Tapatalk
greyhulk said:
Adfree seems to work fine at first, but it will cause your phone to reboot when you update it. Unless you have S-off, it will have issues sim linking the host file and writing it.
Sent from my HTC One_M8 using Tapatalk
Click to expand...
Click to collapse
I was unaware of that. I've always been s-off while using it.
Anyone have any idea why all of the ad blocking programs I have tried havent worked at all? Adaway says it is successfully applied and still I get ads everywhere. Anyone else have this issue? Is there something else that must be done besides just editing the hosts file?
{C0deF0x} said:
Anyone have any idea why all of the ad blocking programs I have tried havent worked at all? Adaway says it is successfully applied and still I get ads everywhere. Anyone else have this issue? Is there something else that must be done besides just editing the hosts file?
Click to expand...
Click to collapse
Unless you are rooted most of the adblocking apps will not work. If you are rooted then you may want to try another one.
Solarenemy68 said:
Unless you are rooted most of the adblocking apps will not work. If you are rooted then you may want to try another one.
Click to expand...
Click to collapse
+1
Sent from my SM-N910P using XDA Free mobile app
I'm using Adaway and it's working fine. You have to be rooted to use it. Ad blockers add known ad addresses to the hosts file and you need Root access to edit the hosts file.
Sent from my SM-N910P using Tapatalk
poit said:
I'm using Adaway and it's working fine. You have to be rooted to use it. Ad blockers add known ad addresses to the hosts file and you need Root access to edit the hosts file.
Sent from my SM-N910P using Tapatalk
Click to expand...
Click to collapse
I know how they work and yes I have root but I've tried all of them and I don't know why I can't get it to work
{C0deF0x} said:
I know how they work and yes I have root but I've tried all of them and I don't know why I can't get it to work
Click to expand...
Click to collapse
I still use MinMinGuard. It doesn't deal with websites but still does an acceptable job with apps most of the time.
I am using Lucky Patcher to block ads on my Note 4 and it works really well.
This OTA will upgrade your phone to Android 5.0.1 and bring your version up to 22.21.25
You will need a STOCK phone. STOCK recovery. Your version will need to be 21.11.23.
Release notes: https://motorola-global-portal.custhelp.com/app/answers/prod_answer_detail/a_id/102639
Captured the OTA today from /cache using adb pull method.
My phone is the US AWS version unlocked from Motorola.
Google Drive Link: https://drive.google.com/file/d/0BwsiWWvGFo4TZ2RpV1R5LW9zd2s/view
Successfully flashed on multiple phones.
I suppose the title of the thread should say version 22.21.25, i'm not sure how to edit the thread title.
You got this ota from 22.11.6?
---------- Post added at 11:36 PM ---------- Previous post was at 11:34 PM ----------
Wow this is the .23 ota
Yeah. This is the one everyone is needing i think.
Awesome! This is indeed the one that I've been waiting for- wanted to update these XT1064s before wrapping them up as gifts (less confusion over UI if they start out at Lollipop). Just successfully updated one of them, the rest should go smoothly as well.
The irony is that on the one I was tinkering with to try to downgrade/force the OTA now has the .17 recovery and build fingerprint and rejected this update. Not a big deal, I think I know how to recover it.
Thanks again who_ohw for the OTA!
anomalyconcept said:
Awesome! This is indeed the one that I've been waiting for- wanted to update these XT1064s before wrapping them up as gifts (less confusion over UI if they start out at Lollipop). Just successfully updated one of them, the rest should go smoothly as well.
The irony is that on the one I was tinkering with to try to downgrade/force the OTA now has the .17 recovery and build fingerprint and rejected this update. Not a big deal, I think I know how to recover it.
Thanks again who_ohw for the OTA!
Click to expand...
Click to collapse
Great, I'm glad it worked!
Can't download.. Just lists all that's in the update zip but no download option can you post another download link?
Sent from my XT1064 using XDA Free mobile app
You will have to do so from a PC probably. You might be able to do so with certain browsers and request desktop version in the options.
Is this supposed to be a flashable zip? I got 'error executing updater binary in zip'. This is using TWRP 2.8.3.0
You need to be stock. Recovery, kernel, everything. No root.
ArmStrongDickPunch said:
Can't download.. Just lists all that's in the update zip but no download option can you post another download link?
Sent from my XT1064 using XDA Free mobile app
Click to expand...
Click to collapse
Confirmed, you can use chrome on you phone, go to the link, go to the three dots in upper right for options, scroll down, make sure request desktop site is checked, refresh browser. There's some odd scaling issues but you should see another 3 dot menu INSIDE the browser, click this, there is a download button.
who_ohw said:
Confirmed, you can use chrome on you phone, go to the link, go to the three dots in upper right for options, scroll down, make sure request desktop site is checked, refresh browser. There's some odd scaling issues but you should see another 3 dot menu INSIDE the browser, click this, there is a download button.
Click to expand...
Click to collapse
Thanks that worked now how do I install the ota? I have an idea how but just want to make sure this is my first time side loading an ota and also I don't have to do a data wipe right?
Sent from my XT1064 using XDA Free mobile app
ArmStrongDickPunch said:
Thanks that worked now how do I install the ota? I have an idea how but just want to make sure this is my first time side loading an ota and also I don't have to do a data wipe right?
Sent from my XT1064 using XDA Free mobile app
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=57714509&postcount=64
There are a few threads on how to do this, but this is the most recent that comes to mind. You do not need to unlock bootloader or return to stock if you are.... stock... obviously. Start at step 3.
who_ohw said:
http://forum.xda-developers.com/showpost.php?p=57714509&postcount=64
There are a few threads on how to do this, but this is the most recent that comes to mind. You do not need to unlock bootloader or return to stock if you are.... stock... obviously. Start at step 3.
Click to expand...
Click to collapse
Forgive my ignorance re: this phone, I have a nexus 6, is there a reason this ota could not be made into a flashable zip that doesn't require everything to be stock?
mk262 said:
Forgive my ignorance re: this phone, I have a nexus 6, is there a reason this ota could not be made into a flashable zip that doesn't require everything to be stock?
Click to expand...
Click to collapse
I don't know. I think so, but I dont have time to figure it out. Holidays and all. You might check out Kennys thread here. http://forum.xda-developers.com/moto-g-2014/development/rom-stock-rom-t2970427
He's made a flashable zip out of an OTA I think.
I guess if I was on 21.11.23, then I could try this. But I'm on 22.11.6 and it doesn't work. Guess I'm still playing the waiting game.
Thank you for the OTA. Was able to flash using stock recovery over 4.4.4. Took about 20-25 minutes to install and about 5 minutes to clear cache. First boot took a few more minutes. So far running great.
Sent from my XT1064 using Tapatalk
Possibly a daft question, but will this work on a UK XT1068? I am okay to look an idiot for asking
Happy Christmas, thanks.
gnubash said:
Possibly a daft question, but will this work on a UK XT1068? I am okay to look an idiot for asking
Happy Christmas, thanks.
Click to expand...
Click to collapse
I tried flashing it but no good. Installation is aborted after a couple of seconds
KoulisHHH said:
I tried flashing it but no good. Installation is aborted after a couple of seconds
Click to expand...
Click to collapse
As I had suspected it would - yes. Thanks for replying, God bless you and Happy Christmas
UPDATE: Thanks to @squid2's insight, there's a better method that should work for everyone. Just download the attached script, remove the .txt extension, and drop into your su.d folder with proper permissions. For more information, see here and here.
------------------------------
This is all thanks to @nkk71, btw. Right now the fix is very hacky but I'm sure ROM devs will find a more appropriate fix soon.
I'm not sure if I want to reveal the fix publicly in case HTC's spies are monitoring the thread, lol....probably better safe than sorry. But go visit nkk71's profile and buy him many beers for figuring this out. And also find some posts by him and click "Thanks."
WARNING: Dragons ahead! Anything you flash to your device is done at your own risk!
EDIT: Alright, I'll publish a flashable zip here based on the 1.53.617.5 US Unlocked Edition. I've been testing the mod/hack for a few days now and have seen no ill effects. It should work fine on ROMs using that base.
I have NO IDEA if it'll work on ROMs using an International/Europe base or on CDMA. If you really want to try it, make sure you make a backup first! You will need to "Format Data" in TWRP and flash the standard SuperSU zip to remove forced encryption (or do it manually, if you know how).
Let the bricking begin!
P.S. Thanks of course also go to @Chainfire for SuperSU and su.d!
Just let the ROM cooks know =)
ChronoReverse said:
Just let the ROM cooks know =)
Click to expand...
Click to collapse
They already do
I don't really find it hacky, just another workaround
Unfortunately, due to personal reasons, I have personally decided not to share this.
(I know you above all others will understand)
It is not a secret, I have a certainly made it public (or so I thought) enough.
Unfortunately the controversy, I'm not willing to deal with... An innocent "share", turned ugly
I fully endorse this method, though I only had 7 mins of testing, before things got very ugly, a very very very very very very very very very very unfortunate incident.
So be it.
The method is still sound, and anybody who wishes to use it, I have neither any objections, just please test it.
Thanks
nkk71
Sent from my HTC 10 using Tapatalk
nkk71 said:
I don't really find it hacky, just another workaround
Unfortunately, due to personal reasons, I have personally decided not to share this.
(I know you above all others will understand)
It is not a secret, I have a certainly made it public (or so I thought) enough.
Unfortunately the controversy, I'm not willing to deal with... An innocent "share", turned ugly
I fully endorse this method, though I only had 7 mins of testing, before things got very ugly, a very very very very very very very very very very unfortunate incident.
So be it.
The method is still sound, and anybody who wishes to use it, I have neither any objections, just please test it.
Thanks
nkk71
Click to expand...
Click to collapse
You think I should post it? Or do you think HTC might find it and try and change their method?
Captain_Throwback said:
You think I should post it? Or do you think HTC might find it and try and change their method?
Click to expand...
Click to collapse
In my humble opinion, go for it
I doubt HTC will change the code, and it is a workaround [emoji2]
Unless something is being changed... Elsewhere (doubt it) , I Personally, have briefly tested and accept it
Sent from my HTC 10 using Tapatalk
nkk71 said:
In my humble opinion, go for it
I doubt HTC will change the code, and it is a workaround [emoji2]
Unless something is being changed... Elsewhere (doubt it) , I Personally, have briefly tested and accept it
Click to expand...
Click to collapse
Done.
This should be fun, lol. Let the brickings begin!
Captain_Throwback said:
Done.
This should be fun, lol. Let the brickings begin!
Click to expand...
Click to collapse
Well I did, trip verity,verified, and a few other things [emoji4]
Oh, wait, I was testing some thing els [emoji23]
Sent from my HTC 10 using Tapatalk
Looking at the logic in the HTC RIL library, in Pythonic pseudocode, it goes something like this:
Code:
if property_get("ro.crypto.state") != "encrypted":
if property_get("persist.radio.current.cnv", default="-1") == "-1":
if htcril_db_property_get("current.cnv") != "-1":
htcril_db_property_set("current.cnv", "-1")
Other libraries then query the htcril DB via the library, and behave differently if the current.cnv property is set in the DB. Based off this, I would guess that doing the following would have a similar effect without needing to hack the library:
Code:
setprop persist.radio.current.cnv 0
I haven't tried this, but I'm curious if restoring the stock libhtcril_db.so and setting this property would work.
squid2 said:
Looking at the logic in the HTC RIL library, in Pythonic pseudocode, it goes something like this:
Other libraries then query the htcril DB via the library, and behave differently if the current.cnv property is set in the DB. Based off this, I would guess that doing the following would have a similar effect without needing to hack the library:
I haven't tried this, but I'm curious if restoring the stock libhtcril_db.so and setting this property would work.
Click to expand...
Click to collapse
Brilliant! That works! Much easier/cleaner solution than hacking the lib
EDIT: Posted script in the OP. Bedtime!
Can anyone remind me/us the pros and cons of decrypting?
Sent from my Nexus 5 using XDA-Developers mobile app
Captain_Throwback said:
You think I should post it? Or do you think HTC might find it and try and change their method?
Click to expand...
Click to collapse
This?
So boot into TWRP, format data and flash regular SuperSu? What are the permissions for the Script ?
squid2 said:
Looking at the logic in the HTC RIL library, in Pythonic pseudocode, it goes something like this:
Code:
if property_get("ro.crypto.state") != "encrypted":
if property_get("persist.radio.current.cnv", default="-1") == "-1":
if htcril_db_property_get("current.cnv") != "-1":
htcril_db_property_set("current.cnv", "-1")
Other libraries then query the htcril DB via the library, and behave differently if the current.cnv property is set in the DB. Based off this, I would guess that doing the following would have a similar effect without needing to hack the library:
Code:
setprop persist.radio.current.cnv 0
I haven't tried this, but I'm curious if restoring the stock libhtcril_db.so and setting this property would work.
Click to expand...
Click to collapse
Captain_Throwback said:
Brilliant! That works! Much easier/cleaner solution than hacking the lib
EDIT: Posted script in the OP. Bedtime!
Click to expand...
Click to collapse
Nice :good:
Strangely enough, I couldn't get the property to stick, but I edited the init.rc directly, didnt use the su.d... maybe I put it in the wrong place
Black_Eyes said:
So boot into TWRP, format data and flash regular SuperSu? What are the permissions for the Script ?
Click to expand...
Click to collapse
Permissions for su.d scripts are 0700. If you want to put the script there while in recovery and you're using systemless root, you can use @osm0sis SUmount zip to mount the su.img and then the TWRP File Manager to copy the script over and change perms. Flash the SUmount zip again to unmount su.img, and then reboot.
Captain_Throwback said:
Permissions for su.d scripts are 0700. If you want to put the script there while in recovery and you're using systemless root, you can use @osm0sis SUmount zip to mount the su.img and then the TWRP File Manager to copy the script over and change perms. Flash the SUmount zip again to unmount su.img, and then reboot.
Click to expand...
Click to collapse
the flashable zip if i want to try on international rom...
i boot into twrp formata data to remove encryption flash super 2.65 stable flash your script and boot will that do?
SacredDeviL666 said:
the flashable zip if i want to try on international rom...
i boot into twrp formata data to remove encryption flash super 2.65 stable flash your script and boot will that do?
Click to expand...
Click to collapse
Don't use the zip. That's the old hack. Use the script. You have to manually place it.
And use the latest SuperSU Beta, not the stable.
Captain_Throwback said:
Don't use the zip. That's the old hack. Use the script. You have to manually place it.
And use the latest SuperSU Beta, not the stable.
Click to expand...
Click to collapse
okay thank you so i would use the latest supersu 2.74beta zip from recovery.
the script isn't downloading for me when i click on it just opens a page with below message
#!/system/bin/sh
# Allow mobile network while decrypted
# thanks @squid2 from XDA for the easy fix!
setprop persist.radio.current.cnv 0
... from pc i am..
SacredDeviL666 said:
okay thank you so i would use the latest supersu 2.75beta zip from recovery.
the script isn't downloading for me when i click on it just opens a page with below message
#!/system/bin/sh
# Allow mobile network while decrypted
# thanks @squid2 from XDA for the easy fix!
setprop persist.radio.current.cnv 0
... from pc i am..
Click to expand...
Click to collapse
Right-click and Save As....
Captain_Throwback said:
Right-click and Save As....
Click to expand...
Click to collapse
thanks got it!!!
place the script in system/su.d folder with the permissions/boot to recovery format data/flash latest supersu beta 2.74 and the let boot finish.....
at htc green logo now...fingers crossed... by the way i was on system mode su prior to trying this mod.
now optimizing the apps...lee's r82 international
---------- Post added at 01:38 PM ---------- Previous post was at 01:16 PM ----------
@Captain_Throwback
came back as encryped only....
the script permission i gave was rwx r-x r-x