Huawei P9 [ROM][Android 7.0][EMUI 5.0.1][European Firmware b398]*MagicRainbow* v4

ogisha

Senior Member
May 24, 2012
492
293
0
Hi @Tecalote,

I wonder if using Magisk selinux permissive script could harm my phone?
In the last two weeks, when I use Titanium Backup to restore any application everything passes fine, but after that when I use any application which uses root the phone freezes. Status and navigation bars disappear and all I can do is to reset the phone by the button.
After the reboot all of my paired Bluetooth devices disappear and I have to pair them again.
Magisk selinux permissive script was my first to blame. I uninstalled it but the problem stays.
I am on stock P9 L09C432B395.
Thank you.
 
Last edited:

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Hi @Tecalote,

I wonder if using Magisk selinux permissive script could harm my phone?
In the last two weeks, when I use Titanium Backup to restore any application everything passes fine, but after that when I use any application which uses root the phone freezes. Status and navigation bars disappear and all I can do is to reset the phone by the button.
After the reboot all of my paired Bluetooth devices disappear and I have to pair them again.
Magisk selinux permissive script was my first to blame. I uninstalled it but the problem stays.
I am on stock P9 L09C432B395.
Thank you.
Have you tried wiping Dalvik Art Cache and Cache with TWRP (Reboot perhaps 5 min..)?
If this doesn't work -
You should backup your Apps, data, folders from internal storage and use my HWOTA method to update your Firmware to b397 (remember you was asking me, if this is possible) - you don't need to Unroot, but you can (before)

But after it is required to wipe internal storage from settings /advanced settings /backup reset/factory data reset with wipe internal storage and also clear cache partition with Stock Recovery.

I think it has nothing to do with SELunux Permissive Script!
There must be something else I don't know.
It looks for me as Magisk isn't working properly
 
  • Like
Reactions: ogisha

ogisha

Senior Member
May 24, 2012
492
293
0
Have you tried wiping Dalvik Art Cache and Cache with TWRP (Reboot perhaps 5 min..)?
If this doesn't work -
You should backup your Apps, data, folders from internal storage and use my HWOTA method to update your Firmware to b397 (remember you was asking me, if this is possible) - you don't need to Unroot, but you can (before)

But after it is required to wipe internal storage from settings /advanced settings /backup reset/factory data reset with wipe internal storage and also clear cache partition with Stock Recovery.

I think it has nothing to do with SELunux Permissive Script!
There must be something else I don't know.
It looks for me as Magisk isn't working properly
I wiped Dalvik Art Cache and Cache. Reboot was a bit slower than usual, not five minutes. Nothing changed. Bug reproduced again.
Before I try HWOTA I would like to try to turn off AVB 2.0/dm-verity. I turned it off in Magisk Manager and reinstalled Magisk but it is still turned on!? ?
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Hi @Tecalote,

I'm trying to clone an additonal app with this ROM but I can't do it.
I'm following this guide:
https://www.xda-developers.com/how-to-clone-any-application-with-emuis-app-twin-feature-no-root/
I was able to do it sucessfully in MRv3.

Thanks!
Just go with Root Explorer to:
/system/emui/oversea/xml
Open hw_clone_app_list.xml with Editor and add the package name into the list.
Store it, close it. Make sure the xml file don't loose his permission 644 (I do it always with Mixplorer /Editor cause Mixplorer store it automatically with right permission)
 

Attachments

  • Like
Reactions: csmarino90

csmarino90

Senior Member
Jan 13, 2014
57
24
38
51
Buenos Aires
plus.google.com
Just go with Root Explorer to:
/system/emui/oversea/xml
Open hw_clone_app_list.xml with Editor and add the package name into the list.
Store it, close it. Make sure the xml file don't loose his permission 644 (I do it always with Mixplorer /Editor cause Mixplorer store it automatically with right permission)
Excelent! It works and Is better than the guide I followed. In this case I can manage the cloned app from Huawei settings.

I don't know why Huawei restrict the use of this feature to certain apps.

I'm thinking that a Magisk module (+ app) could be a good way to add all the apps that the user wants to the XML config.

Thank you very much for your support @Tecalote

Enviado desde mi EVA-L09 mediante Tapatalk
 
  • Like
Reactions: Tecalote

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
I wiped Dalvik Art Cache and Cache. Reboot was a bit slower than usual, not five minutes. Nothing changed. Bug reproduced again.
Before I try HWOTA I would like to try to turn off AVB 2.0/dm-verity. I turned it off in Magisk Manager and reinstalled Magisk but it is still turned on!? ?
With newest Magisk v16 on a clean Stock Rom (and even in my new Rom) only Force encryption is enabled by default.

Magisk v16 recognize on clean Rom/Firmware the encryption and can handle it.
But if your Firmware/Rom is not clean, cause you have updated from older versions of Magisk to newer versions Android Verified Boot (AVB) stay enabled.

You can try following - use latest Magisk Uninstaller (with TWRP), without reboot to system flash immediately after original boot.img from (your) current Firmware (b395) by choosing img with TWRP and flash it to boot.
Immediately after (without reboot to system) flash newest Magisk v16 (official one)
Then reboot phone without wipe of Dalvik/Cache after :)
This reboot to system is required at this point.
Only force encryption is enabled now with Magisk Manager.

Modules are deleted, you must reinstall your preferred Magisk modules.
You use Busybox from YashdSaraf I have seen.
He released an Update of 1.28.1 (because prerelease had some bug)
I use this Busybox on P8 Rom. But in P9 Rom I use the one by Osm0sis - both are very good
 
Last edited:
  • Like
Reactions: ogisha

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
@ogisha Use SELinux Permissive Script 1.2 from this site:
https://forum.xda-developers.com/apps/magisk/module-magisk-selinux-permissive-script-t3577549
Even if the development of the module is discontinued, it works as it should.
Jman420 made a new module as well (but for me not interesting, cause I need permissive as default installation during Rom script)
https://forum.xda-developers.com/apps/magisk/module-magisk-selinux-manager-t3760042
This module can only installed with Magisk Manager (as an alternative to the other, but not both of course) and you choose which SELinux Mode you like to have...
 
  • Like
Reactions: ogisha

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Hello!
I'm trying to start Google maps, but on the first start it force closes, then it only shows a black screen with the app title.
From which Firmware /Rom did you install this ROM?
What was the last official Firmware you had installed?
Which cust (c432, c185, c636..) do you have and which EVA-xxx?
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
Hi @Tecalote,

Can I restore the stock bootanimation? How to do it?

How to activate Google Assistant with long press of the home button using Advanced Settings?

Thanks!

Enviado desde mi EVA-L09 mediante Tapatalk
I will make a flashable zip with the original Huawei Bootanimation.

To enable Google App with long press on home button do following:

First step
If you use another language than English - you must open first Native settings /Advanced Settings /Language and Input - add English Language for your Country (Example: English for German, or English for GB, or English for USA..) Then change until next Reboot the language to the added English (this step is required because the setting in next step can only be done with English language) . If you use already English - skip first step

Second step:
Open KangV Advanced Settings /Navigation bar settings /Longpress home key action - by default KangV had set this to torch (flashlight) - but now you click on it and scroll down to: Custom Application - now a list with all installed apps will shown - use: Google (App).
 

curtricias

Senior Member
Oct 9, 2012
213
41
0
Kortessem
After the installation i had problems with the play store. Downloading of apps was not possible. I tried every work around but it didn't work.
Then I thought I do a factory reset and start again. After that the fps was gone! No option in the menu to let it work? Then I wanted to start all over again. I restored my nandroid that I made before I installed mr4. But after reboot I'm still having mr? But now also TWRP is gone and the fps is still broken?

Any idea to clean things up again?
 

Tecalote

Senior Member
Aug 6, 2015
4,077
3,104
253
Leipzig
After the installation i had problems with the play store. Downloading of apps was not possible. I tried every work around but it didn't work.
Then I thought I do a factory reset and start again. After that the fps was gone! No option in the menu to let it work? Then I wanted to start all over again. I restored my nandroid that I made before I installed mr4. But after reboot I'm still having mr? But now also TWRP is gone and the fps is still broken?

Any idea to clean things up again?
Before you doing Factoryreset please ask. Because this doesn't solve things.
Which Phone model, which cust do you have - what was last official Firmware you had installed?