yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] Agu_Ra:
When using adopted storage function, TWRP reades /data/system/storage.xml to get needed info about storage. If data is migrated to external SD, Internal storage (/sdcard) and adopted storage (/external_sd) become the same storage, I don't know if it is a bug or is should be so. But internal sd storage still can be accessed from /data/media/0 (either in TWRP or system).

If it is not the reason of error, please, provide logs from /cache/recovery/{last_,}log.
[Sony Xperia M] ankushkushal:
No sd card was portable. I didn't migrate it
[Sony Xperia M] Agu_Ra:
So, provide logs or at least screenshot of the error.
[Sony Xperia M] ankushkushal:
srry for l8 reply.m posting recovery log
[Sony Xperia M] Agu_Ra:
The only error I noticed is in these strings:

I don't know why does it happen. Maybe bug, related to fix permissions functionality removal. Write to TWRP IRC channel (link is in About section of their site, if I'm not mistaken).
[Sony Xperia M] ankushkushal:
Okay thnxx bro
[Sony Xperia M] vjye:
i want to install twrp recovery in sony xperia m , currently im using cyanogen recovery on cm12.1

what is the procedure and link to install twrp recovery from cyanogen recovery ?
[Sony Xperia M] kh34d:
Here instructions

https://twrp.me/devices/sonyxperiam.html
[Sony Xperia M] MiyamuraNEET:
More colors in Material design please
[Sony Xperia M] Agu_Ra:
1) Please, remove OP quote from your post, it is known XDA rule and overquoting prevents comfortable reading.

2) I'm not making themes for TWRP, from me you get only vanilla TWRP without any modifications.

However, you can search XDA or Google for TWRP themes.
[Sony Xperia M] MiyamuraNEET:
Sorry but I do not know could show me how to remove
[Sony Xperia M] Smckee420:
Will this work with my xperia c4 E5306??
[Sony Xperia M] Bonoboo:
Emm, no.

This is only for Xperia M.
[Sony Xperia M] a.pavliashvili:
Dunno Why but, on twrp i can`t run cyanogenmod, everytime its boot into recovery mode, then im installing cm recovery for get back my cm rom starting, may be i`m doing someting wrong? i`m flashing twrp with sony mobile flasher by androxyde 0.9.19.10...

p.s. i`m on c2005 running cm12.1 final
[Sony Xperia M] cmxperia:
Use Rasher to install TWRP

Sent using Tapatalk
[Sony Xperia M] Agu_Ra:
Yes, there is definitely something wrong with you. 'Cause every sane person can read and follow such simple instructions. So RTFM or GTFO (and don't ask me what does these words mean, you can google it).
[Sony Xperia M] a.pavliashvili:
grubish ili mne pakazalas?
[Sony Xperia M] Agu_Ra:
Вот подумайте: я сделал определённый труд, чтобы портировать рекавери + постарался оформить это всё так, чтобы у пользователей не возникало проблем/вопросов, потратил на это своё время, чтобы быть спокойным, что тем, кто зайдёт сюда, было всё понятно, даже в заглавном посте большими буквами написал, что это обязательно для прочтения, как и F.A.Q. ниже. Как я должен реагировать, когда это игнорируют и делают по-своему, а потом постят сюда свои проблемы? Когда вот оно решение, буквально на тарелке. И это далеко не единственный случай.

TL;DR: nothing personal, just don't complain if you have not read the OP and have not followed stated there.
[Sony Xperia M] a.pavliashvili:
i gdeje tvaio reshenie? ne zabivasia ne vse vsio znaiut, ne vse tak xashasho umeut angliski, kstati tam ne gde ne napisana kakim sposabam ustanavis recovery(kakoita app Rashr xui evo znaet shto eta takoe) i patamu atsuda vapros,ne nada bila kaikoita FAQ pisat, nada bila prosta skazat ne delaite flash etim putiom a delaite etim i kinul bi link,ia viju ti iz adesi,nu kak tam u nas saakashvili pajevaet?:)

P.S. tnx for your time
[Sony Xperia M] Agu_Ra:
Sorry for my rudeness then, I'm short-tempered sometimes. Here is a link to the official instructions (and it is present in OP).

Простите за мою грубость, иногда я не очень сдержан, особенно когда не в настроении. Я рад, что мы разрешили конфликт. На будущее: если есть проблемы с английским, добро пожаловать на 4pda.ru: вот пост, где есть нужная информация, там практически всё, что здесь, только переведено на русский, разве что некоторых мелочей не хватает. Ну а насчёт Саакашвили, то не знаю, политическими новостями особо не интересуюсь, но, по-моему, поживает он довольно неплохо.
[Sony Xperia M] coolboyforeva:
https://cucumber.fnya.ru/TWRP/twrp-012116-test.img

link not working
[Sony Xperia M] Agu_Ra:
Okay, I'll ask FindYanot what's wrong with it. But why do you need this test build when official 3.0 is the newest for our device?
[Sony Xperia M] coolboyforeva:
I want that nosd version of your twrp. It was detecting adoptable storage wn i flashed before.. M nt able to get dat file now. Yesterday i flashed official 3.0 twrp, but it freezed and was not responding. Maybe due to adoptable storage.
[Sony Xperia M] coolboyforeva:
Also in questions section, you wrote that dont flash it through fastboot or flashtool. But why? I flashed it thru flashtool. Is dat the reason i was stuck with screen freeze with twrp?
[Sony Xperia M] srivmanu:
Cant access /data from twrp. says unable to mount (invalid argument)

Maybe cause of adopted storage? i formated the memory card seperately on the pc.

can anyone help?

PS situation explaination :

device was on cm13 some january nightly using adopted storage

updated to cm13 nightly 20160319

after reboot, it asks for password and says storage corrupt needs factory reset. I got to recovery to reset and i cant.
[Sony Xperia M] Agu_Ra:
I hope I am mistaken but, according to others' problems with similar description, it seems the your NAND memory got corrupted. Try flashing stock firmware to check. If it fails to flash or boot, that most likely means that your NAND is dead, so replacing main board is the only option in such case.
[Sony Xperia M] maikassawi:
hi i forget password for my xperia C1905

and i can't boot in recovery mode and download mode

iam in stock rom orange

i need help for solve this probleme pls
[Sony Xperia M] Agu_Ra:
Sorry, but this thread is dedicated to TeamWin Recovery Project, it has nothing to do with stock ROM issues. Ask somewhere on Xperia M General forum. BTW, re-flashing via Flashtool will help you, I don't see any other options.
[Sony Xperia M] AlexiusItaly:
Sir I'm on 2.8.7.0 TWRP and i want to update to 3.0.0.0 but if i try with TWRP app, it say that i've already install TWRP and online a don't find link to TWRP 3.0.0.0 IMG download bit only md5 TWRP.IMG

Can you give me a direct link for download TWRP please?
[Sony Xperia M] Agu_Ra:
For me TWRP Manager works. And download link is provided in official device page, link to which is in the OP, just checked.
[Sony Xperia M] Godlydevils:
when ever I want to do clean install I flash this using flashtool as kernel, works for me

---------- Post added at 06:12 AM ---------- Previous post was at 06:10 AM ----------

I find that flashing stock rom with reset customization does the work
[Sony Xperia M] ndrancs:
New update here or in op

https://dl.twrp.me/nicki/
[Sony Xperia M] madper:
The newest version of TWRP 3.0.1-0 just released on official site.
[Sony Xperia M] ndrancs:
I can't download the IMG from the above link, can someone provide the mirror like mediafire.com? Please upload the newest version. Thanks
[Sony Xperia M] kh34d:
Today

TWRP Receives Update to V3.0.1-0; Now Supports new CM13 Pattern Encryption

our link is here;)

changelog:-

*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
[Sony Xperia M] Agu_Ra:
Yeah, I've been waiting yesterday for this build to finish, but it appeared just today. I have not installed it yet, if there are any bugs, feel free to report.
[Sony Xperia M] seanp25:
I downloaded the 3.0.1 .img and flashed it in TWRP images mode (upgrading from 3.0.0), but when I went to reboot recovery I ended up Cyanogen Recovery?

The phone still boots into CM13 ok, but whenever I go to reboot recovery I get Cyanogen Recovery, not TWRP. I'll try dd install method now, but not sure what I did wrong the first time.
[Sony Xperia M] AlexiusItaly:
Me too.. If i press on the link to download TWRP.IMG the browser page reload
[Sony Xperia M] digt:
This is OK for me

https://dl.twrp.me/nicki/twrp-3.0.1-0-nicki.img

Inviato dal mio C1905 utilizzando Tapatalk
[Sony Xperia M] AlexiusItaly:
Where do i have to press?

If i press on the blue word it reload the page

And if i press on "md5 for twrp-3.0.1-0-nicki.img" it download me a file of 0.03kb
[Sony Xperia M] digt:
Try another browser. I use Opera

Inviato dal mio C1905 utilizzando Tapatalk
[Sony Xperia M] AlexiusItaly:
All done, was the app ADM (advance download manager) that conflicted with download.. Finally i can have italian language :D
[Sony Xperia M] madper:
In order to boot into TWRP recovery you should press volume up button right when device boot up (the led turn on and device briefly vibrate)
[Sony Xperia M] AlexiusItaly:
I'm in the same condition

I follow this step:

Enter TWRP > Install > tap below Images > find file > select recovery > confirm > back > Reboot > Recovery.

But now i'v got cyanogen recovery.. So i power off smartphone and boot it normaly and i'v cm13 but if i reboot in recovery i get cyanogen recovery, not TWRP.

(I was on 3.0.0.0)

Maybe i'v to flash some FOTA of twrp 3.0.1.0 or reflash the 2.8.7.0 FOTA? (Stupid question) :what:

EDIT: now i'v try to flash it with rashr but nothing change, cyanogen recovery still here
[Sony Xperia M] seanp25:
I tried the dd install method and still I only get Cyanogen recovery, I will try holding volume up later, so far just been trying reboot to recovery option from CM
[Sony Xperia M] AlexiusItaly:
I have found my problem.. The download file it's very small (only 5.01 KB ) and not of 10,1 MB. How to take the right .IMG?

The file is this:
[Sony Xperia M] Agu_Ra:
Kinda strange. I've flashed using dd and everything is fine. If someone else report this, I'll try to reproduce the bug and figure out what's wrong.
[Sony Xperia M] kh34d:
So it's safe to flash it by recovery?
[Sony Xperia M] Agu_Ra:
Yes. Just tested. Everything's OK here.
[Sony Xperia M] ndrancs:
Me too, it's html file not the right IMG
[Sony Xperia M] mankokoma:
had the same problem yesterday - try another browser to download!
[Sony Xperia M] Agu_Ra:
I tried downloading using Firefox and Palemoon and everything was alright with links.
[Sony Xperia M] seanp25:
Same here. Somehow the .img didn't download correctly. Only 5kB after downloading on my phone using stock CM13 browser.
[Sony Xperia M] AlexiusItaly:
ALL DONE.. The way is to download twrp with other browser like OPERA but absolutly not with stock cm browser. Than you can flash it as you want :)

[MENTION=5917809]cucumber09[/MENTION] do you know why there is this problem with stock cm browser? And please write this problem on the first page to prevent other people's problem
[Sony Xperia M] cmxperia:
TWRP 3.0.2-0 Released

Apr 5, 2016

TWRP 3.0.2-0 is out now for all currently supported devices.

What’s new in 3.0.2-0:

Fix a bug with the input box that affected masked inputs (passwords). This fixes decrypt of full device encryption on devices that support decrypt. This bug also impacts encrypted backups. Users are highly encouraged to stop using 3.0.1 if you use encrypted backups or if you need decrypt of data in TWRP.

Add Greek translation to some builds.
[Sony Xperia M] delmadord:
Hello,

I have read 20+ pages from related Xperia M CM13 threads, but I could not find this infromation: can I re-enable SElinux protection after the TWRP is installed? I do not need to have it rooted, I just want the permanent TWRP recovery present.
[Sony Xperia M] Nicklas Van Dam:
FOTA Recovery doesn't disable your SE-Linux protection if you install this. This only recovery mod and you've safe for that option bro :fingers-crossed:
[Sony Xperia M] delmadord:
Thanks for a reply. I am a little bit confused though, because TWRP installation requires root, and rooting on the other hand requires persistent SElinux disable. I am a newbie in this area, what I am getting wrong, please?
[Sony Xperia M] Iznogoud31:
TRWP vanished after successfull flashing

Hello,

First time posting here.

My phone is Xperia M Dual C2005.

Current recovery : CWM v6.0.5.1

Current ROM : CM11.

Following external SD-Card failure, all apps linked by Link2SD are away and my phone is totally messed up.

As I have to install CM again, it's time for me to upgrade to CM13.

According to CM13 Xperia M OP, first step is to move to TWRP if not already installed.

I have followed instructions of TWRP Xperia M official page to install TWRP 3.0.2-0.

First, I've tried the TWRP Manager method. Installation was successfull but after reboot in recovery CWM was still here and TWRP vanished.

Googling around learns me TWRP Manager is suitable for stock ROM only. It was not obvious for me after reading this thread OP and TWRP Xperia M official page instructions.

Then, I've tried the dd method (via ADB SHELL) successfully.

But, when booting in recovery, CWM is still there.

Guessing there is may be a bug in last TWRP release, I've also tried TWRP 3.0.0-0. (dd method as above).

Same issue : CWM is still present despite TWRP flashing seems to be successfull.

For the time being, I'm stuck here and any helpfull advice will be greatly appreciated.

Thank you for reading.
[Sony Xperia M] cmxperia:
Use CyanogenMod inbuilt root option (u can see it in developer options) + Rasher to install TWRP.

Default root doesn't changes your SE Linux status

Sent using Tapatalk
[Sony Xperia M] Agu_Ra:
Sorry, I have not fixed TWRP 3 for KitKat yet. You need TWRP 2.8.7.0.
[Sony Xperia M] Iznogoud31:
Thank you very much for your advice.

TWRP 2.8.7.0 is working fine with CM11.

CWM has gone.
[Sony Xperia M] Nicklas Van Dam:
Yeah it will need to disable SE Linux for rooting, if you want to root by SuperSU by chainfire. BTW that's for marshmallow based ROM only to need that. If you've lower than that you can root with su from chain fire. Our CM 13 is support built-in su that not need to disable SE Linux anyway :fingers-crossed:
[Sony Xperia M] delmadord:
Thanks for advices, I have used built-in CM root enable + Rasher to flash TWRP 3.0.1 as recovery and it worked (and it is still there after reboots).

Waiting for the new CM13 nightly to fresh reflash on TWRP because last time I did it with the CM recovery and my SD card in internal mode does not accept files from most apps (notably Play Music and Google Photos) - but this is an info for this thread.
[Sony Xperia M] KProject:
TWRP 3.0.2-0. Can't format and change file system, Already uncheck 'use rm -rf instead of formatting' in setting.

How to format my /data and /cache partition to EXT4? (Using F2FS for now)

Edit: Problem was solved using TWRP 2.8.7.0

:D Sorry my Bad English :D
[Sony Xperia M] Antrikos48:
How can I decrypt internal storage? I'm using a pattern but I'm never asked to enter it.
[Sony Xperia M] N RAM:
I tried to wipe system, cache etc. I got a message

Failed to mount '/system(Invalid argument)

Failed to mount '/cache(Invalid argument)

I read some Q & A about this but they were not useful for me.

Can anybody tell me the reason for this and a method to solve the problem.
[Sony Xperia M] Nicklas Van Dam:
Are you using TWRP recovery ?
[Sony Xperia M] cp101da:
Help on locked bootloader but rooted phone.

Will using the twrp manager app on the twrp website(official xperia m page)for flashing twrp on my phone (stock ROM 15.5.A.1.5) cause bricking?

Because on the official website it doesn't show any requirements other than having root access which I have.

Will I be able to flash custom ROMs?

Also will this create problems for dual sim(C2004)?
[Sony Xperia M] Bonoboo:
2.8.7.0 compatible with all custom ROM's, but not stock.

3.0 works only with 6.0 rom's.

After installing over stock nothing happens, you just can't enter recovery, as always.

It's possible integrate 2.8.7.0 directly in kernel, but screen will be splitted.
[Sony Xperia M] cp101da:
So what can I do then??
[Sony Xperia M] Bonoboo:
Use CWM
[Sony Xperia M] cp101da:
Okay so the flashtool would be able to flash CWM without unlocked bootloader?
[Sony Xperia M] cp101da:
Is it possibly manually from terminal emulator using stock ROM custom kernel and fotakernel.img, code was in this thread :

http://xdaforums.com/showpost.php?p=58587209
[Sony Xperia M] cp101da:
Recovery installation help

Assuming I have Unlocked my bootloader(I haven't yet, but have full root) , since unlocking it will remove the OS also, I wouldn't be able to use my phone right?

Then do I have to flash stock ROM or can I straight away flash the TWRP recovery and flash the custom ROM that I want?
[Sony Xperia M] Bonoboo:
1. Stock kernel won't launch fota-recovery

2. Impossible boot custom kernel on locked bootoader. It's locked specially for that.

So still no.

You can skip flashing stock.

First you anyway need install kernel with CWM.

To fix usual bootloop after unlocking perform "wipe /data and /data/media". This done by Flashtool but CWM nice too.

Then, after flashing custom rom install persistent TWRP.
[Sony Xperia M] cp101da:
Ok thank you!

So flashing stock ROM is really required?

Can I somehow create the required ftf file from the stock ROM currently installed?

What if I used fastboot? Would it still require flashing stock ROM after unlocking?
[Sony Xperia M] Bonoboo:
I described in post above (edited).

1. No, you will perform same fix in CWM, that usually done by Flashtool: normal formatting whole /data

File system damaged by unlocking as intended (security feature).

2. No.

3. Anyway you need fastboot for:

a) unlocking

b) flashing any stock kernel with CWM

Well, Flashtool can do the same. As you wish.
[Sony Xperia M] Tommienots:
dd install

I did the dd install method because I cant find our device in the device list but the website has wrong codes

it should be "ext_card" instead of "sdcard" right?
[Sony Xperia M] SunitTalwar:
actually no here sd card refers to the location where kernel img is placed in case of fota kernel the op asked to extract the contents in external sd card so it was ext_card but here you are asked to place the .img file in root of sd card(internal) so use the same command in the picture if your kernel is in sdcard or use ext_card if it is in external card
[Sony Xperia M] Agu_Ra:
Code is right. 'Cause it is written to put to sdcard/ folder (it is internal storage symlink on our device), not to SD card as device (its mount point is symlinked as ext_card/).
[Sony Xperia M] Tommienots:
sorry i got confused. i now remember that the sdcard path is the 2gb internal storage :)
[Sony Xperia M] Agu_Ra:
TWRP with supporting apps on SD!

Now it supports backing up/restoring and wiping android_secure, where apps on SD-card are located.

You can download repacked image from GDrive or wait for the next official version release. I'll add this commit to the official device tree soon.

You can install it using TWRP or dd install method.
[Sony Xperia M] itsnie:
I can't wait :D

Downloading now :D

Sent from my waifu
[Sony Xperia M] ndrancs:
This morning I format the /data partition. Before doing that I backup it. I think it will backup internal storage also but it doesn't. So after the restore I lost all files on I internal storage. S***

In backup menu I don't see internal storage.
[Sony Xperia M] Agu_Ra:
Yes, it is not backing up. You can save files from internal storage manually. BTW, wiping data should not wipe your storage (though I don't know, does so Factory reset or not).
[Sony Xperia M] Remorcer:
Umm what

The "Newest" official edition is actually 2.8.3.0 even though it's named 2.8.7.0? Downloaded it from the twrp page...
[Sony Xperia M] Agu_Ra:
No, it is sure 2.8.7.0. Like on screenshot in the OP.
[Sony Xperia M] Remorcer:
Don't know what happened then :/
[Sony Xperia M] Agu_Ra:
You did something wrong. What install method did you use? Can you say what you did step-by-step? And what kernel are you using?
[Sony Xperia M] Remorcer:
My bad, i guess the 2.8.7.0 is causing some kind of conflict with the nui kernel, but 2.8.5.0 works just fine. Flashed the image with 2.8.5.0 version of the recovery.
[Sony Xperia M] Agu_Ra:
I use the last nui kernel and no conflict for me, everything works. Read installation guide from the link in the OP and check if you did everything right.
[Sony Xperia M] Remorcer:
There are 2 methods to replace the fotakernel i know of, 1st being the dd command and the other by flashing the image through twrp, none are working for the 2.8.7.0 version of twrp for me, I'll check out why when I have time
[Sony Xperia M] Agu_Ra:
Try redownloading it. Seems that image is corrupted. Also there are checksums on download page, you can compare them to check if it is okay with them.
[Sony Xperia M] itsnie:
For me, all works fine include version of twrp and backup android_secure :D

Sent from my waifu
[Sony Xperia M] Nicklas Van Dam:
our new Official TWRP still not available on twrp manager in playstore :)

but it's available on Official TWRP website, i think twrp manager in playstore still not updated yet their app :confused:
[Sony Xperia M] Agu_Ra:
Yes, there are some new devices that are not included still. I emailed TWRP Manager devs and that's what they replied to me:

So let's be patient and wait. I hope it will be fixed prior to next TWRP release.
[Sony Xperia M] Nicklas Van Dam:
okay thanks for your reply sir:)

i'm waiting it, but thanks to make our twrp is official now :D
[Sony Xperia M] cp101da:
In the earlier post you said I can skip flashing stock if I use CWM kernel. How do I do this?

Should I follow the CWM link you gave me?

It says to flash it via flashtool. But my bootloader is locked how would I access the recovery after flashing it or use custom ROM?
[Sony Xperia M] Bonoboo:
Summary:

0. Copy desired ROM and gapps on microSD

1. Unlock bootloader via Flashtool, fastboot - doesn't matter

2. Don't turn on phone

3. Download and flash via anything any kernel with CWM

4. Enter CWM - on Sony logo and LED press Vol Up

5. Select mounts and storage > format /data and /data/media (/sdcard)

6. Flash rom and gapps

7. Boot phone

8. Install persistent TWRP via app or manual method
[Sony Xperia M] cp101da:
Many many thanks man!

I just want some help on step 1-3.

I would really appreciate it if you could elaborate it a bit more.

Because I read in various threads that unlocking bootloader will give bootloop so if I unlocked bootloader I am in bootloop. Then how would I proceed?
[Sony Xperia M] Bonoboo:
Again: yes, you get bootloop, it's normal.

But you will fix it preventively by formatting /data and /data/media in CWM.

Just follow steps.
[Sony Xperia M] cp101da:
And correct me if I'm wrong. I need to format

/data after unlocking bootloader and flashing recovery, right?

That's what I am asking what should I do in between (after unlocking and before flashing recovery) when it is in bootloop?

Again sorry for troubling you so much.

Be gentle it's my first time! :o
[Sony Xperia M] Bonoboo:
1. Yes. And not just /data: mounts and storage > format /data and /data/media (/sdcard)

2. In between – nothing. Just don't turn on phone.

Steps described above
[Sony Xperia M] cp101da:
And just one last thing, not turning on means removing the battery when in bootloop after unlock, right?
[Sony Xperia M] Bonoboo:
Don't remember, does phone turning on itself after unlocking > will stuck on animation.

If yes – remove battery for 5 seconds, then insert.

If no – just don't touch power button / cable and keep work with phone via Flashtool / fastboot to write CWM-kernel.
[Sony Xperia M] N RAM:
Yes. Of course