doc:appunti:hardware:xiaomi_mi_a1
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:hardware:xiaomi_mi_a1 [2019/04/11 09:29] – [Upgrading Android maintaining root privileges] niccolo | doc:appunti:hardware:xiaomi_mi_a1 [2019/05/19 19:46] – [Install Magisk, the SuperUser Tool] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Xiaomi Mi A1 Android Phone ====== | ====== Xiaomi Mi A1 Android Phone ====== | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
^ RAM | 3.8 Gb | | ^ RAM | 3.8 Gb | | ||
Line 8: | Line 13: | ||
^ Connector | ^ Connector | ||
^ Audio jack | 3.5 mm | | ^ Audio jack | 3.5 mm | | ||
+ | ^ A/B (Seamless) System Updates | ||
===== How to Gain root Privileges ===== | ===== How to Gain root Privileges ===== | ||
Line 16: | Line 21: | ||
- Install on your PC the **adb** and **fastboot** command line tools. | - Install on your PC the **adb** and **fastboot** command line tools. | ||
+ | - **Backup**. | ||
- **Unlock** the Bootloader. | - **Unlock** the Bootloader. | ||
- | - **Backup**. | ||
- Install a **custom Recovery** program (we used [[https:// | - Install a **custom Recovery** program (we used [[https:// | ||
- Install the **su** binary and an app to manage **superuser privileges** (we used [[https:// | - Install the **su** binary and an app to manage **superuser privileges** (we used [[https:// | ||
Line 115: | Line 120: | ||
Once that TWRP is started on the phone, swipe to allow writing to the partitions, then choose **Install** and browse to the **Twrp-recoveryInstaller-3.2.1-2-oreo.zip** archive. | Once that TWRP is started on the phone, swipe to allow writing to the partitions, then choose **Install** and browse to the **Twrp-recoveryInstaller-3.2.1-2-oreo.zip** archive. | ||
- | After the installation, | + | After the installation, |
Beware of this: | Beware of this: | ||
Line 129: | Line 134: | ||
When rooting an Android device we generally need the **su** binary program (the actual Unix tool used to switch from normal user to root), plus an **app to manage superuser permissions** granted (or denied) to other applications. Historically the most known app for this purpose was **SuperSU** by Chainfire, but something changed. Chainfire [[https:// | When rooting an Android device we generally need the **su** binary program (the actual Unix tool used to switch from normal user to root), plus an **app to manage superuser permissions** granted (or denied) to other applications. Historically the most known app for this purpose was **SuperSU** by Chainfire, but something changed. Chainfire [[https:// | ||
- | The first step is to install the ZIP archive which provides the **su** binary, we already copied the **Magisk-v17.3.zip** file to the phone storag. Let's reboot into TWRP Recovery executing from the connected PC the following command: | + | The first step is to install the ZIP archive which provides the **su** binary, we already copied the **Magisk-v17.3.zip** file to the phone storage. Let's reboot into TWRP Recovery executing from the connected PC the following command: |
< | < | ||
Line 244: | Line 249: | ||
MagiskManager warns about the availability of **Magisk v18.1**, the operating system too warns about the availability of **Nov 2018 Android System Update**. Also **MagiskManager** can be upgraded to **v7.1.1** (but **don' | MagiskManager warns about the availability of **Magisk v18.1**, the operating system too warns about the availability of **Nov 2018 Android System Update**. Also **MagiskManager** can be upgraded to **v7.1.1** (but **don' | ||
+ | |||
+ | ==== Upgrade Magisk and MagiskManager ==== | ||
+ | |||
+ | - Copy the **[[https:// | ||
+ | - Reboot into TWRP recovery. I used the **adb reboot recovery** command from the PC, but you can use the **VolumeUp + Power** trick. | ||
+ | - From the TWRP menu, choose **Install** and search for the Magisk-v19.0.zip archive. | ||
+ | - I choosed not to verify the zip archive and not to reboot the phone, so I had time to read the output of the command. Everything seemed OK, so I finally **rebooted**. | ||
+ | - Once rebooted in normal system, I launched MagiskManager and let to upgrade itself. Actually it downloaded the **[[https:// | ||
FIXME Write how to complete the upgrade! | FIXME Write how to complete the upgrade! | ||
+ | |||
+ | * Backup **boot_a** and **boot_b** | ||
+ | * Allow the system to **update**. FIXME Does it complete or will fail? May be it detects that the system was rooted and it will refuse. | ||
+ | * Eventually re-install **TWRP** and **Magisk**. FIXME Does the upgrade switch from boot_b to boot_a partition? If such case, we should to reinstall TWRP and eventually Magisk. | ||
===== Web References ===== | ===== Web References ===== | ||
doc/appunti/hardware/xiaomi_mi_a1.txt · Last modified: 2020/09/23 17:06 by niccolo