yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] eagle1977:
No problem, I will do further test, after I can flash stock firm, but I´m doniglowing flashtool and firm (came from Galaxy Line and I´m new in Sony devices).

If I can "repair" my bootloop I will make next test ;) cause it´s important 4 us, and someone habe to test :cool:
[Xperia Z Original Android Development] xl VipeR lx:
MY FTF is 70 percent download and i have to go work now so i have no working phone till tonight, cannot test till 7 hours later now HATE SEUS and slow mirrors!
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders - test[12-0

Ok, take your time guys :)
[Xperia Z Original Android Development] barbik:
the same battery and can continue :rolleyes:
[Xperia Z Original Android Development] eagle1977:
Cause of that, I took a premium Account:)
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders - test[12-0

Ok, thx for testing, I'll change some things again :p
[Xperia Z Original Android Development] eagle1977:
Sorry for OT and please be gentle (first Sony device):

How can I flash with flashtool without wipinig data? Have I change something in settings?
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders - test[12-0

You cab choose to exclude things and also wipe data, wipe apps_log etc, so just uncheck the wipe options :)
[Xperia Z Original Android Development] dhruvzz:
not able to download it as i get this Oops! Google Chrome could not find twrp for locked bl test 1.5:(
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders - test[12-0

There is no download now, because it doesn't work yet.
[Xperia Z Original Android Development] DooMLoRD:
dude since u have the device with u better to take backup and do all testing urself and then upload...

p.s.: u will need to disable TAD before u can launch recovery else /system partition will always be busy
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders - test[12-0

I'm also working on Ubuntu Touch so that's why I wasn't testing myself, I thought it would work.

But, what is TAD and how to disable it then?
[Xperia Z Original Android Development] edangel:
TAD=Take Another Day..

So disable take another day and give it us fast before another day will be passed otherwise many of us will be busy with F5 ...hahahaha...just kidding..!take your time my friend...!i wish you can finish it by the end of this week...

F5 F5 F5 F5 F5.....

:laugh::laugh::laugh:
[Xperia Z Original Android Development] krabappel2548:
Sure, I'll take my time :)

EDIT: I posted test 1.5, if it doesn't work this time I'll install stock rom and put my ubuntu Touch project aside for now and test myself each time.
[Xperia Z Original Android Development] barbik:
does not work
[Xperia Z Original Android Development] Cpasjuste:
hi,

can you be more precise on what's not working? Do you have any error in adb shell or just the recovery is not bootable?

I'll mabe take a look too.
[Xperia Z Original Android Development] krabappel2548:
Ok, link removed again.

Hey, do you know a lot about developing? Any help is appreciated :)
[Xperia Z Original Android Development] Cpasjuste:
Hi krabappel2548,

can you elaborate on what's done exactly ?

I can see that you are replacing the chargemon program, which i presume load the charger binary which load the recovery ?

Is the chargemon binary compiled by yourslef ? Are sources available ?

A lot of question but well, to help i'll need more informations as i didn't put my hand on recovery stuff since a while (optimus 2x).

---------- Post added at 07:49 PM ---------- Previous post was at 07:48 PM ----------

Well i would say i have some good skills, but lacks some knowledge as i did not hack anything since a while.
[Xperia Z Original Android Development] krabappel2548:
ok, I have taken the ramdisk sources of TWRP recovery of course for the recovery, I took charger and sh file from stock rom. Then I made a chargemon file which needs to load the recovery or boot in Android Os, so the problem is in my chargemon file probably. This is the code in it: http://pastebin.com/PSsqZc4H

But since I'm quite new to recovery's I'm not sure if my chargemon file is complete or if I'm missing something.

The idea of making the recovery work is to put in in /system because recovery partition is locked. You can pm me for gtalk if you want to talk about it.
[Xperia Z Original Android Development] Cpasjuste:
Ok thanks, i'll totally understand your script. I'll do i few debug and come back with result soon :)
[Xperia Z Original Android Development] krabappel2548:
ok, do you have the latest test package or do I need to give you the link again?
[Xperia Z Original Android Development] Cpasjuste:
Yep, i'm currently waiting for the stock firmware to be downloaded to restore from this test package :p
[Xperia Z Original Android Development] krabappel2548:
ok :p I'm also working on it, will get some help from another dev in 15min, if you have gtalk sent it to me in pm, then we can tell each other if we found something, would be stupid to work both on the same things for nothing :p

EDIT: we are coming closer to a working method :)
[Xperia Z Original Android Development] krabappel2548:
Alpha 1 released, no more booting issue :) please test to confirm, working on adding recovery trigger to enter recovery now ;)
[Xperia Z Original Android Development] krotwijk:
worked

installed, rebooted, no boot loop.

how to enter recovery mode in next version?
[Xperia Z Original Android Development] krabappel2548:
volume up or down probably, just need to find a way to include the trigger ;)
[Xperia Z Original Android Development] xl VipeR lx:
just reflashing now, then i will test for you krabz thanks

EDIT: alpha 1 did not work?

i also tried adb reboot recovery but it just rebooted as normal, volume buttons and screen taps do nothing.

no bootloop this time round

---------- Post added at 09:37 PM ---------- Previous post was at 09:05 PM ----------

tried it again, no error messages when flashing through bat file but recovery is not loading
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders - test[12-0

O know, there is no recovery trigger yet. But it's late so I'm going to sleep soon ;)
[Xperia Z Original Android Development] xl VipeR lx:
No problem, you get some rest, ill speak to you tomorrow and do any further tests you need, thanks
[Xperia Z Original Android Development] Cpasjuste:
So i'm going to bed too :)

Recovery still not loading, but i did a lot of progress. You'll find attached the updated files, so anyone can continue the work with a good base. It's easier to debug as you won't have to flash a stock rom each times it goes wrong, just press power + volume up to reboot to stock system (recovery boot flag is now correctly cleared). A "recovery.log" file is also created in the cache partition for debugging purposes (/cache/recovery.log).

One of the main file is the "chargemon" one, the script used to chroot to the recovery fs (recovery.tar) which i guess is in a good shape. The problem is probably located in the recovery.tar (TWRP ramdisk?) init scripts, as the chroot seems to occurs correctly :

As we don't know how to fetch the recovery trigger, you'll need to set the "flag" yourself to reboot to recovery :

- adb shell touch /cache/recovery/boot

- adb shell reboot

Hope someone will continue, well someone from TWRP would be probably usefull :)

See you!
[Xperia Z Original Android Development] DennisDD78:
So, does recovery works propertly or not ?
[Xperia Z Original Android Development] Kallb123:
It flashes fine but you can't actually boot into it :P

I didn't bother reading and went ahead and flashed. When it wouldn't work I read on and found that it's nots working yet :P
[Xperia Z Original Android Development] sacredsoul:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders - test[12-0

Hey man. Great to see you here. Remember you from the O2X forums. Welcome on board!
[Xperia Z Original Android Development] heretic:
I don't have these options in Flashtool when I select FTF firmware to flash.:( What am I doing wrong? Don't want to lose data. Please help.
[Xperia Z Original Android Development] heretic:
OK, looks like I got it - had to install Xperia Z-specific Flashtool. But now it appears that my phone is discharged. How do I charge it in bootloop? Will originall charging dock charge it or do I have to do something?
[Xperia Z Original Android Development] zanndoth:
You can switch off the phone and charge
[Xperia Z Original Android Development] DennisDD78:
The phone in bootloop could not to take charge, need to try.

heretic, Is this bootloop because of recovery ?
[Xperia Z Original Android Development] heretic:
So how do I charge then? Or how to unbrick?

Yes, I tried not to reboot, but it rebooted itself @night, possibly becuase of Titatium Backup rule (stupid me). :( I was on v1.4.
[Xperia Z Original Android Development] eagle1977:
When you but the firmware into the folder from flashtool/firmware and you want to start the progress you see on the right side

the options where you can choose if you want to wipe
[Xperia Z Original Android Development] heretic:
Already got that/ Now just trying to charge a bricked phone...:(
[Xperia Z Original Android Development] eagle1977:
Bricked phone? The flash not working?
[Xperia Z Original Android Development] heretic:
It seems as if it doesn't have enough charge. Won't enter flashmode anymore.

UPD:Connected to a different comp, successfully flashed with Flashtool. Thanks, everyone!
[Xperia Z Original Android Development] eagle1977:
The charging was working for me while i have bricked my phone. I was doing the following steps during bootloop:

Push Volume up and power Button and then the phone Vibration 3 times. After that I was abble to charge and the red lamp was on

Before I flash the Recovery I had 53% and after flashing the new firmware I had 83%

So I think it was working
[Xperia Z Original Android Development] heretic:
Mine was charged 100% after flashing. So it wasn't a charging problem then. Had to use a different computer to use Flashtool for some reason. Didn't have time to figure it out in a hurry.

So to confirm, it DOES CHARGE in bootloop.
[Xperia Z Original Android Development] xl VipeR lx:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders - test[12-0

Very strange but glad you fixed
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders - test[12-0

Ok, I'm going to work on it today again, just out of bed so I'll start in about an hour :)

EDIT: I'll have to wait for cpasjust, there's something wrong with his attachment so I can't download his progress and continue yet.

EDIT2: We are working on it from now on again.
[Xperia Z Original Android Development] krabappel2548:
Alpha 2 version is up, I need someone to test, it seems I can't test with unlocked bootloader.

Please share your result here.

You need to do:

adb shell touch /cache/recovery/boot

adb shell reboot

or in terminal emulator on your device:

su

touch /cache/recovery/boot

reboot

Please confirm the following:

- LED turns purple when booting?

- Enter recovery or not?
[Xperia Z Original Android Development] xl VipeR lx:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders Alpha 2[12-

I'll try and test. I'm leaving for work in 15 minutes
[Xperia Z Original Android Development] gbasset:
- LED turns purple when booting? Yes

- Enter recovery or not? No, stuck on Sony logo
[Xperia Z Original Android Development] xl VipeR lx:
Tested, wouldn't reboot in adb, got it to reboot in terminal

It Reboots, and then when the sony logo appears, the purple LED appears,

at this point the phone hangs and just stays there, it does not boot into recovery :(

Volume up and power button and i'm back into rom.

---------- Post added at 11:03 AM ---------- Previous post was at 11:01 AM ----------

ill take my laptop to work with me, try test around lunchtime for you, can download using wifi hotspot then flash.
[Xperia Z Original Android Development] lzyllp:
U still can test it

flash original FTF kernel only.

It same for test it
[Xperia Z Original Android Development] krabappel2548:
Well, I am on a stock based rom with stock kernel, but for some reason my device just reboots, and the ones with locked bootloader can use the touch /cace/recovery/method. I'm also working on Ubuntu Touch so I don't really want to flash back to stock ftf at the moment. There is no more big issue anyway. If device hangs you can just use volume+ and poer to reboot :p

Ok, thx for feedback, I think we are almost there, I just heavily modded some files in recovery :p

Alpha 3 is up :) so anyone who can test, same as before:
[Xperia Z Original Android Development] xl VipeR lx:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders Alpha 3[12-

Aaaah damn. I'm driving, give me half an hour
[Xperia Z Original Android Development] krabappel2548:
ok, same as before, I need to study first now, I'll be back on it tonight. Then I can ask help from a TWRP dev, he might see the problem faster then me :)
[Xperia Z Original Android Development] gbasset:
Ok, see you later.
[Xperia Z Original Android Development] xl VipeR lx:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders Alpha 3[12-

Yh, I parked up on the side of the freeway. Tried alpha 3. Same story. Purple led but hangs on Sony logo
[Xperia Z Original Android Development] heretic:
Careful, bro.:fingers-crossed:
[Xperia Z Original Android Development] zanndoth:
LOL!! :victory:
[Xperia Z Original Android Development] krabappel2548:
Haha :D Someone wants recovery really badly :laugh:
[Xperia Z Original Android Development] Droidyou:
I would love a recovery for locked bootloader just to try you sound enhancements, because pushing all files manually seems like a bit of a pain. I will test your alpha builds tonight.
[Xperia Z Original Android Development] Cpasjuste:
I'm back too, let's get it working !
[Xperia Z Original Android Development] James213r:
Same for me :)
[Xperia Z Original Android Development] krabappel2548:
I know already, it seems harder then it looks to make it work on a locked bootloader.. But hopefully it will work pretty soon :p

EDIT: Alpha 4 added, recovery trigger should be there now :)

So you can try to enter recovery again, we edited a lot again, so let's hope this time we are even closer to succes.

EDIT2: seems I can test it myself now, so now I can debug myself :) Alpha 4 doesn't boot into recovery either, but at least the recovery trigger works now.
[Xperia Z Original Android Development] gbasset:
With Alpha 4, I have some errors on the script "unknow user..."
[Xperia Z Original Android Development] Cpasjuste:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders Alpha 4[13-

Yep thats not important!
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders Alpha 4[13-

I'm going to release CWM for locked bootloader very soon, found a way to get that one working, just need to recompile it for our device so everything will work :)

It will be online today ;)
[Xperia Z Original Android Development] zanndoth:
wooohoooo!
[Xperia Z Original Android Development] Cpasjuste:
Re: [Locked Bootloader]TWRP Touch recovery 2.4.3.0 for locked bootloaders Alpha 4[13-

He thats great :)
[Xperia Z Original Android Development] sigma9988:
tested alpha4

Reboot > see green led > vol+ >purple led but can't into recovery
[Xperia Z Original Android Development] krabappel2548:
Just edited first and second post, CWM is compiling now :) I need to go out for diner now, so I think it will be online in 2hours :)
[Xperia Z Original Android Development] ajay83:
Nice one bud!.... SO after flashing this, can I flash your ROM?
[Xperia Z Original Android Development] indianl:
Great stuff - will it also work for Xperia ZL (6502)?
[Xperia Z Original Android Development] krabappel2548:
yes :) I'll post it there too as soon as I'm ready ;)
[Xperia Z Original Android Development] indianl:
Awesome - hope dinner was good, btw :p
[Xperia Z Original Android Development] Roscobigfoot:
How long till release? I could really do with this asap thanks ;)
[Xperia Z Original Android Development] krabappel2548:
yes, it was good :p

I don't know, there is one more issue I need to solve first. It doesn't boot anymore with latest CWM for XZ, it only boots with an old version of CWM made for Xperia T, so that's not really usefull at the moment. I'm going to lock the thread until I solved the issue.
[Xperia Z Original Android Development] krabappel2548:
Recovery is finally released!! Enjoy it guys :)
[Xperia Z Original Android Development] xl VipeR lx:
Re: [Locked Bootloader]CWM recovery 6.2.0.9 for locked bootloaders released[13-03]

Take your time. I'm free for the next 6 hours to test
[Xperia Z Original Android Development] ajay83:
Sweet, thanks. Just flash as instructed & install your rom?
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]CWM recovery 6.0.2.8 for locked bootloaders released[13-03]

No, it is final now, it works ;)
[Xperia Z Original Android Development] xl VipeR lx:
Re: [Locked Bootloader]CWM recovery 6.2.0.9 for locked bootloaders released[13-03]

Thanks wouter. Just to clarify. I can flash your rom and navbar mods
[Xperia Z Original Android Development] VTR1000SP:
i had install it but i cant boot into recovery by using notification toggle power option even with ur 1st post : Press volume up or down when green LED is on while booting

remount rw /system

copy recovery.tar to system.

6160+0 records in

6160+0 records out

rename stock chargemon

copy ric

0+1 records in

0+1 records out

chown: unknown user/group root:shell

copy charger

468+1 records in

468+1 records out

chown: unknown user/group root:shell

copy hacked chargemon to system.

8+1 records in

8+1 records out

chown: unknown user/group root:shell

remount ro /system

error: device not found

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

Installation finished. Enjoy the recovery.

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

Press any key to continue . . .

is it fail or success ?
[Xperia Z Original Android Development] Roscobigfoot:
Fyi, the batch script still says TWRP rather than CWM
[Xperia Z Original Android Development] Cpasjuste:
Try pressing it multiple times.
[Xperia Z Original Android Development] torrente777:
Thank you for a perfect!!!!!!: Good:
[Xperia Z Original Android Development] VTR1000SP:
meaning dun hold the volume button ?

---------- Post added at 04:52 AM ---------- Previous post was at 04:50 AM ----------

tks for ur great works ! :good:
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]CWM recovery 6.0.2.8 for locked bootloaders released[13-03]

Oh ok :D I'll edit the script ;)
[Xperia Z Original Android Development] krotwijk:
thank you for the hard work
[Xperia Z Original Android Development] Cpasjuste:
Nope,

wait for the green led, then press the volume button repeatedly (multiple times).
[Xperia Z Original Android Development] DakiX:
YOU ROCK! :highfive: many thanks
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]CWM recovery 6.0.2.8 for locked bootloaders released[13-03]

Well, pressing 2 or 3 times should do the job ;)
[Xperia Z Original Android Development] treoking:
But install a recovery with locked bootloader allow to install any ROM? I refer to official based ROMs or AOSP...
[Xperia Z Original Android Development] Kallb123:
Re: {Z}[DEVELOPMENT] - CM10.1 - Android 4.2.2 - FreeXperia Project

Recovery booting perfectly :)

I've not tried flashing anything or using it yet but it didn't send me spiralling into a boot loop :)

Can I just ask what the question means that pears when selecting to reboot system?

Disable recovery flashing, I think it said.

Each time I select GO BACK at the bottom but each time it restarted phone anyway :P
[Xperia Z Original Android Development] ajay83:
Tried installing your rom, saying symlinks failed, installation aborted?
[Xperia Z Original Android Development] Gregor250385:
hii, i have the CWM but after flashing a theme nothings change. my apps are upgrading buy thats all
[Xperia Z Original Android Development] VTR1000SP:
ok Tks for ur guide !
[Xperia Z Original Android Development] krabappel2548:
Re: [Locked Bootloader]CWM recovery 6.0.2.8 for locked bootloaders released[13-03]

Ok, which theme? Try flashing the black navbar mod. I know that one works for people with locked bootloader.

Then I know if recovery flashes things to /system

But I already think I know the problem if it doesn't work :)
[Xperia Z Original Android Development] krotwijk:
Your blackmod doesn't work from with installed recovery
[Xperia Z Original Android Development] ajay83:
Is anyone here flashed a rom yet? I can't says symlinks no done and aborted. status 7
[Xperia Z Original Android Development] Gregor250385:
i had BlackLine V6
[Xperia Z Original Android Development] krabappel2548:
ok, did you deleted the systemUI.odex file?

ok, I'll edit the recovery now and I'll try flashing something myself to see if it works :)
[Xperia Z Original Android Development] Gregor250385:
nav bar mode is also not working for me:(
[Xperia Z Original Android Development] Cpasjuste:
I said you should test it more before releasing :p
[Xperia Z Original Android Development] krabappel2548:
yeah, I know, I did some fast testing, but didn't flash anything :D

So it seems everything except flashing works, but /system is mounted
[Xperia Z Original Android Development] krotwijk:
yes i deleted that file, now i don't have statusbar en navbar
[Xperia Z Original Android Development] Gregor250385:
poor thing:eek: thank God i didt do that
[Xperia Z Original Android Development] ajay83:
So nothing currently flashes. no roms or mods yet?
[Xperia Z Original Android Development] indianl:
I flashed the audio mod, and I am of the opinion that the sound is much better - placebo effect?? :D
[Xperia Z Original Android Development] DooMLoRD:
Re: [Locked Bootloader]CWM recovery 6.0.2.8 for locked bootloaders released[13-03]

Try unmounting /system partition in recovery

See if u get any errors

If No errors then remount it...

Ideally before flashing the /system should be unmounted
[Xperia Z Original Android Development] xl VipeR lx:
It said error unmounting system.
[Xperia Z Original Android Development] TheTrooper:
Ok installed ...

But in case of things would go wrong, how can I remove CWM on locked bootloader ???
[Xperia Z Original Android Development] xl VipeR lx:
Follow my guide to get your ftf and flash stock
[Xperia Z Original Android Development] DooMLoRD:
Re: [Locked Bootloader]CWM recovery 6.0.2.8 for locked bootloaders released[13-03]

Hmm try this temporary fix

Create a small update.zip which just runs the following command

run_program("/sbin/umount", "-l", "/system");

I am a bit rusty with edify syntax but basically force unmounting system while in recovery... Then try mounting/unmounting system partition in recovery...
[Xperia Z Original Android Development] xl VipeR lx:
IT WORKED!!!

i just tried to flash KrabAppels Rom, again, this time no symlinks error? im waiting for it to boot now and see how it goes, it did flash the ROM though this time without any errors in recovery!
[Xperia Z Original Android Development] DooMLoRD:
Re: [Locked Bootloader]CWM recovery 6.0.2.8 for locked bootloaders released[13-03]

Don't flash ROM :P

Flash something smaller just to verify that it's actually flashing on /system partition...
[Xperia Z Original Android Development] xl VipeR lx:
Ahh dam,

am i supposed to mount the system back before rebooting,

it unmounted using the script, but still wouldn't mount with recovery