In short i've recently ****ed myself over by doing a factory reset of my Huawei Mate 20 lite (why i'm here), and i had quite a few images from my trip to Italy, and other ones which i would like to have back, but were deleted.
I tried using PhotoREC but it didn't read my phone, it did not show up at all. I've read that the apps that would help me with this, require ROOTing your phone.
Which led me here
And i've all the posts in this thread, but I honestly can't really comprehend, understand what i'm supposed to do
Please reply, if you KNOW this still works, and explain what to do
I am not sure, if this is still working. I tried it.
I am working on SNE-LX1 with Version 10.0.0.245 (C432). I am unlocking the bootloader temporary with DC Phoenix (paid lizence) and am able to flash into the bootloader. First flashing "patched_ramdisk" in "ramdisk" (i created my own "patched_ramdisk" with magisk 25.1 and the current UPDATE.APP) and after that flashing NOCHECK into "recovery_ramdisk". After that the device gets looped into an boot error "Your device has failed verification and may not work properly" (-> Press Power Key to continue). After pressing Power i get into eRecovery.
The only way to get out of the loop ist to shutdown the device, then pressing VOLUME UP + POWER (for long) to get into the Upgrade Menu and install the current Version via USB. Or flashing back the original ramdisk.img .
If I understood correctly the file "SNE_recovery_NoCheck.img" shall prevent a verification check of the recovery, but it won't. And the next thing is: The phone should start into Android with POWER after that error, but it won't do it as well. He boots into eRecovery. So I guess, my patched_ramdisk broke the Android installation.
Can someone explain me and other a working way installing Magisk?
Kindly regards Padder
Unlock Your Bootloader
Boot into fastboot mode and flash nocheckrecovery and Patched Ramdisk type
fastboot flash ramdisk mate20lite_patched_boot.img
fastboot flash recovery_ramdisk SNE_recovery_NoCheck.img
Boot into Android System enable adb debbuging in developer settings.
Rename and copy firmware files via MTP to your internal memory
update_data_full_public.zip -> update_data_public.zip
update.zip -> update.zip
update_full_SNE-LXX_hw_eu.zip -> update_all_hw.zip
Install Magisk Manager MagiskManager.apk
Copy OEM info binary file to internal memory oeminfo.bin
Start ADB type one by one
accept the prompt at your Mate 20 Lite
mv /sdcard/oeminfo /data/local/tmp
chmod +x oeminfo Example for SNE-L21C432
./oeminfo SNE-L21 C432 hw/eu
mv *.zip /data/update/HWOTA
Paste recovery command(all lines at once) and wait for prompt to be shown before next step:
echo "--update_package=/data/update/HWOTA/update.zip" > /cache/recovery/command
echo "--update_package=/data/update/HWOTA/update_data_public.zip" >> /cache/recovery/command
echo "--update_package=/data/update/HWOTA/update_all_hw.zip" >> /cache/recovery/command
adb reboot recovery