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

OpenBSD 6.7

http://www.openbsd.org/67.html
http://www.openbsd.org/ftp.html
i386 install67.iso
untrusted comment: verify with openbsd-67-base.pub
RWRmkIA877Io3lKKbY5a4ObGxBg5mkcAOWQI1/cLfE/mgoN5jMHP2IHVl5D2sdol8FRjKE2AXgD1broKFgzxDCqXOMO53AvFBgw=
SHA256 (BUILDINFO) = 2d79a9f4b9501e956b1f2f57a4f84e1be6e83f5e8de2c534255474b9d58c69cb
SHA256 (INSTALL.i386) = e7238cbd632d7a336742568f895d696cd3d70dfc2175c2204359e09f6517514f
SHA256 (base67.tgz) = 8ed6bb38f6a5d1c85be065cb082fb63cf7c5a22309c67c40fca5f808300cf21a
SHA256 (bsd) = 10c5ca62cfd73391efa1162c542d721b68b4af7fca1089bf012a92c4c9e1ee46
SHA256 (bsd.mp) = c9404a674789dccc0c4c40da988f0196c750d65a529d33bdfe21b69a897abed6
SHA256 (bsd.rd) = 24a48a6dee45bbd8fea65a51d5bdc791887c0966565870a499f29d7a1a47a8e6
SHA256 (cd67.iso) = bf95470f5b0c58fb0a136ee43e13b644caa2cb9ccabbf8f7a441b262fac8e70d
SHA256 (cdboot) = c5488a765e44fc3745d390af146a1ccd914d860717a1110eaea440fcf4ce9528
SHA256 (cdbr) = c8761947c9d4d61dd9421b723860d1249044d208af756fbdbd2040c4374755e6
SHA256 (comp67.tgz) = 39ade9b45a695e6aef179075b122d812fcb0f07184d855d618ee340beffe4e25
SHA256 (floppy67.fs) = 6e9c33030b2c9f05710577577f903b8171743253a6a523ea50580f03243a6f91
SHA256 (game67.tgz) = 636b731cbb16be6ca1e9b949beba21ce464a6c4afaffe28d5b9510ccc42b6926
SHA256 (install67.fs) = 586b45c8a361fe9f1efabbe1f359fd004c609cac27800d009121b7a041a2b865
SHA256 (install67.iso) = 437862c10c727a6af165625193a91578039fbee05734dccb780b097abf849c17
SHA256 (man67.tgz) = 8d6de5c7ff2e44ac6aea64f5f0f52e581df64dd31e8d349f1a455e35ad3b4aa8
SHA256 (miniroot67.fs) = e85245788a055f98b8e489509f8dcf32afe16e9cf6fa95b1fc0b9789e44efe0b
SHA256 (pxeboot) = 5c634e6c88ea5a5717173b6793c110406bfa5bc58b2900b9e1a844c7c979a50d
SHA256 (xbase67.tgz) = 6cb522ded360e46f028d784b0c68c1502167c8648e5e4783d748cf9869bae7c0
SHA256 (xfont67.tgz) = 2a16aa49eeef517fa7178380715dcb662ef529525440b2dd815499e0d84f6317
SHA256 (xserv67.tgz) = ef9a1c9ad76eeda9b5c885fa418b37b3d275ecdb287a1e27d875c87614d1ef76
SHA256 (xshare67.tgz) = 1537e348af1d910c161b7ae16285b9b5257f83d7dcd06f611ff96602e8617c91
amd64 install67.iso
untrusted comment: verify with openbsd-67-base.pub
RWRmkIA877Io3huWuXY8YYq4l0g4Tyac2ziMYjZrJARRp/4wzB9nyAa9oOxi3/uS6LCjr22cunkOoSsXp2m/rWHzHWxP6JK47wg=
SHA256 (BOOTIA32.EFI) = 0eb5c2c78586625df03a027822d2237195cdbc6d75b8dc033070df7263c05dbd
SHA256 (BOOTX64.EFI) = 9c1da40c81b875f89df376555a66216d30ba49a41dde228d9072610babc3b80a
SHA256 (BUILDINFO) = e99e0c3b0442ee3a4e1c79f7c48e7366799578167b6abaf005c8734e88fb8dd3
SHA256 (INSTALL.amd64) = a62d6f864a7546c05f7df3cd7655362d0b7d019079c859d59d7283e8e62f141a
SHA256 (base67.tgz) = c9ecd3313bd84a49a3bb18429088e3cc280e4f683c7e5e1058dc17e42565506b
SHA256 (bsd) = 1cd375bea75997718db3ec9a30d2fa52da7470c9a08352fbb090859f5d4c3bbd
SHA256 (bsd.mp) = 39263d9d2695d9d03eba1271037d84d416727dc368ee21ea3cb27a8cb27415b9
SHA256 (bsd.rd) = 1d9d57917520e1e4e6af958d5b9196c62a4e25e87a855ac0b1dc3b663de68359
SHA256 (cd67.iso) = b035af1a8b9624c39977ebd13ae63dbb8f59b3ed31c8425574c921ee818b5bae
SHA256 (cdboot) = e7a28d4e9124be21938f00ed29a3a7959352c9e04ada5e8e3ef8f79f030df0d3
SHA256 (cdbr) = 6a872efe75e4fa46231ba1c253e0b99b787035ca6dc9c91372e234b239f32476
SHA256 (comp67.tgz) = a2597983e0201e7f638839fe1256326359b7ac192459b89ad600421ecb3a2d00
SHA256 (floppy67.fs) = ca7b06790adc56e97280562900482efa6c2cd6754288ee353efd28b41a78cf70
SHA256 (game67.tgz) = 5f3a881d855e3d01e29b8df68d54d269bd6c91c97cb8857d004873aecc8cd283
SHA256 (install67.fs) = 81cb267e646eea742833cae2bca59de954ece1d170cc97a57c931645fa40acdb
SHA256 (install67.iso) = 097e0fd122fb792a070ad2836e762100d020c5c82da72fe25f3c7a1c844974f5
SHA256 (man67.tgz) = d0b39ff53d5a76f6a62571b600464de3894ce06ed4ddee9224c5852f0463cda9
SHA256 (miniroot67.fs) = cca20bb7d437c81573184bb4cd776deb4800aa5bc0b85ea280f50a908053998d
SHA256 (pxeboot) = bb7978820e5259c496f630b00dca4c81d29ab3866cfab889def80f710fb625e8
SHA256 (xbase67.tgz) = 2ef49d8a56877196dc7f2e74d4f3fa603fd75622982508d4fd95aa92f9edd9ad
SHA256 (xfont67.tgz) = 16b90447c26857ba711a5f0d46a964dc8c5010334eab930df43bbca600265817
SHA256 (xserv67.tgz) = 48fcd758ae95fc33b07bfa5876f7d3f4a1a5008b9f09837e9854892d4dc413cd
SHA256 (xshare67.tgz) = 29571dcd97e13383288a623c3db6c3d1b048f5f238030c9e5a844e767f55f79b
arm64
untrusted comment: verify with openbsd-67-base.pub
RWRmkIA877Io3q0NSnBzacnfPnzS32HDNa+Pfc5tjPvAA3qpvvmsSNQMWM/PDFqb2YSuIEg5DwpXdoMCTGciKEHx0iFRaygqhAA=
SHA256 (BOOTAA64.EFI) = 8b0d9b965e552029a214b2d495762f57fb4a54d18ff3a531e318a633b07beafa
SHA256 (BUILDINFO) = c29ab20b4a205adfa5899c4e3eba21d562cceb2bf767fd45920951bee8ffac7f
SHA256 (INSTALL.arm64) = 430861bc23ab3ba2e497d8b434fa4a3ca72ce8ef3ce2132d2e6edc955361a40c
SHA256 (base67.tgz) = f820dd03c71761472f41c59281f07381722515f6754d9a7bd80efb07684966ed
SHA256 (bsd) = 0b6215a4513addc0dd10ad8099322bf693cb6df5dd5b2c39cee1fde95ba3500e
SHA256 (bsd.mp) = 86095206b49725008220bd5fe17566d7b8744c9051421f9108d3f518dc0f0f07
SHA256 (bsd.rd) = ea4d923d57244177672d14dd547717841bd2f7174cc3660ce5c1e60a62d13b32
SHA256 (comp67.tgz) = f61e1ca2de06d9f2f2434f64ca65758290a21db293e134a6ea47035742371785
SHA256 (game67.tgz) = 4b2d04e1af0b8b067a585ba24bc960aff7f3349a053be4ce1b3b18e2cfa8bf3f
SHA256 (man67.tgz) = 65186496c92359fc3aaf59938860fc4cb4d0f1d9e044c45aa9ec841ab8d22397
SHA256 (miniroot67.fs) = 3c61a65662db5ca74e1963627405f9e1c457a76e44b59948dbad698a5952d163
SHA256 (xbase67.tgz) = 1bd9555bf507abc7d1d9e70766991a2fe0e1cf88e34e2a20a4b8af5a24460766
SHA256 (xfont67.tgz) = 426bdfc1ff235f8295ea435be09d299bb3bbec62809c0e3b0b98b7416fb7ba54
SHA256 (xserv67.tgz) = bed7dc2783404aadadcf5199d0215c7cfc65131dd2506b74ed319ecf233480b4
SHA256 (xshare67.tgz) = 1dd97f6e5417683696fe1b64c354119eb59b10702d4899daea228bc848b3007d
# Check Signature
signify pubkeys for this release:
openbsd-67-base.pub: 	RWRmkIA877Io3oCILSZoJGhAswifJbFK4r18ICoia+3c0PfwANueolNj
openbsd-67-fw.pub: 	RWSOSlsdN/fgAY1SvEyFdbTkouV2cIsUBXdJhEIhRscq8TT3bz9iOYRL
openbsd-67-pkg.pub: 	RWTR60UGd2MbnaRg+upZbbBYO00ZhHJehXy7tH2ORHvCjGcDH2pZpsxv
openbsd-67-syspatch.pub: 	RWTLqtfkjXfBADZEVkBDwSU0EAhy45nb5ovn1xHtQmD3DcqUWe+CouTL
signify -C -p /etc/signify/openbsd-67-base.pub -x SHA256.sig
signify-openbsd -Cp openbsd-67-base.pub -x SHA256.sig install67.iso