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