Introductions

Since small phones (<5 inch screens) seem to be VERY rare these days, I set out to revive my venerable Sony Xperia XZ2 Compact. A legend of a phone. After some fuffing about about, I got Lineage OS version 22.2 (Android 15) onto it and it’s been working flawlessly as my daily driver for over half a year now. After that success, I tried my hand a flashing a old Samsung Tab S2 (SM-T713) in the hopes of reviving it and using it as a reader and makeshift “Stream Deck”. It was NOT as easy as I hoped. After around two months of trial and error (and a XDA thread followed by a hiatus), I finally got it working. This is how that was achieved.

The Tools Required

Main Tools

Optional

  • Bifrost (Cross Platform) Samsung Firmware downloader tool. The stock firmware downloaded through Bifrost saved my device after I had borked the flashing and had to overwrite everything with the stock firmware.

Extra Tools (For Reference)

Firmwares

What I run

Extra ROMs

The Procedure

  1. Begin by enabling the Developer Settings Menu. Do this by going into Settings → About Phone → and tap on the Build Number until a popup appears saying “Congratulations, your now a Developer!”

  2. Next, unlock your bootloader. Go into Settings → Developer Settings and find the entry OEM Unlock and enable it.

  3. Now reboot to the bootloader (also called “Download Mode”). I like to do this using the terminal on my computer. The command for this (requires ADB to be installed!) is:

    adb reboot bootloader
    

Or you can shut down your device and the press the keys VOLUME UP + HOME + POWER until a blue text appears on screen saying something like “Loading Recovery”.

  1. A bright blue screen should appear with some text in the top lefthand corner. If it did, proceed.

  2. In Odin, add the TWRP.tar in the AP field. Then flash it.

  3. If the flash was successful the device should’ve booted into Android again. If it did, shutdown the device.

  4. Now hold down VOLUME UP + HOME + POWER until you see the blue text in the upper lefthand corner (“Loading Recovery”).

  5. Once you’re in TWRP, change these settings:

    • Settings →
      • Disable Zip signature verification
      • Enable Use rm -fr instead of formatting

        Formatting Fails without rm -fr I believe the rm -fr setting was the thing that had me struggling for so long. Without it enabled, TWRP will fail when it tries to wipe the partitions. But it will work when it's enabled. Both e/OS and Lineage boot looped when I tried to sideload them without enabling this setting.)

  6. Next, go into Wipe → Advanced Wipe and select these partitions:

    • Dalvik / Art Cache
    • Cache
    • System
    • Data

THIS WILL DESTROY YOUR DATA ON THE DEVICE! TAKE A BACKUP BEFOREHAND!

  1. After the wipe is complete, go to Advanced and select ADB Sideload. This will prepare the tablet for the payload we’re gonna send it’s way in a moment.

  2. Using a terminal on the computer, send the payload using:

adb -d sideload {package-name.zip}

12 If you want Google Apps on the device (like the Playstore and alike) you’ll need to sideload MindTheGApps or another GApps package that you prefer. Do the same as step 10 but sideload the GApps package of you choosing.

  1. That’s it! You should now be able to boot into LineageOS by selecting Reboot → System. The first boot took me over a minute so have patience. When the Lineage Logo appears is a magical moment!

Hopefully, you now have a fully working, Lineage powered Samsung Galaxy Tab S2 with Android 15 installed! Not bad for a tablet that was EOL on Android 6, eh?

Refrences