[Huawei P20 Lite Questions & Answers] J158:
Hello!​

Something really weird happend with my P20 Lite

And i am kind of shocked 🥶

Spoiler content hidden.

✨ How i rooted my phone...​

I did the testpoint method to unlock my bootloader to flash TWRP (3.4.0-1).

I just wanted to root my phone so i installed Magisk by flashing the .zip...

it was "Successful" but it didn't work, so i patched the stock recovery_ramdisk with magisk, it worked and i had root :)

I did what every root user do... (Zygisk, Shizuku, Termux, Sui, NetHunter, LSPosed, EdXposed, modules..., try new camera apks... and i don't remember)

⚠ When i started to have problems...​

I wasn't able to modify system files because i didn't had write permissions

So i entered on TWRP to give me chmod 7777 permissions on the some systems folder to change some apps like the camera...

It worked perfectly :D

And days later (I think here is where i fuked it up) i chmod 755 on folders that i wasn't needing write permissions anymore

I rebooted my phone and it started to reboot itself 5 second after i unlocked my phone (Lockscreen pattern)

My phone actually did this some days ago, it rebooted itself like 2 times and then it booted perfectly and i was able to use it, so i thought it was going to boot anyways...

But it didn't, and i flashed the stock "recovery_ramdisk", not the magisk patched version because i thought that was the problem

And i got into the stock recovery...

And it gave me a "The data partition is heavily corrupted, do "something like "wipe" i don't remember" to recover it" message...

When i was rooting my phone, i read here on XDA something like "When you modify "something" EMUI will think your phone is corrupted"... so i didn't wipe my data partition and ignored it

🧱 But It got bricked 😞​

My phone got stuck on the "Your device has been unlocked and can't be trusted." screen... and i didn't know what to do

I flashed and entered on TWRP to see what i could do to make it work again

The /data and /sdcard folder were files and folders with REALLY CREEPY names... i though: Oh no, it is indeed corrupted 😥

I tried things like copying the /sdcard folder in the external SD card to make a backup so i can give it a wipe witch TWRP... and it didnt work, TWRP actually got stuck trying to copy

I got a "sdcard" folder on my external SD card that i cannot delete

I wiped the Cache, Dalvik, Data partition, and the internal sdcard too but it was still stuck on that screen 😟

➡ This is what i tryed:​

I tried flashing LineageOS 20, LineageOS 16

+ Phenix Kernel 4.9.337 then changed it to the 4.9.319 version

A 9.1.0.401(C432) system.img

Then I rolledback to the stock kernel

I flashed SHRP 3.1 (a kind of TWRP 3.7.0_9-0 version)

I tried flashing the stock recovery_ramdisk and the erecovery_ramdisk to try DLOAD method with my EMUI 9.1.0.355(C605E4R1P3) firmware

It got stuck at 5%... and it shows USB icon(?

❌ Nothing worked, so here i am :/​

Luckily i can flash different recovery's, custom systems.img's and kernels...

I have the stock recovery_ramdisk, the erecovery_ramdisk, i did a backup before installing Phenix Kernel

My phone downloaded by HwOUC (OTA?) the official EMUI 9.1.0.355(C605E4R1P3) firmware

But weirdly i can't use the Huawei Update Extractor to extract the system.img and the userdata.img to flash it by fastboot

It says: "13.system.img invalid header crc - Expected 33209 Got: 5548"

... but i can disable the verification to extract the system.img

I realized i can try to re-download the stock firmware by the stock recovery and "update" it

I really went so far to end up with a hard brick

I can access the test pins, i have stock files, i know some tech things and a lot of info from the phone...

I'm still a noob but you are really talented people

And i'm asking for help 😞

​