yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] Agu_Ra:
TWRP 2.8.4.0

TWRP port from Xperia L. I don't have enough skill to compile something, but have enough to port something simple. Original TWRP 2.8.4.0 image is here. I just replaced fstab's and some other files from TWRP 2.8.0.0 ramdisk taken from PecanCM's AOSP to make it working on our device and packed image with our device kernel configuration. Also I made some editions to ftab's to provide new features.

Changelog:

- updated TWRP to 2.8.4.0(here is official changelog)

- option to flash images directly (Install > Images > Select .img file > Choose Boot if it is kernel image or Recovery if it is recovery-in-FOTA image)

Added by me:

- ability to mount, backup and wipe sd-ext partition (not tested!), report if it is working

- ability to flash recovery images directly in FOTA (you can use it even to restore your original FOTAKernel if you have backed it up)

- ability to backup current recovery image (FOTAKernel), it will be useful when new TWRP images will be available

BTW, I am facing some MTP problems, don't know if they will be present on other devices, so you are warned
[Sony Xperia M] TheRealSS:
Can confirm, wiping secondary partition works. Thank you.
[Sony Xperia M] Agu_Ra:
Thank you for testing.
[Sony Xperia M] Ruvy:
SOS !!! I followed the instructions. Installed recovery using terminal emulator. Switched Off the phone. And now its dead !!!! No blank screen nothing. :(

Edit : Seems like its HARD BRICKED !!! I connected it to PC and device manager shows "qualcomm hs-usb qdloader 9008" :(

Anyone with solution ?
[Sony Xperia M] Farsiris:
omg!!sad for you. hope someone can help you.
[Sony Xperia M] LeonidasTurk:
I know fix. Plug your usb cable to PC. Download platform-tools. And place a boot.img to this folder. And type in cmd "fastboot flash boot boot.img".You will see" waiting for device". When you see this, press volume up and power buttons. Your pc detect your device for one second. You can see flash failed. But try again flashing, it will fix.
[Sony Xperia M] Ruvy:
stuck on waiting for device. Nothing !! :(
[Sony Xperia M] AggelosGR:
i just updated to latest cm12 and i lost FOTA TWRP 2.8.4.0.in my preview 2 updates didnt lost it.i was using TWRP 2.8.0.0
[Sony Xperia M] LeonidasTurk:
I don't know another fix. Try this several Times. It must work. It has worked for me.

---------- Post added at 11:44 AM ---------- Previous post was at 11:41 AM ----------

You didn't lose your recovery. Latest cm build has a bug. Codes isn't working. But you can access recovery with volume up button.
[Sony Xperia M] AggelosGR:
No i cant.up or down keys does nothing
[Sony Xperia M] Bonoboo:
Very likely you by mistake wrote wrong last number in command (24?).

So image written into wrong partition > brick.

No solutions except service center where partitions can be restored via that qdloader interface.

Or via replacing main board.

Believe me, there no other own-solutions. We tried with few people all possible.

Under Linux whole NAND not accessible like on other phone

And because we can't restore damaged one.

BTW quote from first post. And it's XDA paradigm.
[Sony Xperia M] Ruvy:
Ofcourse i am not blaming anyone bro. I am just asking if anything could be done to revive the phone back to life.
[Sony Xperia M] elmkzgirxp:
[MENTION=5917809]cucumber09[/MENTION] This might be a little behind but I ought to let you know that TWRP version 2.8.5.0 is already available for Xperia L since yesterday...
[Sony Xperia M] Agu_Ra:
I will port it. Also I have an idea to try to compile it.
[Sony Xperia M] Agu_Ra:
I will re-write the instructions using more safe path in terminal. Now used is shorter, but the wrong digit in the end of command will write image to wrong partition.
[Sony Xperia M] Nicklas Van Dam:
can this recovery install xposed framework alpha for lollipop? i've try many times install that zip but only xposedbridge.jar is installed?
[Sony Xperia M] Agu_Ra:
Yes, I have installed it yesterday, just flash zip and install Xposed Installer Alpha app.
[Sony Xperia M] kh34d:
Any help plz

sir, i cant access recovery by pressing vol-/+ key on bootlogo.:(

I'm on 11022015 build and use FOTA recovery.

Any help plz?
[Sony Xperia M] Agu_Ra:
It is not FOTA-recovery's problem. You can restore original image and check. It is already known CM bug. In dev and discussion threads problem is good described and solution is written. Try pressing many times volume rocker until you will go to recovery.
[Sony Xperia M] CRACING:
Hello [MENTION=5917809]cucumber09[/MENTION],

I need some help here because I'm new to Sony devices but been with HTC and other brands for long time.

I have Sony Xperia M C1904 and wanted to flash CM12 nightly.

Here is what I have done so far:

Rooted successfully using Towel Root.

Took TA Backup successfully.

Unlocked successfully.

After that (As usually) the device started to boot loop in the animation but I didn't mind to flash stock kernel because I wanted to flash CM12 directly.

So I flashed boot.img from CM12 nightly successfully.

but when I tried to flash FOTA TWRP zip in CM recovery, it failed with an error "Cannot load volume /misc" and "signature verification failed".

Is this the wrong step I took?

After that I thought to flash the CM12 nightly instead. Did factory restore and flashed the ROM and gapps. Now the device is stuck at Sony logo. Stays there for few mins then reboots and again stuck at Sony logo but this started to happen right after flashing CM recovery because it contains CM12 kernel.

I guess the CM recovery is not able to flash recovery or ROM correctly.

Please help me on how to proceed next.

p.s Device can enter into CM recovery and fastboot. Is it possible to flash TWRP from fastboot?

Thanks...

Best Regards
[Sony Xperia M] FakrudeenAhamed:
Hey, the cyanogen recovery will flash signed zips only. So you will not be able to flash FOTA using that ..

After flashing boot.IMG , open ur cyanogen recovery ,then wipe everything ( cache,dalvik cache,system,internal storage ) and then flash that cm12 ROM from which u got ur boot.img ,then gapps and then reboot to system .. It ll take around 15 mins to 30 mins to boot for the first time , so wait patiently and don't remove ur battery thinking that u r stuck in boot loop...

If u successfully booted ,then flash supersu.zip to get root and then flash FOTA twrp recovery via terminal emulator. :)
[Sony Xperia M] CRACING:
Thanks for your response.

After I have flashed CM12 ROM and gapps, the device freeze at Sony logo for few mins then reboots and again freezes at Sony logo. Is this normal?

btw; I also tried to flash this Cwm Recovery from fastboot and tried to flash CM12 ROM but the recovery says "Cannot mount /Data". :confused:

At the moment I'm downloading Stock FTF ROM so I can start from fresh. What do you say?

Edit: Finally I made the device back alive. :)

When my device started to bootloop at sony logo, I flashed the FOTA TWRP img file via fast boot command and I guess it was mistake. Later when you said to flash CM12 in CM recovery, I tried to revert back to CM recovery by flashing boot.img but I couldn't. The TWRP was not able to replace.

Next the recovery posted in this ROM thread helped me. I flashed it via fastboot, the TWRP was replaced with CWM then I was able to mount data partition and successfully flash CM12.

Now the strange thing, the TWRP is back! I don't understand how. I had flashed CWM which replaced the TWRP and then I flashed CM12. I supposed to get into CM recovery right ? but how come TWRP! Well, this is totally confusing. May be it came from FOTA partition but I did nothing to restore recovery.

Anyways, the TWRP is working fine now and it mounts data partition unlike before. CM12 is running good as well. :)
[Sony Xperia M] Agu_Ra:
It is impossible to flash FOTAKernel via fastboot, 'cause storing there recovery is an "unofficial" way to do this (I described how it works in OP), Xperia devices originally don't have recovery partition. Flashing it to boot partition via fastboot (fastboot flash boot *filename*.img) will make phone not booting, 'cause its ramdisk has different structure than regular boot image. That's why you stuck at bootlogo.

CWM that you flashed is not recovery image by itself, it is stock kernel with CWM included. And stock kernels don't have extract_elf_ramdisk binary, so they can't boot into recovery from FOTAKernel. But CM12 kernel has this binary, so when you switched to it your recovery was TWRP (it is still in FOTAKernel), CM Recovery is still in boot image, but it is ignored, as it is **** extract_elf_ramdisk detects recovery in FOTA partition.
[Sony Xperia M] CRACING:
Hello,

Indeed, the base of Xperia devices are different from any other brand devices and I did read how things work in Xperia but I messed with recoveries when I was not able to flash CM12 in its own recovery. Then I shouldn't have flashed FOTA TWRP via fastboot but it did work and I was able to enter TWRP but it failed to flash the ROM stating data partition couldn't mount.

Anyway, my device is back in working state now. :)

Btw; Do you know which is the recovery posted in this ROM thread? I mean who made it?

Thanks...

Best Regards
[Sony Xperia M] Agu_Ra:
No, I don't know.
[Sony Xperia M] CRACING:
Ok, no problem.

That recovery helps for those who face issues with other recoveries and errors cannot mount /data, /misc partition.

I think its is possible to flash FOTA recoveries through that recovery but I have not tried, instead flashed CM12 in that recovery and it worked.

Thanks...

Best Regards
[Sony Xperia M] metalftw7:
Thank you fellow metal head :cool: Successfully installed TWRP 2.8.4.0 via terminal emulator, Just one question. In case i want to try out CWM. Can i replace TWRP with CWM using the same method?(flashing via terminal emulator) :what:
[Sony Xperia M] Farsiris:
Maybe restore first the original FotaKernel.zip then flash CWM via ternminal emulator .
[Sony Xperia M] Bonoboo:
Of course yes.
[Sony Xperia M] Agu_Ra:
TWRP 2.8.5.0

After many tries to compile last TWRP for our device I just gave up. And here is a port from L again. Sorry for making it so late, I just didn't have enough desire to do this after failing to build it from source.
[Sony Xperia M] AggelosGR:
Whats new?
[Sony Xperia M] metalftw7:
What's new in 2.8.5.0:

-Scale the GUI - TWRP can read the theme's resolution and scale it up or down to fit the theme to your screen's resolution

-Backups*can now be cancelled while the backup is in progress (does not include restore because we don't want to leave your device in a bad state)

-Improve thread handling and move input handling into the main rendering thread to improve stability.

-Make MTP work even if unplugged and plugged back in

-Unify scrollable list code and make kinetic scrolling feel more natural

-Fix handling of mapped zip files for OTA updates (CM12 updater).

-USB keyboards should now work on all devices that support USB host mode via a USB OTG cable

-Other small fixes and improvements
[Sony Xperia M] Simeon Petkov:
Hi. Flashed it on Xperia ZL running resurrection remix rom (lp 5.0.2). It works, but it appears only ot 1/6 of the display.

So, how do i manually scale the GUI ?
[Sony Xperia M] bluepinkpanther:
I was sure this is Xperia M Development thread
[Sony Xperia M] elmkzgirxp:
TWRP 2.8.6.0 for Xperia L is now available.
[Sony Xperia M] koolentx:
Great work! But what if I wanna go back...?

It works like a charm! I wanted TWRP, now I have it. Nice. But hey, what if I still wanna use my old recovery sometime in the future? How can I go back?

Ny sol.ns?

TY. :)
[Sony Xperia M] fcknumb:
works on xperia m dual?

with cm12 and bl unlocked
[Sony Xperia M] mstfkaratas:
yep, 2.8.5.0 works great
[Sony Xperia M] kh34d:
Thank you sir for ur good work.

I have now 2.8.4.0

Can I flash 2.8.5.0 over it??
[Sony Xperia M] Sh0m1:
For some reason, every time i flash this kernel using flashtool, my phone keeps going into recovery instead of booting normally.

Any solutions?
[Sony Xperia M] Agu_Ra:
I will port it if I'll have enough time and desire.

In OP is written about this, and the 3rd post in thread is dedicated to this.

Yes, of course!

It is not regular kernel image, it is made for flashing to FOTAKernel partition, so just flash boot image from your ROM and flash TWRP like is written in OP, not via Flashtool.
[Sony Xperia M] manoj36:
can u compile even for 5.1 if u have time???
[Sony Xperia M] Bonoboo:
With this type of recovery not needed any special compilation: TWRP compatible with 4.4, 5.0, 5.1

Just install it, I use and it works.
[Sony Xperia M] Farsiris:
[MENTION=5917809]cucumber09[/MENTION] Hello Sir .

Im currently using TWRP Fotakernel and i want to replace it with CWM because i want to restore 4.3 using Sir Bonoboos method which is restoring it using CWM recovery only ... Will my TWRP Fotakernel be replaced if I Flash CWM Fotakernel ? SO ill just flash CWM kernel.zip using my TWRP fotakernel ? THX
[Sony Xperia M] Asenk Komputer:
So when i turn nicki on, when pink led is on and i click the vol + button, will i come to built-in-rom recovery or this fota recovery?

Sorry for my bad engish and fool question. i'm real noobie.
[Sony Xperia M] Bonoboo:
This recovery have "high priority".

Built-in in kernel will be skipped.
[Sony Xperia M] Agu_Ra:
Yes, it will. But on stock ROM built in FOTAKernel recovery will not be accessible, so you will be able to access only built in kernel recovery (CWM or PhilZ, depending on kernel).
[Sony Xperia M] Vaste92:
It worked very well with CM12.1 beta 2! Now I have TWRP 2.8.5.0 :D

Thanks so much, that was the only method that managed to wipe away the awful CM recovery.
[Sony Xperia M] itsnie:
how to backup app in external storage with twrp?

Please some one, give me solution ..

Thnks before !! :D
[Sony Xperia M] Agu_Ra:
There's no known solution for now.
[Sony Xperia M] itsnie:
So the only one solution for now is "waiting for twrp team to make that possible" :laugh:
[Sony Xperia M] Agu_Ra:
Need to look TWRP changelog, maybe it is fixed, but I don't know. BTW, I want to try someday to compile TWRP from source. [MENTION=5790433]Rohan purohit[/MENTION] gave me some recommendations, I hope, it'll help.
[Sony Xperia M] itsnie:
I not see anything in here about backup app from external ..

Hope that will done soon!

Keep rock dude :fingers-crossed:
[Sony Xperia M] itsnie:
[MENTION=5917809]cucumber09[/MENTION] i have recovery-ramdisk.cpio (twrp 2.8.6.0) from AD 3.1 experimental builded by JustArchi then i try to make FOTA recovery but always wrong, and i have no idea from now..

So if i give you recovery-ramdisk.cpio (twrp 2.8.6.0), can you make FOTA recovery from that?
[Sony Xperia M] Agu_Ra:
If uncompressed cpio-ramdisk is 8 Mb and more, it won't work from FOTA partition. I had the same problem with older AD's recovery. BTW, you can port TWRP from Xperia L by replacing fstab's in etc folder in ramdisk (maybe some init files should be replaced too, but I don't remember for sure). But you need to know how to unpack and repack cpio, I always do it using command line, but maybe there is software for this.
[Sony Xperia M] itsnie:
Ok! I will try again! [emoji51]

And i use this command to repack + compress ramdisk "find . | cpio -H newc -o | gzip > ../ramdisk.gz"
[Sony Xperia M] sadokhetgd:
hello i have installed an custom rom cm12 using xperia z device running lollipop

when i am entering into recovery cyanogen recovery starts up i need twrp recovery will you please guide me 6-7 steps tutor please help thanks i am a newbie
[Sony Xperia M] itsnie:
I don't know how to help you, sorry!
[Sony Xperia M] Hack3r_45:
i m using cm12 nightlies on my xperia m

i tried to flash this twice but it didnt work for me

ny help plzzz
[Sony Xperia M] Nicklas Van Dam:
Flash this via cm recovery, if can't try with old twrp recovery bro
[Sony Xperia M] babyyeobo14:
I flashed FOTA-TWRP.zip using my current cwm and after rebooting to recovery nothings happen? What should i do? I also use the other way which is terminal emulator also nothings happen
[Sony Xperia M] Agu_Ra:
What ROM are you using?
[Sony Xperia M] babyyeobo14:
Stockrom 4.3 im planning to flash xenonHD thats why i need to flash fota cwm or fota twrp to make it compatible in flashing xenon but still nothings happen,after flashing the fota.zip....it says flashing done in my cwm but when i reboot to recovery my current recovery show
[Sony Xperia M] Agu_Ra:
Tittle says it is for custom ROMs, so stock doesn't support loading recovery from FOTAKernel partition ('cause stock kernel's ramdisk doesn't have extract_elf_ramdisk utility). Flash kernel from needed custom ROM and you will be able to boot to FOTA-recovery (but don't try to boot to system with custom ROM's kernel and stock firmware).
[Sony Xperia M] babyyeobo14:
Sorry i dont get it. I thought fota recovery need to flash before flashing the rom... Recovery for custom roms.. Anyway thanks bro!

EDIT: how can i flash XENONHD if i cant flash this with my current rom which is stock.. One of member comment in that thread that better to use TWRP in flashing xenon :( how can i flash this :(
[Sony Xperia M] Agu_Ra:
TWRP 2.8.6.0

Yeah! Finally, I compiled it! Thanks to [MENTION=5790433]Rohan purohit[/MENTION] for help, the issue was solved by 1 line of code. Here is changelog.
[Sony Xperia M] babyyeobo14:
Can i flash this via flash tool? How? It is..zip
[Sony Xperia M] Bonoboo:
No.

Flash it via current recovery, if available.

If not, read first post for instruction.
[Sony Xperia M] itsnie:
Congratulations dude! :D

Your recovery is more recommended over other
[Sony Xperia M] babyyeobo14:
Is stock rom have stock recovery? I try to turn off my phone then turn it on and pressing volume up but nothings happen
[Sony Xperia M] babyyeobo14:
:/ how can i install it with my current recovery :3 i dont have any recovery
[Sony Xperia M] Bonoboo:
Again: read first post of this thread to install this recovery.

BTW it works only with custom ROM's and needed only for them.

If you need CWM for stock check this folder and flash via Flashtool
[Sony Xperia M] babyyeobo14:
And after i flash that via flash tool i am able to flash now the fota?
[Sony Xperia M] Bonoboo:
Yes, of course.

But again, it will not work with stock firmware, only custom ROM's.
[Sony Xperia M] babyyeobo14:
Im sorry bro call me noob but still dont get it :( how can i have CUSTOM ROMS if i dont have this fota recovery :( ...

Can u check this method

-Flash the cwm for stock via flashtool (the you linked to me

-Next flash the fota recovery via CWM recovery (you linked to me)

-Flash custom roms (via fota)

-Flash gapps (via fota)

Can you,correct what is wrong?
[Sony Xperia M] Bonoboo:
All correct.
[Sony Xperia M] babyyeobo14:
i have cwm now...im gonna flash now the fota

EDIT: I FLASH THE FOTA.ZIP VIA CWM BUT i dont get recovery..
[Sony Xperia M] Agu_Ra:
Flash custom ROM via CWM. In-FOTA-recovery is installed, it will be available when you'll flash kernel from custom ROM (boot.img in zip, flashable via fastboot mode) or the whole ROM.
[Sony Xperia M] dim^n:
No, it hasn't. First of all U need to unlock your bootloader and flash custom boot image.
[Sony Xperia M] Agu_Ra:
2All

Is the last TWRP (2.8.6.0) working stable? Report if there are any bugs. I didn't test it a lot, just checked backup/restore function a bit.
[Sony Xperia M] madper:
This was stable enough i think, there just sometimes when we do advance wipe it will fail to format internal storage (/data/media). It happened regardless the partition is mounted or not, which never happen on previous version.

Sent from my C1905
[Sony Xperia M] kh34d:
I just tried backup and it was good
[Sony Xperia M] Agu_Ra:
Thanks for report. I think it is due to "sdcard on data/media" compilation flag, 'cause it is the only flag, that is not present in Xperia L config, but is present in mine. I will try to compile TWRP without it, but it will be later in June.
[Sony Xperia M] AlexiusItaly:
I flash it and i flash ROM, gapps and change some setting and it's stable.
[Sony Xperia M] evilc1:
Hi,

Have been looking around for fotakernel twrp for xperia t2 ultra dual d5322, I do not know how to compile one. Would it be possible for you to help me.

Thanks,
[Sony Xperia M] Agu_Ra:
I can help you, when I'll be at home (it will be in few days). You can read a guide by [MENTION=912474]Dees_Troy[/MENTION], just search "building TWRP" on XDA. BTW, you should be familiar with Linux. And if you're not, I can help you with repacking kernel for using it as in-FOTA-recovery image, it can be done even on Windows. Of course, you should have kernel with working TWRP.
[Sony Xperia M] ursidae1:
you my friend are a genius! worked like a charm. thank you!
[Sony Xperia M] itsnie:
Yeah, new version of twrp is up (2.8.7.0)

Nice feature, resize2fs !

Can you [MENTION=5917809]cucumber09[/MENTION] build it as soon?

Sent from my waifu
[Sony Xperia M] Agu_Ra:
Thanks for info. I'll try to fight my laziness ASAP.
[Sony Xperia M] Agu_Ra:
TWRP 2.8.7.0

Okay, guys, new version is ready, just baked, it is still hot. Official changelog is here (wipe internal storage should be fixed now, it was not my fault). And, of course, report me about new bugs, if any. Althought, should work stable, as there were no changes in device tree (just synced it with CM12.1, previous version was built on top of CM12).
[Sony Xperia M] AlexiusItaly:
Will try it.. Thanks you :thumbup: :)
[Sony Xperia M] ndrancs:
Downloading and of course flash it. Thanks button touched. Your awesome mate. Thanks.
[Sony Xperia M] Agu_Ra:
Official TWRP!

Guys, now we have official TWRP support! I'll make a new thread with all needed instructions. You can download new TWRP builds from here or via this official TWRP app. More info here.
[Sony Xperia M] Agu_Ra:
Official TWRP

So, guys, as we have official TWRP, here is new thread, dedicated to it.
[Sony Xperia M] manoj36:
[MENTION=5917809]cucumber09[/MENTION] can you theme our twrp materialize as done here

http://xdaforums.com/showthread.php?t=2915584

Simply a suggestion
[Sony Xperia M] Agu_Ra:
It is not needed to mod TWRP to theme it. Just download theme with our device's resolution, rename it to ui.zip and push it to /sdcard/TWRP/theme folder (create if it doesn't exist).
[Sony Xperia M] manoj36:
Thank you sir.. With this I successfully themed my twrp.. it looks so cool nw..
[Sony Xperia M] engloa:
Thread closed at OPs request.

Official thread for TWRP can be accessed here

http://xdaforums.com/xperia-m/orig-development/recovery-twrp-xperia-m-t3147051
[Nexus 6 Q&A, Help & Troubleshooting] laureanop:
Does anybody know where the click sound for HDR pictures is located?? I can't find it in system/media/ui.

I'm trying to erase it but I can't find it anywhere
[Nexus 6 Q&A, Help & Troubleshooting] danarama:
Its in the camera apk itself.
[Nexus 6 Q&A, Help & Troubleshooting] laureanop:
Ugh!! Thank you!!