yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M] Nicklas Van Dam:
oh sorry, i'm forget it. that was my mistake, thanks for correct it ;)
[Sony Xperia M] H4NNE5:
Hi, I have the problem, that I can't install TWRP into the Recovery partition.

First I used "fastboot flash boot TWRP.img" because "fastboot flash recovery TWRP.img" returns a FAIL.

I tried to install it again inside the TWRP selecting "Recovery" but that also doesn't work as after installing the ROM Zip it is overwritten by the boot image of the ROM :(

What's wrong there? It's the same problem with the other XPERIA M I have.

Also: Where can I download the new image??? There is no direct link here.
[Sony Xperia M] hhjadeja007:
Follow this link

https://xdaforums.com/xperia-m/orig-development/rom-cypheros-3-1-cheesecake-t3505798/post72627720
[Sony Xperia M] petjacz:
The new FOTA recovery image for Xperia M: https://xdaforums.com/xperia-m/orig-development/recovery-twrp-xperia-m-t3147051/post73544150

Alt. installation method: https://xdaforums.com/xperia-m/orig-development/recovery-twrp-xperia-m-t3147051/post73609732
[Sony Xperia M] H4NNE5:
Thanks for the link! :) [MENTION=7630936]hhjadeja007[/MENTION] My problem now is that I don't get the Superuser. I downloaded and installed the package as described here but when I enter "SU" in the console it tells me "not found".
[Sony Xperia M] A7.Rtb:
hello there

I extracted FOTAKernel.img from the zip file and installed it with TWRP itself (Ver 3.0.2-0) as install img.

Is there any problem with this method ?, I think It worked for me.
[Sony Xperia M] H4NNE5:
Did you install it as "boot" or "recovery"?

I did the same(into "boot" and into "recovery") and after I reinstall the "boot.img" from the LineageOS-Zip I get to the recovery from this "boot.img" which isn't even working.

If I don't press the "Volume Down" Key, the phone boots up normally.
[Sony Xperia M] Nicklas Van Dam:
Install this one on recovery, or do in terminal emulator.

Copy FOTAKernel.IMG to your sdcard and type this command:

su

dd if ="/mnt/sdcard/FOTAKernel.img" of ="/dev/block/platform/msm_sddc.1/by-name/FOTAKernel"

It should push TWRP to your fota partition, then you safe to use your TWRP now :)
[Sony Xperia M] H4NNE5:
First I have the superuser problem, second if i just enter your command I get a "can't open", "no such file or directory" message.

As I told in my last post I already installed the TWRP using the "recovery" checkbox, which doesn't work.

Can you please post a step by step manual how you proceed with a brand new phone after you unlocked the bootloader?
[Sony Xperia M] A7.Rtb:
First, I installed boot.img file from lineageos zip as "Boot" then FOTAKernel.img from TWRP zip as "Recovery". then, I installed the LOS zip and the other zips I want, and I think It's working.

when I press "Recovery" from advanced restart menu, It takes me to TWRP.

and when I boot up my device manually with the power button and the light turns pink, Volume Up takes me to TWRP, and Volume down takes me to stock Android Recovery.

Excuse me for my many questions [MENTION=5608002]Nicklas Van Dam[/MENTION] , but I'm not sure about that.

Does everything normal with my method, or there is something wrong that I don't know about It ?
[Sony Xperia M] shaheenbaaz:
Catch 22, I read here TWRP cannot install in Stock ROM, but a custom recovery is required for a custom Rom

Sorry but I just can't understand how to install TWRP.I tried to read the thread(and the internet) as much as I can

My final aim: to install RR ROM.

My current situation:

C1904 Jelly bean 4.3

Kernel 3.4.0 user@su-buildpc-03 #1

Build 15.4.A.1.9

Bootloader unlocked

Root access with SuperSu

(I rooted phone 2 years ago, have no clue about any custom recovery installed, I don't there is any ,bcoz I tried many ways to boot to recovery; always end up in boot to system)

Things I already tried

1)Flashing TWRP 3.0.2-0-nicki using official app (no errors , but didn't work)

2)Flashing same using Rashr (again no errors , but didn't work)

3) Using minimal Adb fastboot

Command given "fastboot flash boot twrp.img"

Or "fastboot flash recovery twrp.img". Always error:

Failed (remote: command not allowed)

4) using Flashify :Partition not found , cannot flash recovery.

Please help, will be very grateful.
[Sony Xperia M] hhjadeja007:
Is your bootloader unlocked? Anyway you can follow this link and try : [youtube]SJBLq19NrfY[/youtube]
[Sony Xperia M] shaheenbaaz:
Yes my bootloader is unlocked.

Actually I had already seen the video and followed the exact steps, got the same error as discribed in my last post.
[Sony Xperia M] hhjadeja007:
Well then you can try cwm or philz recovery also
[Sony Xperia M] petjacz:
2 shaheenbaaz: I think twrp can be used on stock rom only if you will have custom kernel so first you must flash different kernel and then twrp
[Sony Xperia M] H4NNE5:
DAMN, Volume UP!

I only used Volume Down so far. I didn't know about that option.

Now everything is working as expected, except for some Lineage bugs of course, but that is a different chapter :D

Were you able to root your phone? Because all I tried failed, including Towelroot, Flashtool-Rooting and Framaroot.
[Sony Xperia M] shaheenbaaz:
That is what confuses me... How and which kernel to flash?...my final aim is RR rom, please guide :confused:
[Sony Xperia M] petjacz:
2 shaheenbaaz:

Using twrp on stock rom with custom kernel = shaking/jumping twrp recovery but it's possible to go through (my way). If you want know how, I must summarize my steps and post it later.

Another possible ways inside this thread are e.g.:

by krouma:

https://xdaforums.com/xperia-m/orig-development/recovery-twrp-xperia-m-t3147051/post72560821

by rexroni:

https://xdaforums.com/xperia-m/orig-development/recovery-twrp-xperia-m-t3147051/post71308952
[Sony Xperia M] Nicklas Van Dam:
Have you read guide about how to flash this? This is a FOTA Recovery, that mean this flash to FOTA partition not boot / kernel partition. I'm already upload flashable zip, and you can flash it using recovery mode. And if you don't have custom recovery then you can try with manual method using terminal command this for how to do it Link

And this recovery won't work on stock ROM, so you'll need to use custom ROM to use this recovery.

Please read all guide for installation before ask, that will better and help us to fix your problem.
[Sony Xperia M] shaheenbaaz:
I checked many custom Rom threads ,all are instructing to install ROM via custom recovery.

Even the link you shared asked for custom Rom

As I said in my earlier post my final aim is RR ROM

Can someone please guide me to how to install a custom Rom (and which one)

without recovery , so as to install TWRP so that I can install RR rom.

It's all to confusing, Please help
[Sony Xperia M] eboelens:
OK

1. download the custom rom for example rr rom (or another rom (I prefer lineageOS)

2. download the gapps (I preferer Pico)

3. download twrp (see https://twrp.me/sony/sonyxperiam.html) ===> Primary Europe or Americas

save all 3 to your sdcard

which OS on your pc ?

erik
[Sony Xperia M] shaheenbaaz:
Windows 10 , solution looks too good...plz continue :good:
[Sony Xperia M] eboelens:
Now it is time for installing 'ADB' on your pc with win 10

I 'm not familar with WIN10 (only Linux en OSX) but

you can trust this link :

https://xdaforums.com/showthread.php?t=2588979

for installing ADB

so:

download and install version 1.4.3

and come back here
[Sony Xperia M] shaheenbaaz:
Installed ADB 1.4.3 & SD card is also ready with the files
[Sony Xperia M] eboelens:
ok

maybe it was better to give you this link with video :

https://www.xda-developers.com/sony-xperia-bootloader-unlock-video/

Si it is time to unlock the bootloader

follow this link

https://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/

you will receive a mail from Sony (check SPAM)

if you have questions come back here

Erik
[Sony Xperia M] shaheenbaaz:
My bootloader is already unlocked...I rooted it in 2014 with SuperSu.

Confirmed it by dialing the Ussd code

Where is says "Rooting status : Bootloader unlock allowed Yes"

Code was 7378423
[Sony Xperia M] petjacz:
Hi, "Bootloader unlock allowed Yes" doesn't mean you have UBL, rooting is not unlocking ;)
[Sony Xperia M] shaheenbaaz:
It will take time for me to pass this step... Did all the steps for unlocking bootloader, almost successful then

phone got stuck in BOOTLOOP. :(

I read at many places it's normal with Xperia devices, I just need to flash firmware ftf with flashtool.

Small doubts...which Flashtool to use 64or 32, &

Where to download FTF

Also

Does is there a better solution, as at the end of the day I don't want stock ROM or firmware & maybe my Bootloader is unlocked
[Sony Xperia M] Agu_Ra:
If before unlocking the bootloader you were running the latest 4.3 firmware, it is not necessary to re-flash stock ROM after unlocking. You can flash custom ROM straight away.
[Sony Xperia M] shaheenbaaz:
I was running 4.3 built 15.4.A.1.9 .... Directly Flashing will save a lot of effort. ,:victory:

Situation:

My SD card is loaded with twrp, Custom ROM & Gapps.

Phone in bootloop

Windows 10 PC ready with ADB and flashtool.

Please guide how should I proceed
[Sony Xperia M] petjacz:
Shutdown phone, boot into TWRP, continue using this guide (https://www.xda-developers.com/how-to-install-custom-rom-android/) or search for video @ youtube ;)
[Sony Xperia M] shaheenbaaz:
That's where my problem revolves...I don't have Twrp or any other custom recovery installed
[Sony Xperia M] Bonoboo:
So flash stock .ftf via Flashtool, it will write correct /userdata (bootloop due incorrect filesystem after unlock-wipe).

For your information: persistent TWRP not compatible with stock, it will just not enter. Use this kernel with CWM for first install.
[Sony Xperia M] shaheenbaaz:
I tried fastboot flash TWRP and it was installation was successful ...

I wiped everything and installed Custom Rom(RR)

& GApps

There was one error "e unknown command log" twice

And bootloop exists in RR ROM and TWRP is running.

Is there anything that can be done or should I flashtool stock firmwares FTF
[Sony Xperia M] Bonoboo:
In TWRP > Wipe > button Format /data > Yes
[Sony Xperia M] shaheenbaaz:
Tried format data as well didn't work.

Still there's BootLoop
[Sony Xperia M] hhjadeja007:
Follow this video and try to find out where you did wrong : [youtube]SJBLq19NrfY[/youtube]
[Sony Xperia M] shaheenbaaz:
Everything as per video...however the stock ROM was already on BootLoop when I installed TWRP

What to do now?

Also when Boot animation is on loop is there any button combination to shut down instead removing the battery
[Sony Xperia M] hhjadeja007:
If you are using memory card, try rebooting your phone without memory card. I know it sounds weird but it worked for me once.

Now if that doesn't work for you then flash the ftf by using flashtool.
[Sony Xperia M] shaheenbaaz:
"Without SD card" trick didn't work.

Also tried with CWM and also tried reinstalling TWRP after flashing original FOTAKernal zip.

Nothing seems to work, always getting BootLoops

I should proceed with flashing Ftf:

The link given in the last page is of c1905, my phone is c1904...would that work ?

else where to find C1904 Ftf

Also flashing instructions? What to Wipe/exclude in flashtool

After that , how to install TWRP (via

fastboot flash boot boot.img or some other method)

Please give guidance.
[Sony Xperia M] Bonoboo:
1. In CWM select mounts and storage > format /data and /data/media and try to boot.

2. Yes.
[Sony Xperia M] shaheenbaaz:
Tried data format in CWM as well...didn't help
[Sony Xperia M] LastDarkWarlord:
man i would like for the official TWRP for Xperia M updates to 3.1.1-1
[Sony Xperia M] Nicklas Van Dam:
What's change for that version?
[Sony Xperia M] LastDarkWarlord:
version doesnt have a changelog but when i saw in the download page it said new version 3.1.1-1
[Sony Xperia M] Nicklas Van Dam:
Okay, I'll look for what's change. Maybe try to build it if I've time, now I'm prepare for mid exams for next week.
[Sony Xperia M] LastDarkWarlord:
so which features doesnt work on twrp 3.1.1 for xperia m
[Sony Xperia M] Nicklas Van Dam:
All worked sir, no problem so far :fingers-crossed:
[Sony Xperia M] LastDarkWarlord:
only problem here is that u cant mount a usb to install zips but that happens in the official version too
[Sony Xperia M] Nicklas Van Dam:
Mount USB? You mean USB OTG? If USB otg then plug your flashdisk to otg socket to your phone, go to mount option on twrp and choose otg option.

And it should mount otg device, I'll check if you have another problem
[Sony Xperia M] PuiuMarius2000:
It works for me:)

Tested.

Replace default CWM with TWRP 3.1.1.0 (unpack and repack kernel) : ramdisk-recovery3.1.1-0.cpio.zip

Tested.More test next days.(should be OK).

Sent from Xperia M powered by Marshmallow.
[Sony Xperia M] LastDarkWarlord:
thats wat i did but it doesnt mount it i tried with all formats
[Sony Xperia M] PuiuMarius2000:
Review TWRP 3.1.1.0

1) Full backup = OK.

2) Wipe System,Data(without sdcard),cache = OK.

3) Restore full backup = OK.

4) Flash zip file from sdcard and usb otg = OK.

Conclusion : Can be used as default recovery:)

Better than TWRP 3.0.2.0.

More tests next month.

Thanks [MENTION=5608002]Nicklas Van Dam[/MENTION].

Sent from Xperia M powered by Marshmallow.
[Sony Xperia M] ReeSilva:
Sorry guys for bother you with a so old phone, but I didn't understand how to install TWRP coming from stock ROM with bootloader unlocked. Can u guys explain me better?
[Sony Xperia M] RAZER001:
install twrp by dd method or flash FOTA twrp.zip from cwm.

then install boot.img (from the rom u want to install) from flashtool .

boot into recovery u'll get twrp
[Sony Xperia M] ReeSilva:
Hey Razer001, really thank u for the reply.

But, to install from DD method didn't I need to be rooted? And, to be rooted I need a custom recovery.

I believe that I do not have CWM on my phone. At least I can't boot in any recovery.

Thank u in advance.
[Sony Xperia M] RAZER001:
yup u will need root for dd

and for cwm u have to install using flashtool in fastboot mode
[Sony Xperia M] petjacz:
2 ReeSilva: first you must root (TowelRoot is OK) then use RASHER app (https://xdaforums.com/showthread.php?t=2334554) to flash stock kernel with CWM recovery (posted by Bonoboo here https://xdaforums.com/showpost.php?p=74156995&postcount=515)
[Sony Xperia M] ReeSilva:
Wow, it works, thanks. Just one last doubt. After this, can I install TWRP or I have to install a custom ROM first?
[Sony Xperia M] gothed:
can we directly flash it from previous version TWRP?
[Sony Xperia M] acceleron:
install

Ok, so is there a detalied explaining how to install the recovery. You go to the main page, download the recovery. What is said on the instructions is not related to what is in the app.
[Sony Xperia M] Nicklas Van Dam:
Updated TWRP 3.2.1-0

Sorry for off topic, I'm already ported TWRP v 3.2.1-0 to our device (nicki). And almost all feature work without problem, working features : Adoptable storage (ext4,vfat or f2fs), Backup & Restore, Flash zip and other core function is currectly working ;).

here for testing :)

View attachment 4405009 View attachment 4405010 View attachment 4405011

And for changelog, it's refer to original TWRP website.

credit to [MENTION=5917809]cucumber09[/MENTION] , [MENTION=5037002]Bonoboo[/MENTION]
[Sony Xperia M] petjacz:
If you want to leave stock ROM and want to go directly to another one (e.g. resurrection remix), after you make a phone backup using CWM, you can try switch your recovery to TWRP. I used modified SXDNickiDS Kernel where is old TWRP included (https://www.uloz.to/!cLSJK9dwiO5y/kernel-sxdnickids-v5-5-twrp-v3-0-2-0-boot-zip *).

This recovery has crazy shaking/jumping screen behaviour (when on stock ROM) ... :eek: .... but is usable to backup your stock ROM and port your single/dual SIM phone to custom ROM. I used it with success on both SIM versions. BUT do it at your own risk and take the responsibility upon yourself.

* This kernel is recommended only for transition to another ROM when used on single SIM!!
[Sony Xperia M] Bonoboo:
Thanks for this, but I found important bug.

Even after wiping /system, /data and rebooting recovery it can't flash at least last official build LOS 14.1

Reason: something wrong with date format (used your local?).

Same time official TWRP flashed it in same conditions.

Error from recovery.log:
[Sony Xperia M] Nicklas Van Dam:
hmmm, for flash system i don't have any problem with flash latest lineage from link it should be flash normally. I'll look around in github source, and for timezone i'm using my local time zone for compile. But it can't generated because this log '__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!' it already happen since last official TWRP build i think :rolleyes:.

I'll try to download twrp source again with your ROM to test it, thanks for reporting sir :)
[Sony Xperia M] petjacz:
Hi, I confirm succes full-phone restoration of the backup created with older TWRP 3.1.1-0.
[Sony Xperia M] Nicklas Van Dam:
Are you've problem with flashing ROM with latest TWRP?
[Sony Xperia M] petjacz:
I will do the test with Resurrection Remix Nougat v5.8.5 (verified version) and will let you know.
[Sony Xperia M] petjacz:
Installation RR v5.8.5 with TWRP 3.2.1-0 on single SIM without problem.

EDIT:

How to get /persist/ folder content via TWRP?
[Sony Xperia M] Bonoboo:
For some reason (full inbox?) you can't recieve PM, so I answer here.

Thanks for test build, but it not helps: still same error at same conditions, but now with new date (9).

Definitely format must be default, not local.

And maybe better revert back f2fs option, someone can use it.
[Sony Xperia M] Bonoboo:
Also here check in updater-script of official ROM:

(!less_than_int(1493289184, getprop("ro.build.date.utc"))) || abort("E3003: Can't install this package (Thu Apr 27 10:33:04 UTC 2017) over newer build (" + getprop("ro.build.date") + ").");

Seems ro.build.date.utc must be set to 0 in TWRP.
[Sony Xperia M] Nicklas Van Dam:
hmm why ro.build.date.utc can be dependencies to install a new ROM :confused:, i'm not found that in latest Lineage ROM updater-script. I think for dependencies to install ROM for specific device only need ro.build.product or ro.product.device to read device codename and install if it true.

I can't find ro.build.date.utc = 0 in TWRP, i think this problem is related to tzdata can't read by TWRP. This bug is come from TWRP 3.0.2-0 LInk
[Sony Xperia M] Bonoboo:
1. As I stated above, that this happens only with last official build

2. But again 3.0.2-0 flashing same ZIP without error.
[Sony Xperia M] Bonoboo:
Here micro-zip for testing which contain only that problematic command. Safe to flash.

For example on my other device (not M) with 3.2.1-0 no error.
[Sony Xperia M] Nicklas Van Dam:
script aborted: E3003: Can't install this package (Thu Apr 27 10:33:04 UTC 2017) over newer build (Jum Peb 9 05:57:20 WIB 2018).
E3003: Can't install this package (Thu Apr 27 10:33:04 UTC 2017) over newer build (Jum Peb 9 05:57:20 WIB 2018).
error: 3003
Updater process ended with ERROR: 7

Okay, i got the error, it's from dependency on updater-script on this string "(!less_than_int(1493289184, getprop("ro.build.date.utc")))". But i don't understand from where that script pick string to compile, if that script use ro.build.date from this date "Thu Apr 27 10:33:04 UTC 2017" then ROM won't install because this recovery has newer build date on (Jum Peb 9 05:57:20 WIB 2018). And same if that script compare "ro.build.date.utc", your zip have "ro.build.date.utc=1493289184" and recovery have "ro.build.date.utc=1518130640" that make ROM won't install because that argument is use less than, so it should lower than that zip ro.build.date.utc :eek:

But if only problem with timezone that not match, then i'll try to recompile TWRP again with US timezone :eek:.
[Sony Xperia M] asoni474:
[MENTION=5917809]cucumber09[/MENTION] bro I am currently stuck on boot logo and i have cyanogenmod recovery installed is there any way i can install twrp?
[Sony Xperia M] Marek8299:
flash it as boot
[Sony Xperia M] supk:
Help Needed

I know it is inappropriate to post here something not related to this thread but I am in a critical situation please help me out. Here is my problem.

Recently I unlocked bootloader of xperia m and got stuck into bootloop so I flashed 4.1.2 after that I used fastboot method to install twrp recovery and installed custom rom from here (https://xdaforums.com/xpe...5-8-0-t3512094) now as my phone is single sim one there will be no problem but as it came to the setup screen after clicking next it told me insert sim card so I reinserted but nothing happens. After this I thought to reinstall custom rom but to my utter surprise it does not boot into twrp recovery but it boots into some unknown recovery. So again I fastboot and installed twrp and again installed the custom rom but nothing changes sim does not work. Now I thought to flash stock rom but I cant't do that too it showing me unknown device. So what shall I do now to get out of this situation.
[Sony Xperia M] Bonoboo:
You skipped booting once into stock which required because you downgraded radio module by 4.1.2

This backups should help.

UPD: you need 4.3 radio.
[Sony Xperia M] supk:
Yes sir I am downloading this got the radio also. Can you tell me which one to flash first? that firmware then radio.
[Sony Xperia M] Bonoboo:
Doesn't matter. Also check guide in that thread.
[Sony Xperia M] supk:
Thank you sir for helping me it have solved the issue. Now can I install a custom rom also please help me with step to install.
[Sony Xperia M] Bonoboo:
Nice.

But you already did that before, so know steps: wipe /data, flash rom and gapps.

And don't forget persistent TWRP from first post of this thread.
[Sony Xperia M] skeleton2323:
How can I do that?

How can I install it

(android version 4.1.2)
[Sony Xperia M] Droidriven:
If you're asking this question in this thread, that tells me that you haven't even read the first post of this thread. If you want help around here, don't be lazy, we don't help lazy people that don't take the time to at least read the first post of the threads that they post their questions in. You need to start reading the threads BEFORE you ask questions.
[Sony Xperia M] skeleton2323:
if I can't install twrp without a custom rom then how do I install a custom ROM without a custom recovery?
[Sony Xperia M] Marek8299:
Custom ROMs usually comes with recovery packed in boot.img. If not, try flashing TWRP as boot.
[Sony Xperia M] kjinx01:
is this possible to theme official twrp recovery????
[Sony Xperia M] Agu_Ra:
Of course, TWRP is themeable, and no matter if it is official or not.
[Sony Xperia M] kjinx01:
thanks for the information
[Sony Xperia M] oemaritradey:
[MENTION=5917809]cucumber09[/MENTION] the app install method works??
[Sony Xperia M] Nicklas Van Dam:
Here, see in this thread http://xdaforums.com/showthread.php?p=58515383
[Sony Xperia M] daemonarch21:
Sony xperia m doesnt exist in twrp manager app...

Στάλθηκε από το C1905 μου χρησιμοποιώντας Tapatalk
[Sony Xperia M] Agu_Ra:
Read previous page please. Forum is for searching answers at first and then asking questions if answers are not found. It is described in this post: http://xdaforums.com/showthread.php?p=61732816
[Sony Xperia M] daemonarch21:
What did i asked?You saw any questionmark?

Στάλθηκε από το C1905 μου χρησιμοποιώντας Tapatalk
[Sony Xperia M] Agu_Ra:
I replied to you and user above, and it is about the same subject. Refresh page, I edited my post. And BTW I just woke up, lol. So my mind is still sleeping
[Sony Xperia M] Agu_Ra:
Oh, sorry, man. I just got that your post was answer to that question. Sorry, I am still sleepy a bit. It is better to tag or quote a user you reply to.
[Sony Xperia M] daemonarch21:
Yeah no problem mate. Relax

Στάλθηκε από το C1905 μου χρησιμοποιώντας Tapatalk
[Sony Xperia M] kjinx01:
am not finding extcard back up in my recovery..can u help
[Sony Xperia M] Agu_Ra:
External SD card is not backed up in TWRP. Did I get you right? 'Cause I'm not sure what you mean.
[Sony Xperia M] marson5:
Please, add support to extract xz archive.. Can't flash gapps update anymore because not support xz archive.. Thanks before

Sent from outer-space using c1905