FAQ:LineageOS

From Leurent
Revision as of 09:04, 27 October 2018 by Marc (talk | contribs) (Add link towards https://wiki.lineageos.org/adb_fastboot_guide.html)
Jump to navigation Jump to search


Introduction

LineageOS is a Mobile OS based on Android AOSP ( Android Open Source Project) that allows you to

  1. Keep your old phone receiving updates once your Hardware Provider stops supporting your Phone
  2. Get Rid of all pre-installed Sony / Samsung / Google preinstalled app
  3. (optional) Re-Install only the bare minimum from google ( Play Store ). Then you can reinstall only what you need.


Download and Install LineageOS

The LineageOS Install Tutorial is well designed, so there is not need to add much, here are the main steps you need to perform


Verify that your phone is supported

Before starting anything, verify that your phone is supported by LineageOS, otherwise, there is no need to read this page. Check if you can find your phone in https://download.lineageos.org/


Backup : Make sure there is nothing on your phone that you want to keep

Make sure that you don't have anything on your phone that you would like to keep ( Contacts / Photo / SMS / Whatsapp / ...). Personally, I don't need to retrieve anything, everything is backup on Nextcloud using Nextcloud_Leurent !

  1. (Contacts) Make sure your contacts are stored somewhere ( In Nextcloud_Leurent or https://contacts.google.com/ )
  2.  (Photos) Make sure your photos are stored somewhere ( In Nextcloud_Leurent or https://photos.google.com/ or plug your phone to your Computer to backup Photos (DCIM folder) )
  3.  (Whatsapp) Open the app, go in the backup menu and force a backup to the Cloud ( Or in Nextcloud_Leurent )


Install LineageOS

  1. Connect to https://download.lineageos.org/ and go on the page of your phone ( ex: for Nexus 5x https://download.lineageos.org/bullhead )
  2. Download the last version of the OS ex: "lineage-15.1-20181022-nightly-bullhead-signed.zip" for me
  3.  Read the "Device info" section
  4. Follow the "Installation instructions". You will find some helper below to install adb or fastbook ot to backup your phone


Android SDK Tools

Install ADB and Fastboot

Simply read https://wiki.lineageos.org/adb_fastboot_guide.html it is well written.

Here is a list of alternatives

  • (Brew) If you have brew on your MacBook brew install android-platform-tools
  • (Debian) : Use apt install android-tools-adb fastboot


TWRP

TWRP stands for TeamWin Recovery Project, and allows you to change the bootloader on your phone to be able to change the OS and perform full backups.


Install TWRP

The install process is handled during the installation of the LineageOS. You can retrieve it from https://twrp.me/Devices/ and will need fastboot to install it


Backup your entire phone

  1.  Plug your phone on your PC
  2.  Type the command "adb reboot recovery" to reboot your phone in recovery mode to be able to perform a full backup
  3. Type the command "adb backup --twrp" to start a full backup
  4. Once it is finished, use the reboot system button
MBP-de-Marc:TWRP_BACKUP marc$ adb reboot recovery

MBP-de-Marc:TWRP_BACKUP marc$ adb backup --twrp
Now unlock your device and confirm the backup operation...

Restore your backup

  1. Open a terminal
  2. Go in the folder where you stored the backup
  3.  Use the adb restore backup.ad command
MBP-de-Marc:~ marc$ cd Archives/LineageOS/bullhead/TWRP_BACKUP/
MBP-de-Marc:TWRP_BACKUP marc$ ls
twrp_backup_bullhead_201810_full.ab
MBP-de-Marc:TWRP_BACKUP marc$ adb restore twrp_backup_bullhead_201810_full.ab