You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.3 KiB

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) with the release date as May 2012 along with lineageos for almost 10 years. This guide is for HTC One (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, m8's release date is March 2014, check if your phone is supported here, check "Show discontinued devices" if you're okay to run the outdated version.

The wiki 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

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, 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 >>>>>

Install LineageOS

  • Download a custom recovery with TWRP.me, 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 <recovery_filename>.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.