[GUIDE/TUTORIAL/HOWTO] Sony Xperia Tablet Z LTE or Wifi Any version to Android 9 Pie

Search This thread


Senior Member
May 24, 2014
Samsung Galaxy Tab S2
Google Pixel 4a
Hiya! Thanks for this tutorial it was really helpful.

Just out of interest, is overclocking speed gain noticeable and does it have much impact on battery drain or apps?
Hi, you may have to try I don't have the tab anymore.
I used Kernel Adiutor in the past. Don't know the trending apps nowadays.

Thanks for sharing your experience with us.


New member
Oct 6, 2022
Just want to say, I followed this guide and it worked perfectly. Thank you djibe89 for all your hard work, it was a fcking awesome guide which has breathed new life into an old tablet!
  • Love
Reactions: djibe89


Senior Member
May 24, 2014
Samsung Galaxy Tab S2
Google Pixel 4a
Just want to say, I followed this guide and it worked perfectly. Thank you djibe89 for all your hard work, it was a fcking awesome guide which has breathed new life into an old tablet!
Glad you like it !
I write all these tutorials to spare CO2 and silicium.

Look for djibe Android tutorials for all my posts.

Thanks for your thanks
  • Like
Reactions: CharmOffensive

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    [GUIDE/TUTORIAL/HOWTO] Sony Xperia Tablet Z LTE or Wifi Any version to Android 9 Pie
    [GUIDE/TUTORIAL/HOWTO] Sony Xperia Tablet Z SGP321 LTE/4G (pollux) or Wifi (pollux-windy) Any version to Android 9 Pie / LineageOS 16

    This detailed step-by-step guide helps you transform your Sony Xperia Tablet Z to a powerful one with Android 9 Pie.

    To make sure you are with a Xperia Tablet Z 4G / Pollux / SGP321 (SGP351 for USA, SO-03E for Japan) :
    On the tablet, go to Menu -> Settings -> About tablet. Check that the "model number" is correct : SGP321 (Europe).
    Same for the Wifi/Pollux_windy version.

    ### You must be logged as a Microsoft Windows administrator to run console commands below.
    ### When you lose control of your Xperia tablet Z, hold Power + Volume+ until tab restarts.


    v13. Drop Magisk (if you want it, use v24.1), update pack
    v12. Permanent TWRP recovery, Overclock with smartpack kernel manager
    v11. Move to Android 9, replace addonsu with Magisk root, revert to 2016 adb + fastboot (fastboot flash fails with latest versions), fix glitches in tutorial
    v10. Updated pack for TWRP 3.4.0-0 + LOS download links
    v9. Updated pack for TWRP 3.3.1-0
    v8. Moved to Official LineageOS 15.1 available to bring you Android 8.1 Oreo
    v7.2. Refresh OpenGapps download link
    v7.1. Refresh pack v2 (TWRP 3.2.3-0) and tutorial
    v7. recovery TWRP 3.2.2-0 and new FOTAKernel installation
    v6. Google Play certification, recovery TWRP 3.2.1-0, new pack for easier install
    v5.5. Overclock
    v5. Updated tutorial to latest ROMs and utils
    v4. Upgraded tutorial
    v3. Moved to Android 7.1
    v2. Tutorial updated for permanent recovery, Black kernel, pack has no more missing fastboot files, drivers included, F2FS optimizations
    v1. Initial release


    - djibe Xperia Tablet Z pack (~ 48 MB) : http://bit.ly/djibe-xperia-tabletz-v2
    (contains Xperia USB drivers + adb + fastboot + recovery TWRP 3.4.0-0 for both LTE/4G/Pollux version and Wifi/Pollux_windy + Addonsu root + Smartpack Kernel Manager)

    + ROM Unofficial LineageOS 16: https://forum.xda-developers.com/xperia-tablet-z/orig-development/rom-lineageos-16-0-t3924942
    Download latest build for Tablet Z LTE/Pollux: https://anonfiles.com/h7n8z0Rdx3/lineage-16.0-20220131-UNOFFICIAL-pollux_zip
    Download latest build for Tablet Z Wifi-only/Windy: https://anonfiles.com/Ddncz2Rfx2/lineage-16.0-20220131-UNOFFICIAL-pollux_windy_zip
    WARNING. Download correct version, Pollux for your 4G/LTE model, Pollux_windy for your Wifi-only model
    ROM backups: https://androidfilehost.com/?w=files&flid=140468&sort_by=date&sort_dir=DESC

    + OpenGApps ARM 9 Nano: https://opengapps.org/?arch=arm&api=9.0&variant=nano

    + a microSD card. Copy ROM, OpenGApps, Magisk and SmartpackKernel.apk on microSD card and insert it in tablet.

    + Charge tablet to 100 %.

    NB. Use a USB2 port to connect tablet to PC.


    Commands below are for Windows 10 installation of unsigned drivers.
    ### For other Windows versions, Google "windows X install unsigned driver".

    On the keyboard of PC, use "Windows key + R" combo.
    In the command prompt that opens, type:
    shutdown -r -t 0 -o
    This opens a Windows menu:
    Go to Troubleshooting > Advanced Options > Settings > Restart
    Upon restart, press on keyboard : key 7 - Disables drivers signature verification

    After boot,
    Start Flashtool Xperia Driver Pack 1.8,
    check the Fastboot drivers, ADB and Xperia Z tablet drivers, start the installation and confirm the
    forcing the driver installation. It ends by saying that everything was installed.

    Restart Windows.

    2bis, optionnal, FOR WARRANTY PURPOSE) Backup bootloader
    Cannot help you precisely, didn't know about it at the time.

    - Root. Follow Bin4ry root : http://forum.xda-developers.com/showthread.php?t=1886460
    Download : http://forum.xda-developers.com/showthread.php?t=1886460

    - Then Backup TA. https://github.com/DevShaft/Backup-TA
    Unzip it in C:\
    Make sure partition is saved.


    On tablet, go to Menu > Settings > About tablet > Status > Information on the IMEI code
    Note the IMEI. Store it.


    From your PC, go to : https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
    At the bottom of the page, in Select your device : Select Xperia Tablet Z (or Tablet Z Wifi).
    Enter your IMEI and check both checkboxes.
    Copy the unlock code on next page.


    Tablet powered off, hold "Volume up" while you plug the tablet in USB.
    The blue light appears next to microSD cable, the drivers install in Windows.


    In Windows, copy the path to the "flash" folder you unziped earlier.
    Open a Windows command prompt : Start menu > Command prompt > Start as administrator
    Then type
    cd /d thePathToFlashFolder
    (ex: E:\root\Sony Xperia Tablet Z SGP321 Pollux\djibe Xperia pollux Pack\flash)
    fastboot -i 0x0fce getvar Version
    If a line is returned, drivers are correctly installed.
    ### Use fastboot and adb from my pack

    Paste the following line (written at the end of the page issued by Sony) :
    fastboot oem unlock 0xYOURUNLOCKKEY
    confirm with Enter. After 2 seconds, it is displayed OKAY.
    Bootloader is unlocked !


    Still in fastboot, type in console :
    fastboot flash boot twrp-3.4.0-0-pollux.img
    (or twrp-3.4.0-0-pollux_windy for Wifi model). Confirm with Enter.
    Wait, then once the confirmed success,
    type :
    fastboot reboot
    (confirm with Enter).
    AND while it restarts, repeatedly click Volume+ AND Volume- buttons to access the recovery (can take a while).


    You are now in TWRP recovery, swype to unlock changes.
    Go to Backup, select all partitions.
    In Storage, select microSD Card then OK.
    Then swype to start backup (Well, hums, it failed on my tablet ;-) ).
    Click the TWRP icon to return to home.

    Go Wipe > Wipe Advanced > Select Dalvik, System, Cache, Data and swipe to confirm flash.

    ### If errors are displayed in red "failed to mount data (invalid argument)" appear (as I had),
    ### go to Wipe > Data Format, type yes and click OK.


    INFO. F2FS is the fastest filesystem for read and write partitions on flash memories. Compared to EXT4, gain is from 15 to 280 %.
    No need to format the /System partition because it is Read only and EXT4 is still faster.

    Still in Advanced Wipe menu,
    select the /Cache partition and tap Repair or Change File System > Change File System and select F2FS.
    Confirm with a Swipe to Change.
    Do it again for the /Data partition.

    ### Any partition problem ? Bootloop ? Format every partition back to EXT4, wipe all partitions and reflash Zips.

    Go to Reboot > Recovery.


    Back to TWRP home menu.
    Go to Install > select lineage*.zip.
    ### If no file is visible, click Storage > select microSD Card.
    ### If you get an error and flash fails, go to Reboot > Recovery and wait for TWRP to reboot.
    Add more zip > OpenGapps*.zip file,
    Add more zip > addonsu*.zip file.

    Swype to confirm flash.
    Wait while Install Zips are flashed.
    At the end, select Wipe Dalvik and cache and then Reboot system.

    Tab will reboot soon after first reboot.

    Wait during both boots.

    11) ROOT

    Go to Settings > About tablet > Tap 7 times on Build number item.

    Go to Settings > System > Advanced > Developer options.
    Root > Applications and ADB.


    To keep TWRP recovery permanently, you need to flash it to a smart location: the FOTAkernel partition.

    Now Settings > System > Advanced > Developer options.
    Advanced restart switched ON (Hold power > Restart > Restart to recovery to access TWRP easily later)
    Root access > ADB only
    Android debugging switched ON
    Windows animation scale yo Animation scale .5x
    Same for Transition animation scale and Animator duration scale to improve reactivity

    Connect tablet to PC.
    Re-open a Windows command on my /flash folder.

    Enter commands in order:
    adb devices
    On tab, grant ADB access
    adb root
    adb wait-for-device
    adb push twrp-3.4.0-0-pollux.img /tmp/twrp.img
    Command returns: 2600 KB/s (12103680 bytes in 4.544s)
    and finally
    adb shell dd if=/tmp/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
    It will output
    > 23640+0 records in
    > 23640+0 records out
    > 12103680 bytes transferred in 2.864 secs (4226145 bytes/sec)

    You are done with flashing ! Congratulations.

    13) OVERCLOCK (optional)

    Open built-in Files app.
    Open microSD folder.
    Install Smartpack Kernel Manager app from my pack.
    Launch app and grant root access.
    Go to CPU menu > Apply on boot, CPU Maximum Frequency 1728 MHz
    CPU min: 192MHz
    Governor: ondemandplus
    GPU: 487MHz

    14) Others

    For faster GPS fix, use GPS Status and Toolbox and download A-GPS data.

    Your tablet is a rocket, enjoy ;-)

    Thanks: LineageOS team, TWRP team, OpenGApps team, Flashtool Xperia Driver pack team, @CaHbKaUp, @CyberWalkMaN, @AdrianDC, Chippa_a, @Rootk1t
    Hi guys, tutorial is updated for Google Play certification with enhenced pack.
    You forgot to mention about Backuping TA before bootloader unlock.

    Also operation under numbers 4,5,7,8 can be done via Flashtool practically in one click, so it's much faster.

    Also with frequent messages "can't post outside links" instruction is "half-done".
    1st of all, great Tutorial. I am an aboslute beginner with rooting or sth like that. My fist try is this old tablet. I am trying now for...10 hours maybe and I am stuck at stepp 11.
    Once I installed Lineage there is no way I can return to TWRP Recovery Mode to install Gapps...why?!
    I tried skipping this step but then I dont get any string for the framework services an no app is running correctly (when I tried registering in my google account, google sent an email to my other devices that there has been a hacking attempt and this device is blocked).

    What shall I do, what can I do?

    That's because the tutorial is a bit misleading. It says to install TWRP to boot partition. Then you enter TWRP, format other partitions, and install ROM and GAPPS. But kernel is being installed to boot, so successfully it overwrites your TWRP recovery.
    And as LOS stock has only LOS recovery, you stay without TWRP.

    I suggest on step 6. flash TWRP straight to FOTA partition to remain there permanently.

    To do so, type:

    dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
    where twrp.img is your recovery image on sdcard.

    After successful installation enter recovery by pressing VOL+ on boot, and install whatever you want from there.
    Can i unlock bootloader pollux using flash tool
    Please stop spamming all the threads with your questions.