# Android deg00gling with lineageos More than a hundred devices are supported by LineageOS including old ones, you don't need to buy a g00gle's Pixel phone to then degoogle it. 😲 I've been using S3 ([i9300](https://wiki.lineageos.org/devices/i9300)) with the release date as May 2012 along with lineageos for almost 10 years. This guide is for HTC One ([M8](https://wiki.lineageos.org/devices/m8)) though, but the process is _nearly_ the same for your model as well. Both devices are still one of the most popular used models according to [stats.lineageos](https://stats.lineageos.org), m8's release date is March 2014, check if your phone is supported [here](https://wiki.lineageos.org/devices), check "Show discontinued devices" if you're okay to run the outdated version. The [wiki](https://wiki.lineageos.org/devices/m8) page is more than enough but it's better to have everything in one place rather than following a lot of external links. # Pre-Requirements Enable USB Debugging: Settings -> Developer options, click "Yes" and check if USB Debugging is marked.
You might need to enable OEM unlock: Setting -> About -> System -> More -> Click on Build Number a few times. # Download the build file and its hash. Find yours on [download.lineageos.org](https://download.lineageos.org) ``` wget https://mirrorbits.lineageos.org/full/m8/20211203/lineage-17.1-20211203-nightly-m8-signed.zip sha256sum lineage-17.1-20211203-nightly-m8-signed.zip wget https://mirrorbits.lineageos.org/full/m8/20211203/lineage-17.1-20211203-nightly-m8-signed.zip?sha256 cat lineage-17.1-20211203-nightly-m8-signed.zip\?sha256 ``` # Get unlock bootloader token for HTC devices __Only for HTC devices! You might want to skip this section!__ 😰 - Go to [htcdev.com/bootloader](https://www.htcdev.com/bootloader), choose your device or select "All Other Supported Models" - Register on their website, download and `unzip fastboot-linux.zip`. - Power off the device, then press `Volume Down` + `Power`. - Get your token with `sudo chmod +x fastboot` and then `fastboot oem get_identifier_token` - Remove all `(bootloader) ` strings, with the the space after `(bootloader)`. It should look like this: ``` <<<< Identifier Token Start >>>> ... 85A67172B8004AACF1585CC87C724F17 624915F26A53E4C1C023ACA2E186B28B 2983FB1F050F19CBA419F60B14EE2FC5 C8BDD07B189D49109D33BF486A152C73 ... ... ... <<<<< Identifier Token End >>>>> ``` - Paste your token on [htcdev.com/bootloader/unlock-instructions/page-2](https://www.htcdev.com/bootloader/unlock-instructions/page-2) - You will get `Unlock_code.bin` via e-mail. - Run `fastboot flash unlocktoken Unlock_code.bin` - On your phone select "Yes", and you finally unlocked the bootloader. # Install LineageOS - Download a custom recovery with [TWRP.me](https://dl.twrp.me/m8), replace `m8` with your model, for example for me it's `dl.twrp.me/m8`. - `adb reboot bootloader`, once the device is in fastboot mode run: ```fastboot flash recovery .img``` - Power off your device, hold `Volume Down` + `Power`, select "RECOVERY". - Tap `Wipe`, then `Format Data`. - Go back to select `Advanced Wipe`, select `Cache` and `System`, then `Swipe to Wipe`. - Go back to select `Advanced`, then `ADB Sideload`. - On the host machine, run `adb sideload filename.zip.` - Once you have installed everything successfully, run `adb reboot`.