[OnePlus 2 General] djibe89:
[GUIDE/TUTORIAL/HOWTO] OnePlus 2 Stock to Android 13

[GUIDE/TUTORIAL/HOWTO] OnePlus 2 (oneplus2) Stock to Android 13 / LineageOS 20

This detailed step-by-step guide helps you transform your OnePlus 2 to a powerful one with Android 13.

Make sure your phone is OnePlus 2 before going further: in Android, go to Settings > About phone > Check model number is listed below.

If not, quit this tutorial.

Supported models:

- ONE A2003 (EMEA and Asia)

- ONE A2005 ? (North America)

- ONE A2001 ? (China)

### READ THOSE WARNING COMMENTS

Read all my tutorials at: https://github.com/djibe/Android-tutorials

CHANGELOG

v1. Initial release for Android 13, Netflix and Disney+ work

1) DOWNLOAD

- djibe OnePlus2 pack: https://bit.ly/djibe-oneplus2-pack

(contains official USB Drivers + TWRP 3.5.2_9-0 recovery by @_undead + Magisk Root + Magisk modules + bitgapps.conf). Unzip files.

+ ROM Unofficial LineageOS 20: https://xdaforums.com/t/rom-t-linea...stable-unofficial-signature-spoofing.4535927/

Download latest build for your device: links form thread above

+ BiTGApps Package ARM64 13 (MINI or any other): https://github.com/BiTGApps/BiTGApps-Release/releases

+ Charge phone to 100%

OPTIONAL - ONEPLUS2 FRP LOCK

Bought the phone to a guy who forgot to remove his Google account and refused to share his credentials with me.

In this case, you are lucky if phone is running Android 6.

Tested with no SIM card in SIM slot.

Shutdown phone.

Start phone, first launch tutorial starts with the language selection but offers the capacity of an Emergency call.

Tap on Emergency call > dial *#812#

Reboot phone, FRP lock is gone.

2) INSTALL USB DRIVERS

Install USB Drivers: OnePlus_USB_Drivers_Setup.exe from my pack.

3) BACKUP DATA

Plug phone to PC in File transfer mode.

Collect all .jpg or .mp4

Use Google built-in cloud to backup apps like SMS Backup & Restore to backup texts, contacts, etc.

Backup your WhatsApp messages in Google Drive.

Everything else: podcasts, Authenticators, TODOs etc...

Then copy the backup on your PC.

Make sure you have latest official updates for your phone:

Connect to Wi-Fi and go to Settings > System updates > Check for updates.

### BACKUP NOW, you will lose everything.

4) UNLOCK BOOTLOADER

Go to Settings > About phone.

Tap 7 times on Build number to unlock Developer options.

Go to Settings > Developer options.

Switch ON "Enable OEM unlock" and "USB debugging".

Go to my djibe/flash folder.

In the address bar, type cmd and confirm with keyboard Enter key.

Enter command:

adb devices

Authorize USB debugging from phone.

Enter command again (use arrow up key to print last command):

adb devices

Command returns

List of devices attached
722cf440 unauthorized

Grant USB debugging authorization from phone.

Again:

adb devices

Command returns

List of devices attached
722cf440 device

Then enter:

adb reboot bootloader

Phone switches to dark screen in Fastboot Mode.

To check that fastboot USB drivers are OK, type:

fastboot devices

### If command doesn't print a line like: 722cf440 fastboot, you have to fix USB drivers.

Now enter command:

fastboot oem unlock

Confirm with enter and wait a moment ... till success is confirmed :

" OKAY [ 0.016s]

Finished. Total time: 0.018s".

Tap on Yes on screen to remove User data.

Keep Windows command opened and let phone reset Android.

3) FLASH TWRP 3.5 RECOVERY

Configure Android fast.

Again, activate Developer options and USB debugging and grant USB debugging authorization on phone.

Again, enter

adb reboot bootloader

and now:

fastboot flash recovery twrp-3.5.2_9-0-oneplus2.img

Wait until command returns: "Finished. Total time: 0.947s"

and

fastboot boot twrp-3.5.2_9-0-oneplus2.img

TWRP recovery is loading.

4) BACKUP PARTITIONS AND SYSTEM (Nandroid backup)

Recovery asks for Keep System Read Only ? > Swipe to Allow Modifications.

One on TWRP home menu, go to Backup.

You can now select the partitions you want to save.

I prefer to backup Boot and System partitions. In case of problem, you will have your phone in its original state.

Swipe to Backup and wait during process.

Save backup: still under TWRP recovery, connect phone to PC.

Go to Mount menu and check Data partition is checked and MTB button is on "Disable MTP" state.

From Windows explorer, access phones memory and copy-paste the TWRP folder (located in root folder, beside DCIM and Music folders) somewhere safe on your computer.

5) FORMAT PARTITIONS

### Make sure you copied TWRP backup from internal memory to somewhere safe.

Go to Home menu > Wipe > Advanced wipe,

select Dalvik / ART Cache, System, Data, Internal Storage (if you really made a backup from step 2), Cache, Storage then Swipe to Wipe.

Then Wipe > Format Data, type yes and confirm with bottom right check icon.

Back to TWRP home screen, go to Reboot > Recovery and swipe to reboot.

On next launch, check the checkbox to remember choice and swipe to allow modifications.

6) FLASH ROM, (MAGISK ROOT) AND GAPPS

Back to TWRP main menu, go to Mount menu again to connect phone to PC again.

Connect phone to PC and use Windows explorer to copy files on phone's internal memory.

Copy files of ROM + GApps + Magisk zip and apk on phone.

### If you need Android Wizard to migrate a phone or import Apps, copy bitgapps.conf.

Go back to TWRP Home menu. Then tap on Install > choose lineage*.zip

then Swipe to confirm Flash.

Wait for operation to end.

Again, go to Reboot > Recovery.

After restart, go back to Install and select bitgapps*.zip

Optional for root: Add More zips > Magisk*.zip

then Swipe to confirm Flash.

Then tap Wipe cache/dalvik, swipe to confirm,

and Reboot System.

Wait for the phone to boot during 3 minutes.

7) ROOT ACCESS (OPTIONAL)

### Needed to work with Netflix or Disney+

Do not connect to your Google account now.

Configure Android as you like.

### If you copied bitgapps.conf, Android starts with SetupWizard.

Go to Files app > Magisk*.apk and install.

Launch Magisk. You need to install extra files and phone reboots.

Unlock Developer options: go to Settings > About.

At the bottom, tap 7 times on Build number.

Go to Settings > System > Advanced > Developer options > Disable Android debugging (ADB).

Back to Magisk, go to Settings > Hide the Magisk app, give it a name and switch Zygisk option ON.

Go to Modules Tab > Install from Storage: install MagiskHidePropsConfig and safetynet (located in my archive).

Reboot phone.

For Netflix, I used this apk: https://www.apk4fun.com/apk/5701/

8) TWEAKS

- Improve reactivity

Go to About phone and tap 7 times on Build number.

Go to System > Developer options, set Window, Transition and Animator duration scale to .5x.

- Set default apps: Settings > Apps & notifications > Default apps.

- Calibrate battery: https://www.ifixit.com/Wiki/Battery_Calibration

- Set dark Mode to improve battery by 30%

Settings > Display > Dark theme.

- Screen sensitivity is too low ?

Try to recalibrate screen sensitivity with https://play.google.com/store/apps/details?id=touchcalibration.favoritappindia&hl=en&gl=US

Enjoy,

djibe

Thanks: _undead, LineageOS team, TWRP team, TopJohnWu