[Asus Zenfone Max Pro M2 Guides, News, & Discussion] MIKe_812:
Hello,

The goal of this topic is install recovery, rom of Lineage and install root. I will give you some tips(Unpretentious)! I finished installation 2 hours ago.

BEFORE START -> Make Save of your personal data and put it outside the phone, (sms,call history,contacts,pictures,videos,music,wifi key, notes, clock alarm, bookmarks, microphone rec file.....)

-> Read this full topic

1. Unlocking the bootloader​

Follow this topic only for unlocking bootloader part : https://xdaforums.com/t/unlock-bootloader-and-root-asus-zenfone-max-pro-m2-unofficial.3885457/​

2. Install Lineage recovery & rom​

Follow this article and skip bootloader unlock part : https://wiki.lineageos.org/devices/X01BD/install . For gapps installation, take the correct version correspond as your Lineage rom version installed​

You can download Lineage add-on : https://download.lineageos.org/extras Do not install su add-on, at the time I write these lines, last Lineage rom version for this phone is 18.1, and last version for su(arm64) is 16.0… Is not compatible, don’t lose your time trying to make worked(advise :D).

3. Rooting With Magisk (can be made after installation and the first start, this don’t remove personal data)​

0. TAKE YOUR KERNEL DATE IN Settings > About phone > Android version(click it!) > Kernel version

Example :

4.4.261-perf+
#1 Mon Jan 17 03:37:50 UTC 2022

GET A NO MODIFIED LineageOs ROM FILE WITH CORRECT/SAME DATE IN Kernel version (https://download.lineageos.org/X01BD)

For example, my date is 17 Jan 2022 or '20220117' in stock Lineage rom name

feedback : I have flashed my phone with patched magisk boot.img from a incorrect date who no correspond in Kernel version, this cause bootloop. I needed to find correct date by testing all boot.img from stock rom for restore and phone restart now. Be careful ===> all rom version are not available on LineageOs download page. If your kernel date not correspond in download page it's very embarrasing situation.

At this point :

If there is a rom correspond to your kernel date

Download original LineageOs rom with correct date for save and continue this topic

If no there is a rom correspond to your kernel date

if your phone boot correctly, try update in updater and restart procedure at 3 point at step 0 of this topic

if phone doesn't boot, try to ask to LineageOs support, some rom history for your phone ans test it. Or reflash via recovery last LineageOs rom for your phone model => This cause LOST OF ALL DATA.

Take your Lineage rom file who end in ’.zip’ extract it, copy ‘boot.img’ to phone(I suggest you Downloads directory)

Install Magisk app, ONLY from github source : http://github.com/topjohnwu/Magisk and make update if necessary

Open the Magisk app, you have two sections ‘Magisk’ and ‘App’, both have an ‘Install’ button. root is not installed when you see ‘N/A’ in the ‘installed’ field in the ‘Magisk’ section.

Click on ‘Install’ button of ‘Magisk’ section

In ‘Method’, click ‘Select and Patch a File’ It is the only available option for non-rooted phones. Select ‘boot.img’ in phone(maybe in Downloads directory), and click ‘Let’s go’

Once your ‘boot.img’ is patched, copy patched file(destination of patched file is, for me, Downloads) to computer

Reboot phone in fastboot mode

If your phone is turn on -> with adb, adb reboot bootloader

If your phone is turn off -> keep Volume key up + power button

In your computer>fastboot/adb directory, in command line, enter this : fastboot flash boot <name_of_patched_boot_img>.img

!Tip : I always copy my file in fastboot/adb directory. this directory is located at the root of my disk. This avoid me to add directory in command line

Reboot

In the Magisk app, you now have an ‘Uninstall Magisk’ button and a version number in the ‘Installed’ field in the ‘Magisk’ section. Check with a root checker app.

For unroot, click ‘Uninstall Magisk’ or flash phone with original ‘boot.img’, with original Lineage rom with same version of your current rom version. Both solutions are not tested by me.

4. Configuration French carrier, La Poste Mobile on Lineage rom​

Preferred network type is ‘LTE/TDSCDMA/GSM/WCDMA’

In ‘Access Point Names’, two are present, one for mms, one for internet, enter both(edit: you can join two configuration in one and put APN : sl2sfr). Only the following settings need to be added/modified. don’t change other settings

for web

Name : WEB La Poste Mobile

APN : sl2sfr

MCC : 208

MNC : 10

for mms

Name : MMS La Poste Mobile

APN : mmsdebitel

MMSC : http://mmsdebitel

MMS Proxy : 10.143.156.3

MMS Port : 8080

MCC : 208

MNC : 10

APN type : mms

reboot and 4g will be good

5. The most important thing now, enjoy! keep your passwords safe and make backups.​

Special thanks, thanks for all :

https://www.monpetitforfait.com/toutes-les-aides/apn-la-poste-mobile

http://github.com/topjohnwu/Magisk and her installation guide

https://wiki.lineageos.org/devices/X01BD/install & https://download.lineageos.org/extras

https://xdaforums.com/t/unlock-bootloader-and-root-asus-zenfone-max-pro-m2-unofficial.3885457/