host file locked [rooted] - Xiaomi Mi Max Questions & Answers

Unable to turn on write permissions to host file.
Using ES FileExplorer. Root Enabled.
Thanks for any assistance.

Hmmm... That's something new to me. Must be some miui thing keeping it protected to run their ads. Did you try AdAway or similar that writes/replaces the file directly?
BTW ES FileExplorer is not what it used to be, full of useless and annoying "features". Try MiXplorer and thank me later.
http://forum.xda-developers.com/showpost.php?p=23109280

Thanks! I was thinking the same about Miui somehow locking it down. I did try AdAway (first thing) and it just fails at the "applying" stage. That is what made me look at the permissions of the hosts file. Do you think I have to configure AdAway differently to work on here? It has always been straight forward on all of my other devices.
I am gong to try MiXplorer. Thank you for that bit of information. We'll see how it works.

coffee-turtle said:
Thanks! I was thinking the same about Miui somehow locking it down. I did try AdAway (first thing) and it just fails at the "applying" stage. That is what made me look at the permissions of the hosts file. Do you think I have to configure AdAway differently to work on here? It has always been straight forward on all of my other devices.
I am gong to try MiXplorer. Thank you for that bit of information. We'll see how it works.
Click to expand...
Click to collapse
You need need to disable SELinux with this app and then try again.

Thank you Doom Slayer as well! I used SELinuxModeChanger-v3.2.apk and MiExplorer thanks to your suggestions.
I still find that the system remains unaffected. From within AdAway I cannot even do Open Hosts File.
However, a plain hosts editor app has no issues in both opening and adding entries manually.
Could be some clues there?

coffee-turtle said:
Thank you Doom Slayer as well! I used SELinuxModeChanger-v3.2.apk and MiExplorer thanks to your suggestions.
I still find that the system remains unaffected. From within AdAway I cannot even do Open Hosts File.
However, a plain hosts editor app has no issues in both opening and adding entries manually.
Could be some clues there?
Click to expand...
Click to collapse
Make sure u use latest adaway, and you can also try use it as system app. In case that won't help I would suggest to try to flash SuperSU again.

That's strange, can you set permissions for it in TWRP? 0755?

Just a quick input, using adaway 3.1.2 (57) compiled by mrRobinson on June 26 2016 and it works perfectly

Yeah, remember seeing thread on miui forum about AdAway... Maybe there's something special about installing/running it on miui

nijel8 said:
Yeah, remember seeing thread on miui forum about AdAway... Maybe there's something special about installing/running it on miui
Click to expand...
Click to collapse
If you happen to come across that thread again, would you mind posting it here, please?
Thanks.

ajsmsg78 said:
That's strange, can you set permissions for it in TWRP? 0755?
Click to expand...
Click to collapse
I will have to reload TWRP and give it a try.
But yes, it is weird. Maybe it is because I'm using the Developer ROM.
I've been waiting to upgrade to the STABLE/GLOBaL MiUi 8 that is said to be coming out this weekend.
Thanks.

coffee-turtle said:
Maybe it is because I'm using the Developer ROM.
Click to expand...
Click to collapse
Sorry, I should have clarified that I'm also running Developer ROM and it's running properly, no such problems due to Developer ROM
Try to install this version from here

coffee-turtle said:
If you happen to come across that thread again, would you mind posting it here, please?
Thanks.
Click to expand...
Click to collapse
http://en.miui.com/forum.php?mod=viewthread&tid=261933&highlight=AdAway
Basically installing as system app...

paarkhi said:
Just a quick input, using adaway 3.1.2 (57) compiled by mrRobinson on June 26 2016 and it works perfectly
Click to expand...
Click to collapse
Okay, I was on 3.1.1. Thanks for pointing me to the update.
Uninstalled 3.1.1
Installed 3.1.2
Rebooted
Still getting:
Code:
COPY FAILED
Copying of hosts file failed!
Please read Help for more information.
Thank you though!

paarkhi said:
Sorry, I should have clarified that I'm also running Developer ROM and it's running properly, no such problems due to Developer ROM
Try to install this version from here
Click to expand...
Click to collapse
Thank you for the links and the clarification. Are you running MiUi 8? I don't know why this is happening. Are you also running SuperSU or just using ROOT access through Settings?

coffee-turtle said:
Thank you for the links and the clarification. Are you running MiUi 8? I don't know why this is happening. Are you also running SuperSU or just using ROOT access through Settings?
Okay, I was on 3.1.1. Thanks for pointing me to the update.
Uninstalled 3.1.1
Installed 3.1.2
Rebooted
Still getting:
Code:
COPY FAILED
Copying of hosts file failed!
Please read Help for more information.
Thank you though!
Click to expand...
Click to collapse
Is your bootloader unlocked? if yes then take nandroid backup and clean flash (wipe system, data and cache) everything once when you have time....
I'm running MIUI8 beta 6.8.4 global beta and yes SuperSU 2.76

paarkhi said:
Sorry, I should have clarified that I'm also running Developer ROM and it's running properly, no such problems due to Developer ROM
Try to install this version from here
Click to expand...
Click to collapse
Humm.... Slight difference?

coffee-turtle said:
Humm.... Slight difference?
Click to expand...
Click to collapse
Yes I'm on Global Beta because I'm using Hydrogen (3GB/32GB) version of Mi Max and you are having Helium (3GB/64GB) so you may be using the chinese developer edition but that should not make any difference in using AdAway. Anyway you can try to take the nandroid and clean flash (just to try and rule out any further problems)

paarkhi said:
Is your bootloader unlocked? if yes then take nandroid backup and clean flash (wipe system, data and cache) everything once when you have time....
I'm running MIUI8 beta 6.8.4 global beta and yes SuperSU 2.76
Click to expand...
Click to collapse
Yeah, something is wrong with my version. I can't even get SuperSU 2.76 to work. Installed, but non functional. Binaries won't load, Installation failed.
Ugh. I guess this ROM is just not working right. (China Development (not Global)). This is because Global is only for 32GB version. I am 64GB.
Please correct me if I am wrong: http://en.miui.com/download-302.html#446
I know there are some custom ROM's out there on the Miui site, but I was not sure.
http://xiaomitips.com/download/miui-8-multilanguage-rom-for-mi-max/
I probably need the new ROM they've been promising. The one I have seems to be very buggy when doing advanced things.

coffee-turtle said:
Yeah, something is wrong with my version. I can't even get SuperSU 2.76 to work. Installed, but non functional. Binaries won't load, Installation failed.
Ugh. I guess this ROM is just not working right. (China Development (not Global)). This is because Global is only for 32GB version. I am 64GB.
Please correct me if I am wrong: http://en.miui.com/download-302.html#446
I know there are some custom ROM's out there on the Miui site, but I was not sure.
http://xiaomitips.com/download/miui-8-multilanguage-rom-for-mi-max/
I probably need the new ROM they've been promising. The one I have seems to be very buggy when doing advanced things.
Click to expand...
Click to collapse
If you have twrp flash my Global Helium rom, you won't have any problems after that.
http://forum.xda-developers.com/mi-max/development/rom-miui-8-global-t3439698

Related

Cyanogen OS 13

Hey guys
Does anyone know when we will get Cyanogen OS 13? I have been on stock for 2 weeks now due to a rumour of COS13 coming. If you have any news or even a beta build then please post it below.
Regards
Yasteel
AFAIK it's already released.
Android one Second Gen user here
nhmanas said:
AFAIK it's already released.
Android one Second Gen user here
Click to expand...
Click to collapse
really? I do not see it on https://cyngn.com/support
Dior DNA said:
really? I do not see it on https://cyngn.com/support
Click to expand...
Click to collapse
Ota released. Not ROM.
I though it was only the one plus one and only in india that rec'd the update
and still without the Modlife implementation
nhmanas said:
Ota released. Not ROM.
Click to expand...
Click to collapse
thanks! and what is name like cm-12.1 was YOG7DAS2FI crackling?
Dior DNA said:
thanks! and what is name like cm-12.1 was YOG7DAS2FI crackling?
Click to expand...
Click to collapse
I don't know we're discussing in a Turkish forum
nhmanas said:
I don't know we're discussing in a Turkish forum
Click to expand...
Click to collapse
once someone receives OTA cm 13 let us know, then we can ask support to publish file
Dior DNA said:
once someone receives OTA cm 13 let us know, then we can ask support to publish file
Click to expand...
Click to collapse
http://builds.cyngn.com/incremental/crackling/cm-crackling-c295bd1167-to-f865a1ad0e-signed.zip
6.0.1 ota
This is Cyanogen Mod, not Cyanogen OS.
koegs said:
This is Cyanogen Mod, not Cyanogen OS.
Click to expand...
Click to collapse
Has any flashed this to confirm exactly what it is
*edit* I'll confirm myself.. this is the real incremental to 6.0.1 'Mod ready' COS 13
To my surprise...it runs pretty well
ReneX10 said:
Has any flashed this to confirm exactly what it is
*edit* I'll confirm myself.. this is the real incremental to 6.0.1 'Mod ready' COS 13
To my surprise...it runs pretty well
Click to expand...
Click to collapse
updater-script says
Source 5.1.1 LMY48Y/YOG7DAS2FI
Target 6.0.1 MMB29V/ZNH0EAS25I
ReneX10 said:
Has any flashed this to confirm exactly what it is
*edit* I'll confirm myself.. this is the real incremental to 6.0.1 'Mod ready' COS 13
To my surprise...it runs pretty well
Click to expand...
Click to collapse
1. update package was verified without problems
2. installed without problems
3. won't boot... can't even get into recovery
InFlames0r said:
1. update package was verified without problems
2. installed without problems
3. won't boot... can't even get into recovery
Click to expand...
Click to collapse
Mine was a clean stock 12.1 install first, then update applied from recovery to 13
Mine is working just fine, no problems to report at all..... hrmm so, I wonder what's different
http://s32.postimg.org/vz9j03dhx/Screenshot_20160429_190709.png
Me too that's exactly what I did load 12.1 by fastboot to ensure everything is overwritten
note super su stock dosn't work but the beta does
I'm I noob here and I don't understand what everybody's talking about here. From my understanding, a flashable COS13 zip is out in the open and works? How should I go about flashing it if I want to keep TWRP recovery? Do I have to do a clean install?
seb5049 said:
I'm I noob here and I don't understand what everybody's talking about here. From my understanding, a flashable COS13 zip is out in the open and works? How should I go about flashing it if I want to keep TWRP recovery? Do I have to do a clean install?
Click to expand...
Click to collapse
as far as I am aware there is NO COS 13 zip for the crackling, only this incremental update (ie an update from 12.1, so that needs to be installed as a base first and then the update flashed from recovery)
There is CM 13, both snapshots and nightlies that an be flashed from TWRP as ZIPs
TWRP an be flashed from fastboot whenever you like, so that shouldn't cause you any major concerns :good:
ReneX10 said:
as far as I am aware there is NO COS 13 zip for the crackling, only this incremental update (ie an update from 12.1, so that needs to be installed as a base first and then the update flashed from recovery)
There is CM 13, both snapshots and nightlies that an be flashed from TWRP as ZIPs
TWRP an be flashed from fastboot whenever you like, so that shouldn't cause you any major concerns :good:
Click to expand...
Click to collapse
I have the stock rom already (COS 12.1), so does that mean I'm good if I flash it then?
seb5049 said:
I have the stock rom already (COS 12.1), so does that mean I'm good if I flash it then?
Click to expand...
Click to collapse
Personally I would ensure I have backed up, but in theory ..Yes, though if it were me.. I would, backup, wipe, flash stock recovery, update
I am afraid I can't answer fully, as I always flash clean...soz
ReneX10 said:
Personally I would ensure I have backed up, but in theory ..Yes, though if it were me.. I would, backup, wipe, flash stock recovery, update
I am afraid I can't answer fully, as I always flash clean...soz
Click to expand...
Click to collapse
Ok. Well, if I backup beforehand then I should be fine if anything goes wrong. One last question though, do I need stock recovery in order to flash the zip?

xPosed and Cataclysm ROM

Hi all,
I'm trying to install Xposed on cataclysm from. I flash the zip file, but after optimization of applications I have a force close of the UI system app. Then I need to uninstall the framework in order to restore the system. Anyone have some suggestions? Any other ROM like cataclysm with Xposed already in?
Thanks all
I know it's not an answer to your question, but I'd advise against using a ROM that's been discontinued half a year ago. Though Cataclysm was a great ROM i moved on to Pure Nexus myself. Works great with Xposed.
peltus said:
I know it's not an answer to your question, but I'd advise against using a ROM that's been discontinued half a year ago. Though Cataclysm was a great ROM i moved on to Pure Nexus myself. Works great with Xposed.
Click to expand...
Click to collapse
Thanks for the suggestion. I tried to install it but has some problem with the root. I flashed the zip of SuperSU but it start to boot loop. For that I turned back to cataclysm. I will wait of someone has some ideas... In case I will install pure and try again!
pacioc193 said:
Thanks for the suggestion. I tried to install it but has some problem with the root. I flashed the zip of SuperSU but it start to boot loop. For that I turned back to cataclysm. I will wait of someone has some ideas... In case I will install pure and try again!
Click to expand...
Click to collapse
You're doing something wrong.
Are you using the correct Xposed? Version 86? X64?
Are you on the latest Pure Nexus and latest Vendor img?
Are you using latest SU? 2.76 ?
If you're saying you are having bootloops with Cataclysm, I and everyone else will not help you. That ROM is dead, it cannot be compatible with anything current.
thenessus said:
You're doing something wrong.
Are you using the correct Xposed? Version 86? X64?
Are you on the latest Pure Nexus and latest Vendor img?
Click to expand...
Click to collapse
My problem is root the system. And yes I'm using the right Xposed in cataclysm.
OK, read my comment again, I edited it a bit.
I advise no one here to assist you as far as Cataclysm goes, sorry.
thenessus said:
OK, read my comment again, I edited it a bit.
I advise no one here to assist you as fast as Cataclysm goes, sorry.
Click to expand...
Click to collapse
The suggestion is use a different ROM right? Have pure Nexus smart radio?
pacioc193 said:
The suggestion is use a different ROM right? Have pure Nexus smart radio?
Click to expand...
Click to collapse
Don't know, haven't used that feature ever on any ROM.
I think Gravitybox has it though? not sure.
Anyway, yeah, just use a different one, that is currently supported. Otherwise it's impossible to pin-point a ROM-SuperSu conflict.
pacioc193 said:
The suggestion is use a different ROM right? Have pure Nexus smart radio?
Click to expand...
Click to collapse
No, but GravityBox has.
I'm using a combination, which you can see in my signature and it works perfectly.
pacioc193 said:
Thanks for the suggestion. I tried to install it but has some problem with the root. I flashed the zip of SuperSU but it start to boot loop. For that I turned back to cataclysm. I will wait of someone has some ideas... In case I will install pure and try again!
Click to expand...
Click to collapse
Some people reported bootloops when flashing in the wrong order. If you clean flash pure Nexus and stick to the flashing instruction there should not be a problem.

[Q] SuperSU Reflash after Update

I have an Moto X Pure (xt1575) running the 01/30 build that I updated from 01/23. I noticed that I had to manually reflash SuperSU after the update script ran. Is this common or should I be setting something in SuperSU so I don't have to do that?
glfngmble said:
I have an Moto X Pure (xt1575) running the 01/30 build that I updated from 01/23. I noticed that I had to manually reflash SuperSU after the update script ran. Is this common or should I be setting something in SuperSU so I don't have to do that?
Click to expand...
Click to collapse
You will need to flash it each time if you want to use SuperSU. If you were to choose to use the official Lineage SU (system), it will persist after flashing updates.
jhedfors said:
You will need to flash it each time if you want to use SuperSU. If you were to choose to use the official Lineage SU (system), it will persist after flashing updates.
Click to expand...
Click to collapse
not on my s3. the team said it would be a one-time flash. and that's how it is on my phone.
to the OP, you probably did something wrong
sal82 said:
not on my s3. the team said it would be a one-time flash. and that's how it is on my phone.
to the OP, you probably did something wrong
Click to expand...
Click to collapse
Interesting, OK. Which team, LineageOS team? They were only taking about their SU add-on, but that is good that it works the same.
jhedfors said:
Interesting, OK. Which team, LineageOS team? They were only taking about their SU add-on, but that is good that it works the same.
Click to expand...
Click to collapse
yes, the lineage team. that is what i meant. the lineage superu. i thought you meant it wouldn't carry onto the updates. sorry lol
sal82 said:
yes, the lineage team. that is what i meant. the lineage superu.
Click to expand...
Click to collapse
OK. However the OP specifically mentioned SuperSU which I don't think will persist with update.
glfngmble said:
I have an Moto X Pure (xt1575) running the 01/30 build that I updated from 01/23. I noticed that I had to manually reflash SuperSU after the update script ran. Is this common or should I be setting something in SuperSU so I don't have to do that?
Click to expand...
Click to collapse
You would need an addod.d script, similar to the one in the Lineage SU zip. I don't use SuperSU, so I don't know if you could use the Lineage script without modification, but I think any changes needed would be trivial.
It is entirely possible that someone has already written an addon.d script for SuperSU, so try googling if writing your own scripts isn't your thing.
Sent from my Nexus 6 using Tapatalk

SM-T 310 How to obtain root?

Dear Community,
I just flashed TWRP 3.0.3 and installed LineageOs 13 by powermetza... How do I obtain root? Instructions told to flash it optionally, but there was no root.zip included in that thread. Can someone share a link? Thx in advantage
@gr8nole ! I need your wisdom and magic sir!
Droehnemeier said:
@gr8nole ! I need your wisdom and magic sir!
Click to expand...
Click to collapse
https://download.lineageos.org/extras
Choose the "arm" version for 13.0.
Thanks a ton for your help! And all other efforts.. I'll try immediately
gr8nole said:
https://download.lineageos.org/extras
Choose the "arm" version for 13.0.
Click to expand...
Click to collapse
That did not work TWRP says 4 errors occured while flashing process, but without deyails.
I downloaded twice, thought that a bad file might be the reason, but no.
In developers options the "root" options are extended though, but take no effect when root is activated. I installed SuperSu and tried to complete the .binary without success. I can't find my mistake ?
Droehnemeier said:
That did not work TWRP says 4 errors occured while flashing process, but without deyails.
I downloaded twice, thought that a bad file might be the reason, but no.
In developers options the "root" options are extended though, but take no effect when root is activated. I installed SuperSu and tried to complete the .binary without success. I can't find my mistake ?
Click to expand...
Click to collapse
Can't help you there, I have never needed to use that root zip.
Why don't you just use Lineage 14.1? it has root built-in, just enable it in Dev Options.
gr8nole said:
Can't help you there, I have never needed to use that root zip.
Why don't you just use Lineage 14.1? it has root built-in, just enable it in Dev Options.
Click to expand...
Click to collapse
It's my first flash on this device ... I wasn't sure if 14.1 is too heavy or too alpha for daily use.
Can you recommend it for daily use? thank you for your time!
Droehnemeier said:
It's my first flash on this device ... I wasn't sure if 14.1 is too heavy or too alpha for daily use.
Can you recommend it for daily use? thank you for your time!
Click to expand...
Click to collapse
It works great for T310.
Sent from my SM-G920V using Tapatalk
:laugh: alright, I'm coming I owe you a beer at least! \(")/ thanks again
Droehnemeier said:
:laugh: alright, I'm coming I owe you a beer at least! \(")/ thanks again
Click to expand...
Click to collapse
New builds will be up today.
Sent from my SM-G920V using Tapatalk
gr8nole said:
New builds will be up today.
Click to expand...
Click to collapse
Nice, I wait until you've posted it. I'm looking forward to flash your rom, I watched your work for a long time and you always did a great job and you seem to be one of the best devs for our device, I'm pretty sure it will fly like a bird with your rom ?

[MAGISK] Debloater for OnePlus Devices running OOS 11

Debloats unnecessary services and apps on your OnePlus devices to give moar free ram and improve battery.
Works both on stable and beta and any device running oos11
Use it. If it affects your daily usage, don't.
New apps and services have been added in this version.
No seperate versions. Since most of the 9 series guys are rooted, they be using the oxygen updater app. The default updater keeps running in bg and hence, has been removed.
If someone wants services like OnePlus account or red cable club, go to apk mirror and install it from there. Or can keep using the previous one.
Do not forget to flash Overlay mount fix from magisk repository else, u might end soft-rebooting your device.
If you like what I do, consider buying me a coffee
UPI: [email protected]
Moar updates HERE.
If uh want live wallpapers to be working again after installing the module, install the apk given below.
Vpn issue has been fixed and I'm attaching v7 below. Those facing vpn issues, flash this
which apps and services are debloaded?
kostasntamas said:
which apps and services are debloaded?
Click to expand...
Click to collapse
DebloaterList V6 - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
Check this link
Your mods are too good man especially your starwars mod. Thanks for ur mods man.
Karun Stratum said:
Your mods are too good man especially your starwars mod. Thanks for ur mods man.
Click to expand...
Click to collapse
Thanks Dark pero
Worked great on my OP6T.
Thank you!
SMcC2 said:
Worked great on my OP6T.
Thank you!
Click to expand...
Click to collapse
If you interested in becoming a tester, ping me on telegram
Great mod! I used it to get rid of the bloat mostly but directly after installing, AdGuard starts saying it cannot create a VPN connection and my devices firmware might now be compatible. I reflashed stock system.img and it was operational again, however I produced the same result after reflashing the module again. Do I need to reinstall anything to make it work?
intp.pisces said:
Great mod! I used it to get rid of the bloat mostly but directly after installing, AdGuard starts saying it cannot create a VPN connection and my devices firmware might now be compatible. I reflashed stock system.img and it was operational again, however I produced the same result after reflashing the module again. Do I need to reinstall anything to make it work?
Click to expand...
Click to collapse
Not sure why does it do that
Link me to the adguard version if possible. Will see
Link me to the adguard version if possible.
RedSkulxHYDRA said:
Not sure why does it do that
Click to expand...
Click to collapse
Updated, thanks for reporting the issue
intp.pisces said:
Great mod! I used it to get rid of the bloat mostly but directly after installing, AdGuard starts saying it cannot create a VPN connection and my devices firmware might now be compatible. I reflashed stock system.img and it was operational again, however I produced the same result after reflashing the module again. Do I need to reinstall anything to make it work?
Click to expand...
Click to collapse
Updated to v7. Should fix the issue
does it work on my oneplus 6t?
xtreamxahid said:
does it work on my oneplus 6t?
Click to expand...
Click to collapse
Yes
RedSkulxHYDRA said:
Updated to v7. Should fix the issue
Click to expand...
Click to collapse
I did indeed. I do the debloat\oneplus acct delete every time I do a clean flash (always) so I'm very thankful for this. THANKS! So fkn glad I can just flash and save myself 30 mins doing my Oneplus Detox routines lol
intp.pisces said:
I do the debloat\oneplus acct delete every time I do a clean flash (always) so I'm very thankful for this. THANKS! So fkn glad I can just flash and save myself 30 mins doing my Oneplus Detox routines lol
Click to expand...
Click to collapse
Caused soft bootloop this time around. Not sure why but it said Google something wasn't installed
intp.pisces said:
Caused soft bootloop this time around. Not sure why but it said Google something wasn't installed
Click to expand...
Click to collapse
Flashed on h2os? If not, flash overlay mount fix and reboot.
RedSkulxHYDRA said:
Flashed on h2os? If not, flash overlay mount fix and reboot.
Click to expand...
Click to collapse
Yup, forgot overlay mount. Thanks man! You're my setup hero
intp.pisces said:
Yup, forgot overlay mount. Thanks man! You're my setup hero
Click to expand...
Click to collapse
I like that title
would love to use this, but i need android auto, and this kills it.... anyway to modify this script myself and/or get a AA compatible version ? thank you for your work

Categories

Resources