yashsingh1/xdaforums huggingface dataset:
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
NOTE: Decrypting data is not currently working. This is my initial release and i'm planning to fix as many bugs i can. When it's stable enough , only then i will push to official​

Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.​

/*
* I am not responsible for bricked devices,
* thermonuclear war, or your 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.
*/

Sources: https://github.com/TeamWin

Device tree: https://github.com/Suicide-Squirrel/android_device_huawei_charlotte

Download

Flashing:

fastboot flash recovery_ramdisk recovery.img

Special thanks to [MENTION=912474]Dees_Troy[/MENTION] for the Huawei Blanc device tree, which this is based on.

XDA:DevDB Information

[RECOVERY][UNOFFICIAL]TWRP:Team Win Recovery Project[P20 PRO], ROM for the Huawei P20 Pro

Contributors

kessaras, steadfasterX

ROM OS Version: 9.x Pie

ROM Firmware Required: v195 or newer

Based On: OMNIROM,TWRP

Version Information

Status: Beta

Created 2019-06-14

Last Updated 2019-06-14
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
I will use this post to share my work

Sorry for making another TWRP thread, but i've had enough with our current TWRP.

I have enabled logcat and strace.

This is the initial release so keep in mind that it has (probably) currently the same bugs with the official.

The only difference is that you can grab any kind of log and help me improve it and only when it will be stable enough , only then, i will push to the official.

------------------------------------------------------------------------------------------------------

VERSION

: recovery-3.3.1-0-b.img | date: 15-06-2019

FIXED:

1. mounts correctly all partitions

2. backup to usb-otg enabled

3. backup all partitions except data (i need to fix decryption)

4. restore fixed.

5. ADB sideload fixed.

6. you can flash a kernel and a recovery .img directly inside TWRP. No more rebooting to bootloader.

NOT TESTED:

1. I don't know about format yet. i haven't tested it because im not ready to format yet.

If anyone is about to format anyway, please after format do:

adb pull /tmp/recovery.log

and

adb logcat -b all > logcat.txt

And send me these two logs so that i can fix format and we don't need stock Huawei recovery anymore.

2. Can't flash GAPPS exactly like in the official.

VERSION

: recovery-3.3.1-0-c.img | date: 17-06-2019

FIXED:

1. GAPPS flashing fixed. Same goes for any other flashable package.

2. backup data and wipe data are fixed. (not tested restore yet)

NOT FIXED:

1. Even if wipe data and backup data are fixed, and even though we can restore data ! Sadly there are bugs when we wipe data or perform a restore. Until i fix (if i fix it) decryption, please keep using the stock Huawei recovery to format your data and avoid restoring data.

ISSUE: Data partition is fine and it sais that it's 128gb but apps think that we don't have enough "free space". It may just be an issue in vold too in the rom where i tested it.

VERSION

: recovery-3.3.1-0-d + e.img | date: 20-06-2019

FIXED:

- minor bug fixes for stability

- added nvme partition which is needed during the decryption

- adb sideload fixed. No need to push and install

NOT FIXED:

- decryption

- format
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] forever_lol:
It's great news man. Looking forward to your further progress! Fully functional twrp is the juice.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] aoryx:
Amazing, hope we can have finally fully functional twrp :D

Thanks
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
:D

adb sideload and gapps flashing are fine too.

Format data needs to be fixed and decryption
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
Legend.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
Need to update my ROM, will test this tomorrow. Won't be formatting I hope, but if I do I'll be sure to grab logs..
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
not yet. gimme some hours. im trying to fix something and then ill share a new build.

i have 2 errors left:

At least wait for 1. otherwise you may need 3.2 official TWRP to flash gapps and it's boring to flash other TWRP every time.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] titi66200:
[MENTION=5461026]kessaras[/MENTION]

On my P20 Pro i dont have "/system/etc/ld.config.txt" but i have "/system/etc/ld.config.28.txt"
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
and mine has no ld.config at all. its beautiful , just beautiful.....

just use it then. if it can flash anything for you, then use it.

ill upload another one now that can also backup data.

For those who cant flash gapps just use twrp 3.2 official.

problem is symlink : system/etc to /etc.

[MENTION=5545101]steadfasterX[/MENTION] will help me with that.

EDIT:

VERSION

: recovery-3.3.1-0-c.img | date: 17-06-2019

i found a temporary fix until [MENTION=5545101]steadfasterX[/MENTION] helps me out. its ok for flashing. system backup is not ok.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] steadfasterX:
stop working in RL ;) the PR is waiting for you :laugh:

https://github.com/Suicide-Squirrel/android_device_huawei_charlotte/pull/1

as said: needs testing ofc as I do not own that device

.-
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
- Even though format is successful, TWRP will freeze and on next boot we can't boot or boot to TWRP.

We must format with stock Huawei recovery to fix that. So do not use the format yet in TWRP.

There must be some specific command that huawei uses to format the f2fs data partition. It's impossible to get that from a first boot from EMUI because adb logcat is not allowed until we unlock and enable

developer options. Plus that we can't selectively decrypt and encrypt again like we did a few years ago on older devices.... so i have to test several format command lines randomly until i get the right one.

- When i decrypt i get a fail, without a clear error. Decryption still has a looooong way to the fix and i don't have the time for that to do it daily, so be patient.

Well, at least we have a reliable TWRP now.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
Sounds painful, the other twrp does something similar..

Would the chap who made the unofficial one be able to assist?

His threads looked but he's still active .

Feel for you mate, sounds like a massive ballache.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] djlukas1983:
I did wipe system, cache, data and internal memory with success some weeks ago. But I didn't try the Format Data option.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
Lukas do not wipe data at an encrypted and non-decrypted partition.

When you will boot again to the rom, the system will think that data is clean so it will attempt to encrypt the already encrypted.

At settings you will see that you have 128gb data partition but you will have only a few mb actually.

wipe data does NOT remove encrption, only a format can remove the encryption.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
Did it actually wipe though? If it didn't the ROM may still boot as it would simply be a dirty flash.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] pmatj:
Hi,

although I'm on a P20 Lite, does this work with EMUI9.x?

Is it possible to create TWRP also for ANE-LX1?

Does this work with GSI or only Stock ROMs?

Peter
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
the only way to know that is to flash it and test it.

what are you afraid of ? if twrp doesn't boot, you can flash back the stock huawei recovery again.

>> the device won't have any issues if twrp is not for that device <<

It should work if it can boot. The only difference is our resolution. So if you see TWRP boot , then it's ok to use it.

* It will probably work because i don't force any specific resolution here.

But if it doesn't , change this to your resolution https://github.com/Suicide-Squirrel...43104c493e172dc469d7838153/BoardConfig.mk#L53

and build TWRP for p20 lite
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] pmatj:
Hm, ok, my P20Lite boots up, adb is initialized and I can also swipe to start but after 5-10 seconds, the phone just reboots to bootloader, so I cannot do anything useful with it....

I'm currently on EMUI9.1 (so A/B partitioned) and I already faced this behaviour on askuccios TWRP...
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] kessaras:
If it's a/b try talking to OnePlus 6/6t recovery.

They have a/b there too and if the dev answers to you then you probably have it ;)
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] fuckie:
Hello! Thank you for your work. I have installed 9.0.0.298, the bootloader is unlocked (and every lock has been removed). I installed the e-version of your recovery. However, I can not install anything: the process is on, but nothing is set. In the file manager, I can not rename any folder in the sdcard.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] ~clumsy~:
TWRP doesn't currently support decryption, so you have to push what you want using ADB side load.

adb push some.zip /tmp/.

Then navigate to the tmp folder and flash.

You can flash the stock recovery in this TWRP and reboot into it and wipe your data after fresh install of a new ROM.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Horayken:
Hello All. I'm on .286 with the TWRP working. The thing is.. can I Install magisk.zip now via otg or sideload? or it won't work in due to encryption? thanks.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] Horayken:
SOLVED: Flashing the Magisk.zip will replace the TWRP recovery. When boot into recovery again. the phone starts normal but in root mode.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] chinchan9:
did you managed to get some progress on how to fix the problems that occured like twrp being replaced?

im currently on a los 16.0 rom android so i probably need to go back to 8.1 to install an encrypted twpr right?

i made a thread on my progress im kinda new to the whole huawei encryption and Erecovery so if someone can give me a nudge in the right direction that would be really apreciated.

My Thread: https://xdaforums.com/huawei-p20-pro/help/p20-pro-unlocked-bootloader-lineage-os-t3951320

I havent tried flashing magisk trough adb sideloader yet as the sideloader is a bit buggy i managed to flash gapps but i cant get the sideloader to work anymore it says in the All In One Tool that my device is recognized and it switches from adb sideload to adb recovery when activating and deactivating adb sideloader. and magisk doesnt work on pie 9.0 right?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
Magisk does work on pie and you so not have to downgrade.

Flash twrp (official version 3.3.0.2) in bootloader

Push magisk to /tmp

Flash magisk.

Boot

Install magisk manager.

Done

If it didn't work, try to boot to recovery, it'll fail and when it boots it'll be using magisk
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] chinchan9:
im gonna try this out as soon as im home TY so MUCH!

okay im home i flashed twrp 3.3.0.2 and and pushed magisk to /tmp/ then rebooted didnt work then rebooted to Twrp and now it works :D TY very much sir ! i wanted to buy you a beer but your dono button is broken. (hint)
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] chinchan9:
UPDATE: Got everything working now as it should i assume there is no way to get Twrp and magisk? or can i reflash twrp now?

Okay After i got everything working and know how to get Magisk working i need to fix my google play services so i thought lets reflash the lineage 16.0 latest rom and Mind The Gapps but everytime i try to sideload the Rom trough Twrp i get Updater process ended with ERROR: 7

or ' /sideload/package.zip

E3000:this package expects the value " _a" for "ro.

boot.slot_suffix";

im using adb push lineage-16.0-20190723-nightly-charlotte-signed.zip /tmp/ and i tried adb sideload lineage-16.0-20190723-nightly-charlotte-signed.zip

Fixed had to remove boot.img'; 'slot_suffix lines in the Updater script of the Rom that was fun :P

any tips?

tried to wipe system and cashe before flashing but now i ended up with no OS on my phone xD my gawd twrp Works and Bootloader works so i should be good.

do i need to remove lines from the updater script of the lineage-16.0-20190723-nightly-charlotte-signed.zip ?

These Lines :

assert(getprop("ro.product.device") == "charlotte" || getprop("ro.build.product") == "charlotte" ||

getprop("ro.product.device") == "kirin970" || getprop("ro.build.product") == "kirin970" || abort("E3004: This package is for device: charlotte,kirin970; this device is " + getprop("ro.product.device") + "."););

assert(huawei.verify_vendor_build_id("P") == "1");

getprop("ro.boot.slot_suffix") == "_a" || abort("E3000: This package expects the value "_a" for "ro.boot.slot_suffix"; this has value "" + getprop("ro.boot.slot_suffix") + ""."); <

UPDATE: Got everything working now as it should i assume there is no way to get Twrp and magisk? or can i reflash twrp now?
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
Haha no worries man, no need for that, it's broken on purpose ;) but appreciate the sentiment, just glad it's working
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
No idea about lineage but AOSIP works fine, my preferred ROM.

Push to /tmp

adb push NAMEOFROM /tmp

Push g-apps too, then flash, bare in mind you may need to wipe using the stock recovery prior to it booting up. TWRP can't wipe properly, at least not yet.

So your device for some reason is not called charlotte,kirin970

You can edit the install script to reflect what the script says it is.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] djlukas1983:
Use in thread search in LOS16 thread and look for suffix

You'll find the solution. It's a known bug.
[Huawei P20 Pro ROMs, Kernels, Recoveries, & Other ] dlads:
Flashing this over 9.1.0.311 does not work.

Flashing like this.

fastboot flash recovery_ramdisk NAME OF RECOVERY

it flashes but then i usually boot straight to it.

Will not work.

How do i root magisk as an image and get it on there, never done this :)
[LG G7 ThinQ  Questions & Answers] scandiun:
Hi, I have the LG G7 H990ds with android 8.0, and would like to update to 9. However, android 9 blocks voice recording of interlocutor on the other side, which I would like to circumvent rooting the device. Any news on this, and once it's rooted can I revert it to stock?
[LG G7 ThinQ  Questions & Answers] scandiun:
guide to re-lock bootloader and install oem operating system:

[Guide] How to flash stock firmware and re-lock bootloader.

Warning that unlocking the bootloader using the official LG method erases userdata and cache:

How to Unlock Bootloader LG G7 LMG710 With Official LG Method.

Watch out for adb backup and restore which is not a complete method, some data may be missing.
[Samsung Galaxy A7 (2018) Questions & Answers] Kazryu:
Hello, i would to ask about how to downgrade to the earlier version of the stock ROM

I already download the correct country code, variant and everything else but when i click start in Odin

It says that cm.bin fail and the process is canceled, how to fix this issue?

Thanks a lot

SM-A750GN with XID country code, here is the firmware that i use https://www.sammobile.com/firmwares/galaxy-a7/SM-A750GN/XID/download/A750GNDXU1ARIE/241618/

and this is my device firmware now A750GNDXU2ASB4

or is it not possible to downgrade? any help around this as to not void my warranty if possible
[Samsung Galaxy A7 (2018) Questions & Answers] rubenswing:
There could be a couple of things:

1. You could be using an outdated version of Odin

2. You need to re-download the firmware, try searching updato for your firmware

3. Maybe the current/latest version of the firmware installed on your phone locks your boot loader to the current version (binary version matches the boot loader)and that is why you can't downgrade

What you could try (definitely at your OWN risk) because if things go wrong you can end up with an expensive paper weight:

1. Unpack the firmware with 7zip, remove the file (cm.bin) then repack to tar with 7zip

2. You can try to flash just the AP and CSC
[Samsung Galaxy A7 (2018) Questions & Answers] fr4n.4rdi:
Does it works for gn user? Any one try it?
[Samsung Galaxy A7 (2018) Questions & Answers] fr4n.4rdi:
I've tried to downgrade my SM-A750GN via odin software, but fails cm.bin and parameter.bin.

AP and CSC only to flash, it's not work at all.

How about flashing the oreo firmware with TWRP, does any one have tried it?
[Samsung Galaxy A7 (2018) Questions & Answers] rubenswing:
You can't downgrade because the bootloader is protected by Rollback Prevention, the only way (maybe) to use Oreo is to flash TWRP and wipe system data and use any custom Oreo ROM.

If you want to know about Rollback Prevention then there is a attached pdf from the Samsung Technical documentation
[Samsung Galaxy A7 (2018) Questions & Answers] fr4n.4rdi:
Can you please give me a link to download any oreo custom rom for my sm-a750 gn.

Thank you for reply..
[Samsung Galaxy A7 (2018) Questions & Answers] rubenswing:
AFAIK there is no Oreo custom ROM for this phone on THIS forum :(
[Samsung Galaxy A7 (2018) Questions & Answers] fr4n.4rdi:
Is there anyway to disable the Rollback Prevention bro? So i can downgrade my sm-a750gn.
[Samsung Galaxy A7 (2018) Questions & Answers] rubenswing:
Not that I know of
[Magisk] almostshell:
Every time I attempt to uninstall Magisk Manager it reappears. I've tried to uninstall it from the GUI and from TWRP by deleted /data/app and /data/data traces of it. It still shows back up after a reboot. Is this intended behavior? How can I remove it without uninstalling Magisks system?
[Magisk] Didgeridoohan:
It is intended actually. A feature to make it easy to switch between GSI ROMs.

But, the main question is: why are you trying to uninstall the Manager? Can't think of a good reason to do that while you still have Magisk installed.
[Magisk] xavmdq:
Because have ads
[Magisk] Didgeridoohan:
If you see ads in the Magisk Manager, you're not using the official app. You've downloaded something shady from somewhere other than [MENTION=4470081]topjohnwu[/MENTION]'s Github.
[Magisk] brenosnt:
I really believe it's best that you completely uninstall the Magisk of your device and officially download in github repo because as it said above, this version is unofficial

https://github.com/topjohnwu/Magisk/releases
[Magisk] xavmdq:
Sorry, intended to be a question. Was a typo. I'm a happy user of magisk.
[MTCD Android Head Units General] giangel84:
Hi all, I bought an PX5 unit one year ago, the model is ERISIN 8841U.

Everything works fine except for the Knob volume, after resetting the key study in factory mode.

Now the encoder change the radio station or the music track (based on the current music app is running) instead volume: turning knob as volume up it change to the next track, and turning knob to volume down it change the track to previous.

Is it possible? It's very strange!

I just verified the knob on the PCB board and I have the two smd resistor 882 and 152, that means I correctly setup the 8.2K/15K ADC on the factory settings.

Obviously I tested them and they're both good, since my tester measure the correct values.

I just upgrade the ROM to the latest official version: MTCE KGL PX5 8.0 20181112

I just upgrade the MCU version to the latest stable version: MTCE KGL V3.10

Just tried all factory reset, but no way to fix my issue.

Unfortunately I didn't export the dmcu.cfg previously so now I can't import the original one while upgrading MCU.

Maybe someone could have the same unit, then export and upload the original dmcu.cfg for me :confused:

You're my last chance to find a solution.

Thanks in advance!
[MTCD Android Head Units General] marchnz:
Define the volume "key" in factory settings. Done.
[MTCD Android Head Units General] giangel84:
There isn't an option which allow me to define the Knob in factory settings.

I enter in Factory settings with "126" pass.

Go to Key Panel study, here I can only setup phisical buttons, "Home" + "Back" + "Navi" + "Mute" (encoder's central button), but when I rotate encoder nothing happen; this is definetly correct, since I've another unit that work perfectly and the behaviour is the same: No knob rotating pulse is grabbed by the panel key study.

So this means that knob rotating actions are stored in other way.
[MTCD Android Head Units General] ozzyboy:
mtcd mx

exactly with this i'm facing right now... no volume control on knob volume and the factory settings has no way to setup the rotation, it's responsive only if it's pushed.

I was doing some research in this forum and I've saved this links:

https://xdaforums.com/showpost.php?p=67855471&postcount=17

https://xdaforums.com/showpost.php?p=72103289&postcount=2

https://xdaforums.com/android-auto/mtcb-software-development/xposed-modules-units-t3263966

https://xdaforums.com/android-auto/...cd-spotifykeys-control-spotify-using-t3428930

https://xdaforums.com/android-auto/...nal-volume-knob-button-mapping-t3774138/page3
[MTCD Android Head Units General] marchnz:
What else has been explored and tested in factory settings?
[MTCD Android Head Units General] giangel84:
All combinations of ADC values and Customer version. By set-up the Knob Mode to "IO Ports(Swap)" I managed only knob to do nothing, to avoid to change song/track/radio station by rotating the knob unawares.

There aren't other settings to try for map the knob rotation. I think there are some .ini configuration files to check, but I don't know which and if the unit needs to be root.
[MTCD Android Head Units General] giangel84:
Hi ozzyboy, is your knob doing other things than volume control?

In my case, opening a music app or radio app, the knob rotation do the "next/previous track" action, instead of "volume up/down".
[MTCD Android Head Units General] ozzyboy:
Nop...neither knob volume nor the other knob, radio seeking!

On volume knob it's working only mute, and that after i'm doing a factory reset and delete all data/cache. Also i installed another mcu file but same problem.

Maybe I have some time next days to try to root the HU and then to assign commands from terminal and see if it's working... For the moment I'm controling volume from steering weel buttons!
[MTCD Android Head Units General] giangel84:
Thanks for your feedback, I'm also rooting my unit to try to fix this issue! If there's a solution i'll tell you how to setup it.