From 88d1caccd4b868bf9dd5c7fcd2cb3cecf21e6472 Mon Sep 17 00:00:00 2001 From: BjornW Date: Fri, 29 Dec 2023 15:41:47 +0100 Subject: [PATCH 1/6] Add Xiaomi Redmi Note 10 Pro (sweet) M2101K6G There are more variants of this phone. This config is tested on the variant with model nr: M2101K6G --- .../assets/configs/sweet.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 openandroidinstaller/assets/configs/sweet.yaml diff --git a/openandroidinstaller/assets/configs/sweet.yaml b/openandroidinstaller/assets/configs/sweet.yaml new file mode 100644 index 00000000..e2f5e253 --- /dev/null +++ b/openandroidinstaller/assets/configs/sweet.yaml @@ -0,0 +1,57 @@ +metadata: + maintainer: BjornW + brand: xiaomi + device_name: Xiaomi Redmi Note 10 Pro + is_ab_device: false + device_code: sweet + supported_device_codes: + - sweet + - sweetin + untested: true + notes: + - You should install Android 10 or newer ROM. +requirements: + android: 13 (MiUI 14.0.x) +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 + From 7ef8785ab782ae575dde767f8cfa2a4b8b5f4a7a Mon Sep 17 00:00:00 2001 From: BjornW Date: Fri, 29 Dec 2023 15:48:56 +0100 Subject: [PATCH 2/6] Xiaomi Redmi Note 10 Pro added to table of devices --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3f07fc9d..d78e1e73 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,7 @@ Xiaomi | Mi 9T / Redmi K20 | [davinci](https://wiki.lineageos.org/devices/davinc Xiaomi | Redmi K20 Pro / Mi 9T Pro | raphael / raphaelin | | 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 | 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 From 18563ecb13c9106da795d8ae443daa0070e53f4f Mon Sep 17 00:00:00 2001 From: BjornW Date: Fri, 29 Dec 2023 15:52:57 +0100 Subject: [PATCH 3/6] Tested Xiaomi Redmi Note 10 Pro modelnr: M2101K6G I'm able to flash my Xiaomi Redmi Note 10 Pro M2101K6G with this config. As far as I can tell the phone works as intended. --- openandroidinstaller/assets/configs/sweet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openandroidinstaller/assets/configs/sweet.yaml b/openandroidinstaller/assets/configs/sweet.yaml index e2f5e253..f07d0ced 100644 --- a/openandroidinstaller/assets/configs/sweet.yaml +++ b/openandroidinstaller/assets/configs/sweet.yaml @@ -7,7 +7,7 @@ metadata: supported_device_codes: - sweet - sweetin - untested: true + untested: false notes: - You should install Android 10 or newer ROM. requirements: From 601fddea7440aa594acbdaae323e6d8a62b44fc6 Mon Sep 17 00:00:00 2001 From: BjornW Date: Thu, 18 Jan 2024 21:05:28 +0100 Subject: [PATCH 4/6] Update openandroidinstaller/assets/configs/sweet.yaml Change line order upon request Co-authored-by: MagicLike --- openandroidinstaller/assets/configs/sweet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openandroidinstaller/assets/configs/sweet.yaml b/openandroidinstaller/assets/configs/sweet.yaml index f07d0ced..029f354a 100644 --- a/openandroidinstaller/assets/configs/sweet.yaml +++ b/openandroidinstaller/assets/configs/sweet.yaml @@ -1,7 +1,7 @@ metadata: maintainer: BjornW - brand: xiaomi device_name: Xiaomi Redmi Note 10 Pro + brand: xiaomi is_ab_device: false device_code: sweet supported_device_codes: From 8a6e2c8eceaf9137f643157b038abfbbb077a6c7 Mon Sep 17 00:00:00 2001 From: BjornW Date: Thu, 18 Jan 2024 21:06:28 +0100 Subject: [PATCH 5/6] Update openandroidinstaller/assets/configs/sweet.yaml untested: false is not required as this is the default. Changed upon request. Co-authored-by: MagicLike --- openandroidinstaller/assets/configs/sweet.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/openandroidinstaller/assets/configs/sweet.yaml b/openandroidinstaller/assets/configs/sweet.yaml index 029f354a..45527e45 100644 --- a/openandroidinstaller/assets/configs/sweet.yaml +++ b/openandroidinstaller/assets/configs/sweet.yaml @@ -7,7 +7,6 @@ metadata: supported_device_codes: - sweet - sweetin - untested: false notes: - You should install Android 10 or newer ROM. requirements: From 4442fdfc6859fad9f824859a0f4b3bfbf803cfdf Mon Sep 17 00:00:00 2001 From: BjornW Date: Thu, 18 Jan 2024 21:12:36 +0100 Subject: [PATCH 6/6] Upon request added twrp-link to metadata --- openandroidinstaller/assets/configs/sweet.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/openandroidinstaller/assets/configs/sweet.yaml b/openandroidinstaller/assets/configs/sweet.yaml index 45527e45..cb31acd6 100644 --- a/openandroidinstaller/assets/configs/sweet.yaml +++ b/openandroidinstaller/assets/configs/sweet.yaml @@ -7,6 +7,7 @@ metadata: supported_device_codes: - sweet - sweetin + twrp-link: sweet notes: - You should install Android 10 or newer ROM. requirements: