Home  Main Website     Git     Matrix     Searx    

PwOSS - Wiki

Changes in 3e0a3b7: started CFW tutorial
content/mobile/android/devices/xiaomi/Redmi Note 8 Pro/begonia-&-begoniain.md
... ...
@@ -21,7 +21,9 @@ sudo pacman -S android-tools android-udev
21 21
22 22
# Unlock
23 23
24
-You must use a Windows 10 computer.
24
+The unlocking tutorial was performed on a Windows 10 computer.
25
+
26
+<<Note("There is also a tool for Linux & Mac available (can also be used for Windows). We haven`t tested it yet. So it's up to you.<br /><br /><a href='https://aur.archlinux.org/packages/xiaomitool-v2/' target='blank'>Arch Linux - AUR</a><br /><a href='https://github.com/francescotescari/XMT' target='blank'>GitHub</a><br /><a href='https://www.xiaomitool.com' target='blank'>xiaomitool.com</a>")>>
25 27
26 28
 
27 29
... ...
@@ -85,7 +87,7 @@ Before you go any further make sure you're running Android __9__!!! If you are o
85 87
86 88
## fastboot
87 89
88
-[Download full factory build](http://www.gsmservis.net/Redmi_Note8_Pro_www.gsmservis_net.rar) and extract the file. Or just the 2 files from [xda](https://forum.xda-developers.com/devdb/project/?id=37651#downloads).
90
+Download the files from [xda](https://forum.xda-developers.com/devdb/project/?id=37651#downloads).
89 91
90 92
 
91 93
... ...
@@ -114,7 +116,7 @@ You have 2 options to download your firmware:
114 116
1. [mi.com](https://c.mi.com//miuidownload/detail?device=1900375)
115 117
2. Your phone
116 118
117
-I suggest the number __2.__ That way it's pretty sure you'll be using your firmware for your particular phone.
119
+I suggest number __2.__ That way it's pretty sure you'll be using your firmware for your particular phone.
118 120
119 121
For that, got to:
120 122
... ...
@@ -141,11 +143,11 @@ For that, got to:
141 143
Click on your downloaded firmware and extract `vbmeta.img`.
142 144
Reboot your phone to `fastboot mode` by holding `VOL DOWN + POWER BUTTON` or run `adb reboot bootloader` in your terminal.
143 145
144
-Copy both files `vbmeta.img` and `twrp-3.3.1-0-begonia.img` in one folder and run the following commands:
146
+Copy both files `vbmeta.img` and `twrp-3.4.0-0-begonia.img` in one folder and run the following commands:
145 147
146 148
```
147 149
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
148
-fastboot flash recovery twrp-3.3.1-0-begonia.img
150
+fastboot flash recovery twrp-3.4.0-0-begonia.img
149 151
```
150 152
<<Warn("You must boot into recovery immediately after rebooting. Otherwise, MIUI recovery gets installed again.")>>
151 153
... ...
@@ -153,41 +155,43 @@ Restart your phone with `fastboot reboot` and immediately press and hold `VOL UP
153 155
154 156
 
155 157
156
-# OTA updates
158
+# Custom Firmware (CFW) & Custom ROMs
159
+First follow all the steps above if you have not already done it.
157 160
158
-## For [Brick safe mode](#brick-safe-mode)
161
159 162
160
-You need to check whether the MIUI OTA you're installing contains `Preloader` and `LK` or not. If it does, `remove it` manually. Another method could be to install the OTA and then flash the factory Preloader and LK image again via fastboot.
163
+## Download:
161 164
162
165
+### CFW
166
+- [begoniain](https://sourceforge.net/projects/begonia-oss/files/CFW/)
167
+- [begonia](https://sourceforge.net/projects/begonia-oss/files/CFW/)
163 168
164
-## For [TWRP](#twrp)
169
+### Recovery:
170
+- [TWRP](https://sourceforge.net/projects/begonia-oss/files/CFW-TWRP/)
171
+- [OrangeFox](https://orangefox.download/en/device/begonia)
165 172
166
-1. [Download firmware](##download-firmware)
167
-2. Delete the `compability.zip` archive
168
-
169
-<<Note("This archive enforces version checks and is supposed to stop the flashing process if there is a mismatch of specified firmware requirements by OEM.")>>
173
+### ROMs
174
+Just check the [XDA thread](https://forum.xda-developers.com/redmi-note-8-pro/development) for your preferred ROM. Make sure that the `[CFW]` tag is in the title of your favorite ROM.
175
+
176
170 177
171
-3. Go into the `META-INF` directory and locate `updater-script`
178
+## Flash
179
+It's more or less from the [XDA post](https://forum.xda-developers.com/showpost.php?p=82743011&postcount=3).
172 180
173
-<<Note("Which pass instructions on which partitions are supposed to be flashed. This script contains various assert which need to be removed.")>>
181
+### Boot into recovery
182
+Just flashed above [TWRP](#twrp)
174 183
175
-4. Delete lines such as:
176
-```
177
-assert(set_emmc_writable("/sys/block/mmcblk0boot1/force_ro"),
178
- package_extract_file("preloader.img", "/dev/block/mmcblk0boot1"));
179
-```
180
-and
181
-```
182
-assert(set_emmc_writable("/sys/block/mmcblk0boot0/force_ro"),
183
- package_extract_file("preloader.img", "/dev/block/mmcblk0boot0"));
184
-```
185 184
186
-5. Save the changes and now flash the build.
185
+- Wipe system, cache, dalvik
186
+- Flash [CFW](#CFW), [CFW compatible ROM](#roms)
187
+- Format data (not wipe, select "Format Data", you'll lose all userdata)
188
+- Reboot to bootloader
189
+- Flash CFW [recovery](#recovery)
190
+- Reboot! You're now on CFW!
191
+
187 192
188
-6. Do [TWRP](#twrp) again.
193
+## Going back to MIUI from CFW
194
+- Flash full MIUI firmware from SP Flash Tools or fastboot
189 195
190 196
 
191 197
192
-# Custom ROMs
193
-Looking forward ;)