Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Xiaomi 9 Mi Lite (pyxis) #326

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions openandroidinstaller/assets/configs/pyxis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
metadata:
maintainer: Tobias Sterbak (tsterbak)
brand: Xiaomi
device_name: Xiaomi Mi 9 Lite
is_ab_device: true
device_code: pyxis
additional_steps:
- super_empty
supported_device_codes:
- pyxis
requirements:
android: 11
steps:
unlock_bootloader:
- type: confirm_button
content: >
As a first step, you need to unlock the bootloader. A bootloader is the piece of software, that tells your phone
how to start and run an operating system (like Android). Your device should be turned on. This will reset your phone.
- type: link_button_with_confirm
content: >
- Create a Mi account on Xiaomi’s website. Beware that one account is only allowed to unlock one unique device every 30 days.

- Add a phone number to your Mi account, insert a SIM into your phone.

- Enable developer options in `Settings` > `About Phone` by repeatedly tapping MIUI Version.

- Link the device to your Mi account in `Settings` > `Additional settings` > `Developer options` > `Mi Unlock status`.

- Download the Mi Unlock app with the link bellow (Windows is required to run the app), and follow the instructions provided by the app. It may tell you that you have to wait, usually 7 days. If it does so, please wait the quoted amount of time before continuing to the next step!

- After device and Mi account are successfully verified, the bootloader should be unlocked.

- Since the device resets completely, you will need to re-enable USB debugging to continue : `Settings` > `Additional settings` > `Developer options` > `USB debugging`
link: https://en.miui.com/unlock/download_en.html
boot_recovery:
- type: call_button
content: >
Now you need to install a custom recovery system on the phone. A recovery is a small subsystem on your phone,
that manages updating, adapting and repairing of the operating system.

Once the device is fully booted, you need to reboot into the bootloader again by pressing 'Confirm and run' here. Then continue.
command: adb_reboot_bootloader
- type: call_button
content: >
Install the recovery you chosen before by pressing 'Confirm and run'. Once it's done continue.
command: fastboot_flash_recovery
- type: confirm_button
img: twrp-start.jpeg
content: >
Reboot to recovery by holding the 'Vol+' and the 'Power' button of your phone UNTIL you see the Mi logo and then release it. Now wait until you see TWRP, then continue.
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.
Once it's done continue.
1 change: 1 addition & 0 deletions openandroidinstaller/views/select_view.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains the select files view."""

# This file is part of OpenAndroidInstaller.
# OpenAndroidInstaller is free software: you can redistribute it and/or modify it under the terms of
# the GNU General Public License as published by the Free Software Foundation,
Expand Down