Skip to content

Instantly share code, notes, and snippets.

View 2zqa's full-sized avatar
⌨️
Clacking away

Marijn 2zqa

⌨️
Clacking away
View GitHub Profile
@2zqa
2zqa / lily58.layout.json
Created July 12, 2024 11:11
My lily58 layout
{
"name": "Lily58",
"vendorProductId": 81324845,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
[
"KC_ESC",
"KC_1",
"KC_2",
"KC_3",
.tabbrowser-tab[usercontextid] > .tab-stack > .tab-background > .tab-context-line {
display: none;
}
.tabbrowser-tab[class*="identity-color-"] .tab-background {
background: linear-gradient(var(--identity-tab-color) 2px, transparent 0);
}
.tabbrowser-tab[selected="true"][class*="identity-color-"] .tab-background {
background: linear-gradient(var(--identity-tab-color) 2px, var(--lwt-selected-tab-background-color) 0) !important;

Flashing a ROM on Mi 9T from start to end

TLDR

If you've flashed a ROM before, it's exactly the same. Unlock the device, flash TWRP, install ROM. Exceptions:

  • Make sure to securely backup EFS using the TWRP backup function and persist.img using adb shell dd if=/dev/block/bootdevice/by-name/persist of=/sdcard/persist.img while you are still in TWRP.
  • Unlocking your device requires a Mi Account. You can find instructions on how to do this in developer settings.
  • You may get stuck in recovery until you format data when you try to boot into your ROM after flashing.
  • Read the full instructions to know when to wipe

Prerequisites