Install LineageOS on davinci (Xiaomi Mi 9t)

Source: https://wiki.lineageos.org/devices/davinci/install

Unlocking the bootloader:

  1. Create a Mi account on Xiaomi’s website.
  2. Add a phone number to your Mi account.
  3. Insert a SIM into your phone.
  4. Enable developer options in Settings > About Phone by repeatedly tapping MIUI Version.
  5. Link the device to your Mi account in Settings > Additional settings > Developer options > Mi Unlock status.
  6. Download the Mi Unlock app (Windows is required to run the app).
  7. Run the Mi Unlock app and follow the instructions provided by the app.
  8. After device and Mi account are successfully verified, the bootloader should be unlocked.
  9. Since the device resets completely, you will need to re-enable USB debugging to continue.

Installing a custom recovery using fastboot:

  1. Download a custom recovery ( https://eu.dl.twrp.me/davinci/ )

c6ffbe106db581c0d26cf65c1b3c7a2f726e23ebc8b629205afae0c6b1380fb0 twrp-3.5.0_9-0-davinci.img
64428565b5d2e365da7e012bf1f1a1cbcb31a325e3c254a339eb79fef56db5e6 twrp-3.5.0_9-0-davinci.img.asc
078362f72f87a2ed496e24014a738bdeb5f77eebdd147cf500c6cd20b345abca twrp_public.asc

  1. Connect your device to your PC via USB.
  2. On the computer, open a terminal and type: adb reboot bootloader You can also boot into fastboot mode via a key combination:
    • With the device powered off, hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release.
  3. Once the device is in fastboot mode, verify your PC finds it by typing: fastboot devices
  4. Flash recovery onto your device: fastboot flash recovery twrp-3.5.0_9-0-davinci.img
  5. Now reboot into recovery to verify the installation:
    • With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.

Installing LineageOS from recovery:

  1. Download the LineageOS installation package that you would like to install or build the package yourself.
    • Optionally, download additional application packages such as Google Apps (use the arm64 architecture).

1c6127415f8b3e47a3aca909c15f06246fe33ddb3b341b3f1e3be20f69f089e3 lineage-17.1-20201230-nightly-davinci-signed.zip
d48b1248ff990c0bdf28ef0ddca76610253ff4764f3c39630b9a2526a9b30fa0 lineage-17.1-20201230-nightly-davinci-signed.zip.sha256

  1. If you are not in recovery, reboot into recovery:
    • With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.
  2. Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
  3. Return to the main menu.
  4. Sideload the LineageOS .zip package:
    • On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.
    • On the host machine, sideload the package using: adb sideload filename.zip. Info: If the process succeeds the output will stop at 47% and report adb: failed to read command: Success.
  5. (Optionally): If you want to install any additional add-ons, repeat the sideload steps above for those packages in sequence.
  6. Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.

Install App Store

download F-Droid from https://f-droid.org/

8476d8951d764de3b732fb41d080c95b1fcdf140ccff5675364b797d272f92f2 F-Droid.apk
29202f1f85641b156be93d1022d54f42757c7ebeedce4e6e524fc43c360af9c1 F-Droid.apk.asc

LineageOS 14.1 Android 7.x Nougat auf ZUK Z2 installieren

unter Debian/Ubuntu programme installieren

apt install android-tools-adb android-tools-fastboot

unter Arch programme installieren

pacman -S android-tools

unlock bootrom:

Menü -> Settings -> About -> ZUI version so oft drücken bis man Developer ist.
Dann Menü -> Settings -> Advanced settings -> Developers Option und dort USB debugging aktivieren.

adb devices
adb reboot bootloader
fastboot -i 0x2b4c flash unlock unlock_bootloader.img
fastboot -i 0x2b4c oem unlock-go

3b74e1fd96816af21c10ad54a28433ae1f7717d4a25ecb29be828cb60c279487f7096742b4a2011a9801f4a367c6912038845a5b20c16ccdcf2719673f76c61f unlock_bootloader.img


flash recovery TWRP:

ba72edaae8bc1eb486174f72830b2736 twrp-3.2.1-0-z2_plus.img
4378a294424d69efdbc0175e8768abcde273838b twrp-3.1.1-0-z2_plus.img

gpg Fingerabdruck 9570 7D42 307C 9D41 D09B F709 1D85 97D7 891A 43DF der Signatur von TeamWin <admin@teamw.in>

gpg --verify twrp-3.1.1-0-z2_plus.img.asc

flashen

adb reboot bootloader
fastboot flash recovery twrp-3.1.1-0-z2_plus.img

flash Android lineage (Source)

Recovery starten und lineage flashen

adb reboot recovery

system, cache und dalvik wipen
wenn man das erste mal LineageOS 14.1 flashed, dann auch data wipen

35ce18e8c8b7c46948bd987169959d12 lineage-14.1-20171120_144118-UNOFFICIAL-z2_plus.zip
f61a509456e97788845c9d2563e445ad lineage-14.1-20170811-UNOFFICIAL-z2_plus.zip
d2ae22f3da9d899d5e8754431b23f25e lineage-14.1-20170722-UNOFFICIAL-z2_plus.zip
1a3e3563efe2a3427014425306e433a3 lineage-14.1-20170714-UNOFFICIAL-z2_plus.zip


F-Droid
943f2edf663737a56f15f55739bcf148 FDroid.apk
0f31429a28619e824669c3e5144fcdd4 FDroid.apk

LineageOS 14.1 Android 7.x Nougat auf HTC Sensation installieren

unter Debian/Ubuntu programme installieren

apt install android-tools-adb android-tools-fastboot

unter Arch programme installieren

pacman -S android-tools

Handy per USB an PC anschließen und den USB-Debugmodus aktivieren und folgende Kommandos in einem Terminal ausführen

adb reboot-bootloader
fastboot oem get_identifier_token

Den Identifier von dort kopieren und auf der Homepage www.htcdev.com registrieren und unter “Unlock Bootloader” einfügen.

unlock boot loader mit Hilfe der per E-Mail erhaltenen Unlock_code.bin Datei

fastboot flash unlocktoken Unlock_code.bin

Recovery flashen
724c02ddcec872aba75a2c3a93011cc2 TWRP-3.1.N0-0-pyramid.img
4b12e89a80e37d1e36fc8979f122ba4a TWRP-3.0.N1-beta-pyramid.img
a649c3b4e8d3843f306ab05a6a86b72c TWRP-3.0.N0-beta-pyramid.img
61e4ac0980b58474cd20e7b3e0e23048 TWRP-3.0.M5-0-r3-pyramid.img
6e8e2ed25f07b0bfecc861692b6f6030 TWRP-3.0.M5-0-pyramid.img

mit [Vol Down] + [Power] Button in bootloader booten
mit FASTBOOT USB modus recovery flashen

fastboot flash recovery TWRP-3.0.M5-0-r3-pyramid.img

Android Flashen (Source, Source)

mit [Vol Down] + [Power] Button in bootloader booten
Recovery starten und dann zip mit “Install” auf Handy flashen

35709d13518aabf98e271bb632ae7fae lineage-14.1-20180320-UNOFFICIAL-pyramid.zip
e7b7738a96a89c0ab868f0b0b41d3b77 lineage-14.1-20171211_183216-UNOFFICIAL-pyramid.zip
eb57b0d7ea7ef765c529ffeb6df97af1 lineage-14.1-20170909-UNOFFICIAL-pyramid.zip
b257abbce1ce92f373e2c190f1e942d6 lineage-14.1-20170709-UNOFFICIAL-pyramid.zip
793671fcfb091a922a4a1c287ea2969f lineage-14.1-20170705-UNOFFICIAL-pyramid.zip
52f01eba5cb7c5334d7e851df98f7ccd lineage-14.1-20170611-UNOFFICIAL-pyramid.zip
98e9602f24b9987c5c3eedeadcb3e792 lineage-14.1-20170518-UNOFFICIAL-pyramid.zip
3dc02d6ad227637b1f3cc7a16eeb278c lineage-14.1-20170422-UNOFFICIAL-pyramid.zip
a91ea15b4c59cefd788938477b7ac054 lineage-14.1-20170329-UNOFFICIAL-pyramid.zip
786ec16df437c94b51d88c95dc80dfcb lineage-14.1-20170128-UNOFFICIAL-pyramid.zip
8ff761f1f3783b705a4a1845208844a7 lineage-14.1-20170119-UNOFFICIAL-pyramid.zip
684acce623e660ee79a059b84df32822 cm-14.1-20161225-UNOFFICIAL-pyramid.zip
d41d8cd98f00b204e9800998ecf8427e cm-14.1-20161130-UNOFFICIAL-pyramid.zip
5570bc3c4b42937c4bcc66260a5c0bb1 cm-14.1-20161111-UNOFFICIAL-pyramid.zip

wenn es nicht bootet boot.img aus zip flashen:

fastboot flash boot boot.img

GAPPS installieren
76d3cc43a8d9385b772d0180261d4022 open_gapps-arm-7.1-pico-20161111.zip

F-Droid
943f2edf663737a56f15f55739bcf148 FDroid.apk

FDroid.apk.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQGcBAABAgAGBQJY6HO1AAoJEHoCnlTdXc56flIL/2Hg5oOjnofp98p7Xr2ZPf//
vAIxfZFiw68ZmYOgsfsNsCffhilof2+YXmpyz51dlo/qx6dmx8xBRrN4Uch9BqhK
WSFiYXlpt8sPfkNgquSmqocy2qplHcVE/5XcJ5NREr0yxnoFptCfoqPnBtIHZSYO
jI8Wy9pIr+PUcH6hnMun69YU3Gjt1kQkNU3/QPWt1B7Hy2ziXJNn/Po9qOGRsyHb
+EgwrUa+l7PLS6tWSMcSS+oVV425/VS1Qqo7BCUpf2a6Z1k2jQlDqNn6XUGYYqfm
cL+2EGpKOUIGFiWwS3ldZa3idD/3Ly2aLdQu5uQ1d0pKr1jhf9TGLc563pEGwHS7
wJ94qslvKHMGEzLTP0V1LEB40EYlRp6E+pD8r2g2ENp3U8+n2I8sw5j2Q9flWKoW
iHhFvdM1tsWe5rdX9C2pEH1C5vmGxja0MoPp9tUOaOpc6LSmDcvEwr5ALwBRUkc3
dd71yPdY4PIu5pE0Llp0kQzpv2mRdDiWfBQUe/lWpA==
=SpKq
-----END PGP SIGNATURE-----

remove crypto from /data

make_ext4fs /dev/block/mmcblk0p23

Cyanogenmod 13 Android 6.0 auf HTC Sensation installieren

unter Debian/Ubuntu programme installieren

apt install android-tools-adb android-tools-fastboot

Handy per USB an PC anschließen und den USB-Debugmodus aktivieren und folgende Kommandos in einem Terminal ausführen

adb reboot-bootloader
fastboot oem get_identifier_token

Den Identifier von dort kopieren und auf der Homepage www.htcdev.com registrieren und unter “Unlock Bootloader” einfügen.

unlock boot loader mit Hilfe der per E-Mail erhaltenen Unlock_code.bin Datei

fastboot flash unlocktoken Unlock_code.bin

Recovery flashen
6e8e2ed25f07b0bfecc861692b6f6030 TWRP-3.0.M5-0-pyramid.img
42e01d0a7c26d42981329db2c87db664 TWRP-3.0.M4-0-pyramid.img
e58d538c611172c675959af7abf33919 TWRP-3.0.M2-0-pyramid.img

mit [Vol Down] + [Power] Button in bootloader booten
mit FASTBOOT USB modus recovery flashen

fastboot flash recovery  TWRP-3.0.M5-0-pyramid.img

Android Flashen (Source, Source)

mit [Vol Down] + [Power] Button in bootloader booten
Recovery starten und dann zip mit “Install” auf Handy flashen
737c17df76fb70de1d89b350bacf8092 cm-13.0-20161203-UNOFFICIAL-pyramid.zip
0c047d5e63303efe1a51cdc691f7cd8c cm-13.0-20161024-UNOFFICIAL-pyramid.zip
34ab10eec64cdd7d6fba34702469d1be cm-13.0-20160916-UNOFFICIAL-pyramid.zip
2847757f4f5e52b71dc96d2f6c8a90c3 cm-13.0-20160905-UNOFFICIAL-pyramid.zip
ab6e83f96b38f56230d1677d43a9334a cm-13.0-20160830-UNOFFICIAL-pyramid.zip
a7d4a68b56d88a9d525bc78e3952378c cm-13.0-20160823-UNOFFICIAL-pyramid.zip
7a09910f7518358208272a8c406aec50 cm-13.0-20160816-UNOFFICIAL-pyramid.zip
560f2919bff5ba855588d03df6e140be cm-13.0-20160717-UNOFFICIAL-pyramid.zip
22d80e048de1b4091ec314a0eb2dbbcc cm-13.0-20160702-UNOFFICIAL-pyramid.zip
fd40a3b48c7405e70c66c776ba617f52 cm-13.0-20160609-UNOFFICIAL-pyramid.zip

GAPPS installieren
16ae892b5e4135e70291a9d65e418e8e open_gapps-arm-6.0-nano-20160509.zip

F-Droid
e8016a5ff306a5c21c36d3924d463b2c FDroid.apk


remove crypto from /data

make_ext4fs /dev/block/mmcblk0p23

Open GApps Project

http://opengapps.org/

Android 5.1 ARM GApps 20151025

aroma

3b189119776b81d2f7dad73d43c4d4e2  open_gapps-arm-5.1-aroma-20151025.zip

super

64d4e589f5b5f6670a17b0e1e1a39ab3  open_gapps-arm-5.1-super-20151025.zip

stock

41e24f7438ab4bed93b738666c43baeb  open_gapps-arm-5.1-stock-20151025.zip

full

a366c692a2547ec915d32f34e712f1cd  open_gapps-arm-5.1-full-20151025.zip

mini

4e449ade2f89108d49095491e28fab3b  open_gapps-arm-5.1-mini-20151025.zip

micro

8f1ff5bec6dacda39a87655fd9a4b5e0  open_gapps-arm-5.1-micro-20151025.zip

nano

393ac49b6f10eae5f7a82324400b1772  open_gapps-arm-5.1-nano-20151025.zip

pico

94c6690567e569a6dbc93fd7d4509150  open_gapps-arm-5.1-pico-20151025.zip