yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wurzel99:
missing direct install magisk

hi,

my xiaomi a2 lite ist - i think - well prepared

- bootloader is unlocked

- adb und fastboot-tools are installed on my linux-PC

- system is ugraded to v10.0.3.0

- i have installed magisk-manager v18 on my smartphone

- patched boot_image (january update) v xx.0.3 ist ready

now

- i booted in fastboot-mode

- i entered at command-prompt

'fastboot boot ./patched_boot.img'

- image ist copied and a2 reboots 'normal' - no error messages

- i start magisk-manager

- chosing 'install'

- it is only offered 'only download zip' and 'patch boot-image'

that means: 'direct install (recommended) is not offered

what to do now?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
I don't know about others but I've noticed a significant battery improvement after the January update. The screen on time was somehow reduced on the fresh Pie update but now it's even better than it was on Oreo

---------- Post added at 02:26 AM ---------- Previous post was at 02:16 AM ----------

I seem to have found the reason for issues related to failed OTA updates. Updates are usually failing on the phones that had been updated to pie using vpn method or those that had been flashed using unofficial fastboot image of pie.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
I'm in 10.0.2.0 arrived "normally" from oreo 8.1 unrooted phone then i rooted and installed magisk (for the gcam). Do you think I can i follow the OTA procedure of the guide on first page then? (not willing to go into bootloop again after the faile update oreo-->pie...) thank yoiu
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Andreagia1994:
I used the procedure and it works always, but for the OTA january update no.. it won't install the january update.. are there any solution?

Thanks.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] viking777:
I have dug myself into a deep hole with this latest update. I managed to get the update, but ever since then the phone wont boot because it insists I have the "wrong pin" every time (I don't have the wrong pin).

I am aware that this can be overcome by deleting certain files from /system/data, but that only works if you can access them - and I can't. I can't use adb from the pc because the phone wont boot, and I can't use twrp to access them because it requires the pin before it can access /data, and it too insists that I am giving the wrong one. Simply bypassing the pin entry on twrp does not work it shows no data on the root partition (0Mb).

I have tried flashing 2 roms with miflash (10.0.0.2 and 10.0.0.3) both flashes were successful but both insist I have the wrong pin. I tried restoring a twrp backup by booting a twrp image, installing the zip, and then restoring the backup from the installed twrp but for some reason (probably to do with twrp itself) that fails (it also results in a 'system destroyed' message on reboot).

Is there anything I can do about this other than a factory reset? The only part of the phone that works properly is fastboot.

Edit. I did a wipe and full install of 10.0.03 which puts me almost back to square one (except I am fully updated) . So I have got a lot to do now to get all my apps and settings back again.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gonsa:
How can we make sure Magisk restores the original boot partition?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Never_flamingo:
By copying normal boot file in phone before starting the process I think. Or at least I had It on my phone since after I installed december patch
[Xiaomi Mi A2 Lite Guides, News, & Discussion] daro29:
how did this file in your phone? did you upload it somehow? I doubt that magisk would search the phone for an img file
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
Today I uploaded in the guide the last vanilla boot and patched_boot.

I noticed the following:

September >>> V9.6.8.0.ODLMIFF (Oreo)

October >>> V9.6.9.0.ODLMIFF (Oreo)

November (1) >>> V9.6.10.0.ODLMIFF (Oreo)

November (2) >>> V9.6.11.0.ODLMIFF (Oreo)

December (?) >>> V10.0.1.0.PDLMIFJ (Pie)

December >>> V10.0.2.0.PDLMIFJ (Pie)

January >>> V10.0.3.0.PDLMIXM (Pie)

Maybe it's just a randomness, but:

- when the final part of the new version number was the same, the OTA update worked flawlessly;

- when the final part of the new version number was different, the OTA update has caused problems.

It's also strange that between V10.0.2.0 and V10.0.3.0 the last part of the version number changed. When it was Oreo that part of the version number never changed...

We should wait for the next OTA update to come out, check the last part of the new version number and if it remain the same (i.e. PDLMIXM) I suppose the OTA will work again.

EDIT: somebody has tried OTA updating with the guide from 10.0.1.0 to 10.0.2.0? They have the same final part, so theoretically it should work (if my theory is correct).

EDIT2: the Mi A2 users seems to have our same problems, but even without unlocking their bootloaders or installing Magisk, it's probably Xiaomi messing up things (and our phones):

https://www.xda-developers.com/xiaomi-mi-a2-bootloop-january-2019-update/
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
with te method of restNow?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
I wondered about the change in the build name too. I couldn't update from 9.6.11.0 to 10.0.2.0 and from 10.0.2.0 to 10.0.3.0 with the Magisk OTA procedure. Both times my device bootlooped afterwards. With Xiaomi everything is possible. Probably my first and last device from them, I haven't ever seen a worse support, even Motorola/Lenova are support gods compared to them. ;)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Me I like xiaomi not a fan of there updates ether.the only I really wish was there was more mod support .
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
I meant more in terms of technical support. I asked them different stuff via mail and none of my questions were answered at all, either they said that they don't support the Mi A2 Lite (I tried US, Global and Spanish support) or they just copy+pasted answers totally irrelevant to my questions. And I've never seen any official answers inside the official English MI forum.

I like the device itself very much, but I think Xiaomi just don't care about their Android One phones, because they barely make any money with them without their ad driven MIUI.

Edit: Sorry for OT.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
Ok I know what u mean I asked us support about somethinga and they flat told me they were sorry but can't help because they don't officially support the us
[Xiaomi Mi A2 Lite Guides, News, & Discussion] grufty47:
I closely followed the Magisk installation procedures on V10.0.2.0PDLMIFJ (Pie). I am not aware of having modified any partitions afterwards; if any then those should have been controlled by Magisk. Deinstallation of Magisk before executing the January security patch V10.0.3.0.PDLMIXM (Pie) as per procedure. Afterwards bootloop as described by BlubuXP in #495. Problem could only be resolved by flashing the V10.0.3.0.PDLMIXM boot.img to the active partition (?) (fastboot boot_? boot.img) and installing Magisk again. A bit cumbersome, however, no loss of data... I am still satisfied with the device.

Regards
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Never_flamingo:
It happened the same to me when I updated from Oreo because I forgot to disable screen protection. I had to wipe too.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Els007:
I got a bit discouraged by the other posts, but this worked for me too. Thank you!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] lbsilva:
Perfect.

Just a simple question, is it safe to apply OTA updates if I simply unlock the bootloader? Or does it brick the phone as well?

I didn't root yet, just decided to unlock the bootloader with

fastboot oem unlock

.

EDIT: I'm running Android 9.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
so doest it worl akways in this way? I'm scared as hell does it amke any senso to wait for the february update? Will I have to "pass" through 10.0.3.0 anyway before upgrading it? :confused: thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
If u follow the instructions u should be fine
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
if you only unlocked bootloader, without any other change, you can do OTA (except Xiaomi did something wrong on its side).
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jonybat:
Just reporting back with my experience with the January OTA.

Uninstall magisk completely, boot vanilla December boot.img - ota fail

Flash vanilla boot.img to current slot - ota fail

Flash vanilla system.img to current slot - ota success

The weird thing is that I didn't install anything that could touch system partition, and what I had was already there on previous otas. Just adaway with systemless hosts magisk module enabled, and vanced magisk module, nothing else.

Let's see how it goes with next ota...
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
sorry what is the system.img compared to boot.img?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jonybat:
https://xdaforums.com/general/general/android-partitions-explained-t3657183
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
Succesfully updated from last 8 to january Pie. Complete uninstall Magisk -> OTA update -> fastboot pathed boot->direct install magisk-> everything works now. Thank you all!
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Le Dam:
Hello,

I made a mistake...

I completely uninstalled Magisk without patching boot.img

Now the smartphone starts on a black screen with this text: "No Command"

I can only restart it normally with my PC and Fastboot (fastboot boot patched_boot.img) - all is not lost !

Is it possible to repair my error without reflash with an original image (I don't want to reconfigure the entire smartphone...)?

I already download original boot.img and patched with Magisk but my Mi 2 Lite continue to boot to the No Command logo.

Thanks for your help ;)

EDIT :

Do you think this method can work ?

fastboot flash patched_boot.img

(flash and not boot)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
You have to do:

fastboot boot "patchedimage.img"

then install magisk apk

from magisk -> direct install

then reboot...

Why cant you read all comments?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Le Dam:
Thank you [MENTION=485637]wenna.speedy[/MENTION] but I already also make that and the Mi continue to start on "No Command"
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
try boot with nopached image, install magisk apk, then reboot to patched image and direct install.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Le Dam:
I just remove Magisk but not uninstall but left selection (forgot the titel).

Now, my phone boot normally but I can't install Magisk...

Steps :

1. I launch Magisk. The app is open but I must INSTALL

2. I clic on INSTALL and app ask if I want install Magisk-v18 : yes install

3. Select mode : only download zip or patch boot file

...and I must show where is this file. Where is it ?

Thanks for your help ;)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Antho02:
hello, magisk just got updated today and i wonder how to update on my phone

i updated thenmanager yet but then it ask me how i want to update magisk (zip, boot, direct ou inactive space)

im new with magisk and with this phone so thanks in advance if an helper appears ;)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Tara.:
patched_boot 10.0.3.0 (2019 January update) - patched with Magisk 18.1

Thanks for this thread, it's helped me a lot. In return, here's my tiny contibution: patched_boot 10.0.3.0, patched with Magisk Manager 7.0/Magisk 18.1.

The usual disclaimer applies (i.e. try at your own risk).

Zip file hashes:

MD5: A9CE9327C04E63F6C6BCB8804439900F

SHA-1: 25DCCA8F57EFE45E99509B4C218A048344A14C31
[Xiaomi Mi A2 Lite Guides, News, & Discussion] rob420p:
I did a direct install with no problems
[Xiaomi Mi A2 Lite Guides, News, & Discussion] lemmingbas:
I ran flash_all_lock.bat instead of flash_all.bat from the OEM download when trying to revert to stock to start this process over, and now my phone's stuck in a bootloop, with a locked bootloader. Is this a hard brick?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
New Magisk Manager 7.0.0 might have actually fixed the boot loop after OTA update as they fixed some post OTA scripts see changelog

Maybe someone can confirm that OTA updating through Magisk Manager is now working again flawless. I might try on the weekend as I am still running 10.0.2.0 .
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
please let us know so far i'm still with 10.0.2.0 and withe the 10.0.3.0 in standby (although it says impossible top update...?) I woudl try it too but I'm not confident with these stuffs...
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maish05:
Yes finally its working smoothly with 10.0.3.0 or whatever the Jan update is.:o
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
sorry so you managed with magisk 18.1 to update from 10.0.2.0 to 10.0.3.0 following steps 12 13 14 of the guide on first page? Just to be sure...
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maish05:
No I had bricked my device and reflashed latest rom 10.0.3.0 then followed the procedure and now works fine.:cowboy:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
sorry but "working smoothly" wasn't referred to the OTA update that at the end you didn't do? :confused: i mean isn't the 10.0.3.0 the latest update available?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Maish05:
Yes it is and I have magisk running fine
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
As biasiman wrote my question was related to OTA update which you didn't actually do. Noone doubted the fact that Magisk is running fine, just the OTA update from 10.0.2 to 10.0.3 had some issues.

However your answer to my comment suggested it would work now, which you cannot know.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
ok is this needed should I follow these steps

but using your patched boot in step 7 as I'll install the last version of magisk?

thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] lbsilva:
You need to use the boot.img from the same build you have currently installed on your A2L.

Settings > About Phone > Build Number.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
ok but it has to be patched with the same version of magisk with which i'll root the phone?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] lbsilva:
I don't think it has to be the same version
[Xiaomi Mi A2 Lite Guides, News, & Discussion] evil89:
Is there an updated guide for 10.0.3.0?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
Well this guide includes boot files for 10.0.3.0 so what exactly do you mean?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] evil89:
I know it has the boot image. I was wondering which of the multiple approaches I saw in the latest posts is the correct one.

Thanks.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] OPOt585:
Hi guys!

I am extremely confused.

Today I will receive a new mia2 lite 4/64. What should I do to root it and still receive OTAs?

Should I unlock the bootloader and root it as the first thing? or let it update to pie and then unlock the bootloader?

Thanks
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
I can hereby confirm that OTA updates with Magisk works smoothly from 10.0.2 to 10.0.3 using the latest Magisk version 18.1 and Magisk Manger 7.0.0.

Steps are as described as in this guide or if you don't trust this thread is up-to-date or want to have instructions with pictures use the official Magisk guide from here.

I would actually suggest that OP adds this link to his first post as the official guide will always be up to date in the unlikely case something changes in the OTA update procedure. Also the official guide has screenshots, which makes it easier to follow.

Also I do use adaway, TB backup root and a bunch of other root apps. Apparently they do not influence OTA updates. However you should still be careful as potentially any root app could alter the /system partition.

Hint for BubuXP ;)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thetupacshow:
I got Android stock V9.6.11.0 and I followed this guide: I unlocked the bootloader and I installed Magisk Manager v7.0.0, then I went to fastboot mode and boot this patch: patched_boot 9.6.11.0 (2018 November 2nd update) - patched with Magisk 17.1

Magisk is installed but everytime I reboot my phone, it says Magisk is not installed, so I can install but I can't use any modules. What can I do?

If I could have a working TWRP I would try to flash it...
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ledio456920:
I updated from december to january and now mobile radio power is off

anybody has this problem?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Tara.:
I did: url=https://xdaforums.com/showthread.php?p=78828160#post78828160

Solved it by flashing stock 10.0.2.0 which restored the SIM cards, then OTA-updated to 10.0.3.0 (I had a fresh backup of all my data so I just flashed all).
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
Thanks for your feedback. The link to the original guide was already there since the beginning, only it's in the last line of the first post, in the credits.

I updated the guide to say that the OTA update part should be working fine again with the latest Magisk. I will remove the old warning after I try it myself or I get some other feedbacks from other users.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] bla.tiga:
Id like to ask, is better install magisk with twrp or without twrp??

Is there any benefit to install magisk with twrp??

All i want just root the phone (im still in oreo)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] BubuXP:
I didn't tried TWRP extensively, but from that little experience, it seems almost useless at the moment.

I suggest following the guide in the first post, if you only need root.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] bla.tiga:
Okay, but how to do perform backup if i lm doing messy ?

Like example im flash module from magisk , can i revert back like one step before i install the module?

Or i need to flash whole rom and back to virgin anymore?

If i root without twrp??

Please enlighment?????
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
You can backup most of your stuff with Titanium Backup (even with the free version).
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gonsa:
I had to go through the same process as you. OTA didn't install.

I also had Vanced installed. Maybe that changes something in the system partition.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
Well youtube is a system app and I think they do change some system files in order to disable the default youtube app and replacing it with vanced.

It is most likely that the android update-engine will notice that.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jonybat:
I thought the whole point of magisk and its modules is that they are systemless. Also, I've been using vanced for a while, and this wasn't a problem in oreo between OTAs
[Xiaomi Mi A2 Lite Guides, News, & Discussion] p-walker:
In theory you are right. It is unclear for me how this works, apparently every module that has root rights can **** up your system however they can you use the systemless interface that Magisk offers but I guess they don't have to. All I know is that it's better for OTA update to use as few modules as possible.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] OPOt585:
I think they put the app in system so it overwrites the stock YouTube one that is nowadays always preinstalled in system.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
Any news? I'd like to proceed with latest magisk OTA update from 10.0.2.0 to 10.0.3.0 but I'm super afraid. I'm not confident what to do / don't have time to spend should a bootloop occur... :(
[Xiaomi Mi A2 Lite Guides, News, & Discussion] skabec:
Not, I'm not.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] manlio62:
I was in the same condition and I had to do the same things. I was already with Magisk Manager v7.0.0 and Magisk v18.1 :confused:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
has anyone managed to install the February update without getting a bootloop?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Jonybat:
What February update? Are you on beta channel?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] jackis31:
mi a2 lite

thanks for the guide, it worked perfectly. mi a2 lite

Now that we've run the root, do I have to keep OTA updates turned off?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] OPOt585:
It's better to turn automatic otas off, so you can uninstall magisk before updating
[Xiaomi Mi A2 Lite Guides, News, & Discussion] ledio456920:
thanks it solved my sim card but now I cant update its says installation error , I flashed a fresh room
[Xiaomi Mi A2 Lite Guides, News, & Discussion] elvinguitar:
I can confirm that OP's OTA instructions is working fine for the latest Magisk (v18.1) and Magisk Manager (v7.0.0). I just updated my phone from 9.6.11.0 to 10.0.3.0.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] biasiman:
anyone updated form 10.0.2.0 to 10.0.3.0 with latest magisk and first page OTA instruction? Many thanks in advance
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mstfoz:
10.0.4 is released. is there any problem like bootloop when update from 10.0.3 to 10.0.4 with these procedures? :confused:
[Xiaomi Mi A2 Lite Guides, News, & Discussion] gglface:
has anyone installed February ota with magisk? I'm reluctant to apply this update even at the expense of complete magisk removal as there is still chance to catch a bootloop
[Xiaomi Mi A2 Lite Guides, News, & Discussion] kierzu:
Ive just updated to 10. 0.4.0 with Magisk installed.

I used directions from OP. Everything works ok.

Before update i only uninstalled Magisk modules which modife build.prop. Reinstalled them after reboot.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] emrique_:
another a2 lite updated here. everything is ok.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Medo22:
Kindly I need patched 10.0.4 boot image to root my phone now

---------- Post added at 09:02 PM ---------- Previous post was at 08:53 PM ----------

If I pressed volume down before unlocking bootloader to not losing data, is this affects the whole process?
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
I didn't uninstalled modules but still everything worked without problems.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mstfoz:
i have restored images then i tried to install ota update but it says "couldnt update installation problem" any idea for this? also i uninstalled modules and reboot doesn't help. (10.0.3 > 10.0.4)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] thorin0815:
Maybe something has altered your system partition, I would try to reflash system.img.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] Mark7Aymn:
Having problem installing Feb update with this method

It's just saying "installation problem"

1 restored images with magisk

2 the update downloaded but couldn't install

Another question please .. Before I rooted my phone the system took about 8 GB .. Now it's 1.1 GB . and the rest is at the other apps . is that normal !?

My first XDA post Thanks in advance ♥️
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
Same to me. I just reflashed vanila boot and system.img and still the same.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] skyline91:
i can confirm that OTA update (to 10.0.4) method works after updating magisk to 18.1 and magisk manager to 7.0 :)
[Xiaomi Mi A2 Lite Guides, News, & Discussion] wenna.speedy:
I have the same problem. I just reflashed vanilla boot and system and I still get "installation problem" error.
[Xiaomi Mi A2 Lite Guides, News, & Discussion] mr_magreb:
Some problem from 10.0.3 to 10.0.4, I had to flash all the rom again... I did a backup and restore my data after the flash.

The main guide is correct, but sometime doesn't works.