This has been a bit more involved than I was expecting:
Vol up + power for recovery
adb reboot bootloader
fastboot flash recovery twrp-3.2.3-2-beryllium.img
fastboot boot twrp-3.2.3-2-beryllium.img
Wipe --> Advanced: Dalvik, Cache, System, data, Internal
adb reboot recovery # [need this for next step to work]
Wipe --> Format Data: yes # Sometimes I need to reboot and do this twice. No idea why.
adb sideload DisableForceEncryption_Treble_v18.0.zip # Do I need this every time? Not risking not doing it.
adb reboot recovery # You never know!
adb sideload magisk Magisk-v19.0.zip
adb sideload lineage-16.0-20200105-nightly-beryllium-signed.zip
adb sideload beryllium-9.6.27-9.0-vendor-firmware.zip
adb sideload open_gapps-arm64-9.0-nano-20200103.zip # Optional, but you must do it before first boot.
adb reboot system
Older notes, probably not useful now
wipe --> advanced --> /data --> format data [ (system, data, cache) Wipe the data partition (or do a factory reset), Cache partition, Dalvik Cache or ART cache and Format the System partition. ]
adb reboot recovery
mount --> cache, system, vendor, data
advanced --> adb sideload
adb sideload DFE [ DisableForceEncryption_Treble_v18.0.zip ]
adb reboot recovery
Magisk (hides state of bootloader - might say locked)
adb sideload magisk [ Magisk-v18.0.zip ]
adb sideload vendor-firmware [ beryllium-9.1.24-9.0-vendor-firmware.zip from https://mirror.akhilnarang.me/MIUI/beryllium/ ]
adb sideload DFE <-- forgot this!
adb sideload los [ lineage-16.0-20190121-UNOFFICIAL-beryllium.zip ]
GApps if wanted [ Open GApps ]
NEED TO re-flash DFE every time I flash a ROM or /vendor (actually just vendor but ROMs sometimes write to /vendor themselves, so it's safer) or I risk getting stuck in a bootloop or losing data.
- [2G] GSM 900
- [2G] GSM 1800
- [3G] UMTS band 1/8
- [4G] LTE band 1/3/7/8/20/38/40
In the UK, I believe these are the bands that are used:
- O2 (GSM, WCDMA)
- EE (GSM, WCDMA, LTE)
- Vodafone (GSM, WCDMA)
- 3 (GSM, WCDMA, LTE band 3 only)https://github.com/XEonAX/ANXCamera10/releases
https://github.com/XEonAX/ANXCamera10/releases - port of MIUI 10 camera
[FIX] How to solve "unable to mount data" error
recently many are facing the problem to suddenly receive the above error and aren't able to solve it by formatting data (well, it cannot be mounted).
Here are the steps that I suggest in case you find yourself in that situation (obviously all data including internal storage content will be gone afterwards, so make external backups of important stuff if you can before continuing)
- (re-)flash lastest twrp (currently 126.96.36.199) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff