Fix adblock on rooted 9.1

Daniehabazin

Senior Member
Nov 14, 2008
256
80
48
Stockholm, Boca Raton or Zagreb
Found a way to get adblocking back on rooted emui 9.1.
in magisk settings enable systemless hosts
then in downloads, search for "busybox for android NDK" install that, then search for "energized protection" and install that too, then reboot
in a terminal emulator type "su" and allow the terminal emulator to run as root.
Then to configure the adblock just type "energized"
let it do it's check and then you have several options, first you have to choose the pack
i usually go with basic (4)

after applying, exit with q and type reboot in the console.

after reboot check some website with known ads and enjoy

for more information check out Github: https://github.com/Magisk-Modules-Repo/energizedprotection#usage
Or Energized website: https://energized.pro/
 

sharath91221

Member
Jul 2, 2012
25
4
0
Found a way to get adblocking back on rooted emui 9.1.
in magisk settings enable systemless hosts
then in downloads, search for "busybox for android NDK" install that, then search for "energized protection" and install that too, then reboot
in a terminal emulator type "su" and allow the terminal emulator to run as root.
Then to configure the adblock just type "energized"
let it do it's check and then you have several options, first you have to choose the pack
i usually go with basic (4)

after applying, exit with q and type reboot in the console.

after reboot check some website with known ads and enjoy

for more information check out Github: https://github.com/Magisk-Modules-Repo/energizedprotection#usage
Or Energized website: https://energized.pro/
Can you provide download links and instructions on how you have rooted EMUI 9.1 mate 20 pro.
I tried to root, but unable to mount few partitions. I have formatted "/data" using TWRP but still unable to flash magisk. After mutiple retries able to flash magisk with some errors mentioning about error in mount. Then my mobile keeps on rebooting and going to erecovery. Am on EMUI 9.1.0.300
 

Daniehabazin

Senior Member
Nov 14, 2008
256
80
48
Stockholm, Boca Raton or Zagreb
Can you provide download links and instructions on how you have rooted EMUI 9.1 mate 20 pro.
I tried to root, but unable to mount few partitions. I have formatted "/data" using TWRP but still unable to flash magisk. After mutiple retries able to flash magisk with some errors mentioning about error in mount. Then my mobile keeps on rebooting and going to erecovery. Am on EMUI 9.1.0.300
there is no difference rooting 9.0 or 9.1, you do it the same way.
well, with the exeption that directly after factory reset you have to flash the recovery_ramdisk, if you let the phone boot up without the modified recovery then android messeges stops working.

so the step is simple, install 9.1, if your phone is messed up use the hstool or erecovery, hstool was faster for me.
get yourself a patched recovery_ramdisk from 9.1 (i did this myself by extracting the ramdisk and patching in magisk on my phone when i was still on 9.0)
before first boot, enter fastboot and flash the recovery_ramdisk.
boot with volume up, and then profit.

for more information check: https://forum.xda-developers.com/mate-20-pro/how-to/guide-manual-updating-firmware-t3893171
 

sharath91221

Member
Jul 2, 2012
25
4
0
there is no difference rooting 9.0 or 9.1, you do it the same way.
well, with the exeption that directly after factory reset you have to flash the recovery_ramdisk, if you let the phone boot up without the modified recovery then android messeges stops working.

so the step is simple, install 9.1, if your phone is messed up use the hstool or erecovery, hstool was faster for me.
get yourself a patched recovery_ramdisk from 9.1 (i did this myself by extracting the ramdisk and patching in magisk on my phone when i was still on 9.0)
before first boot, enter fastboot and flash the recovery_ramdisk.
boot with volume up, and then profit.

for more information check: https://forum.xda-developers.com/mate-20-pro/how-to/guide-manual-updating-firmware-t3893171
You used patched_recovery_ramdisk.img from 9.0 on 9.1 or you have extracted recovery_ramdisk from 9.1 and then patched it using magisk?

If you have extracted recovery_ramdisk.img from 9.1, can you provide me the link?
 

Daniehabazin

Senior Member
Nov 14, 2008
256
80
48
Stockholm, Boca Raton or Zagreb
You used patched_recovery_ramdisk.img from 9.0 on 9.1 or you have extracted recovery_ramdisk from 9.1 and then patched it using magisk?

If you have extracted recovery_ramdisk.img from 9.1, can you provide me the link?
i extracted the ramdisk from 9.1.0.310 and patched it in magisk on my phone. i'm unable to share the file right now because i'm on a trip right now but i'll be back on monday. but it's easy to patch it yourself, just extract it with huaweiupdateextractor and transfer it to your phone.
 
  • Like
Reactions: sharath91221

sharath91221

Member
Jul 2, 2012
25
4
0
i extracted the ramdisk from 9.1.0.310 and patched it in magisk on my phone. i'm unable to share the file right now because i'm on a trip right now but i'll be back on monday. but it's easy to patch it yourself, just extract it with huaweiupdateextractor and transfer it to your phone.
Great. Thank you Daniehabazin :good:. I will download 9.1.0.310 using firmware finder app and extract UPDATE.APP using hauweiupdatextractor and use magisk to patch ramdisk.
 

Daniehabazin

Senior Member
Nov 14, 2008
256
80
48
Stockholm, Boca Raton or Zagreb
Great. Thank you Daniehabazin :good:. I will download 9.1.0.310 using firmware finder app and extract UPDATE.APP using hauweiupdatextractor and use magisk to patch ramdisk.
sounds good, hit me up for the patched ramdisk if you can't get it to work and i'll upload it on monday.
have a lya-l29c432 but the firmware i downloaded was for lya-lgrp-ovs, i guess it covers several hardware versions
 

sharath91221

Member
Jul 2, 2012
25
4
0
sounds good, hit me up for the patched ramdisk if you can't get it to work and i'll upload it on monday.
have a lya-l29c432 but the firmware i downloaded was for lya-lgrp-ovs, i guess it covers several hardware versions
After factory reset, I have flashed patched ramdisk.img from 9.1.0.310 and while rebooting press and hold vol+ button, it is going to "press power key to continue, press volume up key..." thing. If i reboot and press vol- key again it was going to "press power key to continue...."thing. Magisk app still shows it was not installed.
 

ilos

Senior Member
Jun 17, 2007
1,523
244
0
Saint Priest
Off topic for rooting... There is already a thread for that with patched recovery img 9.1 and procedure for rooting. 9.1...(search my posts) To return to subject of this topic, what is missing and why I don't use energized it's because it don't have blocklist GoodbyeAds (Google ads)

Also you can use private dns in network setting and put dns.adguard.com in it, but in my case that break mms so...

---------- Post added at 10:58 PM ---------- Previous post was at 10:56 PM ----------

on 9.1?
with 9.1 huawei intruduced a new file system that is read only.
Wrong, it's only "/system" and "/" r/o. Subfolders are r/w (ie /etc /cache...)
 

Attachments

Last edited:

side_flip15

Senior Member
Jul 25, 2011
480
150
63
Manila
on 9.1?
with 9.1 huawei intruduced a new file system that is read only.

Take a look at my screenshots. I got something like storage error at first. Adaway worked after I debloat and systemize app using magisk module. Not sure if it's related but works for me three times already. Those two modules actually alters files on /system without any issue. Worth trying...
 

Attachments

side_flip15

Senior Member
Jul 25, 2011
480
150
63
Manila
After factory reset, I have flashed patched ramdisk.img from 9.1.0.310 and while rebooting press and hold vol+ button, it is going to "press power key to continue, press volume up key..." thing. If i reboot and press vol- key again it was going to "press power key to continue...."thing. Magisk app still shows it was not installed.
Trick is not to send command on fastboot to reboot. After flashing recovery_ramdisk successfully remove the usb cable then press and hold power + volume up buttons. Release them when you see the yellow text warning saying "your device is booting now..."
 

sharath91221

Member
Jul 2, 2012
25
4
0
Trick is not to send command on fastboot to reboot. After flashing recovery_ramdisk successfully remove the usb cable then press and hold power + volume up buttons. Release them when you see the yellow text warning saying "your device is booting now..."
I found an another way. After flashing patched ramdisk and after reboot if it shows "press power key to continue.." thing. Go to erecovery and then go to factory wipe. It does not actually wipe the phone, it simply reboots and turn on with magisk installed.

Now am unable to install exposed or core. If i install them, mobile is stuck at boot
 

Daniehabazin

Senior Member
Nov 14, 2008
256
80
48
Stockholm, Boca Raton or Zagreb
Take a look at my screenshots. I got something like storage error at first. Adaway worked after I debloat and systemize app using magisk module. Not sure if it's related but works for me three times already. Those two modules actually alters files on /system without any issue. Worth trying...
oh, ok.
because i also got the storage error and on the thread for p30 pro rooting i saw that adaway doesn't work, checked the p30 forum because they got their phone with 9.1.
i'll try adaway again, but i also kinda like the feeling of running a terminal on my mate 20 pro :)
 

rath76

Senior Member
Nov 21, 2009
133
72
58
Zajecar
Found a way to get adblocking back on rooted emui 9.1.
in magisk settings enable systemless hosts
then in downloads, search for "busybox for android NDK" install that, then search for "energized protection" and install that too, then reboot
in a terminal emulator type "su" and allow the terminal emulator to run as root.
Then to configure the adblock just type "energized"
let it do it's check and then you have several options, first you have to choose the pack
i usually go with basic (4)

after applying, exit with q and type reboot in the console.

after reboot check some website with known ads and enjoy

for more information check out Github: https://github.com/Magisk-Modules-Repo/energizedprotection#usage
Or Energized website: https://energized.pro/
Great work, just did it and it works. Have been busting my head for a week now without Adaway. Thanks man!
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone