Xiaomi Mi A1: Lineage 16 works well

Old crap

Got a Xiaomi Mi A1, unlocked, booted TWRP 3.2.3-1 (seems to work fine)

Installing Lineage 16 gives me ErrorCode:: kInstallDeviceOpenError.
However Lineage 15.1 installs and works fine.

Picture

Could someone help figure this out?

Edit:

Lineage recommends that I sideload the ROM but outcome is the same:

Picture2

Edit2:

Third method:
-flash boot_stock.img
-boot into TWRP (without installing) using fastboot (sudo fastboot boot twrp-3.2.3-1-tissot.img)
-format and wipe
-install lineage 15.1
-boot lineage recovery
-try and update to lineage 16 (nah didn’t work)

Picture3

Edit3:
So I tried several TWRPs all of them boot loop (except for 3.2.3-1) but I also found this “unofficial” TWRP thats pretty good:
https://github.com/CosmicDan-Android/android_device_xiaomi_tissot/releases
Lineage 16 still doesn’t work, but Lineage is posting newer builds for Tissot almost on a daily basis.

Also I went to wipe Dalvik and Cache and… There Is No Cache???

Cache

Its just not right...

Oh and uh the stock andriod 9 (Pie) (the one that lineage 16 is based on) works fine.

UPDATE:
Lineage 16 works fine here’s what you do to flash your Mi A1:

First the phone:
Settings -> About Phone ->Build Number
tap on build number many times until promt with Developer Options
Goto Developer Options-> Enable Andriod Debugging and OEM Unlock

Next get the stuff:

sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot

Plug your phone in

sudo adb devices
(will probably return)
List of devices attached

  • daemon not running; starting now at tcp:5037
  • daemon started successfully
    893956245677 unauthorized

phone promts USB debugging authorisation, accept it and

sudo adb devices
List of devices attached
893956245677 device

Then follow the guide:
https://wiki.lineageos.org/devices/tissot/install

And use the TWRP 3.3.1-0-tissot.img
https://dl.twrp.me/tissot/

After flashing the TWRP recovery, boot into it, format phone, transfer the Lineage zip to the phone, and use TWRP to install the zip.

Did you verify the file isnt corrupt?

1 Like

Sha256sum checks out, does that mean its fine? Also tested a pervious lineage 16 no luck either.

All the bits need to be there for sha256 to work right?

Also, the phone’s specs say its 32GB but TRWP saids 22GB and lineage 15.1 saids 31% used, 21.92GB free. System is taking up 8.8GB, what the hell is up with that?

A fresh install of ubuntu 18.10 takes 6.5GB.

Yes!

Other than that, I can’t help you. You could report this issue on the XDA forum. I’m sure they’ll help you out :wink:

1 Like

try to flash latest original rom maybe you’re missing latest ril firmware also check if there are patches for zip signing or smthing

1 Like

Downloaded the stock Xiaomi software, then I fastboot flashed everything manually, going through the flash bat and images

Screenshot

Booted TWRP, tried to Lineage 16, nah

Xiaomi also give you a flash tool but its for windows, I may try that later.