yashsingh1/xdaforums huggingface dataset:
[Sony Xperia L] Amaterasou:
Thank you!

Then the time has come to try CM11 and other Custom ROMs.

Edit:

Damn I can't install any recovery. I always get an error that device or resource are busy:mad:
[Sony Xperia L] Joel16:
This is for locked bootloaders, if you can unlock yours you don't need this.
[Sony Xperia L] javad_b:
Great Job bro ! :good: :highfive:
[Sony Xperia L] vishalaestro:
not working ,i installed the cwm recovery with stock .17 rooted ROM ,the installation was successful but i couldn't enter the recovery .after restarting the phone there was no led light glowing at the time of sony logo ,even after i pressed the volume up button the recovery was not displayed.any ideas?
[Sony Xperia L] vishalaestro:
does this work for jelly bean 4.1.2 xperia l?
[Sony Xperia L] dywerd:
Yes! But only PhilzTouch from latest build (1.8).
[Sony Xperia L] Droid-V:
I can flash KK Roms or another kernel with this?
[Sony Xperia L] Macmol:
Yes, you can.
[Sony Xperia L] softroid:
deleted
[Sony Xperia L] theloneseeker:
ok,i have an unrooted xperia Lwith locked bootloader. if i use this tool and install cwm,can i flash the cm12 in my device through recovery?
[Sony Xperia L] uremytoy:
No, bcoz u need unlocked bootloader which u dont have

Wysłane z mojego C2105 przy użyciu Tapatalka
[Sony Xperia L] theloneseeker:
But the Op says you can install on locked bootloader.
[Sony Xperia L] underd0g:
You can install recovery on rooted Stock ROM with locked bootloader.

But You can't install CM11 / CM12 without unlocking your bootloader, because CM11 / 12 need custom kernel.
[Sony Xperia L] Holmes.Sherlock:
One disambiguation needed, I knew that Xperia - L doesn't come with a separate recovery partition. Then where does the factory/stock recovery reside? Also, how does this tool manage to install the recovery environment without having a separate partition in Xperia - L?
[Sony Xperia L] Macmol:
You can install the recovery, but not a rom.
[Sony Xperia L] KrLx_roller:
I can't install CWM recovery on my Xperia L C2105. It seems that everything goes well but when I reboot to recovery it appears the Android recovery, not CWM. This is what I do:

1- open install.bat

2- device detected (only phone is connected)

3- I choose option 1

4- I give root permisions on the phone

5- Log:

=============================================

Installing CWM recovery...

=============================================

182 KB/s (1458 bytes in 0.007s)

194 KB/s (1559 bytes in 0.007s)

3401 KB/s (4761600 bytes in 1.367s)

3044 KB/s (657704 bytes in 0.210s)

56 KB/s (900 bytes in 0.015s)

remount /system writable

copy busybox to system.

copy recovery.tar to system.

copy e2fsck replacement to system.

copy recovery script to system.

remount /system read only

Finished!

6- I press 7 -> Exit

7- I reboot to recovery using -> adb reboot recovery

8- Android system recovery <3e> appears with following options:

-- reboot

-- apply update from adb

-- wipe data/factory reset

-- wipe cache partition

-- enter fastboot mode

That's all... I don't figure out why it isn't working... Can some one help me, please? I'd be very grateful.

Best regards!
[Sony Xperia L] Holmes.Sherlock:
Can anybody enlighten me, please?
[Sony Xperia L] [NUT]:
It's a diskimage which gets stored in system. The boot process is hijacked and then recovery gets booted instead of the ROM.
[Sony Xperia L] Holmes.Sherlock:
Does the image get stored in /system?
[Sony Xperia L] [NUT]:
Please, do me a favour: re-read your question and then reread my previous answer :p
[Sony Xperia L] Macmol:
Shut down the phone. Restart it. When the led is glowing the first time press vol-.

That worked for me.
[Sony Xperia L] Holmes.Sherlock:
Favor done, with all grace. :p The reason I was getting so "picky" was, I have used Init.d Toggler to circumvent the boot-loop problem as explained in sufficient detail. I was trying to figure out if installing this can anyway re-trigger the same problem back. My apology if I have demanded a few extra bytes sent out from your keyboard. :crying:
[Sony Xperia L] KrLx_roller:
Thank you very much! It worked! :D
[Sony Xperia L] Holmes.Sherlock:
While trying to create a backup to /sdcard0 (Internal emulated sdcard), I received the error message below:

I tried twice and the result was the same. Please note that CWM backup directory holds a 2.57GB large backup in both the cases. Any idea why the process aborts prematurely?
[Sony Xperia L] paulebe525:
Cool
[Sony Xperia L] baraozemo:
it's nice tks
[Sony Xperia L] baraozemo:
rachitrawat,

could you update your tool to the last philz recovery and twrp images available for xperia L?

for me this is the best cwm installer..

tks
[Sony Xperia L] elnazhox:
when i try to install the recover y it says

"cp: can't start '/data/local/tmp/recovery/recovery-version.txt': no such file or directory"

what can i do???
[Sony Xperia L] virtualspeed:
I have a doubt.

Can you install any rom from original android development using this recovery? or should the rom be bootloader locked compatible?
[Sony Xperia L] arr0y0:
perhaps you have a link to an a tutorial to use those tools ? i will appreciate i have a c2104 unlock not allowed phone i need flash !
[Sony Xperia L] singhkaran7121:
I want to install custom recovery to my xperia l...

I have only rooted it from Kingsroot... That's it.. I tried installing custom recovery but i failed... Can anyone please help me how to do it from the very beginning.. Please.. Help me..
[Sony Xperia L] singhkaran7121:
I tried this on my xperia l.. It has locked bootloader... It didn't work... I downloaded the file.. And then connected my phone with debugging on... And installed but didn't work.. Do I need to switch off the phone and then connect it?
[Sony Xperia L] mikelektro:
Maybe a bit late to the party, but thx! I needed this :D
[Sony Xperia L] kvbkiran:
can anyone update the recovery installer to new

i mean the recoveries cwm,twrp

i cant install the updates twrp recovery
[Sony Xperia L] HanSolo77:
Thanks a lot!

I'd like to share one unexpected experience: Because my volume buttons are broken (+ very hard to press, - impossible), I tried "adb reboot recovery", but that always brought up the default android recovery. Finally, I switched the phone off, practiced pressing the vol+ button with a tool, and tried my luck, and voilà! TWRP came up successfully.

Again, thanks for providing this tool, which also worked fine on macOS (although "setterm" was not a valid command here).
[Sony Xperia L] Rohit@91:
Yeah!! Same problem here!
[Sony Xperia L] Gabboxxx:
I dont kbow if i Only me or is a bug, when i go down or up the screen go left to rigth, and if i install something, this not apear, o.o

Thanks :D
[Sony Xperia L] dywerd:
some report...

Hi!

After some hour of use:

-if I flash something, its not there

-I can make a backup, but can't restore it

-the only way to reboot is that wipe cache and dalvik cache, after that i have to confirm to flash or not flash the stock recovery about two :eek:

-when wipe dalvik cache the recovery says: E:unknown wolume for path [/sd-ext]

-I cant mount system, cache, and when want to flash something it someimes says that can't mount system partition (I think thats the problem why we can't see anything that flashed)

There is nothing else I find yet, but when I will, I will report back!

Hope there will be some solution!

Keep up the good work!!

We have recovery!!!
[Sony Xperia L] Mrcl1450:
CWM for Locked Bootloaders!!! Thanks, you just made my day :victory:
[Sony Xperia L] :
hi,

I've noticed this too.

/system can't be mounted [It's mounted ro instead of rw]

This is why you can make backup but can't restore it [writing /system fails]

I'm looking into it. This could be due to ric service started in init.target.rc

but thats unlikely because install-recovery.sh in init.rc reboots the device. After reboot we run init.recovery.rc which executes the patched sa77_recovery binary in system/bin. So init.target.rc isn't started second time (possibly)

However, I've noticed this :

#init.recovery.rc

on early-init
start ueventd

on init
#/* [SA77] S Bruce_Chen Bug#291 recovery mode shall be mount system (except FOTA) */
export PATH /sbin:/system/bin
#/* [SA77] E Bruce_Chen Bug#291 recovery mode shall be mount system (except FOTA) */
export ANDROID_ROOT /system
export ANDROID_DATA /data
export EXTERNAL_STORAGE /sdcard

symlink /system/etc /etc

mkdir /sdcard
mkdir /system
mkdir /data
mkdir /cache
mkdir /tmp
mount /tmp /tmp tmpfs

chown root shell /tmp
chmod 0775 /tmp

[COLOR="Red"]mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1 wait[/COLOR]
[COLOR="Blue"]#WHY?
[/COLOR]
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 05C6
write /sys/class/android_usb/android0/idProduct 9025
write /sys/class/android_usb/android0/f_diag/clients diag
write /sys/class/android_usb/android0/functions diag,adb
write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
write /sys/class/android_usb/android0/iProduct ${ro.product.model}
write /sys/class/android_usb/android0/iSerial ${ro.serialno}
write /sys/class/android_usb/android0/enable 1
start adbd

on boot

ifup lo
hostname localhost
domainname localdomain

class_start default

service ueventd /sbin/ueventd
critical

[COLOR="SeaGreen"]service recovery /system/bin/sa77_recovery[/COLOR]
[COLOR="Blue"]#Recovery loads from here
[/COLOR]
service adbd /sbin/adbd
disabled

# Restart adbd so it can run as root
on property:service.adb.root=1
write /sys/class/android_usb/android0/enable 0
restart adbd
write /sys/class/android_usb/android0/enable 1

[MENTION=4904057][NUT][/MENTION]can you look into this?

EDIT: Guys. I won't be available until late march due to unavailability of both phone and laptop.

However, I've asked some other guys to contribute to the source. :)
[Sony Xperia L] dywerd:
Thanks for your work!

Take your time! If I can help you anyway just let me know :o! I will test when you ready!!;)
[Sony Xperia L] varun.chitre15:
Can you post log files from /cache/recovery folder?

I think this can be probably solved by mounting the complete block world writable just within the recovery binary but I am not sure.

I wonder how the stock sa77 recovery works with read only system partition. Sony's recovery binary might be mounting the complete block as world writable. If it is so, I can replicate it within CWM as well. I just need the logs.
[Sony Xperia L] varun.chitre15:
You don't need to follow any extra procedure. Just try flashing that same zip which doesn't work and upload all files under /cache/recovery
[Sony Xperia L] dywerd:
[MENTION=4309448]varun.chitre15[/MENTION]

So there it is!

I try to install "Xperia Tablet S Keyboard port For any device by ThilinaC", but no succes :(

after install, in recovery/advanced menu - show log:

" I:Can't partition non-vfat: auto

I:Can't format unknown volume: /emmc"

say that... if its help....:eek:
[Sony Xperia L] varun.chitre15:
Ok now do this

In CWM go to mounts and storage section

And select mount /system option and post another log.
[Sony Xperia L] dywerd:
[MENTION=4309448]varun.chitre15[/MENTION]

it was on unmount /system

and says: error unmounting /system! when I press on it...
[Sony Xperia L] SlikToxic:
I got the same problem too, that's maybe why we can flash anything?
[Sony Xperia L] [NUT]:
Hey, that's genius, nice work [MENTION=4736004]Rachit Rawat[/MENTION] :D

Anyone with this installed, could you try to connect your usb cable and run adb shell when in recovery?

If you can, type 'mount' or if that does not work, 'cat /proc/mounts' and copy and paste the output here.

Chances are you need the flashtool drivers installed for this to work.
[Sony Xperia L] dywerd:
[MENTION=410007]Nut[/MENTION]

Hi! I hope I do it right or this can help! I have to install adb driver manually when my phone in that cwm. After that on windows run adb shell and write in "mount" and "cat /proc/mounts", working that two, and the log attached...

If I can help somehow, let me know ;)

Good luck!
[Sony Xperia L] [NUT]:
Thanks, that confirms my suspicion: in adb shell, type 'umount /system' and post the result here.
[Sony Xperia L] dywerd:
Ther it is...

I was not sure that you type incorrect or thats the code (umount), so I type in two other ways... hope you understand... :angel:
[Sony Xperia L] [NUT]:
I do, but i know my linux/android commands, so don't worry :)

Can you please execute the following and report the findings:

'mount -o remount,rw /system'

and

'busybox lsof'

And again, put them here :)

You are doing a great job dude, thanks for helping out :good:
[Sony Xperia L] dywerd:
So there it is...

I know you are not "launchie" (from Ender's Game ;)), its me who don't know about these commands :(

Anyway I'm glad to help :victory: :)
[Sony Xperia L] [NUT]:
Ooh wow, that's both good and bad news...

Can you try the remount command again and then type 'mount' after it and provide me the log again?
[Sony Xperia L] dywerd:
I hope I type in the right commands...:confused:

Here they are...

May I ask, why it is bad and good news?
[Sony Xperia L] [NUT]:
You may but it's kinda complicated... lets test this first:

Download this package and install it like you did the first one, then try to use recovery to unmount and mount system and flash something to your phone.

<broken so removed>

:fingers-crossed:
[Sony Xperia L] dywerd:
After the scrip has finised, my phone restart...and if I reboot in to recovery it dosn't enter in...

I try reflash stock recovery from flashtool and see whats happen...and after that run that script again...
[Sony Xperia L] [NUT]:
No wait... I found what's wrong... hold on, i'll upload a new package.
[Sony Xperia L] dywerd:
sorry, but its booting now...reflash the stock kernel from new firmware's ftf...

:(
[Sony Xperia L] [NUT]:
Download and install this one... I forgot something crucial in my 1.1 attempt...

<broken so removed>
[Sony Xperia L] [NUT]:
Hehe, no problem :)
[Sony Xperia L] dywerd:
Reboot at the end of the script and not able to enter recovery...:( :confused:

but keep trying

wait!

now its not reboot at the end...

I can't enter in recovery... :(
[Sony Xperia L] [NUT]:
Hmm... can you see on your phone in the ROM if /system/bin/sh exists?
[Sony Xperia L] dywerd:
there is a file called "sh" with these permission: rwxr-xr-x
[Sony Xperia L] [NUT]:
Okay, then test this version:

<broken so removed>

:fingers-crossed:
[Sony Xperia L] dywerd:
No luck, bro! :( When I reboot, its not enter in cwm. when the phone start booting and the sony logo comes up, then the green/blue light on I keep pressing wolume down button and then black screen and after that the sony logo comes up again but that time there is no blu/green light and the phone not boot into system. I take out the battery and put back, and press the power button and the phone boot into system...
[Sony Xperia L] :
https://docs.google.com/file/d/0B2Fv_Ol5Kk-RdG81NTUtSDhWbWc/edit?usp=docslist_api

Try this.
[Sony Xperia L] dywerd:
I will, when I got a permission...

Can you upload it here, or send it in pm?
[Sony Xperia L] [NUT]:
On my way home now, ready to welcome the new year... Will be available next Thursday for a new round of development and testing, best wishes to you and your loved ones dude, we will crack it soon :good:

If you or anyone can fix it in the meantime, do not hesitate to attach your version here :cool:
[Sony Xperia L] dywerd:
Thanks mate!

Happy new year to you and all your lovesd ones! And surely to all the xda-ers!! Happy new year to everyone!!
[Sony Xperia L] :
http://www.mediafire.com/?wq8qovpp2xa88sg

Sorry :P
[Sony Xperia L] dywerd:
No problem! :D

I'll report when I get back...I have to go away now for some time...
[Sony Xperia L] [NUT]:
Thanks a million for all the testing :)
[Sony Xperia L] dywerd:
[MENTION=4736004]Rachit Rawat[/MENTION]

Sorry bro, it doesn't boot into recovery :( just the some thing...

I see that my busybox not update to 1.21.1, just stay on 1.15.3. When I try to update in flashtool, its sys that:

31/016/2013 19:16:35 - INFO - <- This level is successfully initialized

31/016/2013 19:16:35 - INFO - Flashtool Version 0.9.13.0 built on 2013-06-04 22:50:00

31/016/2013 19:16:40 - INFO - Device connected with USB debugging on

31/016/2013 19:16:41 - INFO - Connected device : Sony Xperia L

31/016/2013 19:16:41 - INFO - Installed version of busybox : BusyBox v1.15.3 (2010-02-06 17:13:19 CET) multi-call binary

31/016/2013 19:16:41 - INFO - Android version : 4.2.2 / kernel version : 3.4.0-g74b701b-00054-gde56c65-dirty / Build number : 15.3.A.1.12

31/016/2013 19:16:41 - INFO - Checking root access

31/016/2013 19:16:43 - INFO - Root Access Allowed

31/016/2013 19:16:43 - INFO - Stopping ric service

31/016/2013 19:16:44 - INFO - ric service stopped successfully

31/017/2013 19:17:06 - INFO - Pushing C:\Flashtool\.\devices\busybox\1.21.1\busybox to /data/local/tmp

31/017/2013 19:17:06 - INFO - Running busyhelper

31/017/2013 19:17:07 - INFO - Running instbusybox as root thru sysrun

31/017/2013 19:17:10 - INFO - Installed version of busybox : BusyBox v1.21.1 (2013-07-08 10:26:30 CDT) multi-call binary.

31/017/2013 19:17:10 - INFO - Finished

31/017/2013 19:17:12 - INFO - Device disconnected

and the phone reboot.

I try with busybox installer (from JRummyApps), it can update, but its revert to 1.15.3 after reboot...

If it can help...:confused:

Anyway, for now I go to celebrate new years eve, so testing will stop :(, but will check in sometimes and if there will be something new I will ready to test! :o :D

Happy New Year!!! :laugh: :highfive:

And keep up the good work, bro! I know we can alway count on you! All of you!! :angel: :o :fingers-crossed:

[MENTION=410007]Nut[/MENTION]

My pleasure!! :D I'm really happy, if can help a hardwork dev on somehow, someway!

Keep it up!
[Sony Xperia L] icoolguy1995:
Nice to see you back in action sir.
[Sony Xperia L] :
hey,

i fixed some typo in your script. Recovery now loads.

However, /system is still busy even if we copy sh to /sbin.

I even copied recovery.tar to /sbin and xf from there but still same.

here are the changes i made. Have a look :

https://github.com/rachit-rc96/sa77-CWMInstaller/commit/a1b17154a313e8c45c95f826d9c7176bccf9a00a

seems like sh is still bound to /system/bin after exit 0 or am i wrong?
[Sony Xperia L] [NUT]:
Heh, I am seeing a little mistake there, you are missing the ampersand (&) in the line executing the recovery.sh.

The ampersand will make the process detach from the executing script and drop in to the background. The way it runs now, you will never get to the exit 0. ;)
[Sony Xperia L] getochkn:
OT, but wanted to ask.

Is this really going to do any good for locked bootloader people? I mean, we can't flash a custom kernel because it won't boot without the bootloaders being unlocked. Stock kernels won't boot any CM's, correct? So the best we could with this would be to make a backup and restore, or flash addon's done in a zip format, which can be done by pushing files via ADB and setting permissions?

Sorry for the OT, but just curious as to what the benefits of this will be once it's done.
[Sony Xperia L] amnher:
the last time I tried this there is also this problem I think because of the missing key of back. If I try to use the Test key option. I can't exit anymore because there is no back key
[Sony Xperia L] [NUT]:
That's not a problem, that's a feature... Seriously!

As long as you can navigate through the recovery without issues that will do.

---------- Post added at 02:37 AM ---------- Previous post was at 02:26 AM ----------

Maybe you are apt at adb, most users are not...

There is also a thing called 'stock based' which can be a rom which is a million miles ahead of the true stock roms.

Besides backup and restore, much more can be done with greater ease for everyone using a recovery on a locked bootloader device. CM/AOSP roms really aren't the only customization you might want :p
[Sony Xperia L] getochkn:
Thanks for the reply NUT.

Yes it would be easier for ROM's like CnT to be installed I guess from CWM still than a script, so I can see a use for it. I'm just sad I have locked bootloaders. lol. Seems to be no way around that though.
[Sony Xperia L] :
OK. Done. Still system is busy,

Check here :https://github.com/rachit-rc96/sa77-CWMInstaller/commit/5f6e2f79b17453d87ad2bec64ffff2e556557dd7
[Sony Xperia L] coolhz:
How to revert?

Will Flashing a new kernel or ROM wipe the recovery?

As I have heard Xperia Phones don't have recovery partition. [MENTION=4736004]Rachit Rawat[/MENTION] have you provided any such provision so that recovery doesn't get removed?

And finally is there any other way of removing the recovery else than flashing a Stock ROM?
[Sony Xperia L] [NUT]:
Your bootloader unlocking is disabled?

Hmm... That makes it weird... Can you provide the lsof output while in recovery now?

I want to see what is causing it now....

Tonight I should be able to send you a few patches to allow the recovery boot to kill any system locking applications with a visual LED warning if it fails for some reason, warning your users it will be risky to continue.

Does the time get read/set correctly by the way?

You can always remove it by hand...

But now that locked bootloader recovery has been achieved, rom chefs can integrate a working recovery in their rom, making sure you will never lose it.
[Sony Xperia L] :
Its not stable. Screen keeps going left right! Its insane! OP working on a fix?

And i made a NAND backup but i cant find it
[Sony Xperia L] uremytoy:
if u read whole thread u would know about that instead of writing the same thing again
[Sony Xperia L] :
I did read it. I want to know where the backup is so i can cut and paste that in my computer.
[Sony Xperia L] Tidzsi:
In the clockworkmod folder.

I made a backup but that wasnt full, missed some files.

I think it's not a perfect cwm but good for start.
[Sony Xperia L] [NUT]:
Let's make it safe to use first and then worry about the bugs ;)
[Sony Xperia L] El Brillantinas:
I never saw the solution for avoiding entering to cwm. I've just installed and now I can't start the system. It keeps entering to cwm no matter if I hit "reboot system now" or "power off".
[Sony Xperia L] [NUT]:
[MENTION=4728097]dywerd[/MENTION] up for some more testing? ;)

Download and install this one... no warranties on the functionality, I'm trying to find out what works and what not.

View attachment sa77recovery1.4.zip

If you enter recovery and notice your phone's LED flashes RED and then keeps burning RED: DO NOT TRY TO FORMAT SYSTEM, as it will fail for sure.
[Sony Xperia L] [NUT]:
Actually, it should remove the boot to recovery flag with every time you enter recovery... if you get AromaFM (file manager for recoveries) and see if it still exists inside /cache/recovery/ (it's called 'boot') you can try to remove it by hand. To return to the ROM normally this is how it works: turn off your device by holding the power button for a while, then turn it on again.
[Sony Xperia L] dywerd:
So here I am ;) (Just have to wake up :D)

Installed and try to reboot in recovery, but no succes... I pull out the battery, than put back, power on the device, when blue/green light flash pressing vol down button, but no enter in cwm. The xperia logo (after the Sony one) shows up but suddenly black screen, then the Sony logo again, but this time no blue/green light, and the system doesn't boot up :( So battery out and then put back ;)

In the /cache folder...ther is no /recovery folder... just lost+found folder, inside noting, and afile called check_factory_reset.log....
[Sony Xperia L] [NUT]:
:confused:

I'll be able to work on it tonight, I'll add some logging to it because it's doing things which I'm puzzled about...
[Sony Xperia L] [NUT]:
Sorry to keep you waiting, I'll get on to it ASAP, real life just stepped in and ruined my planning....
[Sony Xperia L] Abruzini:
Relax [MENTION=4904057][NUT][/MENTION] ! Real life it's the most important, then comes the rest! ;)

We really appreciate your efforts on give us a proper and decent recovery, and we know that you are giving your best. :)
[Sony Xperia L] mckeviin:
How's it going? Waiting for a nonbuggy version:$
[Sony Xperia L] [NUT]:
Yah... Too much to do, too little time to do it all... :(

I'll be working on this in the future, just don't know when exactly...