yashsingh1/xdaforums huggingface dataset:
[Xperia SP Original Android Development] flash-:
Are u using a new version of the app? I heard it's not working for us or something... But u got a recovery and u want to flash twrp via app !! [emoji12]

Just download twrp3.0 r6.zip and flash it via cyanogen recovery or via philz ..that easy ! [emoji2]

P.s: rashr maybe worked for u but u didn't know !! To go into twrp use volume+ ...to go into cyanogen recovery use volume- [emoji6]
[Xperia SP Original Android Development] motaleby:
Actually after some effort, I installed Philz again and flashed zip file yesterday, but I thought it's better to ask.

my new problem is how to root the rom?

Some apps like titanium need rooted rom. I tried iRoot and TawelRoot but it didn't succeed.

Thanks for your help
[Xperia SP Original Android Development] dic1911:
Damn... If you're on cm or cm based rom you already have root access, enable that in developer option, try Google next time :silly:
[Xperia SP Original Android Development] motaleby:
OMG!!!!!!

Yes! I should have searched my phone or Google or thought just for seconds!

Wait for another silly question!!!!!!!

I'm really getting crazy these days!!!!!

Sorry to disturb you all
[Xperia SP Original Android Development] LWWSaint:
I'm using AOKP 6.0.1, and TWRP. I dont know whether its a rom problem or recovery problem, but when i reboot to recovery, the recovery mode touch panel goes haywire, it always goes to backup partition and vibrates like crazy(although thats cz of recovery, anyway), and even i after i lock the screen, the screen automatically lights up, and its impossible to unlock it again as it registers only the one location of touch. Any point on the screen i touch, it always selects only the one location, the line of touch alligned with the power button.

This problem goes away when i flash the recovery via the flashtool, but comes back when i reboot the phone, and select reboot to recovery, or manually reboot to recovery after booting the rom up and powering it back down, so I'm inclined towards a ROM problem.

And PS: touch works fine during normal use, i.e no hardware problem.
[Xperia SP Original Android Development] ralfbergs:
I cannot see how this could be a ROM issue. Seems like HW is not properly initialized, so could be boot loader or recovery. Update to latest recovery first, and if that doesn't help update boot loader (and baseband fw).

--

Sent from my mobile, please excuse my brevity.
[Xperia SP Original Android Development] wellnz:
Question: Last TWRP 3-0-1 CM13 pattern encryption are work with last unofficial CM13?
[Xperia SP Original Android Development] ralfbergs:
Oops, I mistakenly thought this was about the Samsung Galaxy S4... In that case my response would have been appropriate...

For the XperiaSP I don't have the insights I have for the S4, still I think it could be similar... I would expect that there is a boot loader that loads the (recovery) kernel, so probably it could be that boot loader or the recovery itself... But I don't know how you can update the boot loader, whether you can update it separately, or whether you have to flash a complete stock firmware image?

Maybe someone can shed some light on this?

--

Sent from my mobile, please excuse my brevity.
[Xperia SP Original Android Development] th3_jok3r:
I cant enter on recovery to install or use fastboot, how can I use FOTA? Do I need to install a fota apk?

when I reboot to bootloader or recovery, I get the blue light but sony logo fades and phone restart

C:\adb>adb devices

List of devices attached

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

BY900BSYQW device

C:\adb>fastboot.exe flash boot boot.img

< waiting for device >

windwos 8.1 - all drivers for fastboot I g
[Xperia SP Original Android Development] AdrianDC:
Updated to TWRP 3.0.2 (r7) : https://twrp.me/site/update/2016/04/05/twrp-3.0.2-0-released.html

I'll look at the recent comments / reports soon but I need to finish a lot of things first.
[Xperia SP Original Android Development] Daniel D.:
Other things first ;-P...
[Xperia SP Original Android Development] zeetkt:
Fantastic job, helped me bring my phone back from the dead ! (Couldn't find a recent kernel with a recovery on it ^^)

Thanks a lot !
[Xperia SP Original Android Development] ujinking:
flushable on cm12 LBL?
[Xperia SP Original Android Development] dic1911:
anything is flashable but u will just soft brick your xsp :p
[Xperia SP Original Android Development] hamed24:
I completely confused ?

can i flash this rocovery directly forom twrp2.8.7? Or i should use fastboot with pc?

sent from Xperia™ SP | Android 6.0.1
[Xperia SP Original Android Development] Tomoms:
You can flash it from TWRP 2.8.7.0.

By the way TWRP 3.0.2 has problems, it doesn't load. You must use 3.0.1-r6.
[Xperia SP Original Android Development] hamed24:
tnx,but which file should be flashed?

.zip or .img

sent from Xperia™ SP | Android 6.0.1
[Xperia SP Original Android Development] Arvind7352:
Any of them

.zip -- To Flash it on Recovery

.img -- to Flash by ADB with the 'dd' command below requires 'adb shell' command to be performed

dd if=/location/to/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
[Xperia SP Original Android Development] hamed24:
I flash twrp-3.0.1-r6-fota-huashan.zip with twrp 2.8.7 without any wipe but after flashing i dont have any rocovery!

please help me

sent from Xperia™ SP | Android 6.0.1
[Xperia SP Original Android Development] riedenthied:
Really? 3.0.2 works perfectly for me.
[Xperia SP Original Android Development] Daniel D.:
+1
[Xperia SP Original Android Development] Tomoms:
For me it doesn't load and the phone simply reboots (CM13 from 04.18), like some users reported in the CM13 thread:

http://xdaforums.com/showpost.php?p=66496797&postcount=214

http://xdaforums.com/showpost.php?p=66445838&postcount=207 (the user that wrote this message then got it working).

What ROM are you using?
[Xperia SP Original Android Development] riedenthied:
The phone reboots when I try to enter CM recovery (volume -), but works fine for TWRP (volume +). Didn't test CM recovery in CM13 0423, btw. But TWRP works there, too.
[Xperia SP Original Android Development] Tomoms:
I'll try TWRP 3.0.2 again on CM13 04.23 soon and report.
[Xperia SP Original Android Development] hamed24:
Any body don't know how can i solve this problem[emoji22]

When I press vol + not action anything but when press vol - blue light turn on but phone reboot again

CM 13 build 04/11

sent from Xperia™ SP | Android 6.0.1
[Xperia SP Original Android Development] flash-:
try to flash the twrp.img with fastboot mode :)
[Xperia SP Original Android Development] ParanoidNemo:
I was having the same problem, solved by flashing .IMG file of twrp and the entering twrp and flash the fota zip file..now everything works correctly (I'm on 04/18 build AOSP-RRO)
[Xperia SP Original Android Development] hamed24:
Thanks, i extract .img file, flash with twrp 2.8.7 and after flash .zip file

thats work perfectly [emoji3]

sent from Xperia™ SP | Android 6.0.1
[Xperia SP Original Android Development] AdrianDC:
TWRP updated to fix the data / cache restore from a previous backup (filesystem auto unknown issue)
[Xperia SP Original Android Development] Tomoms:
I don't know if what happened to me is related to the bug you fixed in this release, but anyway I'll share my short story here as it may be useful for someone in the future.

I have made a backup with TWRP 3.0.1-r6 of my /data partition (f2fs). I restored it 8 days ago and then again 4 days ago, probably the first time using 3.0.1-r6 and the second time surely using 3.0.2-r7. Today I restored it again and...

When I booted, I was greeted by this screen: http://s26.postimg.org/7ay53zjah/IMG_2301.jpg

Rebooted to recovery and went in the "Advanced wipe" section of TWRP to wipe /data and TWRP showed a lot of errors related to the /data partition. I therefore entered the menu in which we can change or repair the filesystem of /data and the recovery showed that the size of /data was 0 MB.

Long story short: I entered TWRP's terminal, ran

mkfs.f2fs /dev/block/platform/msm_sdcc.1/by-name/Userdata

then wiped /data again using the usual procedure, then repaired the filesystem using TWRP's option and then wiped again the partition.

I restored the backup once more, and it worked fine.
[Xperia SP Original Android Development] KelleyCook:
FYI: r8 does not seem to work with adopted storage enabled. Nothing shows up except the TWRP directory. adb sideload still works, so I could still flash things.

I don't know if it worked with previous versions, since I just started experimenting with adopted storage today.
[Xperia SP Original Android Development] dealbaba:
i just installed cyanogen 12.1 to my sony xperia sp. i never had any TWRP before. will it be safe to flash the zip file (twrp-3.0.2-r8-fota-huashan.zip) through cyanogen recovery?
[Xperia SP Original Android Development] Arvind7352:
Yep, Absolutely Safe.
[Xperia SP Original Android Development] Daniel D.:
What is the most radical formatting? data, cache & dalvik (standard) + ???... system or internal storage or both?
[Xperia SP Original Android Development] Tomoms:
system, data, cache, dalvik cache and internal storage. But you have to reflash a ROM after this sequence. If you don't want to, exclude system.
[Xperia SP Original Android Development] pilger:
I can confirm this. Used my sdcard as adopted and can't access it through TWRP whatsoever.:(
[Xperia SP Original Android Development] ralfbergs:
If you want to play safe you also remove the Android and .android-secure (sp?) folders on your external uSD card...
[Xperia SP Original Android Development] AdrianDC:
New TWRP release, the bootable recovery image includes the fixed kernel for recovery reboot.

[MENTION=5196548]KelleyCook[/MENTION] and [MENTION=5942084]pilger[/MENTION] : Last time I checked adopted storage didn't work,

but encrypted data storage does work, I might look at it later, but not now.

If someone finds something related to this, would be happy to test.
[Xperia SP Original Android Development] pilger:
[MENTION=2233641]Adrian DC[/MENTION]

Well, despite not being able to read the "storage" folder, I was able to put the files I needed inside TWRP folder while connected through USB. So I could use it fairly well. I also have access to the data folder, which I tested by disabling Xposed through TWRP terminal.

I'm currently testing the one you asked me to, Adrian, but it doesn't seem like it's work. It actually might have got my phone into a bootloop. I tried wiping Dalvik and now I'm waiting a bit for it to load.
[Xperia SP Original Android Development] AdrianDC:
New TWRP release 11 :D. Adopted storage & encrypted device full support.
[Xperia SP Original Android Development] AdrianDC:
Xperia SP Officially supported by TWRP now, OP updated !
[Xperia SP Original Android Development] Daniel D.:
What does it mean for us? Download from your basketbuild or the TWRP page?

By the way: This is another great achievement you deserve. You did much more for this phone than Sony ever had. Thanks for your efforts thousand times.
[Xperia SP Original Android Development] pilger:
I've tested and can confirm the adopted SD card is working! Excellent job, [MENTION=2233641]Adrian DC[/MENTION]. :good: :highfive: :victory:
[Xperia SP Original Android Development] AdrianDC:
Basically it means the newer updates will be compiled directly & available to everyone,

even Sony Xperia SP owner who are not on XDA to see this.

The official release is a normal img, same as my bootimage images.

It will not be released as an easy to flash TWRP to FOTA zip,

however instructions on how to flash it are given,

and using TWRP 3 the img can directly be flashed to FOTA from the Install UI.

However I'll probably continue Beta releases here,

for example if something new needs testing until I merge to official.

MultiROM TWRP on the other side will remain as it is.

Thanks !
[Xperia SP Original Android Development] biswatmak:
The official TWRP app, does not list Xperia SP !! So I think the app install is currently not supported !!
[Xperia SP Original Android Development] hamed24:
This is link of xperia sp on twrp site?

https://twrp.me/devices/sonyxperiasp.html

sent from Xperia™ SP | Android 6.0.1
[Xperia SP Original Android Development] biswatmak:
When I said the updation of TWRP is not happening through their official app ( which is mentioned in the Xperia SP TWRP page ),

you are reverting me back to the same page

Thanks but the issue remains unsolved :p:p:p
[Xperia SP Original Android Development] hamed24:
You can download latest version from that page and flash it, no need for any app.

sent from Xperia™ SP | Android 6.0.1
[Xperia SP Original Android Development] AdrianDC:
That "issue" you mention is within less than 10 hours of official support..

Let time for their application to be rebuilt at some point & released in its updated version.
[Xperia SP Original Android Development] ireaper4592:
noob question but how can i flash this with fastboot commands as my flashtool stopped working:confused::confused:
[Xperia SP Original Android Development] Tomoms:
Yes.

fastboot flash boot twrp.img

is enough.
[Xperia SP Original Android Development] siddhario:
How to install twrp? Can't start neither CM recovery and OS. Adb displays device as unauthorized. Fastboot does not see it at all.
[Xperia SP Original Android Development] DroidFreak32:
Yeah Many phones' recovery has problems with aroma :/
[Xperia SP Original Android Development] KelleyCook:
I switched back to Adopted Storage last week. TWRP 3.0.2 r11 still isn't working correctly. Now TWRP hangs at the splash screen. If I pull the sdcard and plug it back in. It will complete the boot, but its just a card and not "adopted".

Recovery log attached.

Edit....

Although now that I look at this log, I'm seeing that it tried to work. I only gave it a few minutes, could it be that it takes forever to process a 64GB card? If that is the case TWRP needs an indication that it is processing the card.
[Xperia SP Original Android Development] Andreus94:
I have three problems:

Partition SD: It makes 2 GPT partitions (not PRIMARY), so, the SD does not work in any device.

Re-boot: When I restart by TWRP, screen becomes black and it doesn't reboot (like it did an old relase)

Recovery mode: When I power on the phone, after three leds, I press volume button, and led becomes blue but recovery doesn't start; The phone restarts.
[Xperia SP Original Android Development] AdrianDC:
1. I think nobody partitions SD on Xperia Sp and I don't see why you would need to. Otherwise it's not device dependent.

2. Issue known, happening rarely but looking into it since weeks... Plug in / out USB, should be solved, otherwise Volume+ & Power 5 secs. Or wait 120 secs :D .

3. That glitch is common to all sony devices having the dual recovery / Android boot and I solved it in CM sony common, so use a recent ROM that includes the change.
[Xperia SP Original Android Development] Andreus94:
Why not? How do you have more internal memory?
[Xperia SP Original Android Development] pilger:
[MENTION=2233641]Adrian DC[/MENTION], I'm trying to wipe/format Interal Storage and SD Card (Adopted) and it says on both:

Unable to find partition for path '/'
[Xperia SP Original Android Development] AdrianDC:
Try doing a factory reset + yes instead of wipes and manual formats.
[Xperia SP Original Android Development] pilger:
Worked. Thanks!
[Xperia SP Original Android Development] pilger:
Okay, now I can't copy anything into the internal storage or the sd. It says the sd only has 15Mb of storage (it's a 32Gb class 10 card).

When I try to transfer files over the TWRP MTP, the transfer gets stuck at the first bytes.

That's pretty serious. I can't flash anything else now. :(

EDIT -------------------

Managed to transfer the flashable files through adb. Gonna update on the SD Card issue when I have everything running again.

EDIT -------------------

Flashed CM13 from 20160529 and it, at first, didn't detect the SIM card, but after a restart it all went well. Plugging the SD Card back again showed me that "adopted" notification. After formatting the card as adopted, everything went back to normal. :good:
[Xperia SP Original Android Development] jimkan:
hello,i install (twrp 3.0.2-0 huashan) on my xperia sp C5303,i flash my rom cm13 nightly,open gapps ,and supersu version 2.65 (marshmallow)

the rom is great,but i can not boot to twrp after reboot my phone or shutdown... i press the volume up key to boot to twrp and the sony logo slowly disappearing

i install the twrp from linux (archlinux)

command: fastboot flash boot boot.img

i rename the image that I downloaded '' twrp-3.0.2-0-huashan.img to boot.img ( NO ERRORS)

I tried it and from windows 10 with flashtool NO ERRORS ( i don't rename the name off image) and nothing happened.

what am I doing wrong ...thank you

I TRIED WITH CYANOGENMOD RECOVERY AND NOTHING HAPPENED
[Xperia SP Original Android Development] Zenith:
You fastboot flashed TWRP to the boot partition,

when you flashed CM13, it got replaced by the ROM's boot.img.

To get TWRP back, just enter Cyanogen Recovery using volume down and flash the TWRP zip from there.
[Xperia SP Original Android Development] jimkan:
ok.... i flash the cm13 boot.img to my phone and when i turn it on, i push the volume down key to boot to recovery and still the same... xperia logo disappear slowly...:confused:
[Xperia SP Original Android Development] AdrianDC:
Flash twrp.img in the boot partition with "fastboot flash boot pathtoimg",

then boot it, inside TWRP flash that zip like described 100 times here or the img like explained on TWRP official page.
[Xperia SP Original Android Development] jimkan:
ok with the twrp ..from my phone ..in settings / developer options /i check ''uptade cyanogen recovery ..and when i install cyanogen updates ,restart phone with twrp recovery.

i check everything to boot to twrp and it's ok :)

what about the ''led notifications'' from incoming calls ( they do not appear) :( and when i speak to my phone with headphones his close my incoming call ..i think his a bug

thanks
[Xperia SP Original Android Development] Arvind7352:
That Updates your ROM's Recovery, If you press Vol- down while the LEDs light up on Boot, it will take you to ROM's Recovery (in your case, Cyanogen Recovery)

TWRP is situated in FOTA Recovery, so unless you Clean the FOTA Partition, the Recovery would not go off.

If you meant about LEDs beating (blinking) when the caller speaks, then that is a Stock Feature, and is unavailable in any Custom ROM (Non-Stock). If you meant Notification LED for Missed Calls, it's available in Settings -> Sound & Notification -> Notification Lights.

I didn't understand about your problem with Headphone.

BTW you should report this in respective ROM's Q&A Thread
[Xperia SP Original Android Development] AdrianDC:
TWRP updated to latest sources + an additional package I worked on to allow installing TWRP as "Secondary ROM",

therefore allowing to multiboot TWRP or MultiROM recoveries, even on FOTA unsupported Stock ROMs.
[Xperia SP Original Android Development] OsGhaly:
[MENTION=2233641]Adrian DC[/MENTION]

Using the latest twrp-3.0.2-r12-fota-huashan. and for no reason after rebooting my phone, I got encryption unsuccessful error and wasn't able to access data partition.

I didn't encrypt anything and won't even do this thing at all, I wonder why this happened?

I succeeded to access the data partition again by formatting it and lost my data ofc. :(

I just need to know what is causing this problem to avoid in future.

Thanks in advance for your help.
[Xperia SP Original Android Development] GabrielHcWc:
Help TWRP

I was installed TWRP, after I installed ROM CM13.0, the only one that appears now is the Cyanogen recovery.

Sorry for bad english.

As I did installation the TWRP.

Flashtools, fastboot mod, select kernel and selected the img TWRP.

is correct ?
[Xperia SP Original Android Development] AdrianDC:
Please do read the informations from the main post and on the official TWRP Huashan page, you'll find all the answers your seek.
[Xperia SP Original Android Development] morgogs:
I'm currently using this as my recovery and can't flash the 3.0.x one. Does anyone know how to? Thanks.
[Xperia SP Original Android Development] shiroatir:
Thanks! btw does it get lost if i flash a stock rom using flashtool?
[Xperia SP Original Android Development] AdrianDC:
Most likely yes, especially if the corresponding partition flag is checked (by default).

And even if it would stay... It's useless because Stock doesn't support the FOTA boot, doesn't change anything.

+ given the fact it's flashed in 10 seconds, not a bit loss if you wanted it back later ;) .
[Xperia SP Original Android Development] oneofthedudes:
URGENT! I screwed up. I wasn't sure how to install the IMG, I accidentally checked the kernel in TWRP 2.8 when installing the IMG of TWRP 3, I also installed Helium right after it. I don't know, I think I messed up, now whenever I boot, it only boots inito TWRP 3 recovery, how to get into the rom?

PLEASE HELP!
[Xperia SP Original Android Development] elchevive68:
Flash it again
[Xperia SP Original Android Development] oneofthedudes:
^Flash what again? The recovery? or the rom? I tried flashing the rom, it got stuck in between in checking filesystem ext4 something.
[Xperia SP Original Android Development] elchevive68:
Flash everything again, twrp3, then cm13 + gapps
[Xperia SP Original Android Development] kar2rost:
i have TWRP_2.8.7.0_3_huashan in fota and i want replcae it by ver 3 .plz help me and explain
[Xperia SP Original Android Development] Daniel D.:
Read the first post.
[Xperia SP Original Android Development] AdrianDC:
TWRP (and MultiROM TWRP) upgraded, like CyanogenRecovery, for proper performance and heat control.
[Xperia SP Original Android Development] abodeoom:
6.0.1 unofficial ROM

can i install this recovery on 6.0.1 unofficial ROM ?? ( xperia sp )

without any problems ? always i tried to do it it stuck in the recovery mod and i can't reboot into system :( :(
[Xperia SP Original Android Development] AdrianDC:
Yes install the zip, done.
[Xperia SP Original Android Development] btjayakody:
[MENTION=2233641]Adrian DC[/MENTION] Thanks for your great work. But in TWRP every time when i go into recovery my date and time is gets reset and time zone also. other than that all works flawlessly perfect. Love your work. Thank you for giving us this whole good time with Xperia SP.

Thanks a lot.
[Xperia SP Original Android Development] AdrianDC:
TWRP official release updated to latest changes !

[MENTION=7508383]btjayakody[/MENTION] : First time I hear about such an issue so make sure your data partition & everything are fine,

if the twrps file is lost everytime the settings can't be held across reboots.
[Xperia SP Original Android Development] Fryingsheep:
When I am tryng to install twrp 3.0.2 via the twrp manager it keeps displaying "something went wrong - Flashing recovery was unsuccessful"

I have also attempted installing it via cwm recovery which aborts although 2.8 will install but is inaccessable.

Not sure how to proceed from this point, any ideas?
[Xperia SP Original Android Development] Arvind7352:
I presume you have rooted your XSP. If not, then get it rooted.

Take your time to glance through the First post, and follow the Instructions for 'Flashing manually to FOTA' ... You'll have it Flashed and usable. :)
[Xperia SP Original Android Development] miladn78:
I flash new version to FOTA with TWRP, but after I install RR and restart the phone , CM13 recovery replaced with TWRP , Why ? Do you have same problem ?
[Xperia SP Original Android Development] Arvind7352:
Press Volume down button at the LED Sequence to go into ROM's Recovery.

Volume up will take you to FOTA Recovery -> TWRP
[Xperia SP Original Android Development] miladn78:
I try that but it doesn't work , both of volume up and down send me to ROM's Rcovery.
[Xperia SP Original Android Development] Arvind7352:
Confusing.

Your First post said it's TWRP on both Volume up and down

Now you say it's ROM's Recovery

Please Take your time and go through the Installation again :)