Related
Not my credit but took me a while to figure out and I didn't find it here beforehand. So, I'm sharing it here. Apologies if it's already in a thread somewhere here.
1. Install Adaway (actually it doesn't seem to matter if you install the apk before or after the next steps)
2. Make sure Adaway has root access
3.Flash [on Recovery] AdAway_systemless_hosts_v2.zip (https://www.androidfilehost.com/?fid=24438995911977059])
4.Install Busybox (this did the trick)
5. Run Adaway Update, test & profit
I hope it helps others...
Installing Magisk with root and enabling systemless hosts from within Magisk is a better option. (You also don't need to install busybox because Magisk has that built in as well)
Sent from my Nexus 5X using Tapatalk
Trevonn said:
Installing Magisk with root and enabling systemless hosts from within Magisk is a better option. (You also don't need to install busybox because Magisk has that built in as well)
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
thanks body was easy.
Since OTA updates NXT-L09CxxxB580+ for our devices is out and because of the fixes in the kernel, we are now able to root our device using Magisk.
This is a step-by-step guide leading you throughout the process and also stating the pros of using Magisk over using SuperSU.
News:
09/11/2017
- Magisk was updated to v14 which adds more root hiding mechanisms and also more devices compatibility.
07/18/2017
- Magisk was updated to version 13.3 and will once again pass SafetyNet without any issues
- To update, just open MagiskManager and press Download and Install (if you are new to Magisk, just follow guide below)
07/14/2017
- Google updated SafetyNet and Magisk devices will not pass it
Pros of using Magisk over SuperSU:
Automatic updates
Does not break OTA updates
Does not break SafetyNet (you will be able to use AndroidPay, play Pokemon Go, install Netflix from Google Play and use apps requiring SafetyNet pass)
Ability to install modules from the repository (much like xposed modules)
Before installation:
Unlock your bootloader
Make sure you have stock boot.img
Make sure you are on B580+ as Magisk cannot be installed on older versions
Installation:
Flash this recovery in fastboot: https://forum.xda-developers.com/mate-8/orig-development/twrp-t3576364
Flash latest Magisk in TWRP recovery: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Boot into system
Check your apps for Magisk Manager
[OPTIONAL] In the magisk manager, you can check if you pass SafetyNet
Troubleshooting:
Magisk Manager was not installed
- Open the Magisk.zip, inside open common folder and install magisk.apk
SafetyNet does not pass
- First try disabling and enabling Magisk Hide in the Magisk Manager
- If above does not help open stock Huawei dialer, dial *#*#2846579#*#*, tap Background settings, tap LOG settings, check all checkboxes, open Magisk Manager and disable and enable Magisk Hide
Supported devices:
All NXT-L29 B580+ devices
All NXT-L09 B580+ devices
All other Mate 8 versions with B580+
Basically any other device as Magisk is not device dependent (works with like 95% of all devices, as long as the device's kernel supports loop mount and few other things)
My Magisk Modules for Mate 8:
[Magisk] Official Huawei Automatic Call Recorder
Hope this will help you guys!
car nikolaj
. I recommend this app to anyone who want for the root acces. :good::good::good::good::good::good::good:
Does this method and the TWRP attached work on B585?
Thanks.
Just installed B581 via OTA and decided to give Magisk a try. I was able to get it installed by following your instructions but I'm not able to pass SafetyNet due to CTS profile mismatch. Any idea?
xxlap1xx said:
Just installed B581 via OTA and decided to give Magisk a try. I was able to get it installed by following your instructions but I'm not able to pass SafetyNet due to CTS profile mismatch. Any idea?
Click to expand...
Click to collapse
Same here. CTS profile mismatch
Fresh B581
Thanks for this, have not tried it yet but if I do, and I for some reason wish to unroot, how does one do that?
necc0 said:
Does this method and the TWRP attached work on B585?
Thanks.
Click to expand...
Click to collapse
Yes
xxlap1xx said:
Just installed B581 via OTA and decided to give Magisk a try. I was able to get it installed by following your instructions but I'm not able to pass SafetyNet due to CTS profile mismatch. Any idea?
Click to expand...
Click to collapse
sZx1 said:
Same here. CTS profile mismatch
Fresh B581
Click to expand...
Click to collapse
Did you installed Xposed? Check Magisk manager settings if you have Magisk hide enabled.
shestolemyusrname said:
Thanks for this, have not tried it yet but if I do, and I for some reason wish to unroot, how does one do that?
Click to expand...
Click to collapse
You just press uninstall button in Magisk manager
Boosik said:
Yes
Did you installed Xposed? Check Magisk manager settings if you have Magisk hide enabled.
You just press uninstall button in Magisk manager
Click to expand...
Click to collapse
When I boot into TWRP for the first time, should I keep Ready Only or Swipe to Allow Modifications?
Can you help me??
Magisk installed -all its ok, but im trying copy one folder and set attributes to system\app folder, but unfortunatelly - cannot write to system\app.... (i must install HwCallRecorder)
I tested Total commander and Root explorer
thx
Boosik said:
Yes
Did you installed Xposed? Check Magisk manager settings if you have Magisk hide enabled.
You just press uninstall button in Magisk manager
Click to expand...
Click to collapse
Nope, freshly installed B581. I read something about SafetyNet was being updated so that's probably why.
Sent from my HUAWEI NXT-L29 using Tapatalk
woji said:
Can you help me??
Magisk installed -all its ok, but im trying copy one folder and set attributes to system\app folder, but unfortunatelly - cannot write to system\app.... (i must install HwCallRecorder)
I tested Total commander and Root explorer
thx
Click to expand...
Click to collapse
I have the same issues as woji, and also can't write hosts file for AdAway.
Seemingly the simple reasons for rooting aren't available in systemless root, or we have errors preventing this?
Hilton.Swart said:
I have the same issues as woji, and also can't write hosts file for AdAway.
Seemingly the simple reasons for rooting aren't available in systemless root, or we have errors preventing this?
Click to expand...
Click to collapse
Same, I had issues with adaway not being to write hosts files using magisk as well. I went back and flashed SuperSU and the problem is gone.
Sent from my HUAWEI NXT-L29 using Tapatalk
Hilton.Swart said:
I have the same issues as woji, and also can't write hosts file for AdAway.
Seemingly the simple reasons for rooting aren't available in systemless root, or we have errors preventing this?
Click to expand...
Click to collapse
xxlap1xx said:
Same, I had issues with adaway not being to write hosts files using magisk as well. I went back and flashed SuperSU and the problem is gone.
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
Open Magisk Settings and enable Systemless hosts data.
Systemless root means you can't directly edit /system partition, because editing it voids SafetyNet. Magisk uses Magic Mount to systemlessly replace /system files and folders on-the-fly without actually modifying the original ones. All you need is appropriate modules from magisk manager "Downloads" tab.
woji said:
Can you help me??
Magisk installed -all its ok, but im trying copy one folder and set attributes to system\app folder, but unfortunatelly - cannot write to system\app.... (i must install HwCallRecorder)
I tested Total commander and Root explorer
thx
Click to expand...
Click to collapse
Try installing it as user app and use App Systemizer module in magisk manager to convert it to system app.
xxlap1xx said:
Nope, freshly installed B581. I read something about SafetyNet was being updated so that's probably why.
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
Yea you are right, I have it working, but the process is a bit tedious. We better wait for new Magisk version, where it should be fixed.
shestolemyusrname said:
When I boot into TWRP for the first time, should I keep Ready Only or Swipe to Allow Modifications?
Click to expand...
Click to collapse
Keep it Read Only.
Boosik said:
Open Magisk Settings and enable Systemless hosts data.
Click to expand...
Click to collapse
This was my first logical step when hosts would not apply, I've changed the settings numerous times and the host simply will not write.
Tried Magisk for the ability to keep SafetyNet intact, but it still fails any tests. So I think I'll follow xxlap1xx, and try Magisk at another time.
Boosik said:
Yes
Did you installed Xposed? Check Magisk manager settings if you have Magisk hide enabled.
You just press uninstall button in Magisk manager
Click to expand...
Click to collapse
No Xposed installed. Hide was enabled in settings and in hide tab as well.
Reading about SafetyNet looks like unlocked bootloader can be a problem.
V13 beta same results.
Probably have to wait for workaround
Thanks.
Hilton.Swart said:
This was my first logical step when hosts would not apply, I've changed the settings numerous times and the host simply will not write.
Tried Magisk for the ability to keep SafetyNet intact, but it still fails any tests. So I think I'll follow xxlap1xx, and try Magisk at another time.
Click to expand...
Click to collapse
sZx1 said:
No Xposed installed. Hide was enabled in settings and in hide tab as well.
Reading about SafetyNet looks like unlocked bootloader can be a problem.
V13 beta same results.
Probably have to wait for workaround
Thanks.
Click to expand...
Click to collapse
I already know how to workaround it, but the process is a bit unfriendly to normal users (requires terminal emulator). We better wait for new Magisk beta.
Boosik said:
Yes
Did you installed Xposed? Check Magisk manager settings if you have Magisk hide enabled.
You just press uninstall button in Magisk manager
Click to expand...
Click to collapse
Boosik said:
I already know how to workaround it, but the process is a bit unfriendly to normal users (requires terminal emulator). We better wait for new Magisk beta.
Click to expand...
Click to collapse
Can you, please, share. I'm pretty handy with terminal and willing to experiment. Worst - have to return to stock.
Thanks
Just safety fix module gonna work, every other module gonna bugged.
To install modules you have to wait the f2f2 fixed kernel.
Guys after some testing on magisk i discover that have some modules that work with this method, but carefully because some modules like app systemizer gives a bootloop. So do a backup.
Click to expand...
Click to collapse
For your security make a backup of boot partition first
Click to expand...
Click to collapse
Hi everyone, I decided to do a tutorial, to explain how to get safetynet working while the kernel with f2f2 fixed is not released
{Unlocked bootloader is needed}
{stock rom is needed too}
{TWRP is needed too}
1. you have to reboot in TWRP and install Magisk 14 and reboot (is needed to reboot to create all files) and reboot again into TWRP
2. to work the correct function of magisk you need to do the trick maked by jbblancoperez
3.you have open terminal on TWRP and move the file
mv /data/magisk.img /cache/magisk2.img
Click to expand...
Click to collapse
4.after you have to symlink the files
ln -s /cache/magisk2.img /data/magisk.img
Click to expand...
Click to collapse
5.boot system and check on magisk manager if SafetyNet works if it not works ( install the safety net universal fix) (link above)
6. If you had to install the SafetyNet Fix after works you can unistall the module because its gonna work without it
If anybody have a problem with magisk hide on 14 version just install the 13.3 version and use root explorer to copy the .core folder to sdcard and then install 14 version and put .core folder in appropriate place]
The directory of . core folder is /magisk/.core
Click to expand...
Click to collapse
Links
SafetyNet Fix (for the 14 magisk version you need to install the zip with hotfix, which is in same post of last beta but is in the end of the post) https://forum.xda-developers.com/apps/magisk/xiaomi-safetynet-fix-t3600431
Magisk : https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Click to expand...
Click to collapse
Worked like a charm, thank you!
It worked perfectly. Just one thing, you had a syntax error in step 6:
Its '/cache/...' not '/cacve/..."
Anyway, thank you very much. I needed it :good::fingers-crossed:
flapcon said:
It worked perfectly. Just one thing, you had a syntax error in step 6:
Its '/cache/...' not '/cacve/..."
Anyway, thank you very much. I needed it :good::fingers-crossed:
Click to expand...
Click to collapse
I have not seen it ! thanks
Guys after some testing on magisk i discover that have some modules that work with this method, but carefully because some modules like app systemizer gives a bootloop. So do a backup.
Safetynet still fail. Could you explain how to get Safetynet pass? THanks
Magsik dont work with Xposed. Install Magisk 14.3 it will work perfect without doing anything, i am on Security Patch August.
Nchls said:
Safetynet still fail. Could you explain how to get Safetynet pass? THanks
Click to expand...
Click to collapse
Did you move the image to cache and symlink with the correct comands? Check if you don't have sure, try the process again. And if you don't get the safety net working try the module.
I just applied the hotfix plus the "mv and ln" to my moto z play, I passed the entire safetynet check for the first time ever and Google Pay just works.
Thanks a million!!
p.s. I am running magisk 14.3 beta IIRC.
The trick with symlink worked. I can pass SafetyNet and HideRoot on my Moto Z play (7.1.1 Nougat - august security patch).
PS: there is an extra space before symlink parameter. it should be like this:
ln -s /cache/magisk2.img /data/magisk.img
Click to expand...
Click to collapse
razorsbk said:
The trick with symlink worked. I can pass SafetyNet and HideRoot on my Moto Z play (7.1.1 Nougat - august security patch).
PS: there is an extra space before symlink parameter. it should be like this:
Click to expand...
Click to collapse
Thanks! I gonna correct!!
Can I use the latest version of magisk (15.3)? It doesn't seem to work when i try to use Superuser functions in Automate
GiantPlaidSquirrel said:
Can I use the latest version of magisk (15.3)? It doesn't seem to work when i try to use Superuser functions in Automate
Click to expand...
Click to collapse
I relock my bootloader so i can't test or try another way. Sorry about that, but i don't know if something can be done to work
Systemless Adaway With Magisk
Can anyone help me with this i already have a working magisk safetynet and everything.... but i need the adaway this is the reason i root my phone but i dont want to loose ota
thanks
1. In Magisk Manager settings enable 'Systemless hosts'.
2. Reboot.
3. Install AdAway. Do not change the 'Target hosts file' setting in AdAway (/system/etc/hosts).
bitbidu said:
1. In Magisk Manager settings enable 'Systemless hosts'.
2. Reboot.
3. Install AdAway. Do not change the 'Target hosts file' setting in AdAway (/system/etc/hosts).
Click to expand...
Click to collapse
So, just to be 100% clear, once Systemless hosts is enabled and you reboot, when the system thinks it is working with /system/etc/hosts, it is in fact working with a magisk hosts file?
klaberte said:
So, just to be 100% clear, once Systemless hosts is enabled and you reboot, when the system thinks it is working with /system/etc/hosts, it is in fact working with a magisk hosts file?
Click to expand...
Click to collapse
Yup. As long as the option is enabled in Magisk. I've tested this out myself.
Just install unified Hosts AdBlock Module from the magisk download list, it has a gui now, no need to use terminal anymore, no need to install adaway.
coremania said:
Just install unified Hosts AdBlock Module from the magisk download list, it has a gui now, no need to use terminal anymore, no need to install adaway.
Click to expand...
Click to collapse
If using this module, do we still need to enable systemless
hosts option in magisk setting?
Edit: Ok, the module instruction said it has to be enabled.
Edit1: It's so much easier to use AdAway :silly:
I've had problems with Magisk/Adaway and SafetyNet on Nougat:
I had no SafetyNet issues, then I activated the 'Systemless hosts' option in Magisk, installed Adaway and downloaded the hosts to the standard path (/system/etc/hosts), which - afaik - at that time should have been 'overmounted' (is that an english term?) with /Magisk/.core/hosts.
Unfortunately it didn't work and I lost SafetyNet (but also the ads, though).
No I updated to Oreo, have Magisk systemless root with SafetyNet compatibility restored and want to try my luck with Adaway again. But I'm a bit afraid of just doing the above steps again. Is there a way to check if Magisks systemless host feature works? Like a symlink in the shell or something?
Thanks a lot for your help, much appreciated!
Imho, As long as the ads are being blocked and safetynet passed, then all is working as they should
Thanks for your reply wulfe13.
Yes, of course, in that case I'd be happy.
But like I said (or tried to say), I didn't pass SafetyNet test...
smashedup said:
Thanks for your reply wulfe13.
Yes, of course, in that case I'd be happy.
But like I said (or tried to say), I didn't pass SafetyNet test...
Click to expand...
Click to collapse
Strange.
Are you using Xposed on your device?
Nope. No Xposed at the time of the Adaway activation.
Well, maybe I'll just give it a try again...
edit: and it worked! Adblocker + SafetyNet
[Deleted]
It worked for me too on Oreo.
I just enabled the systemless adblock option in Magisk Manager. Then installed AdAway.
Ad blocker is working and SafetyNet passes.
coremania said:
Just install unified Hosts AdBlock Module from the magisk download list, it has a gui now, no need to use terminal anymore, no need to install adaway.
Click to expand...
Click to collapse
How can I access the GUI of Unified Hosts AdBlock, when I click over the module, nothing happens.
Edit: I guess I need the app Unified Hosts Manager
aenima73 said:
How can I access the GUI of Unified Hosts AdBlock, when I click over the module, nothing happens.
Edit: I guess I need the app Unified Hosts Manager
Click to expand...
Click to collapse
The module installs a apk for controlling, if not u use a old version. Install it from the downloads which are avaible in the magisk apk and you're good and have the apk installed too.
So on magisk 16.7 i enabled systemless hosts -> restart -> Installed Unified Hosts adblock module from the magisk app -> restart -> opened "bs.to" in chrome -> still see porn ads.
What did i do wrong?
~phoeny~ said:
So on magisk 16.7 i enabled systemless hosts -> restart -> Installed Unified Hosts adblock module from the magisk app -> restart -> opened "bs.to" in chrome -> still see porn ads.
What did i do wrong?
Click to expand...
Click to collapse
use adaway instead. for some reason the unified hosts app doesnt work for me either
thedemon786 said:
use adaway instead. for some reason the unified hosts app doesnt work for me either
Click to expand...
Click to collapse
the adaway i get from f-droid?
So i uninstalled Unified Hosts -> restart -> installed adaway -> Let is do its thing-> restart. Still see porn.
It is using /system/etc/hosts as host location.
I also tried different sites and cleared cache to confirm that the ads are not cached. Oh god i want xposed back. :crying:
~phoeny~ said:
the adaway i get from f-droid?
So i uninstalled Unified Hosts -> restart -> installed adaway -> Let is do its thing-> restart. Still see porn.
It is using /system/etc/hosts as host location.
I also tried different sites and cleared cache to confirm that the ads are not cached. Oh god i want xposed back. :crying:
Click to expand...
Click to collapse
in magisk settings -> enable systemless hosts-> reboot
install adaway -> download/install hosts -> reboot
Check this thread to use latest Adaway with Unified Hosts sources list systemlessly with Magisk
Latest APKs (by PerfectSlayer) can be downloaded from here
I tried both adaway and magisk adguard module, none of them seem to be blocking ads successfully. I am using the latest oreo pixel experience rom but I remember having the same problem on lineage os oreo as well. Is this a known error?
No module needed, simply download new adaway version 4.0.10, It work with systemless host magisk option, search in androidfilehost
Maybe it's your rom. Try to change the hosts target folder in adaway options.
Edit: and tick systemless hosts in magisk options.
coremania said:
Maybe it's your rom. Try to change the hosts target folder in adaway options.
Edit: and tick systemless hosts in magisk options.
Click to expand...
Click to collapse
I already had that option checked in magisk.
Also, my hosts file seems to be in system/etc/hosts. If I try the other locations adaway says there is no hosts file there and asks me if I want to symnlink it.
fdc77 said:
No module needed, simply download new adaway version 4.0.10, It work with systemless host magisk option, search in androidfilehost
Click to expand...
Click to collapse
There is no such adaway version. The latest one is v3.3 https://forum.xda-developers.com/showthread.php?t=2190753
Im using that and its not working.
lvnatic said:
There is no such adaway version. The latest one is v3.3 https://forum.xda-developers.com/showthread.php?t=2190753
Im using that and its not working.
Click to expand...
Click to collapse
https://androidfilehost.com/?w=files&flid=249276