From 2f1b0cd5ea84793da47bfe09ff1130c2d4ada758 Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Sun, 15 Dec 2024 15:46:41 +0200 Subject: [PATCH] update @ Sun Dec 15 15:46:41 EET 2024 Signed-off-by: Ari Archer --- blog.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog.json b/blog.json index 2b5c55f..943451d 100644 --- a/blog.json +++ b/blog.json @@ -137,7 +137,7 @@ "install-lineageos-181-xiaomi-redmi-go-tiare": { "title": "How to install LineageOS 18.1 on Xiaomi Redmi GO (Tiare)", "description": "In this blog post, I walk you through a process of installing LineageOS 18.1 with Magisk on Redmi GO (Tiare). I cover various things like recovery, installing, and rooting LineageOS, and later I teach you how to get more swap space for better performance.", - "content": "Hi!\n\nRecently my phone broke, and during the time when I had no phone I felt a lot better without a phone.\nWell, due to how I felt nice without a phone, I decided to go with a pretty dumb phone, and I stumbled\nupon Xiaomi Redmi GO (Codename: Tiare).\n\nSo, I decided to install a custom ROM on it since the default one sucks a lot.\n\nIn this blog post we will cover the following topics:\n\n1. Unlocking the bootloader\n2. Prerequisites\n3. Installing PixelExperience recovery for Tiare\n4. Installing an unofficial build of LineageOS 18.1 for Tiare\n5. Rooting the phone using Magisk\n6. Installing a Magisk Swap mod for LineageOS\n7. Recommendations\n\nThat aside, let's begin!\n\n## Legal disclaimer\n\nBy following this guide, you accept that any work you do based on provided guidance is done so entirely at your own risk. I am not responsible for any damages, data loss, corruption, or malfunctions (including \"bricking\") that may occur while working in low-level with your device. It is your full responsibility to understand what commands you are running and installing on your device. Please try to have appropriate backups and precautions before undertaking the process.\n\nIf you find yourself in a terrible situation, you can always flash the default ROM again: (just run `flash_all.sh` or `flash_all.bat` when your phone is in Fastboot mode and connected to your computer)\n\n## Prerequisites\n\nBefore doing anything you have to have the following;\n\n1. Install ADB and Fastboot utilities on your device. This depends on your operating system, here's guides for the most popular OSes:\n - Linux: (just use your package manager)\n - Windows: \n - MacOS: \n2. Enable USB debugging and OEM unlocking:\n 1. Go into your settings app.\n 2. Go to \"About phone\".\n 3. Click on \"Build number\" multiple times until you see that developer tools were enabled. About 5-7 times.\n 4. Go back to the main settings menu.\n 5. Go to \"System\".\n 6. Click \"Developer options\".\n 7. Find \"USB Debugging\" and enable it.\n 7. Find \"OEM Unlocking\" and enable it.\n3. Download required files:\n 1. PixelExperience recovery: (Archived at )\n - SHA256: `ee255c807284dd0a81da283451c10732010ea6065fed350f1ba716a8f3ff3c47` as of 2024-12-14\n 2. LineageOS ROM: (I have it personally archived it also, ask me if you need it, contacts visible on )\n - SHA256: `9282efe0141a8bde67f6d61b5c8df0791ec38b2677da0b97360a17ca0264a5d1` as of 2024-12-14\n 3. Magisk APK: Download the latest from \n4. Connect your phone to a data-capable MicroUSB cable to your computer.\n5. Charge your phone to at least 50%.\n\n## Unlocking the bootloader\n\nTo unlock the bootloader you should do the following:\n\n1. Understand that unlocking the bootloader will erase all your data.\n2. Ensure a MicroUSB connection between your phone and your computer.\n3. Fastboot your phone. This is done by holding the power and volume down buttons at the same time. After it reboots, it will boot into a fastboot menu.\n4. Run command: `fastboot oem unlock-go`. This will unlock the bootloader.\n5. Wait like 30 seconds. If it does not reboot on its own run `fastboot reboot`.\n6. After your phone boots into the logo screen, it should say \"Unlocked\" at the bottom of your screen :)\n5. Your phone should now be booted into a fresh system. Quickly set it up.\n6. Enable USB debugging as described above.\n\n## Installing PixelExperience recovery for Tiare\n\nNow, we will install the PixelExperience recovery so we could later install the LineageOS ROM. Do the following steps:\n\n1. Fastboot your phone.\n2. Run `fastboot flash recovery PixelExperience-Recovery-tiare-0401.img` (or whatever your `PixelExperience-Recovery-tiare-0401.img` is named)\n3. Run `fastboot boot PixelExperience-Recovery-tiare-0401.img` (I've noticed that `fastboot reboot recovery` doesn't seem to work, so whatever)\n4. When you are in recovery do the following steps:\n 1. Go to \"Factory reset\" using your volume up and down keys to control the selection, and the power button as selection button.\n 2. Select \"Erase data/factory reset\". Wait for it to erase the phone.\n 3. Select \"Wipe cache\". Wait for it to wipe the cache.\n 4. Select \"Wipe system\". Wait for it to wipe the system.\n 5. Go back to the main menu.\n\nDo not exit the recovery yet. Recovery will be required in installing the ROM.\n\n## Installing an unofficial build of LineageOS 18.1 for Tiare\n\nNow, we will install the unofficial ROM for Tiare. Do the following:\n\n1. Ensure you are in recovery.\n2. In recovery, select \"Apply update\", then \"Apply update from ADB\".\n3. Once your phone is waiting for the update, go back to your computer, and run the following command: `adb sideload lineage-18.1-20211012-UNOFFICIAL-tiare.zip`, or however you named your ROM file.\n4. Once the update is applied, boot into LineageOS. Quickly set it up.\n5. After you've set up your temporary LineageOS installation, immediately perform a factory reset (go into settings, search for \"factory\", and click on \"Factory reset\").\n6. Once your phone is reset, set LineageOS up as normal.\n7. Again, enable developer options and USB Debugging as described above - the process is the same.\n\nCongrats. You are now running LineageOS!\n\nNote: Sometimes the SiM card shows up as \"Undetected\" but it works. Ignore the error if it appears :)\n\n## Rooting the phone using Magisk\n\nNow, we will root our phone. This will be useful because Tiare only has 1GB of RAM, so we have to depend on swap space, and without root,\nwe will not be able to have more swap. To root our phone do the following:\n\n1. Install the Magisk app on your phone.\n2. Unzip `lineage-18.1-20211012-UNOFFICIAL-tiare.zip`.\n3. Find `boot.img` and put it onto your phone, for example, `adb push boot.img /storage/emulated/0/` or whatever storage you have or want.\n4. Open the Magisk app on your phone.\n5. Click \"Install Magisk\" (Not the Magisk app).\n6. Select \"Patch file\", and find the aforementioned `boot.img` on your phone.\n7. After Magisk patches the boot.img, the path should be visible on your screen. Use `adb pull /storage/...` to get the `magisk_*.img` file on your computer.\n8. Fastboot your phone.\n9. When your computer is in fastboot, run `fastboot flash boot magisk_*.img` or whatever you name your Magisk-patched boot.img.\n10. Reboot: `fastboot reboot`\n\nNow you have rooted, although, you should also take extra steps:\n\n1. After you reboot into your rooted install, open the Magisk app, and it will ask for extra setup. Allow it to do the extra setup, and it will reboot automatically. Ensure that the phone does not poweroff during the setup.\n2. After you reboot into your now fully set up rooted system, open the Magisk app again, and click \"Install\" (not the app again, but root stuff)\n3. Select \"Direct install\".\n4. Allow it to install internally, and then when it is done, click the \"reboot\" button in the Magisk app.\n5. After your phone boots, you are successfully rooted and set up!\n\n## Installing a Magisk Swap mod for LineageOS\n\nSince Tiare only has 1GB of ram, we probably want more swap. Do the following steps to install swap:\n\n1. Get the source code of onto your computer. (archived at )\n2. Since we don't have a lot of storage to spare, we will only give ourselves 1 extra GB of swap. But this is not a preset, so we have to create our own. Open `config/1024_50_auto.sh` in your favourite code editor.\n3. Make the content of `1024_50_auto.sh` this:\n\n```\n# SWAP FILE SIZE [2 - 999999]MB\nSWAP_BIN_SIZE=1024\n# SWAPPINESS [0 - 100]\nSWAPPINESS=50\n# SWAP PRIORITY [-999999 - 999999]\n# 0 Will make it auto\nSWAP_FILE_PRIOR=0\n# VERSION THIS VAIBLE SHOULD COME FROM build script\n# SWAP_MOD_VERSION=\"v2.0-a\"\n```\n\n4. Run `build.sh` to build the modules.\n5. After it builds, in the `release` directory you will have a file named `1024_50_auto.zip`. Put that file on your phone (for instance, using `adb push release/1024_50_auto.zip /storage/...`)\n6. Open Magisk on your phone.\n7. Go into \"Modules\" and then \"Install from storage\".\n8. Select the aforementioned zip file (Magisk module) and install it. Wait it to install.\n9. After it installs, reboot. (this step may take a while)\n\nYou are now done setting up your phone!\n\n## Recommendations\n\nWhen using such a phone, I recommend you get an SD card and set it up as extra storage (not \"Portable storage\") in LineageOS.\nThis will be very useful since after all of the stuff you will only have like 4GB of storage left (out of 8GB).\n\nFurthermore, if you are using an app store, I would suggest FDroid :)\n\nAnyway, til next time! Enjoy your DIY smartphone upgrade :)", + "content": "Hi!\n\nRecently my phone broke, and during the time when I had no phone I felt a lot better without a phone.\nWell, due to how I felt nice without a phone, I decided to go with a pretty dumb phone, and I stumbled\nupon Xiaomi Redmi GO (Codename: Tiare).\n\nSo, I decided to install a custom ROM on it since the default one sucks a lot.\n\nIn this blog post we will cover the following topics:\n\n1. Unlocking the bootloader\n2. Prerequisites\n3. Installing PixelExperience recovery for Tiare\n4. Installing an unofficial build of LineageOS 18.1 for Tiare\n5. Rooting the phone using Magisk\n6. Installing a Magisk Swap mod for LineageOS\n7. Recommendations\n\nThat aside, let's begin!\n\n## Legal disclaimer\n\nBy following this guide, you accept that any work you do based on provided guidance is done so entirely at your own risk. I am not responsible for any damages, data loss, corruption, or malfunctions (including \"bricking\") that may occur while working in low-level with your device. It is your full responsibility to understand what commands you are running and installing on your device. Please try to have appropriate backups and precautions before undertaking the process.\n\nIf you find yourself in a terrible situation, you can always flash the default ROM again: (just run `flash_all.sh` or `flash_all.bat` when your phone is in Fastboot mode and connected to your computer)\n\n## Prerequisites\n\nBefore doing anything you have to have the following;\n\n1. Install ADB and Fastboot utilities on your device. This depends on your operating system, here's guides for the most popular OSes:\n - Linux: (just use your package manager)\n - Windows: \n - MacOS: \n2. Enable USB debugging and OEM unlocking:\n 1. Go into your settings app.\n 2. Go to \"About phone\".\n 3. Click on \"Build number\" multiple times until you see that developer tools were enabled. About 5-7 times.\n 4. Go back to the main settings menu.\n 5. Go to \"System\".\n 6. Click \"Developer options\".\n 7. Find \"USB Debugging\" and enable it.\n 7. Find \"OEM Unlocking\" and enable it.\n3. Download required files:\n 1. PixelExperience recovery: (Archived at )\n - SHA256: `ee255c807284dd0a81da283451c10732010ea6065fed350f1ba716a8f3ff3c47` as of 2024-12-14\n 2. LineageOS ROM: (I have it personally archived it also, ask me if you need it, contacts visible on )\n - SHA256: `9282efe0141a8bde67f6d61b5c8df0791ec38b2677da0b97360a17ca0264a5d1` as of 2024-12-14\n 3. Magisk APK: Download the latest from \n4. Connect your phone to a data-capable MicroUSB cable to your computer.\n5. Charge your phone to at least 50%.\n\n## Unlocking the bootloader\n\nTo unlock the bootloader you should do the following:\n\n1. Understand that unlocking the bootloader will erase all your data.\n2. Ensure a MicroUSB connection between your phone and your computer.\n3. Fastboot your phone. This is done by holding the power and volume down buttons at the same time. After it reboots, it will boot into a fastboot menu.\n4. Run command: `fastboot oem unlock-go`. This will unlock the bootloader.\n5. Wait like 30 seconds. If it does not reboot on its own run `fastboot reboot`.\n6. After your phone boots into the logo screen, it should say \"Unlocked\" at the bottom of your screen :)\n5. Your phone should now be booted into a fresh system. Quickly set it up.\n6. Enable USB debugging as described above.\n\n## Installing PixelExperience recovery for Tiare\n\nNow, we will install the PixelExperience recovery so we could later install the LineageOS ROM. Do the following steps:\n\n1. Fastboot your phone.\n2. Run `fastboot flash recovery PixelExperience-Recovery-tiare-0401.img` (or whatever your `PixelExperience-Recovery-tiare-0401.img` is named)\n3. Run `fastboot boot PixelExperience-Recovery-tiare-0401.img` (I've noticed that `fastboot reboot recovery` doesn't seem to work, so whatever)\n4. When you are in recovery do the following steps:\n 1. Go to \"Factory reset\" using your volume up and down keys to control the selection, and the power button as selection button.\n 2. Select \"Erase data/factory reset\". Wait for it to erase the phone.\n 3. Select \"Wipe cache\". Wait for it to wipe the cache.\n 4. Select \"Wipe system\". Wait for it to wipe the system.\n 5. Go back to the main menu.\n\nDo not exit the recovery yet. Recovery will be required in installing the ROM.\n\n## Installing an unofficial build of LineageOS 18.1 for Tiare\n\nNow, we will install the unofficial ROM for Tiare. Do the following:\n\n1. Ensure you are in recovery.\n2. In recovery, select \"Apply update\", then \"Apply update from ADB\".\n3. Once your phone is waiting for the update, go back to your computer, and run the following command: `adb sideload lineage-18.1-20211012-UNOFFICIAL-tiare.zip`, or however you named your ROM file.\n4. Once the update is applied, boot into LineageOS. Quickly set it up.\n5. After you've set up your temporary LineageOS installation, immediately perform a factory reset (go into settings, search for \"factory\", and click on \"Factory reset\").\n6. Once your phone is reset, set LineageOS up as normal.\n7. Again, enable developer options and USB Debugging as described above - the process is the same.\n\nCongrats. You are now running LineageOS!\n\nNote: Sometimes the SiM card shows up as \"Undetected\" but it works. Ignore the error if it appears :)\n\n## Rooting the phone using Magisk\n\nNow, we will root our phone. This will be useful because Tiare only has 1GB of RAM, so we have to depend on swap space, and without root,\nwe will not be able to have more swap. To root our phone do the following:\n\n1. Install the Magisk app on your phone.\n2. Unzip `lineage-18.1-20211012-UNOFFICIAL-tiare.zip`.\n3. Find `boot.img` and put it onto your phone, for example, `adb push boot.img /storage/emulated/0/` or whatever storage you have or want.\n4. Open the Magisk app on your phone.\n5. Click \"Install Magisk\" (Not the Magisk app).\n6. Select \"Patch file\", and find the aforementioned `boot.img` on your phone.\n7. After Magisk patches the boot.img, the path should be visible on your screen. Use `adb pull /storage/...` to get the `magisk_*.img` file on your computer.\n8. Fastboot your phone.\n9. When your computer is in fastboot, run `fastboot flash boot magisk_*.img` or whatever you name your Magisk-patched boot.img.\n10. Reboot: `fastboot reboot`\n\nNow you have rooted, although, you should also take extra steps:\n\n1. After you reboot into your rooted install, open the Magisk app, and it will ask for extra setup. Allow it to do the extra setup, and it will reboot automatically. Ensure that the phone does not poweroff during the setup.\n2. After you reboot into your now fully set up rooted system, open the Magisk app again, and click \"Install\" (not the app again, but root stuff)\n3. Select \"Direct install\".\n4. Allow it to install internally, and then when it is done, click the \"reboot\" button in the Magisk app.\n5. After your phone boots, you are successfully rooted and set up!\n\n## Installing a Magisk Swap mod for LineageOS\n\nSince Tiare only has 1GB of ram, we probably want more swap. Do the following steps to install swap:\n\n1. Get the source code of onto your computer. (archived at )\n2. Since we don't have a lot of storage to spare, we will only give ourselves 1 extra GB of swap. But this is not a preset, so we have to create our own. Open `config/1024_50_auto.sh` in your favourite code editor.\n3. Make the content of `1024_50_auto.sh` this:\n\n```sh\n# SWAP FILE SIZE [2 - 999999]MB\nSWAP_BIN_SIZE=1024\n# SWAPPINESS [0 - 100]\nSWAPPINESS=50\n# SWAP PRIORITY [-999999 - 999999]\n# 0 Will make it auto\nSWAP_FILE_PRIOR=0\n# VERSION THIS VAIBLE SHOULD COME FROM build script\n# SWAP_MOD_VERSION=\"v2.0-a\"\n```\n\n4. Run `build.sh` to build the modules.\n5. After it builds, in the `release` directory you will have a file named `1024_50_auto.zip`. Put that file on your phone (for instance, using `adb push release/1024_50_auto.zip /storage/...`)\n6. Open Magisk on your phone.\n7. Go into \"Modules\" and then \"Install from storage\".\n8. Select the aforementioned zip file (Magisk module) and install it. Wait it to install.\n9. After it installs, reboot. (this step may take a while)\n\nYou are now done setting up your phone!\n\n## Recommendations\n\nWhen using such a phone, I recommend you get an SD card and set it up as extra storage (not \"Portable storage\") in LineageOS.\nThis will be very useful since after all of the stuff you will only have like 4GB of storage left (out of 8GB).\n\nFurthermore, if you are using an app store, I would suggest FDroid :)\n\nAnyway, til next time! Enjoy your DIY smartphone upgrade :)", "keywords": [ "mobile technology", "android rom installation",