Asus Asus Zenfone Max Plus (M1)
Manufacturer

Asus

Name

Asus Zenfone Max Plus (M1)

Identifier

asus-x018d

System Type

android

SoC

mediatek-mt6755

Architecture

aarch64-linux

Supports Stage-0

no

Source

Mobile NixOS repository

Builds

Hydra (default build)

Building and installing

There are multiple installation methods for your Asus Asus Zenfone Max Plus (M1). They all rely on flashing one or more partitions on your device.

Warning

All installation methods can lead to data loss.

Flashing a partition will erase everything on the partition. Additionally, the common backups methods, e.g. TWRP, will not backup the userdata partition, which may be the installation target.

Make backups.

Using Fastboot

This will produce a folder with a flashing script, and the partition images for your Asus Asus Zenfone Max Plus (M1).

$ nix-build --argstr device asus-x018d -A build.android-fastboot-images

Alternatively, you can build a specific partition image:

$ nix-build --argstr device asus-x018d -A build.android-bootimg
$ nix-build --argstr device asus-x018d -A build.rootfs

The device will need to be booted in its bootloader, or fastboot, mode.

The boot images can be installed using the following command, assuming the android-fastboot-images output was used.

$ result/flash-critical.sh

If you have a system image (system.img) built, you can use fastboot to flash it to the device. Note that it might be too big to fit over the system partition. In such case, it can be flashed on the userdata partition.

$ fastboot flash userdata system.img

Using a flashable zip

An alternative installation method is to use a flashable zip. The flashable zip can be built for your Asus Asus Zenfone Max Plus (M1) using one of the following commands:

$ nix-build --argstr device asus-x018d -A build.android-flashable-bootimg
$ nix-build --argstr device asus-x018d -A build.android-flashable-system
$ nix-build --argstr device asus-x018d -A build.android-flashable-zip

The first two will flash only a specific partition. The last one contains the partitions of the two previous one.

The zip can either be copied to the device and selected in a compatible Android recovery, or sent to the device through adb sideload.

$ adb sideload /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-flashable-asus-x018d-boot.zip

By default it will flash to the system partition. Some configurations may change this to flash to the userdata partition. In that case, no warning is given before flashing.

Device-specific notes

This device is also known by the following names:

  • ZB570TL (Part Number)

  • E262L (Internal project name)

Fastboot and recovery

They can be accessed by holding Volume Up at the start of boot.

Device unlock

The device can be unlocked using the following Android program that will phone home to Asus.

The link has been saved to archive.org if it is ever needed in the future.

Note that the tool may appear to fail to unlock, and then fail to format the device. While this is a big security issue for the integrity of the vendor’s Android operating system, it is only a weird quirk of the device for us. You can verify that the unlock worked by using fastboot flash to flash an image that would be otherwise rejected (e.g. Mobile NixOS or TWRP).