9

I want to install a custom rom (LineageOS with microG) on My Asus Zenfone Max Pro M1. I followed every steps detailed in the tutorial (enable debugging, unlock bootloader, run fastboot, flash TWRP, reboot in recovery, backup then wipe the system with TWRP).

My problem is when I want to sideload the custom rom. So, adb devices works and detects my phone in recovery mode. However, as soon as I lauch the sideload mode in TWRP, adb devices is not able to detect my phone anymore and the command adb sideload xxxxxx.zip fails because it cannot see any device.

I'm running TWRP 3.2.3, my computer runs on GNU/Linux (Xubuntu 18.04), I have the latest version of the Android SDK.

It is the same question as here from 2015: Device disappears from ADB devices when entering sideload but there was no answer.

Thanks in advance

2
  • Why don't you install the ROM directly from TWRP? Feb 12, 2019 at 19:40
  • That's indeed what I ended up doing
    – Odin
    Feb 28, 2019 at 10:59

2 Answers 2

7

Eventually, I found a workaround (which is not a fix but it allowed me to continue the installation).

Since my device was detected in discovery, I did not used sideload. I just pushed the image to the sdcard with:

adb push xxxxx.zip /sdcard/

and then I installed the image from the sdcard directly in TWRP.

1

I have this issue when the adb server is running without root permissions. Try:

$ killall adb
$ sudo adb devices

This will run the adb server with the correct permissions, then you'll be able to sideload.

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .