• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Recovery][Official]TWRP for Xperia M

Search This thread

Agu_Ra

Senior Member
Jun 24, 2014
949
1,591
26
Lviv
Team Win Recovery Project is a custom recovery built with ease of use and customization in mind. It has a fully touch driven user interface. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
curtain.jpg


Installation/updating instructions and download links can be found on official device page. It is preferred to use official builds unless it is said otherwise in thread, so make sure you have read at least a couple of last pages.
My home builds can be downloaded here (link to the always latest build), it is useful when the latest official build is outdated and for testing new features. Site may sometimes be down due to maintenance.
And, as you remember, we are not responsible for bricked devices, accidental pregnancy or asteroid impact
(BTW, this thread is created at Asteroid day).

Warning! Read attentively this post and F.A.Q. below and at least 5 pages of thread before installing this and posting here! Or Dark Lord will come to punish you and take your shallow soul! Also I kill innocent kittens every time when I see someone installs it via fastboot/flashtool. So save kittens and don't ignore provided info.

It uses the same FOTAKernel install method as recoveries in this thread, so you don't need to install it every time you change your ROM or kernel. Also it doesn't work on stock ROM, 'cause we don't have stock kernels supporting extract_elf_ramdisk utility.
To remove recovery from your FOTAKernel follow this (you will use recovery from your boot image after it).

Official TWRP website — here you can find more info about recovery itself, versions changelog, donation URL etc.

Thanks to:
@Dees_Troy and all other TWRP devs
@PecanCM for initial device tree
Linus Torvalds for Linux Kernel, it would not be possible without him

XDA:DevDB Information
TWRP for Xperia M, Tool/Utility for the Sony Xperia M

Contributors
cucumber09, Antrikos48
Source Code: https://github.com/omnirom/android_bootable_recovery


Version Information
Status: Stable
Current Stable Version: 3.0.1-0

Created 2015-06-30
Last Updated 2016-09-15
 

Attachments

  • Screenshot_2016-02-06-19-40-17.png
    Screenshot_2016-02-06-19-40-17.png
    27 KB · Views: 6,791
  • Screenshot_2016-02-06-19-40-13.png
    Screenshot_2016-02-06-19-40-13.png
    36.1 KB · Views: 6,615
  • Screenshot_2016-02-06-23-14-02.png
    Screenshot_2016-02-06-23-14-02.png
    42.4 KB · Views: 6,540
  • Screenshot_2016-02-06-23-16-17.png
    Screenshot_2016-02-06-23-16-17.png
    25.7 KB · Views: 5,341
  • Screenshot_2016-02-06-23-17-34.png
    Screenshot_2016-02-06-23-17-34.png
    39.4 KB · Views: 5,324
Last edited:

Agu_Ra

Senior Member
Jun 24, 2014
949
1,591
26
Lviv
F.A.Q. Must be read before installing and posting in the thread!

Q: Is it a kernel?
A: No, it isn't. It is a recovery image, but it is not booting independently, the kernel is using its ramdisk to load recovery. More... (extract_elf_ramdisk is deprecated in some ROMs and kernels, now its functions are implemented in init binary directly, read additional explanation from the next question if you are curious about how it works)

Q: Can I install it via Flashtool/fastboot?
A: No. For holy sake, don't do this! Here is explanation.

Q: Can I flash it with Rashr app?
A: Yes. But flash it as recovery, not as kernel! Read explanation above if you wonder why.

Q: Do I need to flash it every time I update my ROM?
A: No.

Q: Does it work with stock ROM?
A: No.

Q: TWRP says "Unmodified system partition" and asks to allow modifications or keep system read-only.
A: Tick "Never ask" and swipe. You can press "Keep read-only", but that really has no use on our device as we no more receive official OTA and ^look previous question^.
 
Last edited:

Agu_Ra

Senior Member
Jun 24, 2014
949
1,591
26
Lviv
CHANGELOG

TWRP 3.0.1-0
support new CM 13.0 pattern encryption (sultanqasim)
fix slow flashing issue due to modprobe (present on only some devices) (#twrp)
libtar updated to latest upstream and fixes (jcadduono)
fixes for loading custom themes (_that)
TWRP will now detect and install TWRP themes automatically through the normal zip install process (Dees_Troy)
translation updates - added Italian, Czech and Polish and significant updates to Dutch
progress bar improvements - progress bar updates during image flashing and better tracks progress during file system backups (tar) (Dees_Troy)
fix input box text display (Dees_Troy)
reboot option after zip install complete (bigbiff)
other mostly invisible bug fixes and improvements

TWRP 3.0.0-0

  • Completely new theme - Much more modern and much nicer looking (by z31s1g)
  • True Terminal Emulator - Includes arrow keys, tab and tab completion, etc. (by _that)
  • Language translation - It won’t be perfect and especially some languages that require large font files like Chinese & Japanese won’t be availble on most devices. Also some languages may only be partially translated at this time. Feel free to submit more translations to OmniROM’s Gerrit. (mostly by Dees_Troy)
  • Flashing of sparse images - On select devices you will be able to flash some parts of factory images via the TWRP GUI (by HashBang173)
  • Adopted storage support for select devices - TWRP can now decrypt adopted storage partitions from Marshmallow
  • Reworked graphics to bring us more up to date with AOSP - includes support for adf and drm graphics (by Dees_Troy)
  • SuperSU prompt will no longer display if a Marshmallow ROM is installed
  • Update exfat, exfat fuse, dosfstools (by mdmower)
  • Update AOSP base to 6.0
  • A huge laundry list of other minor fixes and tweaks

Device-specific changes:


  • Enabled mass storage
  • Improved wiping cache speed and removed it from backup list
  • Increased system wipe speed
  • Update crypto from JB to current version for adopted storage decryption (1, 2)
  • Enabled NTFS-3g
  • Other fixes and improvements (commit history for nicki)
 
Last edited:

kh34d

Senior Member
Sep 16, 2012
1,844
651
cairo
Sir I have 2.8.5.0
can I flash 2.8.7.0 now, forgive me I'm not experience.
Thank you for your efforts[emoji2]

Sent from my C2005 using Tapatalk
 

Agu_Ra

Senior Member
Jun 24, 2014
949
1,591
26
Lviv
Sir I have 2.8.5.0
can I flash 2.8.7.0 now, forgive me I'm not experience.
Thank you for your efforts[emoji2]

Sent from my C2005 using Tapatalk
Yes, of course. There is link to instruction in OP.
TWRP Install (Requires TWRP 2.8.4 or higher already installed):
Download the latest TWRP image file (.img) from the download link and boot TWRP. Go to install and find and select the Images... button. Browse to the image that you downloaded and select it. Choose recovery and swipe to flash.
 

itsnie

Senior Member
Mar 24, 2014
936
215
I still not understand with resize2fs ?
My question is how to resize my 1gb system to 700mb and move 300mb to /data?

Sent from my waifu
 

Attachments

  • uploadfromtaptalk1435689167064.JPG
    uploadfromtaptalk1435689167064.JPG
    27.8 KB · Views: 1,027

Agu_Ra

Senior Member
Jun 24, 2014
949
1,591
26
Lviv
I still not understand with resize2fs ?
My question is how to resize my 1gb system to 700mb and move 300mb to /data?

Sent from my waifu
You are confusing it with repartitioning. Lollipop uses block-based OTA. Some of devices have versions with different storage capacity (e.g. 16 and 32 Gb). And when you install system image for the device with 16 Gb on device with 32 Gb you will have system partition like in 16Gb-version. Also, sometimes custom ROMs' system image is a little bit "cut". So, resize2fs fixes it, you will have as many system storage, as can handle your system partition. And this function is not very useful for our device.
 

itsnie

Senior Member
Mar 24, 2014
936
215
You are confusing it with repartitioning. Lollipop uses block-based OTA. Some of devices have versions with different storage capacity (e.g. 16 and 32 Gb). And when you install system image for the device with 16 Gb on device with 32 Gb you will have system partition like in 16Gb-version. Also, sometimes custom ROMs' system image is a little bit "cut". So, resize2fs fixes it, you will have as many system storage, as can handle your system partition. And this function is not very useful for our device.
Woah thngs!

Sent from my waifu
 

kh34d

Senior Member
Sep 16, 2012
1,844
651
cairo
Ok ,but can I use ZIP file in other thread or IMG file here??
There is two file now am I right??



Sent from my C2005 using Tapatalk
 

Nicklas Van Dam

Senior Member
Dec 14, 2013
2,829
1,380
23
Tangerang
github.com
Ok ,but can I use ZIP file in other thread or IMG file here??
There is two file now am I right??



Sent from my C2005 using Tapatalk
You can use both of them, if zip you must flash it via recovery mode but if boot.img you must flash it via adb with command dd if :)

Sent from my C1905 using Tapatalk

---------- Post added at 04:07 PM ---------- Previous post was at 04:04 PM ----------

Calm down bro, why not working? You have to flash it with dd command right? And after that are you see some led pink when you restart device ?

Sent from my C1905 using Tapatalk
If all what I said is still not working, you must flash old twrp boot.img that have function like recovery but not in fota partition. I've that file if you want it . but please try it before and calm down OK [emoji4]

Sent from my C1905 using Tapatalk
 
  • Like
Reactions: kh34d

Agu_Ra

Senior Member
Jun 24, 2014
949
1,591
26
Lviv
this recovery work in stock roms?
Please, read the OP. It is clearly stated there:
Also it doesn't work on stock ROM, 'cause we don't have stock kernels supporting extract_elf_ramdisk utility.
So, stock is not supported, 'till someone builds stock kernel with all needed changes.

Ok ,but can I use ZIP file in other thread or IMG file here??
There is two file now am I right??
Recovery in zip in other topic is compiled on my PC. Image file on TWRP download server is compiled by official TWRP build-bot. There is no difference in them, 'cause they share the same source code (but maybe official TWRP build uses a little bit older code, snapshoot when current version was released).
 
  • Like
Reactions: Miladj and kh34d

Top Liked Posts

  • There are no posts matching your filters.
  • 51
    Team Win Recovery Project is a custom recovery built with ease of use and customization in mind. It has a fully touch driven user interface. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
    curtain.jpg


    Installation/updating instructions and download links can be found on official device page. It is preferred to use official builds unless it is said otherwise in thread, so make sure you have read at least a couple of last pages.
    My home builds can be downloaded here (link to the always latest build), it is useful when the latest official build is outdated and for testing new features. Site may sometimes be down due to maintenance.
    And, as you remember, we are not responsible for bricked devices, accidental pregnancy or asteroid impact
    (BTW, this thread is created at Asteroid day).

    Warning! Read attentively this post and F.A.Q. below and at least 5 pages of thread before installing this and posting here! Or Dark Lord will come to punish you and take your shallow soul! Also I kill innocent kittens every time when I see someone installs it via fastboot/flashtool. So save kittens and don't ignore provided info.

    It uses the same FOTAKernel install method as recoveries in this thread, so you don't need to install it every time you change your ROM or kernel. Also it doesn't work on stock ROM, 'cause we don't have stock kernels supporting extract_elf_ramdisk utility.
    To remove recovery from your FOTAKernel follow this (you will use recovery from your boot image after it).

    Official TWRP website — here you can find more info about recovery itself, versions changelog, donation URL etc.

    Thanks to:
    @Dees_Troy and all other TWRP devs
    @PecanCM for initial device tree
    Linus Torvalds for Linux Kernel, it would not be possible without him

    XDA:DevDB Information
    TWRP for Xperia M, Tool/Utility for the Sony Xperia M

    Contributors
    cucumber09, Antrikos48
    Source Code: https://github.com/omnirom/android_bootable_recovery


    Version Information
    Status: Stable
    Current Stable Version: 3.0.1-0

    Created 2015-06-30
    Last Updated 2016-09-15
    13
    F.A.Q. Must be read before installing and posting in the thread!

    Q: Is it a kernel?
    A: No, it isn't. It is a recovery image, but it is not booting independently, the kernel is using its ramdisk to load recovery. More... (extract_elf_ramdisk is deprecated in some ROMs and kernels, now its functions are implemented in init binary directly, read additional explanation from the next question if you are curious about how it works)

    Q: Can I install it via Flashtool/fastboot?
    A: No. For holy sake, don't do this! Here is explanation.

    Q: Can I flash it with Rashr app?
    A: Yes. But flash it as recovery, not as kernel! Read explanation above if you wonder why.

    Q: Do I need to flash it every time I update my ROM?
    A: No.

    Q: Does it work with stock ROM?
    A: No.

    Q: TWRP says "Unmodified system partition" and asks to allow modifications or keep system read-only.
    A: Tick "Never ask" and swipe. You can press "Keep read-only", but that really has no use on our device as we no more receive official OTA and ^look previous question^.
    12
    Sorry for off topic, I'm already ported TWRP v 3.1.1-0 to our device (nicki). And almost all feature work without problem, if anyone want to try it. Maybe i'll upload it whenever everyone want to update it ;)

    Download Link :
    Androidfilehost Link
    12
    Adopted storage support!

    I know, you were waiting for this for long time. And now, thanks to Ron uploading new Marshmallow build, I made my-lazy-ass-self flashing it, making new TWRP build with final adopted storage commit (yeah, it is now merged to upstream, so we can already treat it as stable) from Dees_Troy, testing it and trying to fix freezing at boot issue, and, as you see in previous post, it was done with success, so I'm very glad and hope you are so too. Old test builds are removed from the server and the working one is uploaded. So, now we are a bit more ready for M nightlies for our M, and for the next TWRP release, which I hope will be available soon, as there where no version changes from summer, yet the code changes are quite big (I was hoping with official support I would not need to make builds, lol, in fact I've made more builds than before it).

    Notes: It is recommended to use this build (or further ones), 'cause it gives you ability to work with adopted storage as usual, like as any regular storage, also, which is important, it provides ability to factory reset without losing your key, so you will be able to use adopted storage without re-formatting even after data wipe. I haven't tested MTP, but it should work, I think.MTP works fine. Mass storage mode is automatically disabled when adopted storage is detected. BTW, andsec flag was to blame for freezing at boot, so I removed it, that means this build doesn't support pre-M implementation of apps2SD (via containers in .android_secure directory) anymore, and further will not neither if it is not fixed by TeamWin.

    Download link>>

    ------------------------------------------

    One more thing to note, as you may notice, I now accept donations. So, if you think your "thank you" is not enough, you can support me with donation. And, I hope, you've already donated to TeamWin and our beloved @PecanCM, as their work is much more important than mine, as I'm just adapting Ron's tree to work properly with TeamWin's software, my contribution is relatively shallow.
    11
    Xperia M in TWRP Manager

    Yes! Finally nicki is here. App install now should work. So now we have complete official support!