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

Release v0.5.4-beta #488

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ After starting the app you will be prompted to plug your device into your comput

## Officially supported devices

Currently, the **we support 86 devices** by various vendors and working on adding more soon!
Currently, the **we support 88 devices** by various vendors and working on adding more soon!

Support for these devices is provided as best effort, but things might still go wrong.
Help to improve the tool by reporting any issues you might face.
Expand Down Expand Up @@ -216,15 +216,17 @@ Xiaomi | Redmi 7A / 8 / 8A / 8A Dual | [Mi439](https://wiki.lineageos.org/device
Xiaomi | Redmi 9A / 9C / 9AT / 9i / 9A Sport / 10A / 10A Sport | garden / dandelion / blossom / angelican | | tested
Xiaomi | Redmi 9 / Poco M2 | [lancelot](https://wiki.lineageos.org/devices/lancelot) / galahad / shivan | | untested
Xiaomi | Redmi Note 7 | [lavender](https://wiki.lineageos.org/devices/lavender) | | tested
Xiaomi | Redmi Note 7 Pro | [violet](https://wiki.lineageos.org/devices/violet) | | tested
Xiaomi | Redmi Note 8 / 8T | [ginkgo](https://wiki.lineageos.org/devices/ginkgo) / willow | | untested
Xiaomi | Redmi Note 8 Pro | begonia | | untested
Xiaomi | Redmi Note 9S / 9 Pro / 9 Pro Max / 10 Lite / Poco M2 pro | [miatoll](https://wiki.lineageos.org/devices/lavender) : gram / curtana / excalibur / joyeuse | | untested
Xiaomi | Redmi Note 10S / 11SE / Poco M5S | [rosemary](https://wiki.lineageos.org/devices/rosemary) / maltose / secret /rosemary_p | | untested
Xiaomi | Redmi Note 10 Pro | [sweet](https://wiki.lineageos.org/devices/sweet) | M2101K6G | tested
Xiaomi | Mi A2 / Mi 6X | jasmine_sprout | | untested
Xiaomi | Mi 8 | [dipper](https://wiki.lineageos.org/devices/dipper) | | untested
Xiaomi | Mi 9T / Redmi K20 | [davinci](https://wiki.lineageos.org/devices/davinci) / davinciin | | untested
Xiaomi | Redmi K20 Pro / Mi 9T Pro | raphael / raphaelin | | untested
Xiaomi | Redmi Note 10 Pro | [sweet](https://wiki.lineageos.org/devices/sweet) | M2101K6G | tested
Xiaomi | Mi 10T / Mi 10T Pro / Redmi K20 | [apollon](https://wiki.lineageos.org/devices/apollon) / apollo | | untested
Xiaomi | Redmi K40 / Mi 11X / Poco F3 | [alioth](https://wiki.lineageos.org/devices/alioth) / aliothin | | untested
Xiaomi | Poco X3 / X3 NFC | [surya](https://wiki.lineageos.org/devices/surya) / karna | | untested
Xiaomi | Poco X3 Pro | [vayu](https://wiki.lineageos.org/devices/vayu) | | tested
Expand Down Expand Up @@ -270,7 +272,7 @@ Make sure to check if your issue or PR has already been fixed or implemented **b
## Credits

- The [Android SDK Platform Tools](https://developer.android.com/studio/releases/platform-tools) (such as adb and fastboot) are [Apache](https://android.googlesource.com/platform/system/adb/+/refs/heads/master/NOTICE)-licensed universal Android utilities
- [Heimdall](https://gitlab.com/BenjaminDobell/Heimdall) is an [MIT](https://gitlab.com/BenjaminDobell/Heimdall/-/blob/master/LICENSE)-licensed replacement for the leaked ODIN tool to flash Samsung devices.
- [Heimdall](https://github.com/Benjamin-Dobell/Heimdall) is an [MIT](https://github.com/Benjamin-Dobell/Heimdall/blob/master/LICENSE)-licensed replacement for the leaked ODIN tool to flash Samsung devices.
- [`libusb-1.0`](https://github.com/libusb/libusb) is a [LGPL-2.1](https://github.com/libusb/libusb/blob/master/COPYING)-licensed library for USB device access from Linux, macOS, Windows and others.
- [`copy-partitions-20220613-signed.zip`](https://mirrorbits.lineageos.org/tools/copy-partitions-20220613-signed.zip) The copy-partitions script was created by LineageOS developer erfanoabdi and filipepferraz and released under LGPL. (It's used when the partitions need to be copied before flashing)

Expand Down
54 changes: 54 additions & 0 deletions openandroidinstaller/assets/configs/apollo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
metadata:
maintainer: A non (anon)
brand: xiaomi
device_name: Xiaomi Mi 10T / 10T Pro / Redmi K30S Ultra
is_ab_device: false
device_code: apollon
supported_device_codes:
- apollon
- apollo
untested: true
requirements:
android: 12 (S)
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: confirm_button
content: >
Now you need to boot 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.
- type: call_button
content: >
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: call_button
img: twrp-start.jpeg
content: >
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery.
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.
Once it's done continue.
command: fastboot_reboot_recovery
1 change: 1 addition & 0 deletions openandroidinstaller/assets/configs/dreamlte.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
device_code: dreamlte
supported_device_codes:
- dreamlte
- dreamltecan
twrp-link: dreamlte
requirements:
android: 9
Expand Down
62 changes: 62 additions & 0 deletions openandroidinstaller/assets/configs/violet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
metadata:
maintainer: A non (anon)
brand: xiaomi
device_name: Xiaomi Redmi Note 7 Pro
is_ab_device: false
device_code: violet
supported_device_codes:
- violet
additional_steps:
- super_empty
notes:
- You should install Android 10 or newer ROM.
requirements:
android: 10 (Q)
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: confirm_button
content: >
Now you need to boot 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.
- type: call_button
content: >
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 additional partitions selected before by pressing 'Confirm and run'. Once it's done continue.

Note : If you have not selected additional partitions it will do nothing and is save to continue.
command: fastboot_flash_additional_partitions
- 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: call_button
img: twrp-start.jpeg
content: >
Reboot to recovery by pressing 'Confirm and run', and hold the Vol+ button of your phone UNTIL you see the recovery.
If MiUI starts, you have to start the process again, since MiUI delete the recovery you just flashed.
Once it's done continue.
command: fastboot_reboot_recovery
2 changes: 1 addition & 1 deletion openandroidinstaller/openandroidinstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
)

# VERSION number
VERSION = "0.5.3-beta"
VERSION = "0.5.4-beta"

# detect platform
PLATFORM = sys.platform
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "openandroidinstaller"
version = "0.5.3-beta"
version = "0.5.4-beta"
description = "Install lineage OS in a nice and easy way."
authors = ["Tobias Sterbak <[email protected]>"]
license = "GPLv3"
Expand Down
4 changes: 1 addition & 3 deletions scripts/download-tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ def download_adb_fastboot(platform: str):
if platform == "win32":
platform = "windows"
logger.info(f"Download adb and fastboot for {platform}...")
url = (
f"https://dl.google.com/android/repository/platform-tools-latest-{platform}.zip"
)
url = f"https://dl.google.com/android/repository/platform-tools_r35.0.1-{platform}.zip"
# Downloading the file by sending the request to the URL
response = requests.get(url, allow_redirects=True)

Expand Down