Sunday, April 09, 2023

Copy lineage OS to phone to install from there

 I was having problems installing lineage OS using the sideload method, so I decided to use the copy and install method.

The steps where:

  1.  Set the phone in recovery mode with TRW
  2. Copy the lineageOs zip to tmp with the command  adb push "lineage-14.1-20170921-nightly-oneplus2-signed.zip" /tmp
  3. Copy the  google apps adb push "open_gapps-arm64-7.1-nano-20170922.zip" /tmp
  4. In  TRW 
    1. Select Install
    2. Navigate to /tmp and select the file lineage-14.1-20170921-nightly-oneplus2-signed.zip
    3. Select additional zip and select  open_gapps-arm64-7.1-nano-20170922.zip
    4. Press install
  5. Reboot

On reboot I got the phone stuck because no SIM was present, the wizard kept crashing, I needed to install a SIM to pass this point.

Then I got the message "Sign in with a google account that was previously synced on this device", I logged in with the original google account, to validate the phone had not been stolen, but after that I could select a new google account to use in the phone