返回Upgrade OkcarOS on
gauguin
Upgrade OkcarOS on
Xiaomi Mi 10i 5G
gauguin
Basic requirements
- Read through the instructions at least once before actually following them, so as to avoid any problems due to any missed steps!
- You actually want to upgrade your device to the newest version - if you wish to downgrade to an earlier version of OkcarOS, follow your device’s instructions for installing OkcarOS the first time.
警告: Before following these instructions please ensure that the device is currently using
Android 12 firmware.
If the vendor provided multiple updates for that version, e.g. security updates, make sure you are on the latest!
If your current installation is newer or older than Android 12, please upgrade or downgrade to the required version before proceeding (guides can be found on the internet!).
If the vendor provided multiple updates for that version, e.g. security updates, make sure you are on the latest!
If your current installation is newer or older than Android 12, please upgrade or downgrade to the required version before proceeding (guides can be found on the internet!).
Manually upgrading OkcarOS
The updater app does not support upgrades from one version of OkcarOS to another, and will block installation to any update for a different version. Upgrading manually requires similar steps to installing OkcarOS for the first time.
- Verify your device is using the latest Lineage Recovery. Simply download the latest recovery file, named
recovery.img
. Follow your device’s installation guide to see how you can update your recovery image.Important: These instructions may not work if you choose to use a different recovery! - Download the OkcarOS install package that you’d like to install or build the package yourself.
- If you are currently using (or now want to use) an application package add-on such as Google Apps, you have the following options:
- keep using them: Download the appropriate version now (use the
arm64
architecture) - remove them: You can only do so by performing a factory reset, which will also remove all your data.
- start using them: You can only do so by performing a factory reset, which will also remove all your data. Download the appropriate version now (use the
arm64
architecture)
- keep using them: Download the appropriate version now (use the
- Make sure your computer has working
adb
. Setup instructions can be found here. -
Enable USB debugging on your device.
- Reboot into recovery by running
adb -d reboot recovery
, or by performing the following:- With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.
- Wipe your data partition (this is usually named “Wipe”, or “Format”)
警告: Without this step your device will not boot on the new version!
- Click
Advanced
, thenEnable ADB
. - Run
adb -d reboot sideload
.Important: The device may reboot to a blank black screen, fear not, this is a known bug on some recoveries, proceed with the instructions. - Run
adb sideload /path/to/zip
(inserting the path to your OkcarOS package).Tip: Normally, adb will reportTotal xfer: 1.00x
, but in some cases, even if the process succeeds the output will stop at 47% and reportadb: failed to read command: Success
. In some cases it will reportadb: failed to read command: No error
oradb: failed to read command: Undefined error: 0
which is also fine. - (Optionally): If you want to install any add-ons, click
Apply Update
, thenApply from ADB
, thenadb -d sideload /path/to/zip
those packages in sequence.注意: If you previously had any Google Apps add-on package installed on your device, you must install an updated package before the first boot of Android! If you did not have Google Apps installed, you must wipe the Data partition (or perform a factory reset) to install them.注意: Add-ons aren’t signed with OkcarOS’s official key, and therefore when they are sideloaded, Lineage Recovery will present a screen that saysSignature verification failed
, this is expected, please clickContinue
. - Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.
Get assistance
After you’ve double checked that you followed the steps precisely, didn’t skip any and still have questions or got stuck, feel free to ask on our subreddit or in #OkcarOS on Libera.Chat.