[rom][treble][9.0][huawei p9] - Huawei P9 ROMs, Kernels, Recoveries, & Other Devel

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Requiriments:
Stock EMUI 8.0
STOCK RECOVERY_RAMDISK
STOCK RAMDISK
THIS ROM WORKS WITH HI3650 DEVICES AND HI6250 DEVICES (WITH TREBLE)
Working:
*All* *Apart Camera*
FLASH LKT IN MAGISK FOR FIX UI MICRO-LAGS
Bugs:
Camera (Working on it)
When the rom boot shows a error but nothing important (For now no)
Installation:
Flash Stock EMUI 8.0
Don't setup anything
Flash stock ramdisk
Now flash this twrp: https://mega.nz/#!xUcBxKLZ!MJv5xk86GAJOEKl1KRS-tKr5wvkBFTOI0DgosaEUkXA
Select English language
Go to Wipe-Advanced Wipe-And wipe only system
Now copy the rom to SD CARD OR Internal Storage
Flash the rom
NOW FLASH STOCK RECOVERY_RAMDISK (VERY IMPORTANT)
Reboot to Emui recovery
Wipe cache
Wipe data (if the recovery fails its normal)
Now reboot to system
Setup what do you want
----------------------------------------------------------------------GAPPS---------------------------------------------------------------------------------
FIXED:MAKE SURE THE ROM BOOTED
NOW DOWNLOAD THE NANO PACKAGE OF GAPPS
REBOOT TO MY TWRP : https://mega.nz/#!xUcBxKLZ!MJv5xk86GAJOEKl1KRS-tKr5wvkBFTOI0DgosaEUkXA
FLASH GAPPS
IF TWRP SAYS UNABLE TO MOUNT SYSTEM ITS NORMAL JUST REBOOT
ENJOY GOOGLE APPS
Link: https://opengapps.org/
Select arm64 9.0 nano
---------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------LINKS-----------------------------------------------------------------------------------
Rom:
MEGA: https://mega.nz/#!MRthiAhJ!nxDU4O1rxEoLoYo1r_n0gaZodwKB4KAcV25mej7gh_g
GOOGLE DRIVE: https://drive.google.com/open?id=111OfwRDG09uAbG-RPDv8xijt9JxVdeB9
---------------------------------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------Magisk-------------------------------------------------------------------------------------
DON'T FLASH NORMAL MAGISK BECAUSE CAUSES BOOTLOOP
FLASH IANMACD MAGISK
MEGA: https://mega.nz/#!oEdjHaRB!MdqyZvgk4lvkkfOOVk16vEeqAH5Uc7v_fjzVvSoXEk8
IF AFTER INSTALLATION YOU SEE UNABLE TO MOUNT SYSTEM OR SOMETHING LIKE THIS IS NORMAL
IF AFTER INSTALLATION AND REBOOTED TO SYSTEM YOU DON'T SEE MAGISK MANAGER IS NORMAL JUST REBOOT TO RECOVERY AND
FLASH IT AGAIN
---------------------------------------------------------------------------------------------------------------------------------------------------------------
I HAVE UPLOADED SCREENSHOTS
--------------------------------------------------------------------------Credits-------------------------------------------------------------------------------------------
@Tecalote 
 @korom42
 @ianmacd
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
XDA:DevDB Information
LineageOS 16, ROM for the Huawei P9
Contributors
sasi2006166
ROM OS Version: 9.x Pie
Version Information
Status: Beta
Created 2019-01-20
Last Updated 2019-01-20

ScreenShots:
https://imgur.com/a/bhUJe1y

Deleted
Post #2 for screenshots

sasi2006166 said:
...
Requiriments:
Stock EMUI 8.0
...
THIS ROM WORKS WITH HI3650 DEVICES AND HI6250 DEVICES (WITH TREBLE)
...
Installation:
Flash Stock EMUI 8.0
...
Now flash this twrp: https://mega.nz/#!xUcBxKLZ!MJv5xk86GAJOEKl1KRS-tKr5wvkBFTOI0DgosaEUkXA
...
Now copy the rom to SD CARD OR Internal Storage
Flash the rom
....
REBOOT TO MY TWRP : https://mega.nz/#!xUcBxKLZ!MJv5xk86GAJOEKl1KRS-tKr5wvkBFTOI0DgosaEUkXA
...
LineageOS 16, ROM for the Huawei P9
...
Click to expand...
Click to collapse
Is this TWRP-8.0.0-EVA-DECRYPTION SUPPORT.img your port of TWRP, and is it based on TWRP 3.1.1 or newer?
When you say it is for P9 EVA with stock EMUI 8.0.0, does it mean that this TWRP works with EVA-AL10c00b535 as obtained by rebranding P9 L09/L19 with HWOTA7 method
https://forum.xda-developers.com/p9/development/rebrand-update-tool-hwota7-p9-eva-t3820849
By its name, Decryption Supported, does it really mean that this TWRP can access Internal memory and Data partition under P9 stock Oreo?
Btw, Huawei P9, EVA, comes with HiSilicon Kirin 955, but you refer above HI3650 and HI6250 - so is this TWRP really for Huawei P9 EVA with stock Oreo (EMUI 8.0.0)?

This TWRP from China does not have decryption support
@zgfg to answer some of your questions:
1) "MY TWRP" - which is mentioned in OP is not correct because it is a TWRP from China - that means it is not developed by @sasi2006166
2) You can not flash this TWRP because the name contains a space: TWRP-8.0.0-EVA-DECRYPTION SUPPORT.img - if you want to test, you must first rename it.
3) This TWRP does not have decryption support. Decryption support means that it would be possible to access the encrypted internal storage without the need to format data. This is not the case, the internal memory has 0 MB and no content.
4) This TWRP has version 3.2.1.0 and it's not that bad - but it has bugs. I tested it a few months ago, in October 2018. I tested all features and found that partitions recovery is not working properly
→ For this reason, I have to say that the TWRP developed by @Pretoriano80 which we use, is much better. Everything works, except that it does also not have access to the encrypted internal storage: https://androidfilehost.com/?fid=1322778262903998750
→ But we would not say it has decryption support, when it is not the case.
5) Huawei P9 HiSilicon Hi3650 (Kirin 950/955/) is correct.

Tecalote said:
1) "MY TWRP" - which is mentioned in OP is not correct because it is a TWRP from China - that means it is not developed by @sasi2006166
2) You can not flash this TWRP because the name contains a space: TWRP-8.0.0-EVA-DECRYPTION SUPPORT.img - if you want to test, you must first rename it.
3) This TWRP does not have decryption support. Decryption support means that it would be possible to access the encrypted internal storage without the need to format data. This is not the case, the internal memory has 0 MB and no content.
4) This TWRP has version 3.2.1.0 and it's not that bad - but it has bugs. I tested it a few months ago, in October 2018. I tested all features and found that partitions recovery is not working properly
→ For this reason, I have to say that the TWRP developed by @Pretoriano80 which we use, is much better. Everything works, except that it does also not have access to the encrypted internal storage: https://androidfilehost.com/?fid=1322778262903998750
→ But we would not say it has decryption support, when it is not the case.
5) Huawei P9 HiSilicon Hi3650 (Kirin 950/955/) is correct.
Click to expand...
Click to collapse
Thanks for testing and elaborating.
I tried also now this TWRP (it says developed by www.7to.cn) and indeed it cannot read Internal memory, neither Data partition (showing both as empty).
Hence the claim about installing LOS ROM from External SD or Internal memory (post #1 above) is wrong, this TWRP also can only read (and install something) from External SD, not from Internal memory
Btw, this TWRP is based on 3.2.1.0, just like TWRP from Pretoriano80, but this one has non-standard, more colourful UI
(Didn't test does it correctly support recovery ramdisk partition)
PS: OpenKirin ROMs should be flashed by Fastboot, not from TWRP (it doesn't work from TWRP, even when TWRP finds OK ROM img on External SD)
I'm also wondering is this really here a new Treble LOS ROM, or just the one from OpenKirin team (for which other users also reported some problems with camera upon rebooting or so)
https://forum.xda-developers.com/p9/development/roms-openkirin-aosp-collection-t3828806
https://openkirin.net/user_guide/openkirin-rom-installation-instructions/

Great work and thank you .hope the bugs will be fixed soon!

The TWRP is ONLY for Huawei p9
The rom is a fleshable zip
This ROM supports hi6250 and hi3650 devices
The twrp is modified by me for working decryption
For working decryption you have to follow the instructions for installing the rom

Tecalote said:
@zgfg to answer some of your questions:
1) "MY TWRP" - which is mentioned in OP is not correct because it is a TWRP from China - that means it is not developed by @sasi2006166
2) You can not flash this TWRP because the name contains a space: TWRP-8.0.0-EVA-DECRYPTION SUPPORT.img - if you want to test, you must first rename it.
3) This TWRP does not have decryption support. Decryption support means that it would be possible to access the encrypted internal storage without the need to format data. This is not the case, the internal memory has 0 MB and no content.
4) This TWRP has version 3.2.1.0 and it's not that bad - but it has bugs. I tested it a few months ago, in October 2018. I tested all features and found that partitions recovery is not working properly
→ For this reason, I have to say that the TWRP developed by @Pretoriano80 which we use, is much better. Everything works, except that it does also not have access to the encrypted internal storage: https://androidfilehost.com/?fid=1322778262903998750
→ But we would not say it has decryption support, when it is not the case.
5) Huawei P9 HiSilicon Hi3650 (Kirin 950/955/) is correct.
Click to expand...
Click to collapse
Don't use Pretoriano TWRP it causes bootloop
This twrp works very well
And the decryption works

sasi2006166 said:
The TWRP is ONLY for Huawei p9
The rom is a fleshable zip
This ROM supports hi6250 and hi3650 devices
The twrp is modified by me for working decryption
For working decryption you have to follow the instructions for installing the rom
Click to expand...
Click to collapse
Maybe you uploaded the not modified TWRP?
Because it's absolutely the same TWRP which I tested in October 2018 for P9.
It has absolutely the same md5 checksum as the one you have uploaded.
If it would be modified, the md5 checksum would be different.
On EMUI Decryption is not working. I tested it yesterday and @zgfg too.
For this reason I can't imagine that decryption would work after flashing your Rom.
When you say "copy Rom to the internal storage" - we couldn't do this with this TWRP, because it is not accessible.
What's your understanding of "Decryption is working"?
If you mean in your Install Guide to format data (instead of wipe data) then data would be decrypted.
But this is not the sence of "working decryption" and can also be done with TWRP by Pretoriano.

Tecalote said:
Maybe you uploaded the not modified TWRP?
Because it's absolutely the same TWRP which I tested in October 2018 for P9.
It has absolutely the same md5 checksum as the one you have uploaded.
If it would be modified, the md5 checksum would be different.
On EMUI Decryption is not working. I tested it yesterday and @zgfg too.
For this reason I can't imagine that decryption would work after flashing your Rom.
When you say "copy Rom to the internal storage" - we couldn't do this with this TWRP, because it is not accessible.
What's your understanding of "Decryption is working"?
If you mean in your Install Guide to format data (instead of wipe data) then data would be decrypted.
But this is not the sence of "working decryption" and can also be done with TWRP by Pretoriano.
Click to expand...
Click to collapse
I'm my case the decryption works
You need to go to advanced fix decryption

sasi2006166 said:
I'm my case the decryption works
You need to go to advanced fix decryption
Click to expand...
Click to collapse
That Advanced Fix for decryption works only for Lineage or also for stock Oreo?

zgfg said:
That Advanced Fix for decryption works only for Lineage or also for stock Oreo?
Click to expand...
Click to collapse
In lineage works
I haven't tried on oreo
Whatever I need help for fixing camera
On hi6250 the camera works
Oy on hi3650 series doesnt work

For Working decryption on LineageOS 16
Flash the Chinese TWRP in fastboot
Reboot to recovery
Go to wipe advanced wipe and wipe ONLY system
Now go to wipe and select FORMAT DATA and type YES
Now flash ONLY the rom (no google apps or anything)
When the rom is flashed reboot to fastboot
Flash stock emui recovery
Reboot to emui recovery
DO first wipe cache, then wipe data
Now boot the rom
Setup what do you want
Now reboot to fastboot
Flash the Chinese TWRP
Now flash gapps (see the decryption in working)
Flash magisk (read OP #1)
Reboot to system
Enjoy

@zgfg Fix decryption alone does not work on EMUI (because I have tested too in October 2018) - EMUI doesn't work properly if data is formatted and @sasi2006166 it works on Lineage only because of FORMAT data - don't know if combination with Fix decryption is necessary.

Tecalote said:
If you mean in your Install Guide to format data (instead of wipe data) then data would be decrypted.
Click to expand...
Click to collapse
sasi2006166 said:
Flash the Chinese TWRP in fastboot
Reboot to recovery
Go to wipe advanced wipe and wipe ONLY system
Now go to wipe and select FORMAT DATA and type YES
Now flash ONLY the rom (no google apps or anything)
When the rom is flashed reboot to fastboot
Flash stock emui recovery
Reboot to emui recovery
DO first wipe cache, then wipe data
Now boot the rom
Setup what do you want
Now reboot to fastboot
Flash the Chinese TWRP
Now flash gapps (see the decryption in working)
Flash magisk (read OP #1)
Reboot to system
Enjoy
Click to expand...
Click to collapse
In this guide you never use Advanced Decryption fix option from TWRP?
Also, once you do Format Data then Encryption is gone, isn't it - as @Tecalote previously commented
For camera - did you try / look into OpenKirin LOS, RR or Omni Pie, they have integrated GApps and camera, but they don't provide source code for their Treble ROMs

I have tried with emui 8 stock camera
And also with openkirin omnipie camera but nothing

sasi2006166 said:
I have tried with emui 8 stock camera
And also with openkirin omnipie camera but nothing
Click to expand...
Click to collapse
You can try this, User tested it also on P9 and told it would work.
https://forum.xda-developers.com/p10/themes/google-camera-kirin-t3771927

could someone test this? https://forum.xda-developers.com/pr...opment/kirin-huawei-camera-android-p-t3840110
and does 4g lte work?

kristiansja said:
could someone test this? https://forum.xda-developers.com/pr...opment/kirin-huawei-camera-android-p-t3840110
and does 4g lte work?
Click to expand...
Click to collapse
So far I understand @sasi2006166 has already tried this camera and it does not work.
LTE I don't know, because I haven't currently not tested the Rom

Related

[UNOFFICIAL][ENCRYPTION][wrappedkey] TWRP 3.3.1-6: proper system_as_root & decryption

[UNOFFICIAL][ENCRYPTION][wrappedkey] TWRP 3.3.1-6: proper system_as_root & decryption
Code:
/*
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Please do some research if you have any concerns about features included in the products you find here before flashing it!
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty will be void if you tamper with any part of your device / software.
* Same statement for XDA.
*/
Introduction
This is an unofficial build of TWRP for Redmi Note 7 Pro (violet). Differences with the official one include:
- Supports CAF-based wrappedkey encryption (decryption) properly (tested with MIUI 10.3.5.0)
- Supports decrypting devices that have screen lock set up after Android 9 May update, which introduced a new key derivation function.
- Mounts the system partition at /system_root as per AOSP standards. This makes the auto-backup scripts (e.g. GApps / Magisk survival script) work properly during updates, and you no longer need any 'patch' to flash GApps / Magisk properly. However, this may break some existing ROMs. See below FAQ section for details.
- Appended DTBO to the recovery image so it doesn't depend on the dtbo partition. No standalone DTBO image required.
Flashing instructions
- Download and extract the img file
- Reboot to fastboot mode
- fastboot flash recovery whatever_img_file_you_extracted.img
- Reboot and press Volume + to enter recovery
- DO NOT try to run 'fastboot boot recovery.img', it won't work.
- DO NOT flash the fcrypt disabler if you use my recovery. There is no need to do so, and it is possible to mess stuff up if you don't know what you are doing.
- You have to format the data partition if and ONLY IF:
1) You were not encrypted, now going to an encrypted state, or vice-versa OR
2) You were on a ROM other than MIUI that does not support "wrappedkey" (ROMs would often state it supports wrappedkey if it does), now going to a ROM that supports it
Limitations
DO NOT boot this recovery with empty system and vendor partitions. It will fail to decrypt any data partition with empty /system and /vendor. DO NOT wipe system and vendor partitions without installing a new one before rebooting. I am working to remove this limitation.
Now works even with empty system and vendor partitions after 3.3.1-5. No need to worry about formatting system and vendor breaking TWRP any more.
The restore zip created by the Migrate app is NOT compatible with this recovery. It's a problem of the Migrate app, not this recovery. Please DO NOT try to flash the restore zip created by Migrate.
FAQ
- Q: Do I need any specific DTBO image to make this recovery working?
- A: Nope. It is appended to the recovery image so it will work with any DTBO.
- Q: What is wrappedkey?
- A: It's a different mode of FBE implemented in CAF, the Qualcomm branch of AOSP.
- Q: This cannot install ROM X, why?
- A: Because it mounts the system partition at /system_root, which is AOSP standard behavior for A-only system_as_root devices, but is broken in some custom ROMs currently (MIUI should work though). To make any ROM work again, they will need to include this commit from LineageOS Gerrit https://review.lineageos.org/c/LineageOS/android_build/+/247066
- Q: Decryption doesn't work with ROM X, why?
- A: Decryption should work for most ROMs based on the CAF branch (not AOSP). CAF ROMs (including official MIUI) use a different scheme for key storage, which is why TWRP hasn't supported it till now. I have ported the CAF encryption changes (wrappedkey) to TWRP, but unfortunately this will break ROMs that do not support the CAF wrappedkey mode of encryption. Here is a list of patches non-CAF ROMs need to support CAF-encrypted /data partitions https://mokeedev.review/q/topic:%22fbe-wrapped-key%22+(statuspen%20OR%20status:merged). If you confirm your ROM is CAF-based but the decryption still does not work, please open an issue on my GitHub repository which you could find below. (XDA threads are no good for issue tracking, sorry)
- Q: Why not contribute to the official TWRP?
- A: All the patches to the TWRP code base have been submitted to the official gerrit code review, though not merged yet, which you can see below.
Downloads
3.3.1-6: https://mega.nz/#!3QIRQYhK!Jq5QrGfJw5VCYZ8sq_BO1qNZecrFqlM9IB1IdSwogvI
changes: updated kernel to support pstore instead of /proc/last_kmsg. If you don't know what this is, it's probably not relevant to you.
Here you can find an unofficial LOS build with wrappedkey encryption and also proper system_as_root support for those survival scripts https://forum.xda-developers.com/redmi-note-7-pro/development/unofficial-lineageos-16-caf-encryption-t3933532. In addition, all official MIUI builds should flash just fine.
History versions:
3.3.1-5: https://mega.nz/#!nMowHKiL!zRvoTM0iIZKArmUDnZzaEFtXQv0_q7hIHUCmTHTOmOM
changes: 1) Now works even with empty /system and /vendor partition 2) Fixed brightness problem; 3) Enabled EDL Reboot
3.3.1-3: https://mega.nz/#!yAYXxAzZ!FNMYLzLphnSmJ-DbBx-OZUgxxYiftgn8e4Jn3kxiQik
Patches and sources
Patches for TWRP are available here:
https://gerrit.omnirom.org/#/c/34091/
https://gerrit.omnirom.org/#/c/34093/
https://gerrit.omnirom.org/#/c/34092/
https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/34096/
Patches for ROMs to support wrapped key have been given in the above sections.
Source of the current device tree for TWRP: https://github.com/PeterCxy/android_device_xiaomi_violet-twrp
Kernel source: https://github.com/PeterCxy/android_kernel_xiaomi_sm6150, note that the device tree uses a prebuilt kernel image.
Contributors
PeterCxy, Dyneteve, merothh
Source Code: https://github.com/PeterCxy/android_device_xiaomi_violet-twrp
Now fixed and tested with MIUI.
PeterCxy said:
Now fixed and tested with MIUI.
Click to expand...
Click to collapse
Could you please tell us what is fixed and what is wrong with the previous one? Just out of curiosity.
I’m not new to installing custom recoveries and installing ROM, but I am new to Xiaomi devices.
In the simplest form possible,
With this I should be able to just run the ‘fastboot install recovery twrp.img’ and not have to run “fastboot erase userdata’?
also
Do I still need to flash the zip I have that disables forced encryption?
Could you provide instructions to flash this ?
Or is it just the same as the 'official one'?
Can confirm this successfully decrypts storage, running xiaomi.eu on my phone. Thanks for your work.
Dwughjsd said:
Could you please tell us what is fixed and what is wrong with the previous one? Just out of curiosity.
Click to expand...
Click to collapse
It did not decrypt MIUI 10.3.5.0 successfully due to magic (I missed some commits from qcom). It was fixed by pulling more commits in.
Jpwner said:
I’m not new to installing custom recoveries and installing ROM, but I am new to Xiaomi devices.
In the simplest form possible,
With this I should be able to just run the ‘fastboot install recovery twrp.img’ and not have to run “fastboot erase userdata’?
also
Do I still need to flash the zip I have that disables forced encryption?
Click to expand...
Click to collapse
You won't need to erase userdata or flash fcrypt disabler anymore, if all the ROMs will update to support the wrappedkey encryption
Naveenthemi said:
Could you provide instructions to flash this ?
Or is it just the same as the 'official one'?
Click to expand...
Click to collapse
just fastboot flash recovery whatever_you_downloaded_and_extracted.img
PeterCxy said:
just fastboot flash recovery whatever_you_downloaded_and_extracted.img
Click to expand...
Click to collapse
So it's possible for me to flash OTA Updates without encountering a bootloop and such?
Can someone please provide an alternate download link? The Mega link doesn't seem to work for me.
EDIT: Worked on a different device. Thanks.
Naveenthemi said:
So it's possible for me to flash OTA Updates without encountering a bootloop and such?
Click to expand...
Click to collapse
+1
Please answer
Good job! ?
I want you to know that your patch has been merged with the official one. I was away for a while so I hope you understand the little unfortunate delay.
In latest update can we flash any custom roms without any issue?
Yogendra Kher said:
In latest update can we flash any custom roms without any issue?
Click to expand...
Click to collapse
You have to wait until custom ROMs pull in necessary system_as_root changes. Currently it seems only my LOS build pulled that in
PeterCxy said:
You have to wait until custom ROMs pull in necessary system_as_root changes. Currently it seems only my LOS build pulled that in
Click to expand...
Click to collapse
Is it possible to flash OTA updates without encountering bootloops and such? (MIUI)
Naveenthemi said:
Is it possible to flash OTA updates without encountering bootloops and such? (MIUI)
Click to expand...
Click to collapse
Should work fine with MIUI. At least from what I have tested.
kushal.purkar said:
+1
Please answer
Click to expand...
Click to collapse
PeterCxy said it would as far as his testing had been done.
Gapps aroma not installing in this one as well. error 255
Can I flash Magisk and root my phone with this build.?
Do you have any Magisk zip file that will work.?
Thank you for your work

[UNOFFICIAL][wrappedkey] LineageOS 16 with CAF encryption support

Introduction
This is an unofficial build of LineageOS 16 for Redmi Note 7 Pro. Differences from the one provided by Dyneteve include:
- Ported the CAF wrappedkey encryption stuff, which is what MIUI uses, over using patches from https://mokeedev.review/q/topic:%22fbe-wrapped-key%22+(statuspen%20OR%20status:merged), This requires an recovery with wrappedkey decryption support, e.g. this one
- Applied unmerged patch https://review.lineageos.org/c/LineageOS/android_build/+/247066 to mount system as /system_root properly on install. This makes addon.d scripts (e.g. Magisk / GApps survival script) work again on our device. This requires an recovery with proper system_as_root support, e.g. this one
- ROM includes its own vendor image instead of relying on one provided by MIUI. I intend to try to build as much of vendor image as possible from CAF source in the future.
Flash instructions
- Make sure you have the latest firmware images. If not, update them before flashing.
- Flash a TWRP recovery that supports mounting system as /system_root and supports wrappedkey encryption (the one provided above)
- Wipe data partition (without wiping /data/media). If you came from another non-CAF ROM (ROM that do not support wrappedkey mode) and had encryption enabled, you will need to format your data partition (including /data/media).
Note: If you decide to format your data partition, always format with 'advanced wipe' in TWRP recovery. DO NOT use fastboot -w or fastboot erase, even if you do, please format again in recovery, otherwise the system might not work.
- Install the zip in TWRP.
- Install whatever you want e.g. Magisk, OpenGapps
- DO NOT install the fcrypt disabler.
- Reboot and enjoy
Known issues
DO NOT remove screen lock passwords if you set one. You can change the password just fine, but DO NOT REMOVE IT. YOU WILL LOSE ACCESS TO ALL DATA IF YOU DO THIS AND REBOOT.
Removing screen lock passwords work after 20190528-1.
Downloads
20190609-1: https://mega.nz/#!PdRnxIia!Boh-a8e5JHt8YEBwbXKt8rWYj3PC56mdpEIXwDEY2ng
changelog: 1) Merged upstream LineageOS (June security patch) 2) Updated kernel to 4.14.123 3) Updated MIUI binary blobs 4) Some clean-up
NOTE: /proc/last_kmsg support is removed due to incompatibility. This feature is replaced by pstore, which you could find more information on through some Google-fu.
History versions:
20190528-1: https://mega.nz/#!nZRTQCbS!qf-RdT-ijayg8UBxyyz3Hoi2O_8ZtpWewgNv-eVDcqA
changelog: 1) merged upstream LineageOS; 2) fixed the bug of removing screen lock passwords, now it won't swallow all your data (this commit: https://github.com/PeterCxy/android...mmit/d2fe3434cddb98eeb414906e71a817559ade1b26; 3) merged LTS kernel 4.14.122, thanks to YaroST and aviraxp; 4) fixed potential charging problem; 5) some other kernel improvements
20190526-1: https://mega.nz/#!rRgwmY5T!2fQyDjukLoGmk7KRtas5n2Y_it9QS_s2noAItzNvFfY
Sources
Device: https://github.com/PeterCxy/android_device_xiaomi_violet
Kernel: https://github.com/PeterCxy/android_kernel_xiaomi_sm6150
Other changes and patches: see what is available on my GitHub https://github.com/PeterCxy/, everything is open-source for this ROM.
Contributors
PeterCxy, GuaiYiHu, aviraxp
Source Code: https://github.com/PeterCxy/android_device_xiaomi_violet
Thanks ?
Thank you for the ROM!
There's a Typo in the ROM os version description.
cant boot. installed as mentioned in instruction. its automatically rebooting to recovery (twrp, the given one). now whenever i try to flash other rrecovery its not booting into. stuck. please help.
jyoti.id said:
cant boot. installed as mentioned in instruction. its automatically rebooting to recovery (twrp, the given one). now whenever i try to flash other rrecovery its not booting into. stuck. please help.
Click to expand...
Click to collapse
If you can't boot to recovery at all you may need to flash a fastboot ROM of MIUI (of course in fastboot mode) and try to install twrp again.
jyoti.id said:
cant boot. installed as mentioned in instruction. its automatically rebooting to recovery (twrp, the given one). now whenever i try to flash other rrecovery its not booting into. stuck. please help.
Click to expand...
Click to collapse
Sorry I have no idea here.. What ROM you were on before flashing this?
Dwughjsd said:
If you can't boot to recovery at all you may need to flash a fastboot ROM of MIUI (of course in fastboot mode) and try to install twrp again.
Click to expand...
Click to collapse
iv flashed the stock rom, but now the internal storage is showing only 16GB of storage.
Edit: fixed everything. Thank you. I was curious about the battery backup of this ROM badly, so I just rushed in things so maybe I made some mistakes.
jyoti.id said:
iv flashed the stock rom, but now the internal storage is showing only 16GB of storage.
Edit: fixed everything. Thank you. I was curious about the battery backup of this ROM badly, so I just rushed in things so maybe I made some mistakes.
Click to expand...
Click to collapse
Just keep in mind that safety first
Download link not working
Edit: UC browser was the culprit
dwughjsd said:
just keep in mind that safety first
Click to expand...
Click to collapse
how u fixed storage issue
gsunil said:
how u fixed storage issue
Click to expand...
Click to collapse
It was @jyoti.id that faced and solved the issue, so let's call him for an answer
rom keeps rebooting into twrp , i did every step
gsunil said:
how u fixed storage issue
Click to expand...
Click to collapse
I just flashed the whole fastboot rom again & it fixed everything.
---------- Post added at 04:34 AM ---------- Previous post was at 04:33 AM ----------
King_Dinoco10 said:
rom keeps rebooting into twrp , i did every step
Click to expand...
Click to collapse
Same thing happened with me too
Device not charging above 86%. Anyone else facing this bug ?
PeterCxy said:
Sorry I have no idea here.. What ROM you were on before flashing this?
Click to expand...
Click to collapse
The phone does not charge more than 91%!
lapo_chel said:
The phone does not charge more than 91%!
Click to expand...
Click to collapse
now should be fixed, try today's new build
PeterCxy said:
now should be fixed, try today's new build
Click to expand...
Click to collapse
Safetynet does not pass.
lapo_chel said:
Safetynet does not pass.
Click to expand...
Click to collapse
It's because I used vendor files from MIUI beta. You can bypass it with a magisk module to reset the build fingerprint
Many thanks for your build! I like it much.
IMHO, SELinux should be enabled.

[Nubia Z11]Project Treble[10.0][A/B][Beta-2.0]

Project Treble for NUBIA Z11
Brought to you by Lightvortex & dazzworld
Code:
/*
* Your warranty is now void.
*
* We're not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this TREBLE
* SUPPORT before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
What is Project Treble:
Project Treble basically partitions your device into two separate partitions, a system and a vendor: system contains your generic system image, while vendor partition has your device specific files required for booting and running your phone. This way we can easily change the system image and be able to run our device on different system images with the same kernel and vendor partition
Nubia Z11 hardware vs Treble implementation:
It is an ARM64 and A/B device. This means that regarding the GSI images (GSI = Generic System Image) to be used, you need to get ARM64 and A/B ONLY system images.
Bugs:-
You tell me
​
How to Migrate To Treble :
Make a Backup Of your apps
•Flash Twrp 3.2.3
•Wipe system,cache,dalvik cache
•Flash Trebleizer shared below
(It will reboot recovery once it's done)
•Flash treble Recovery shared below(TWRP 3.4.0.0)
•Reboot to recovery
•Wipe system,vendor
•Flash Havoc Treble .zip
•Flash Magisk/addons now
Reboot
Steps to Flash recovery:-
•Go to flash choose option "Flash image"
•Select Treble recovery.img (TWRP 3.4.0)
•Choose recovery and flash
•Reboot to recovery
THIS IS BROKEN RIGHT NOW BUT WILL BE FIXED LATER
HOW TO FLASH GSI
Wipe Sytem,boot,vendor,data
Flash Treble-Base.zip
Select Flash Image
Flash any A/B Gsi in System
Flash permissiver (will be provided by the gsi creator)
Flash any other required fixes by the gsi creator
Reboot
How to go back to Stock:-
•Wipe system,vendor
•Flash twrp 3.2.3
•Flash Trebleizer it will remove vendor
•After reboot wipe system
•Flash any rom
SCREENSHOTS:-
SUPPORT:-
If you have any problems you can find me on telegram https://t.me/NX531j
DOWNLOAD LINKS:-
Treblizer: https://sourceforge.net/projects/lig...J.zip/download
Twrp 3.4.0.0: https://sourceforge.net/projects/lig...J.img/download
Havoc-Treble-Gapps: https://bit.ly/2Zokhp6
Havoc-Vanilla-Treble: https://bit.ly/3epeNP4
XDA:DevDB Information
treble, ROM for the Nubia Z11
Contributors
lightvortex
ROM OS Version: Android 10
ROM Kernel: Linux 3.x
Version Information
Status: Beta
Current Beta Version: 2.0
Stable Release Date: 2020-06-20
Created 2020-06-20
Last Updated 2020-06-20
reserved
I have already installed this installation package, and the screen will flicker when the phone restarts and cannot start.What should I do?
kaliwins said:
I have already installed this installation package, and the screen will flicker when the phone restarts and cannot start.What should I do?
Click to expand...
Click to collapse
What do you mean flicker? Is it stuck on Nubia logo?
lightvortex said:
What do you mean flicker? Is it stuck on Nubia logo?
Click to expand...
Click to collapse
Yes,The logo will flash by, and the black screen of the mobile phone will not enter the system
kaliwins said:
Yes,The logo will flash by, and the black screen of the mobile phone will not enter the system
Click to expand...
Click to collapse
did you fix it?
kaliwins said:
Yes,The logo will flash by, and the black screen of the mobile phone will not enter the system
Click to expand...
Click to collapse
Can you go to bootloader and open Nubia emergency recovery. If you can use sd card for migrate to stock rom
a7cATR4z said:
did you fix it?
Click to expand...
Click to collapse
Not yet, so I use mokee9 now
---------- Post added at 02:29 AM ---------- Previous post was at 02:01 AM ----------
MajongDa said:
Can you go to bootloader and open Nubia emergency recovery. If you can use sd card for migrate to stock rom
Click to expand...
Click to collapse
Ok thanks, i will try to do this later
kaliwins said:
Not yet, so I use mokee9 now
---------- Post added at 02:29 AM ---------- Previous post was at 02:01 AM ----------
Ok thanks, i will try to do this later
Click to expand...
Click to collapse
he's able to flash mokee then his recovery is working this is a different issue imo.
Guys don't use the above method I updated it into a more safer way I will upload the files later
Links updated with new instructions
Can anyone help me with 4g / Volte Modem file for the android 10 version of this rom

[ROM] [UNOFFICIAL] LineageOS 13 |ASUS Memo Pad HD 7 (me173x) [MT8125]

Disclaimer:
LineageOS (Lineage Android Distribution) members or anyone else on this website is not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in the products you find here before flashing it! YOU are choosing to make these modifications, and if you point the finger at us for messing up your device, we will laugh at you. Your warranty will be void if you tamper with any part of your device / software.​
How to Install:
1- BACKUP, BACKUP, BACKUP, All will be WIPED!
2 - Unlock bootloader instructions here
3 - Flash the new mandatory TWRP Recovery
4 - Move Rom & Gapps (optional) into device storage
5 - Full Wipes
6- Flash Rom & Gapps (gapps are OPTIONAL)
for GAPPS:
Choose Gapps Package "ARM" > "6.0" > "Pico" or "Nano" visit OpenGAPPS
Working:
Boots
Storages
Bluetooth
Wifi
GPS - GNSS
Audio
Charging
Offline Charging
Video decoding/ Playback (i.e.: Youtube) up to 720p
android marshmallow new features: Adoptable Storage / Multi Window / etc
DRM Widevine : For Netflix, Amazon Prime, etc
Sensor: magnetometer: akm8963
Front Camera: mt9m114_mipi_raw
Front camera: GC0339_RAW
etc ....
NOT Working:
Rear Camera: a5142_mipi_raw
Front Camera: GC0339_RAW (ME173X 8GB) Fixed on build 20220629
Sensors: accelerometer (autorotation)
You tell me
Special Thanks
OMNI Rom
LineageOS
DerTeufel1980 & fire855 ( my Team mates from M.A.D)
GPL Compliance:
GitHub - dragonpt/android_device_asus_me173x: ASUS ME173x device for LineageOS 12.1 & LineageOS 13
ASUS ME173x device for LineageOS 12.1 & LineageOS 13 - GitHub - dragonpt/android_device_asus_me173x: ASUS ME173x device for LineageOS 12.1 & LineageOS 13
github.com
GitHub - dragonpt/android_kernel_asus_me173x_new: ASUS ME173x [MT6589 - MT8125] Custom Kernel for LineageOS 12.1 / 13 / 14.1
ASUS ME173x [MT6589 - MT8125] Custom Kernel for LineageOS 12.1 / 13 / 14.1 - GitHub - dragonpt/android_kernel_asus_me173x_new: ASUS ME173x [MT6589 - MT8125] Custom Kernel for LineageOS 12.1 / 13 / ...
github.com
--> "asus_mm" branchs
FAQ
Small FAQ:
Q: How can i Unlock the Bootloader?
A: Instructions for Unlocking the Bootloader can be found here
Q: After locking the screen, the screen is all black, and/or flickering and I'm forced to reboot, how can I fix this?
A: If you have this issue, then your device uses the second screen/lcm hardware revision
( the lgld070wx3_dsi_vdo ), please use the second kernel.zip for this variant, it'll be added an second kernel . zip for people with this variant, on the download section with the ROM release
Q: how to flash this second kernel for the new hardware variant ?
A: After flashing the ROM, flash the second kernel afterwards
Q: Where are the Developer Options?
A: Go to Settings>About Tablet, and tap 7 times on the Build Number
Q: Where is the multi-window mode?
A: in the developer options, you can enable it there
Q: How can i root this rom?
A: you can use Magisk , or SuperSU
Magisk: v.23
SuperSu v2.82
note: Magisk builds v24.x and v25.x do NOT work.
Q: Do i really need to update recovery?
A: YES
Q: I can't flash this Rom on recovery, why?
A: You need to update your recovery to TWRP
Q: how to work with twrp?
A: in the first time TWRP boots, it'll ask if you want to allow modifications, slide to YES
Q: how to wipe and flash in twrp?
A: Go "mount" and mount "system"
then go "wipe" > and wipe dalvik / cache / data / System
Q: How can i flash the new recovery?
A: If you already have an custom recovery installed:
Download the new TWRP recovery zip
flash the new recovery
reboot to recovery again, TWRP should be now installed
If you don't have any custom recovery installed:
- You can extract the "recovery.img" from the .zip
- Open an terminal
- Boot to fastboot mode, and type:
Code:
fastboot flash recovery recovery.img
then reboot:
Code:
fastboot reboot
Q: I Love your work, how can i thank you?
A: You can press the "Thanks" button, and if you wish, you can pay me a beer
..
Changelogs
Build 20201221
First Release
Build 20210821
Kernel:
DCT / Power resolve more issues
LCM: nt35521_dsi_vdo: Add backlight enable ctrl function
Fix magnetometer sensor: akm8963
Battery: Corrections
Camera LENS AF (for the rear camera) fixed
Front Camera : mt9m114_mipi_raw ( ME173X 16GB Version) fixed
mmc: more handling fixs
msdc: more fixs
Touch Panel: GT927: Implement a proper suspend & resume
Some other small fixs.
LineageOS source and device:
LineageOS LiveWallpapers, Wallpapers are now included ( as per-user requests)
Gello browser removed, it's depricated and has security risks
Disable Live Display by default (not supported by this device)
Some device clean up
Fix some eGL crashs
Fix some core missing symbols
Added Front camera support ( Pictures )
Some other small fixs.
Build 20220629
Kernel:
Security: Fix the following security issues:
PG SU daemon security fix
CVE-2017-1000365
CVE-2017-2618
CVE-2017-2671
CVE-2016-10208
CVE-2016-10208
CVE-2013-4312
CVE-2016-2550
CVE-2017-9074
CVE-2017-9075
CVE-2017-9076
CVE-2017-9077
CVE-2017-9242
LVT-2017-0002
CVE-2012-6703
CVE-2015-8944
CVE-2016-3857
CVE-2016-9555
CVE-2017-8890
ARM: spectre-v1
ARM: spectre-v2
ARM: Merge some bug fixs
imgsensors:
mt9m114_mipi_raw: Enable NightMode & Improve NightMode handling (better handling of Low light pictures)
gc0339_raw support added (CMOS front camera used in some HW revisions)
Memory management / Others:
Merge ZRAM from Kernel 3.10 version, and backport K 3.10 ZRAM fixs
Merge zsmalloc from Kernel 3.10 version, and backport K 3.10 ZRAM fixs
Add support for LZ4 decompression in the Linux Kernel
Other minor fixs
LineageOS source and device:
device: Added 512 MB Virtual SWAP Memory
Fix GPU PowerVR blobs crash, leading to random reboots & wakeup reboots
Disable OpenGL preloading with PowerVR drivers
SHIM: Add UI shim lib to fix some other random crashs
Remove max app limit
ART: Increase and fine tune the heap limit
Camera & nvram blobs fixs
Other minor fixs
Build 20220718
Fixed Bluetooth, that got broken by mistaque on 20220629 release
Downloads
TWRP 3.1.1
TWRP_3.1.1_ME173X.zip | by superdragonpt for Generic Device/Other
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
Build 20220718
https://androidfilehost.com/?fid=15664248565197191338If you have the second hardware Screen revision by LG (check FAQ), flash this
kernel for the Build 20220718
https://androidfilehost.com/?fid=15664248565197191342
Old Builds
Build 20220629
https://www.androidfilehost.com/?fid=15664248565197184858If you have the second hardware Screen revision by LG (check FAQ), flash this
kernel for the Build 20220629
https://www.androidfilehost.com/?fid=15664248565197184860
Build 20201221
lineage-13.0-20201221-UNOFFICIAL-me173x.zip | by superdragonpt for Generic Device/Other
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
If you have the second hardware Screen revision (check FAQ), flash this
kernel for the Build 20201221
Kernel_rev2_Build_20201221.zip | by superdragonpt for Generic Device/Other
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
Build 20210821
https://www.androidfilehost.com/?fid=7161016148664790672If you have the second hardware Screen revision by LG (check FAQ), flash this
kernel for the Build 20210821
https://www.androidfilehost.com/?fid=7161016148664790675
Man, you're awesome
But I have issue with wifi. Cant turn it on and my mac adress is 02:00:00:00:00
Bluetooth also not working
gadom92 said:
Man, you're awesome
But I have issue with wifi. Cant turn it on and my mac adress is 02:00:00:00:00
Click to expand...
Click to collapse
Same here
Awesome work, thx and merry xmas
gadom92 said:
Man, you're awesome
But I have issue with wifi. Cant turn it on and my mac adress is 02:00:00:00:00
Bluetooth also not working
Click to expand...
Click to collapse
This seems to be the very same issue some users had with Lineage 12.1...
can** replicate this on my units.
EDIT: i meant, can't replicate this
please try this:
[ROM] [UNOFFICIAL] LineageOS 12.1 |ASUS Memo Pad HD 7 (me173x) [MT8125]
Disclaimer: LineageOS (Lineage Android Distribution) members or anyone else on this website is not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if...
forum.xda-developers.com
Settings > Backup & reset
superdragonpt said:
This seems to be the very same issue some users had with Lineage 12.1...
can replicate this on my units.
please try this:
[ROM] [UNOFFICIAL] LineageOS 12.1 |ASUS Memo Pad HD 7 (me173x) [MT8125]
Disclaimer: LineageOS (Lineage Android Distribution) members or anyone else on this website is not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if...
forum.xda-developers.com
Settings > Backup & reset
Click to expand...
Click to collapse
Did not solve the problem so far. Wifi is even broken after restoring the los 12.1 backup which worked before
Edit: uploaded logcat
Ok, i reflashed the old carliv recovery via fastboot after installing Los13 and i got wifi back ...
And afterwards i flashed twrp again via fastboot and wifi is still working...
Previously i flashed the twrp zip from carliv, i guess this was part of the problem
reflashing recoveries in fastboot not worked for me :/
I also wiped everything including internal storage before, and bootet into each of the two recoveries and to the system from there.
Maybe the carliv recovery changes some things on the system, idk.
Hi, I am so glad that this is still alive project
I upgraded recovery via mtk flesher. Just rename twrp 3.1.1... into recover.img and click "download".
My wifi and bluetooth are working. Sometimes bluetooth have conflict with wifi and plain reboot fix things.
It is strange that not a single one sensor work(acceleration and gravity, magnetic field, orientation and rotation. They all worked in 12.1 beside rotation. Hope thing are going to get fixed up.
Had a few freezes also(hard reset do the job)
Overall I have a feeling that this is smoother than 12.1.
EDIT: It was misleading about recovery flash. You need to extract from twrp_3.1.1_ME173X.zip "recovery.img" and replace in folder where scatter file with old "recovery.image" is.
Gronkdalonka said:
I also wiped everything including internal storage before, and bootet into each of the two recoveries and to the system from there.
Maybe the carliv recovery changes some things on the system, idk.
Click to expand...
Click to collapse
interesting... likely the wiping of internal storage fixed it..
if anyone is having this issue, please try and report back if the following fixs:
in twrp:
Flash this test kernel
AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
cheers
Merry Xmas
superdragonpt said:
interesting... likely the wiping of internal storage fixed it..
if anyone is having this issue, please try and report back if the following fixs:
in twrp:
Flash this test kernel
AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
cheers
Merry Xmas
Click to expand...
Click to collapse
not working :/
edit: Flashed old recovery trough Flash Tool, than TWRP in Flash tool wipe all what i can and then install LOS 13. Wifi working like a charm
Any chance you can help with source patches?
First of all thanks to snapdragon for the new LOS13 support.
I'm sorry to tell you that all of your mentioned ways to get WiFi back to work did not work for me. What I did and what I tried:
Normal installation way:
Flashed new recovery via old custom recovery
complete wipe
flashed new LOS13 via new TWRP recovery
WiFi not working!
Going back to old custom recovery and back to TWRP
Flashed old custom recovery via TWRP
complete wipe
flashed new TWRP custom recovery via adb sideload since my sd card can only be mounted via new TWRP recovery
complete wipe
flashed new LOS13
WiFi still not work!
This is all I did. I realized that fastbood mode is not working for my device, could be a driver problem since my device is installed as ùó something when plugging it into the pc in fastboot mode, so I tried the way via adb.
Hint: I have the model with the alternative hardware, so the second kernel is required to fix flickering display issue.
I realized that the new TWRP recovery has this issue aswell, so my display is flickering from the right side to the center sometimes in TWRP recovery.
Any ideas what could help getting WiFi back to work?
Thanks in advance!
Edit: Could it be that this WiFi problem has something to do with the following thread:
FIX FOR MAC 02:00:00:00:00(WiFi and hotspot not turning ON)
Important. Root required..... Hey everyone,I saw so many posts regarding Android & iOS that the Mac address is changing to 02:00:00:00:00 and WiFi is greyed out. None of the WiFi or hotspot not turning on.I get the same problem in my Condor and...
forum.xda-developers.com
I read over some postings and googled the mac address 02.00.00.00.00 and it seems that a lot of devices had this problem when updating from android 5 to 6. It seems that it could have something to do with the partitions where the info (mac address, IMEI) are stored, but in general I have not found a solution and a specific description of the problem.
Anyway: If the problem can be solved by doing the steps described in the thread I provided above I’m not able to solve this. I would not describe me as a noob, but it seems that I need root and knowledge of permission management for the fix, and I am not very familiar with Linux.
Could you do the following test:
In twrp:
Full wipes ( system, etc etc and internal storage) be sure you back up your stuff
Then reboot to recovery
( It'll warn there's no OS installed)
Back to recovery
Do full wipes again , plug the tab into pc and copy the rom to internal storage
Reboot to recovery again
( It'll warn again, there's no OS installed)
Proceed to flash the rom
This has worked with a user
Issue: for an unknown reason some devices seems to fail mounting / reading nvram
@ twrp I'll do a build for people with this second hardware revision, flickering is annoying...
Thanks for your fast reply.
I did two full wipes with rebooting into recovery after each wipe as you said, then I copied the OS zip file to internal storage and rebooted again to recovery.
After installing the ROM I rebootet to system and LineageOS was preparing the first start. I started without flashing the kernel for alternative hardware (2nd kernel) to check if it works first.
I'm sorry to tell you that I still got no WiFi and Bluetooth connections, Mac address still is shown as 02-00-00-00-00, WiFi cannot be turned on.
Edit: Seems that is has nothing to do with wipes (on my device). I've tried all kind of wipes via TWRP
Format Data -> yes -> reboot to recovery
Advanced Wipe -> check all (Davlik, Cache, Data, Internal Storage, System -> Again format data -> Yes -> reboot to recovery
flashed ROM, 2nd Kernel and GApps -> Reboot to recovery -> reboot to system
Still no WiFi. Perhaps I should try to go back to stock rom and see if WiFi works there? Do you think this could make the deal?
test this
full wipes
flash rom, then this kernel afterwards
AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
Again, thanks for your efforts, it seems to be a really tough and bugging one, since the new kernel did also not fix the problem.
Edit: Just to keep u updated: I just flashed old recovery and afterwords old LineageOS 12, WiFi is working well. So there must be some problem with the update or the update process. I will try to wipe first and then install new recovery and again install new OS, perhaps this will do the job.
Edit2: BTW I forgot to tell you that I had problems with settings -> about tablet -> status on lineageos 12. Just remembered because i wanted to have a look to the mac address. I get an error telling me "unfortunately, settings has stop". Perhaps important for the update?
Important Edit3:
Guess what: I made it to work. I did the following to do it:
1. Format Data and do all wipes possible with TWRP recovery. Reboot to recovery and do the same again.
2. TWRP recovery -> install old recovery
3. In old recovery -> install via sideload (adb sideload) lineageOS12 and second Kernel (for me because of hardware)
4. Boot to system and check if WiFi works well (finish the initialization of the device and connect to a WiFi)
5. Boot to recovery (old recovery) -> WITHOUT WIPING install via sideload TWRP recovery
6. Boot to system. (Still lineageos12) check if WiFi still works
7. Boot to TWRP recovery -> WITHOUT WIPING install lineageos13.
8. Boot to system, finish initialization if necessary and check if WiFi still works.
9. Go to setting and do a factory reset from lineageos13 settings
10. Device will reboot to recovery and do the factory reset and automatically will boot back into system.
11. Finish. All should work now.
I don't know what exactly did the job, so I wanted to provide all steps I did.
Since I never flashed an android custom Rom over another without wiping I don't know what errors this procedure can cause. So if someone knows that please let me now that I can have a look if there are errors.
Thanks again for your assistance.

[ROM][Huawei][11] LeaOS-PHH - AOSP for Huawei device

Official AOSP for Huawei (prague, mediapad, warsaw, rhone) - LeaOS-PHH
LeaOS is a project which based on AOSP with phhusson's Treble GSI patches. I have added my personnals patches for Huawei devices : Encryption, Signal Strengh, Speed Boot, Assisted GPS, NFC, Media App, Default Sound, MediaScanner fixes etc..) and some eremitein patch
Changelog :
LeaOS-PHH Jun 2022 version
Fix MiraCast / Wifi-Display crash
Pass SafetyNet (Basic + CTS) without Pixel 5 Spoof
Add dynamic root
Add option in TrebleApp to collect adb log and create txt file in sdcard
Add support of 8.0.0.416 with this patch (8-Huawei-PRA-FixPreav-A-v1.0-signed.zip)
LeaOS-PHH May 2022 version
Initial build from PHH AOSP A11-r48 (October)
Add support of data encryption
Add NFC Quick Setting (NFC by default are disabled)
Add Android SPL (Nov, Dec 2021, Jan, Feb, March 2022)
Add Default sound (ringtones, alarm and notification)
Add Huawei bootanimation (no sound)
Add support of multi-user
Pass SafetyNet (enable in TrebleApps setting)
Add several new functions in TrebleApps (dumlog, restartui, run on boot) by eremitein
Fix Signal strenght indicator (and icon)
Fix Media App permission
Fix MediaScanner crash
Fix Slow-Boot
Pre-requisite :
You must have TWRP installed, use this one (make sure to have the unofficial Android 11 one ! ). To install follow this guide "How to unlock Huawei P8 ligt 2017 (en).pdf" or french version "How to unlock Huawei P8 ligt 2017 (fr).pdf"
Installation (crypt or uncrypt)
Download file : "LeaOS-PHH-20220616-iceows-pra.7z" and extract img file
boot to TWRP
Wipe internal storage, format data
flash this file 1-Huawei-DataPrep-DeCrypt-A-v1.0-signed.zip to disable storage encryption or this file 1-Huawei-DataPrep-Crypt-A-v1.0-signed.zip to enable it. This zip change fstab file, wipe data partition and recreate subfolder /data/user*, /data/system* and /data/vendor*)
Wipe system, cache, dalvik/art cache
reboot to bootloader
run: fastboot flash system <drag system.img here>
(optional) flash Siberia kernel : fastboot flash kernel <drag Siberia.img here>
reboot to TWRP
resize system
flash this file 2-Huawei-system-UnCrypt-v1.3-signed.zip to not-allow data encryption or this file 2-Huawei-system-Crypt-v1.3-signed.zip to allow it
(optional only PRA) flash AGPS patch : 7-AGPS-FIX-AltairVendor-v3.6-signed.zip
reboot to System and set up the phone with aosp first start assistant. You can also add most user
(optional) reboot to TWRP to install now Google Apps : Google Apps Lite ([RECOVERY]LiteGapps_arm64_11.0_v2.6_official.zip)
Enjoy !!!
Update (crypt or uncrypt)
Download file : "LeaOS-PHH-20220616-iceows-pra.7z" and extract img file
boot to TWRP
Wipe system, cache, dalvik/art cache
reboot to bootloader
run: fastboot flash system <drag system.img here>
(optional) flash Siberia kernel : fastboot flash kernel <drag Siberia.img here>
reboot to TWRP
resize system
flash this file 2-Huawei-system-UnCrypt-v1.3-signed.zip to not-allow data encryption or this file 2-Huawei-system-Crypt-v1.3-signed.zip to allow it
(optional) flash AGPS patch, Google Apps :
1 - Google Apps lite (LiteGapps_Core_arm64_11.0_v2.5_official.zip)
2 - Enable AGPS (2 - AGPS-FIX-AltairVendor-v3.3-signed.zip)
reboot to System
Enjoy !!!
Source Code:
https://github.com/Iceows
ROM OS Version: Android 11
ROM Kernel: Linux 4.4.x : stock 4.4.26 or Siberia_4.4.302-1.1.zip (this kernel not pass safetynet)
ROM Firmware Required: EMUI 8
Based On: PHH AOSP
Credits:
PHH
eremitein
rakinthegreat
And all the others who tested my patches and helped me improve this ROM
Support Group
reserved
Does syberia kernel work on any hi6250 device? Or it is only for pra?
Btw thanks for the rom...hope volte will work on this
I tried on my p10 lite using the uncrypt and it booted fine but I couldn't install or update apps. I tried to clear storage on play store and download manager it didn't work. When I went back to leaOS I tried this 1.3 version of the uncrypt and the same thing happened so it might be from that.
I tried both LiteGapps and OpenGapps.
Thank you for your dedication! Can this ROM use magisk24? If not, is there any Android 10 or higher ROM that can use magisk24 for hi6250?
Can I make calls normally after flashing the Siberia kernel? I want to use magisk24 on this ROM, how can I do it?
UselessShane said:
Does syberia kernel work on any hi6250 device? Or it is only for pra?
Btw thanks for the rom...hope volte will work on this
Click to expand...
Click to collapse
Siberia work on :
PRA-LX1/PRA-L31
RNE-L03
BLN-LX1
AGS-L03
[KERNEL][EMUI 8][P8 lite 2017] Siberia kernel
SIBERIA KERNEL Disclaimer: Use this kernel at your own risk. Flashing it may brick your device. I'm not responsible for any software/hardware and any kind of damages/losses. NOTE : Use only on EMUI8 base(stock or custom) kernel works on all...
forum.xda-developers.com
zuldorak said:
I tried on my p10 lite using the uncrypt and it booted fine but I couldn't install or update apps. I tried to clear storage on play store and download manager it didn't work. When I went back to leaOS I tried this 1.3 version of the uncrypt and the same thing happened so it might be from that.
I tried both LiteGapps and OpenGapps.
Click to expand...
Click to collapse
Use Only LiteGapps.
To install : GO to TWRP, flash 1.3 version of disk-uncrypt and after flash LiteGApps recovery version. Reboot
ZXGUi said:
Thank you for your dedication! Can this ROM use magisk24? If not, is there any Android 10 or higher ROM that can use magisk24 for hi6250?
Click to expand...
Click to collapse
I haven't tested on my AOSP ROM. Magisk 24 runs on the Lineage version of LeaOS. Use the canary version
ZXGUi said:
Can I make calls normally after flashing the Siberia kernel? I want to use magisk24 on this ROM, how can I do it?
Click to expand...
Click to collapse
Yes on version support by Siberia
If you have dual-sim phone, flash correct EMUI update for dual-sim
AltairFR said:
Siberia work on :
PRA-LX1/PRA-L31
RNE-L03
BLN-LX1
AGS-L03
Click to expand...
Click to collapse
also was-lx1a (my p10 lite 4gb ram)
AltairFR said:
Use Only LiteGapps.
To install : GO to TWRP, flash 1.3 version of disk-uncrypt and after flash LiteGApps recovery version. Reboot
Click to expand...
Click to collapse
I followed every step in the guide and it didn't work but I got it working by installing your leaOS and then this rom again.
Steps:
Stock Rom -> LeaOS-PHH (AOSP) - It didn't work can't install or update apps from store
Stock Rom -> LeaOS-PHH (AOSP) -> LeaOS -> LeaOS-PHH (AOSP) - Everything works
I installed magisk and securize phh to pass safetynet.
Everything is working now, great work!
zuldorak said:
I followed every step in the guide and it didn't work but I got it working by installing your leaOS and then this rom again.
Steps:
Stock Rom -> LeaOS-PHH (AOSP) - It didn't work can't install or update apps from store
Stock Rom -> LeaOS-PHH (AOSP) -> LeaOS -> LeaOS-PHH (AOSP) - Everything works
I installed magisk and securize phh to pass safetynet.
Everything is working now, great work!
Click to expand...
Click to collapse
OK.. Thanks...I will do a test. I just updated my pr to version 8.0.0.416
amonpaike said:
also was-lx1a (my p10 lite 4gb ram)
Click to expand...
Click to collapse
zuldorak said:
I followed every step in the guide and it didn't work but I got it working by installing your leaOS and then this rom again.
Steps:
Stock Rom -> LeaOS-PHH (AOSP) - It didn't work can't install or update apps from store
Stock Rom -> LeaOS-PHH (AOSP) -> LeaOS -> LeaOS-PHH (AOSP) - Everything works
I installed magisk and securize phh to pass safetynet.
Everything is working now, great work!
Click to expand...
Click to collapse
Hi
I have correct the problem, for the moment just format data before flash img
Thanks! Having an alternate OS to choose from is just what I was hoping for! Appreciate all the work you put in Can't wait to test this
AltairFR said:
Non-Official AOSP for Huawei (prague, mediapad, warsaw, rhone) - LeaOS-PHH
LeaOS is a project which based on AOSP with phhusson's Treble GSI patches. I have added my personnals patches for Huawei devices : Encryption, Signal Strengh, Speed Boot, Assisted GPS, NFC, Media App, Default Sound, MediaScanner fixes etc..) and some eremitein patch
Changelog :
LeaOS-PHH May 2022 version
Initial build from PHH AOSP A11-r48 (October)
Add support of data encryption
Add NFC Quick Setting (NFC by default are disabled)
Add Android SPL (Nov, Dec 2021, Jan, Feb, March 2022)
Add Default sound (ringtones, alarm and notification)
Add Huawei bootanimation (no sound)
Add support of multi-user
Pass SafetyNet
Fix Signal strenght indicator (and icon)
Fix Media App permission
Fix MediaScanner crash
Fix Slow-Boot
Pre-requisite :
You must have TWRP installed, use this one (make sure to have the unofficial Android 11 one ! ). To install follow this guide "How to unlock Huawei P8 ligt 2017 (en).pdf" or french version "How to unlock Huawei P8 ligt 2017 (fr).pdf"
Installation (crypt or uncrypt)
Download file : "LeaOS-PHH-20220610-iceows-pra.7z" and extract img file
boot to TWRP
Wipe internal storage, format data
flash this file 1-Huawei-DataPrep-UnCrypt-A-v1.0-signed.zip to disable storage encryption or this file 1-Huawei-DataPrep-Crypt-A-v1.0-signed.zip to enable it. This zip change fstab file, wipe data partition and recreate subfolder /data/user*, /data/system* and /data/vendor*)
Wipe system, cache, dalvik/art cache
reboot to bootloader
run: fastboot flash system <drag system.img here>
(optional) flash Siberia kernel : fastboot flash kernel <drag Siberia.img here>
reboot to TWRP
resize system
flash this file 2-Huawei-system-UnCrypt-v1.3-signed.zip to not-allow data encryption or this file 2-Huawei-system-Crypt-v1.3-signed.zip to allow it
(optional) flash AGPS patch : 2 - AGPS-FIX-AltairVendor-v3.3-signed.zip
reboot to System and set up the phone with Lineage first start assistant. You can also add most user
(optional) reboot to TWRP to install now Google Apps : Google Apps Lite (LiteGapps_Core_arm64_11.0_v2.5_official.zip)
Enjoy !!!
Update (crypt or uncrypt)
Download file : "LeaOS-PHH-20220610-iceows-pra.7z" and extract img file
boot to TWRP
Wipe system, cache, dalvik/art cache
reboot to bootloader
run: fastboot flash system <drag system.img here>
(optional) flash Siberia kernel : fastboot flash kernel <drag Siberia.img here>
reboot to TWRP
resize system
flash this file 2-Huawei-system-UnCrypt-v1.3-signed.zip to not-allow data encryption or this file 2-Huawei-system-Crypt-v1.3-signed.zip to allow it
(optional) flash AGPS patch, Google Apps :
1 - Google Apps lite (LiteGapps_Core_arm64_11.0_v2.5_official.zip)
2 - Enable AGPS (2 - AGPS-FIX-AltairVendor-v3.3-signed.zip)
reboot to System
Enjoy !!!
Source Code:
https://github.com/Iceows
ROM OS Version: Android 11
ROM Kernel: Linux 4.4.x (stock 4.4.26 or Siberia_4.4.302-1.1.zip)
ROM Firmware Required: EMUI 8
Based On: PHH AOSP
Credits:
DarkJoker360
PHH
Andy Yan
Hamido
eremitein
And all the others who tested my patches and helped me improve this ROM
Support Group
Click to expand...
Click to collapse
Hey, can you fix wireless screen cast because if want to enable screen mirriroring on any tvs etc. , my huawei pra lx 1 do a soft reboot. Then it didn't connect :-(
MinhniNG said:
Hey, can you fix wireless screen cast because if want to enable screen mirriroring on any tvs etc. , my huawei pra lx 1 do a soft reboot. Then it didn't connect :-(
Click to expand...
Click to collapse
Hard job, I will try to backport from LeaOS Lineage Version
Hi, I've been using this rom for some days and everything's working fine no reboots or anything I also find it faster than your other LeaOS.
This is just minor stuff but is it possible to add the styles option on the Display settings? I find the style option on phh customization a bit lacking and it doesn't work well. also the huawei animation on boot is faster than usual.
Like I said its minor visual stuff, everything working so far I love how fast this rom is, amazing job!
MinhniNG said:
Hey, can you fix wireless screen cast because if want to enable screen mirriroring on any tvs etc. , my huawei pra lx 1 do a soft reboot. Then it didn't connect :-(
Click to expand...
Click to collapse
Fix, please download Jun version
Why am I getting this error??....
I appricciate your work on the phone oficcialy dead from some time but I'd like to point you on sometihing:
I'm normal guy and I'm not flashing phone on regular basis every day. I do it when I need this, every few monts or years and I've done it few times. What really annoyes me is the fact that your guide for installation is unclear because I'm always following steps VERY CAREFULLY and if installation is unsucessfull after few tries, it's of course because I'm missing something here... Sorry but I already wasted 6 hours of my day off trying to install your rom using your guide so I really appriciate answer for my question: why am I getting this error ???

Categories

Resources