diff --git a/blog.json b/blog.json
index a15117c..d232ac1 100644
--- a/blog.json
+++ b/blog.json
@@ -157,7 +157,7 @@
"edited": 1693283213.70434
},
"install-lineageos-root-ur-xiomi-redmi-8-phone-using-magisk": {
- "title": "how to install lineageos and root ur xiaomi redmi 8 phone using magisk without twrp + possible bypass of 7-day unlock wait time",
+ "title": "how to install lineageos and root ur xiaomi redmi 8 phone using magisk without twrp + bypass of 7-day unlock wait time for mediatek devices",
"description": "how to insall and root ur phone ( xiomi 8 in this case ) using magisk and install lineageos too, p much it, it also has an exploit for mediatek devices to bypass the waiting time for unlocking, just a couple of commands and its unlocked, much better than the official method",
"content": "_( probably works with other redmis too, but ull have to change some shit with firmware and whatnot )_\n\ni recently rooted my phone and installed lineageos so making this guide i guess\n( huge credits to ducky, a person on the linux gang discord server, who has helped me a lot through all of this )\n\n**warning** thill will void ur warranty and this worked for me, i cannot guarantee anything for ur device, make sure both magisk and lineageos support ur device\n\n- lineageos supported devices : \n- magisk supported devices : theres no such list, but if lineageos supports it ur probably good, although i would recommend asking ai, looking stuff up and / or consulting others for guidance\n\nrequirements :\n\n- at least 1 computer\n- windows ( **required** for unlocking the bootloader )\n- linux ( for everything else, although can b done on windows too, just easier on linux lol and as im a linux user this has more resources on that )\n- a xiaomi redmi 8 phone which is [supported by lineageos](https://wiki.lineageos.org/devices/Mi439/) ( this guide might work with other redmis, but u will have to make changes in firmware and stuff u download )\n\n( u might want to dualboot if u have access to a singular computer )\n\n**by reading further u take full responsibility for anything that might happen to ur device and want to see the tutorial**\n\n## abstract\n\nthis tutorial walks through the process of enabling developer options on a redmi 8 device,\nunlocking the bootloader using the official mi unlock tool, then\nthrough the process of installing lineageos through recovery,\npatching the boot image using magisk and installing it so u can have a rooted lineageos system, i also\ncover the process of recovery in case of a failed installation\n\nthis guide is for redmi 8 mainly, although if ur using it as a resource for other redmis\nmake sure to change out redmi 8 specific parts like partition flashing, roms, etc\n\n## part one -- developer options\n\nfirst u will have to enable developer options before doing anything, u might\nhave to repeat this step multiple times during the process of this tutorial\n\n- to to settings\n- go to miui version\n- spam click til it says 'u are now a developer'\n\nnow :\n\n- go to settings home\n- go to additional settings\n- go to developer options\n- enable OEM unlocking\n- enable usb debugging\n\n## part two -- host machine setup\n\ni personally used linux for most of this process, but i did have to use windows on my stepfathers laptop\nfor unlocking the bootloader ( mentioned below ), stuff u will need is simple\n\n- adb\n- fastboot\n\nthese tools are usually available as `android-tools` in linux, for example\n[the arch linux android-tools package](https://archlinux.org/packages/extra/x86_64/android-tools/)\non windows u will probably also require a few usb drivers, although i dont rlly have a clue,\non my stepfathers windows 10 pc i had to install\n\n- the drivers from the mi unlock tool ( mentioned below ) by pressing 'install driver' button\n- https://www.xiaomidriversdownload.com/xiaomi-usb-drivers-official/\n\nthen had to reboot the laptop\n\nbut at this step, if ur on windows, ull have to figure out what drivers u need and how to install\n`fastboot` and `adb`, everything else should work for both linux and windows\n\n## part three -- bootloader unlocking prep\n\n### exploit for mediatek devices\n\n( edit @ 2023/09/07 )\n\nif u have a mediatek device, u can try out ,\nthis method was tested ( discovered ? ) by once again ducky ( who helped me do all of this android stuff\nin the first place ), and it works, b aware of \ntho\n\nusing this method has these advantages, top one being the most important :\n\n- **the 7-day unlock time is bypassed**\n- no need to remember ur mi acc password as ur not prompted with it\n- u can re-lock the device and keep ur warranty so they cant tell that it was ever flashed or unlocked\n\nand as per disadvantages, ill just leave this quote by ducky himself :\n\n> actually, if you're on a mediatek device, absolutely not, in fact, it's\n> objectively better AND easier than the official method\n>\n> just hold two buttons, plug the cable in, run a command, run another one\n> to reset the device, unpluig the cable, profit\n>\n> correction: two commands\n>\n> you still need to wipe data\n>\n> that's one command\n>\n> I was being extra safe and I backed up the seccfg partition\n>\n> but not needed\n\n### legit method\n\nxiaomi devices come with a locked bootloader, meaning u have to unlock them,\nin our case we will use the official [mi unlock tool which u can download here](https://en.miui.com/unlock/download_en.html)\nwhich is only available on windows, i have tried everything else, including ( but not limited to ) fucking around\nwith adb and the unofficial mi unlock tool, but nothing worked, so its best u just get\na laptop with windows or maybe a vm with usb passthrough, maybe find some better solution that works\non linux ( or ur setup ), but idk\n\nafter downloading the tool, run it and log into ur account using ur password and phone number\n( password will be required later so make sure to note it or something, make sure to not make it very\ncomplex because the password will be required to type by hand later ), if u dont have one, make sure\nto make one\n\nthen connect ur phone to ur pc using a usb connection and make sure to allow usb debugging when\nit prompts u to enable it\n\nthen open settings -> additional settings -> developer options and\npress on 'mi unlock status' and then :\n\n- make sure u have a sim card inserted ( u have to keep it inserted always for it to unlock )\n- turn off wifi and enable mobile data\n- press add account and device\n\npress agree and follow the instructions\n\nthen u will have to wait a painful long while, at least a week if not longer,\nxiaomi **_really_** hates users who want to gain control of their device, it might be anywhere\nfrom a week to months, nobody knows, but all u have to do at this stage is\n\n- not log out of the mi unlock tool ( yes u can close it, but not log out, logging out resets everything )\n- wait\n- check on it semi-weekly ( like every 1.5-2 weeks or so )\n\n### how do u know that u are legible for unlocking ?\n\nwell, just repeat the process of running the tool, connecting and whatnot\nand one day u will see that the 'unlock' button will b available\n\n## part four -- bootloader unlocking\n\nnow, as u can unlock the bootloader, dont jump straight into it, make sure :\n\n- u know ur mi account password and it isnt so complex u cant type it by hand\n- u have all ur data backed up ( this step will erase all data )\n- u dont care about the warranty ( this step will void it )\n\nthen, if ur device is ready and all set, press 'unlock', this step shouldnt take long, it should\ngo by pretty quickly and then ull b booted into a stock rom basically\n\nwhen u boot into it, u will b prompted for ur mi account password to unlock ur phone,\nenter it and thats it, after this step u will have to repeat the enabling developer options\nstep again\n\n## part five -- lineageos installation\n\n**this part might fail, if it does, just see <#:recovery>**\n\nnow, as ur phone is fully unlocked and set up for lineageos, its time to flash it, for redmi 7a, 8, 8a and 8a dual\nthe rom download page is so grab the latest build from there\nand extract it, also make sure to download `super_empty.img` from the builds page as its not included in the build zip\n\nnow, connect ur phone again with usb debugging enabled and fastboot it using this command\n( on windows ull probably have to use cmd.exe or powershell or something, not a clue ) :\n\n adb reboot bootloader\n\nextract ur build ( make sure u still have the zip of the build saved, but do extract it ), `cd` into the\ndirectory, make sure u have the `super_empty.img`, then flash the needed partitions for installation through recovery :\n\n fastboot flash dtbo dtbo.img\n fastboot flash vbmeta vbmeta.img\n fastboot wipe-super super_empty.img\n fastboot flash recovery recovery.img\n fastboot boot recovery.img\n\nif the `wipe-super` command is not found, make sure ur adb is up to date\n\nthese commands vary based on what firmware u have, always make sure to consult the lineageos wiki,\nfor example \n\nthen using volume and power keys go to factory reset -> format data / factory reset and format\neverything, this will erase _everything_\n\nafter that go back to the home menu of the recovery, press 'apply update' and select 'apply from adb', then\nuse this command to fully install lineageos :\n\n adb sideload lineage-<...>.zip\n\nthe zip is the one u downloaded from the builds page\n\nif something fails, try to flash the stock rom first, which is covered in <#:recovery>,\nafter it is all done, proceed to boot into lineageos\n\n## part six -- magisk installation ( rooting )\n\n**this part might fail, if it does, just see <#:recovery>**\n\nin the extracted lineageos zip there is a `boot.img` file, save it on ur phone using `adb push boot.img /path/on/to/phones/storage` or anything else\nu prefer and install the [latest magisk app from their releases by downloading the apk](https://github.com/topjohnwu/Magisk/releases)\nthen open the magisk app, press install, check both 'patch vbmeta in boot image' and 'recovery mode'\ncheckboxes, press next, press select 'select and patch a file' or something, select the `boot.img`\nand patch it, after its done patching, transfer it back to ur computer using preferred method, i prefer\n`adb pull /path/on/to/phones/storage/magisk_patched-<...>.img .` personally\n\nnow fastboot ur phone again, making sure its still connected, then boot the patched image :\n\n fastboot boot magisk_patched-<...>.img\n\nthis boot into rooted lineageos, when it boots, go into the magisk app, press 'install' and select 'direct install',\nwhen it asks for superuser access, allow it, then itll install\n\nafter it installs, u are now free to reboot into ur rooted lineageos system\n\n## part seven -- verifying root\n\nnow, after u boot into ur rooted system, verify it, go into magisk and see the 'superuser' tab, if its grayed out,\nur phone isnt rooted, if u can access it, then it is rooted, even then, not counting that in, in the 'install section'\nit should show that u have magisk installed and should show u the version of magisk installed\n\nif it didnt root, maybe proceed to repeat the rooting step or seek community support\n\nand if it did, ur done, enjoy ur new rooted lineageos system :)\n\n## recovery\n\nif lineageos is working, but u borked ur boot image, just fastboot and run this :\n\n fastboot flash boot boot.img\n\nwhere `boot.img` is ur original boot image ( u can get it in the lineageos build zip ), then just reboot\n\nelse, if something failed and u only have fastboot access ( meaning u havent bricked ur phone ) its easily fixable :\n\n- download default fastbot rom, for redmi 8 its ( older firmware -> fastboot ( currently 4.05 GB tgz file ) )\n- extract the tgz using `tar xvf .tgz`\n- `cd` into the directory\n- make sure ur phone is connected through usb\n- run `bash flash_all.sh`\n- boot into stock rom\n\nand well, if ur phone is in a state where it wont even boot into fastboot, i have nothing to say, best of luck\ntrying to fix it :), a person told me might b helpful in such state",
"keywords": [
@@ -189,7 +189,7 @@
"os"
],
"created": 1693091152.770053,
- "edited": 1694083435.541921
+ "edited": 1694083503.87042
},
"doml-7-2023-08-23": {
"title": "doml #7 -- 2023/08/23",