[Asus ZenFone Max Pro M1  Questions & Answers] billbentley:
Hello, I'm trying to install LineageOS on my Asus Zenfone Max Pro m1 (ZB602KL) but I'm stuck in TWRP and cannot install any OS.

(Sorry I cannot post proper external links as i am new on this forum)

I will try to explain what I did as clearly as possible (I was following the install page X00TD from the LineageOS website) :

1. Unlocking the bootloader

No problem here I guess, I just downloaded the from asus.com/Phone/ZenFone-Max-Pro-M1/HelpDesk_Download/ then

adb install

it then run the application from the device.

2. Installing a custom recovery using fastboot

This is where is start to be blurry for me. I download the TWRP from the link given by the LineageOS install page (androidfilehost.com/?fid=3700668719832241089) I can

fastboot flash recovery <recovery_filename>.img

without any problem but when I reboot into recovery I don't get TWRP and when try to

fastboot boot <recovery_filename>.img

I get something like this :

downloading 'boot.img'...
OKAY [ 2.292s]
booting...
FAILED (remote: unknown command)

So I'm trying to get an other version of TWRP from the TWRP website but the Asus Zenfone Max Pro m1 is not listed in the devices section (twrp.me/Devices/Asus/). I finally found this reddit post reddit.com/r/LineageOS/comments/aiiw3f/flashing_twrp_on_linux_fastboot_doesnt_work/ , download this TWRP androidfilehost.com/?fid=11410963190603879312 and flash it using

fastboot flash:raw boot <recovery_filename>.img

as recommended on the post and can finaly boot into TWRP.

3. Installing LineageOS from recovery

I "format data" and do an "advanced wipe" as indicated on the LineageOS install page, I get some error messages (encryption, etc.) so I reboot into recovery and try again and it seems to work. I try to sideload the last lineage build downloaded here download.lineageos.org/X00TD but I get this :

adb: sideload connection failed: closed
adb: trying pre-KitKat sideload method...
adb: pre-KitKat sideload connection failed: closed

so I decided to

adb push

it and install it via TWRP but I get an

Updater process ended with ERROR: 7

. I found this reddit post reddit.com/r/LineageOS/comments/cfwnox/x00td_lineageos_16_firmware_error/. I downloaded the firmware from asus.com/Phone/ZenFone-Max-Pro-M1/HelpDesk_Download/ but I cannot install it from TWRP (error 7 again).

Then I found some link to a "PIE" firmware that I can install from TWRP after installing the "PIE" firmware I can finally install LineageOS but when I reboot I get some warning message saying : "the boot loaded is unlocked and software integrity..." after this I get the LineageOS loading animation (the right to left blue bubble) for 2 minutes then it reboot to TWRP.

Voila.

- I don't really understand the difference between the FIRMWARE (1.5 Gb) or the PIE FIRMWARE (60 Mb) or even the LineageOS file. I'm still trying to adb push some firmware or OS and install them but i'm affraid of making an irreversible mistake and "brick" the phone.

- I don't know if the problem come from my

fastboot flash:raw boot <recovery_filename>.img

TWRP install or from a bad TWRP file, or from the OS/firmware file.

So what should I do now? How do I clean this mess and install a working OS (LineageOS or even back to Asus/Android factory OS)?

Any help is appreciated, Thank you