[Recovery] TWRP 3.1.1 for Xperia X

Search This thread

eagleeyetom

Retired Senior Mod & DC Lead - Active Pole Dancer
Jan 22, 2011
7,715
14,709
37
Gdańsk
xda-developers.com
Samsung Galaxy Watch 4
Greetings!

I'd like to present a TWRP recovery for the single-sim Xperia X. This release works on Xperia X F5121 and F5122

DISCLAIMER:
I'm not responsible for any damage done to your device. You have been warned.

REQUIREMENTS
  • Unlocked bootloader
  • Working ADB and Fastboot (You can get the latest version through Android Studio or by visiting this site)

FEATURES
  • MTP support
  • ADB Sideload
  • Backups and restores almost every partition
  • Full SELinux support
  • Working encryption. You can access /data within recovery

NEEDS TESTING
  • USB-OTG

DOWNLOADS

INSTALLATION
  • Unlock the bootloader
  • Download the file
  • Put the following code in CMD/Terminal:
    Code:
    fastboot flash recovery twrp-3.1.1-suzu-*.img

    //Replace * with the version you want to flash
  • Unplug the cable
  • Press Volume Down + Power to activate the recovery. When installed properly, the device should vibrate funnily, purple LED should appear and after a couple of seconds you should see the TWRP screen.
  • Enjoy!

BUILD

You need to sync the OmniROM and vendor blobs from DonkeyCoyote. You can find my sources on GitHub.
android_device_sony_loire_common
https://github.com/omnirom/android_bootable_recovery/commits/android-7.1

Thanks:
@grayleshy - for initial TWRP
@AndroPlus for some of his flags
OmniROM team for sources

If you find my work useful, consider buying me a cup of coffee :)
 
Last edited:

GreyLeshy

Senior Member
Feb 1, 2017
489
634
Saint-Petersburg and Olonets
[TWRP] TWRP 3.1.0 for Xperia X

Old OP below:
Team Win Recovery Project 3.1.0

REQUIREMENT:
- Unlocked bootloader
FEATURES:
- MTP support
- USB OTG storage support
- Covers most partitions for nandroid backups
- ADB root
- Full SELinux support
- Support for partition decryption

Download: Dropbox

Installation via the bootloader (Platform-tools (adb & fastboot))
Code:
fastboot flash recovery recovery.img

Running TWRP: turn the phone off, wait 5 seconds, then pinch at the same time the power key and the volume down key until the device vibrates, release the keys. Recovery starts within 5-10 seconds.

DISCLAIMER:
No one is responsible for any damage done to your device but YOU. You've been warned.

Special thanks kistigun for testing recovery on the device.
Changelog: twrp.me
TWRP was going on OmniRom 7.1 sources and XperiaDeveloper.
SOURCEs: Suzu; loire; Common.
 
Last edited by a moderator:
D

Deleted member 2405884

Guest
Working well, thanks!

One question ; is it possible to reboot the recovery via twrp reboot menu (or use an app like flashfire /flashify)? When I've tried the phone boots normally instead.
 

GreyLeshy

Senior Member
Feb 1, 2017
489
634
Saint-Petersburg and Olonets
One question ; is it possible to reboot the recovery via twrp reboot menu (or use an app like flashfire /flashify)?
Unfortunately the reboot Recovery does not work from the specifics of the section, but in the future maybe will be fixed. If I don't find how to fix that button will be removed.
 
Last edited:

robby.pgn

Senior Member
Jan 8, 2015
85
18
Yes, this TWRP version has decryption problem fixed. So you can acces internal memory(and make a full backup) without the need of doing a full whipe & format /DATA

No,
don't ask password but I can't access my internal memory.
I install zip file from my external sd card only.....no full backup...:(
someone knows a recovery that finally works?
 

Kianush

Senior Member
Jan 4, 2014
707
101
I flashed this on my xperia x dual on nougat 7.0
I can go to recovery but when i try to turn on the phone normally it says "The phone is corrupt and cant be trusted bluh bluh..."
it says press power button to continue but when i press it screen turns off and nothings happens
what should i do?!
 

Kianush

Senior Member
Jan 4, 2014
707
101
it's stock kernel man, I unlocked bootloader and flashed stock nougat for xperia X dual sim

I just wanna root it, if there is any other way pls help me out
-----
btw after this problem i used flashtool to flash system and kernel from stock rom to be able to use my phone again
 

kistigun

Senior Member
No,
don't ask password but I can't access my internal memory.
I install zip file from my external sd card only.....no full backup...:(
someone knows a recovery that finally works?

it's stock kernel man, I unlocked bootloader and flashed stock nougat for xperia X dual sim

I just wanna root it, if there is any other way pls help me out
-----
btw after this problem i used flashtool to flash system and kernel from stock rom to be able to use my phone again

use this tool/guide to make a rooted kernel(and edit DM-Verity and Sony RIC): https://forum.xda-developers.com/xp...oot-automatic-repack-stock-kernel-dm-t3301605
 
  • Like
Reactions: Kianush
Jul 14, 2014
7
1
Team Win Recovery Project 3.1.0

I've installed and tried this TWRP in my Xperia X with MM. Very nice that it can access the data partition! I did not try to install any zip yet.
Some problems I've seen:
dmesg.log: no output
recovery.log: https://pastebin.com/EwbtuC9q

What is interesting in the output:
Code:
I:cmd: /sbin/exfat-fuse -o big_writes,max_read=131072,max_write=131072 /dev/block/mmcblk1p1 /external_sd
CANNOT LINK EXECUTABLE "sh": cannot locate symbol "__fwrite_chk" referenced by "/sbin/busybox"...
I:exfat-fuse failed to mount with result '', trying vfat
I:Unable to mount '/external_sd'
I:Actual block device: '/dev/block/mmcblk1p1', current file system: 'vfat'

Looks like something is not right with the busybox in the image. Maybe it is that what is causing the external sdcard (in my case in exfat filesystem) not being mounted?
Thanks
 

GreyLeshy

Senior Member
Feb 1, 2017
489
634
Saint-Petersburg and Olonets
don't ask password but I can't access my internal memory.
I install zip file from my external sd card only.....no full backup.
This problem is almost resolved, just need to test, but I don't have time to compile recovery. In the test version recovery without decryption, problem solved.

I've installed and tried this TWRP in my Xperia X with MM. Very nice that it can access the data partition! I did not try to install any zip yet.
Some problems I've seen:
dmesg.log: no output
recovery.log: https://pastebin.com/EwbtuC9q
What is interesting in the output:
Code:
I:cmd: /sbin/exfat-fuse -o big_writes,max_read=131072,max_write=131072 /dev/block/mmcblk1p1 /external_sd
CANNOT LINK EXECUTABLE "sh": cannot locate symbol "__fwrite_chk" referenced by "/sbin/busybox"...
I:exfat-fuse failed to mount with result '', trying vfat
I:Unable to mount '/external_sd'
I:Actual block device: '/dev/block/mmcblk1p1', current file system: 'vfat'
Looks like something is not right with the busybox in the image. Maybe it is that what is causing the external sdcard (in my case in exfat filesystem) not being mounted?
This issue failed to reproduce, and yet there is no solution. You the problem is not in Busybox, and something else.
 

Dave_247

Senior Member
Running TWRP: turn the phone off, wait 5 seconds, then pinch at the same time the power key and the volume down key until the device vibrates, release the keys. Recovery starts within 5-10 seconds.

For whatever reason I'm not able to boot into TWRP like I should be. I've used the poison version of TWRP before so I know what to do, and yet the phone will just boot normally despite holding volume down and power when off.
I know that TWRP is installed though as I am able to boot to it if I first boot to the bootloader using a USB cable but that is very cumbersome to do though.
 
Jul 14, 2014
7
1
This issue failed to reproduce, and yet there is no solution. You the problem is not in Busybox, and something else.
Clearly for the image available at your dropbox there are some libraries dependency errors, not only for the 'busybox', but also for other binaries that are in /sbin.
I do not know why this issue is only happening on my device since you said you can't reproduce this error. If there is anything I can do to help solve this strange behavior, count on me. I am an advanced linux user, but not too familiar with android specifics.
 

JZ SmartMort

Senior Member
Mar 24, 2008
784
16
Burbank
On latest 333 ROM for UK so that fingerprint scanner works on my Xperia X F5121.

I also modified by kernel/boot so that TWRP doesn't brick (actually boot loop) the device like it did the first time. After using these awesome instructions flashing TWRP recovery from here didn't kill the device any longer: https://forum.xda-developers.com/crossdevice-dev/sony/root-root-stock-firmware-modern-sony-t3558904

I was able to take an early nandroid backup before a bunch of Titanium restores, etc. Now I get stuck at "Backing up data" step and it literally doesn't move to the next file. Attaching an image of where I get stuck. FYI, I do use password encryption on the backup and I did disable MD5 creation... still just stuck.

Next tests are to:

  1. see if the stall is on the same exact file number
  2. try no encryption
  3. do a check disk (fsck) type of repair just in case I have corruption --- on my brand new device :)

Any suggestions greatly appreciated!


UPDATED:

I only back up Boot, System & Data (the default)
On second attempt it stopped at file 18869 of 22065 --- so it does jump and not consistently stop at a certain file.
 

Attachments

  • XperiaX-F5121-TWRP-NandroidFreeze.jpg
    XperiaX-F5121-TWRP-NandroidFreeze.jpg
    108.4 KB · Views: 254
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    Greetings!

    I'd like to present a TWRP recovery for the single-sim Xperia X. This release works on Xperia X F5121 and F5122

    DISCLAIMER:
    I'm not responsible for any damage done to your device. You have been warned.

    REQUIREMENTS
    • Unlocked bootloader
    • Working ADB and Fastboot (You can get the latest version through Android Studio or by visiting this site)

    FEATURES
    • MTP support
    • ADB Sideload
    • Backups and restores almost every partition
    • Full SELinux support
    • Working encryption. You can access /data within recovery

    NEEDS TESTING
    • USB-OTG

    DOWNLOADS

    INSTALLATION
    • Unlock the bootloader
    • Download the file
    • Put the following code in CMD/Terminal:
      Code:
      fastboot flash recovery twrp-3.1.1-suzu-*.img

      //Replace * with the version you want to flash
    • Unplug the cable
    • Press Volume Down + Power to activate the recovery. When installed properly, the device should vibrate funnily, purple LED should appear and after a couple of seconds you should see the TWRP screen.
    • Enjoy!

    BUILD

    You need to sync the OmniROM and vendor blobs from DonkeyCoyote. You can find my sources on GitHub.
    android_device_sony_loire_common
    https://github.com/omnirom/android_bootable_recovery/commits/android-7.1

    Thanks:
    @grayleshy - for initial TWRP
    @AndroPlus for some of his flags
    OmniROM team for sources

    If you find my work useful, consider buying me a cup of coffee :)
    18
    [TWRP] TWRP 3.1.0 for Xperia X

    Old OP below:
    Team Win Recovery Project 3.1.0

    REQUIREMENT:
    - Unlocked bootloader
    FEATURES:
    - MTP support
    - USB OTG storage support
    - Covers most partitions for nandroid backups
    - ADB root
    - Full SELinux support
    - Support for partition decryption

    Download: Dropbox

    Installation via the bootloader (Platform-tools (adb & fastboot))
    Code:
    fastboot flash recovery recovery.img

    Running TWRP: turn the phone off, wait 5 seconds, then pinch at the same time the power key and the volume down key until the device vibrates, release the keys. Recovery starts within 5-10 seconds.

    DISCLAIMER:
    No one is responsible for any damage done to your device but YOU. You've been warned.

    Special thanks kistigun for testing recovery on the device.
    Changelog: twrp.me
    TWRP was going on OmniRom 7.1 sources and XperiaDeveloper.
    SOURCEs: Suzu; loire; Common.
    6
    sir can you help on Oreo ? after flashing latest build .364 (Oreo) (Suzu / F5121 / F5122) the TWRP cannot read internal partition. give password error

    It doesn't work on Oreo yet. That freaking decryption is a headache. I and few other devs are working on it. Stay tuned. It will be released when it's done.
    5
    Ok, folks. A new version of TWRP is uploaded. It should fix the restore problem.
    Happy flashing!
    4
    Ok, I will start from scratch. Apparently, qseecomd needs more libraries to work. Hopefully I will crack it soon ;)