yashsingh1/xdaforums huggingface dataset:
[G2 General] jayochs:
you coudl get a good phone, like the G2

or you could get the iphone, aka baby's first smartphone
[G2 General] Jdella681:
I don't know about posting in a G2 forum because the majority of people here are going to say G2.

That being said I have an iPad for Apple stuff and my G2 for everything else. Even though people are a little apprehensive about the LG UI it does grow on you (I was a big Nova launcher user). It really depends on how you use your phone.
[G2 General] akong702:
Go with the iPhone 5s. That phone is pretty cool like the other side of the pillow. ;)
[G2 General] fabyprado123:
Thanks everyone ! I'm leaning more towards the g2 , hopefully that stays there lol ! Also , I hope LG updates their phones !
[G2 General] WheresTrent:
Ya got a lotta moxie posting that here, kid!

But seriously, I entertained the iPhone 5S as well. I don't want a smaller screen, though. And while I'm not addicted to flashing and modding my phone, I would like to have that option. If LG lags with updates, I can just grab a ROM from the community here.
[G2 General] DaT Franchise:
Go get the 4s update to ios7 and save $200 its the same thing. People got to understand its not hard to make a phone benchmark high, its also easy to make an iturd look fast because it does absolutely nothing, all it has to do is render a few small icons on a little dippy ass 4 inch 720p 5 year old retina display! Take an ijunk and put half of the features this phone or the s4 has and it will hardly run!
[G2 General] Geekybiker:
If you have to ask this question you should probably buy an iphone and be done with it. The advantages of android will probably be lost on you.
[G2 General] Medialunas:
Anyone asking that question here should buy an iPhone. Enjoy your purchase
[Xperia Z1 Original Android Development] DooMLoRD:
info:

this is based on the XZU recovery for locked bootloaders by @Krabappel2548

This thread will stay a dev and discussion thread for further development issues and fixes!

Download link can be found here: XZU recovery for locked bootloaders

THIS IS INTENDED FOR LOCKED BOOTLOADER DEVICES! But works on Unlocked bootloader too

THIS IS STILL IN DEVELOPMENT STAGE!

DO NOT EXPECT IT TO WORK PROBLEM FREE!

requirements:

rooted Xperia Z1

how to enter recovery:

when you see the Sony bootlogo and when device vibrates/leds light up u can use the entry keys to enter the corresponding recovery

VOLUME UP -> CWM

VOLUME DOWN -> TWRP

what works:

BOTH CWM 6.0.3.6 and TWRP 2.6.3.0 work

you can enter both recoveries and flash small files

what doesnt work:

in this particular version of CWM, adb doesnt work; it will be fixed later.. for debugging use TWRP

Shoudl be fixed:

TWRP and CWM both can destroy /cache and /system when trying to format it. Restoring your phone using an FTF is the only option left if that happens. You can however try to not format but use rm -rf instead in TWRP (TIC BOX!!), which will do for now.

regards,

Krabappel2548,

[NUT]

DooMLoRD

Last edit by Krabappel2548 on 19-10-'13

XDA:DevDB Information

Dual Recovery for Xperia Z1 (LOCKED BOOTLOADERS), a Tool/Utility for the Sony Xperia Z1

Contributors

DooMLoRD, [NUT], krabappel2548

Version Information

Status: Testing

Current Beta Version: 0.3

Beta Release Date: 2013-10-15

Created 2013-09-23

Last Updated 2013-10-19
[Xperia Z1 Original Android Development] DooMLoRD:
Reserved
[Xperia Z1 Original Android Development] [NUT]:
For anyone who does not own a Z1 (like me) and wants to search through the init actions.
[Xperia Z1 Original Android Development] raimondomartire:
Look also L2 Error detected! in 1089 Line. Usb don't work right and i think because we can't write in memory stack stack(0xe4859e70 to 0xe4859eb8) for lock bootloader. Problem it's in arch / arm / mach-msm but i don't find where!
[Xperia Z1 Original Android Development] [NUT]:
As DooMLoRD's OP somehow does not fire the mention system... repeat for function ;)

[MENTION=2492127]Kali-[/MENTION] [MENTION=1346722]Bin4ry[/MENTION] we need your help guys!
[Xperia Z1 Original Android Development] Bin4ry:
Oh now I got marked. I'll take a look at the weekend I don't have time Today sorry!

But just for me to know, ist that selfcompiled or a copy n paste version with a unpacked -> repacked ramdisk?

Have you checked against my posted recovery in Z Ultra forums? I can remember there was a similar problem on the locked bl recovery, you guys really seem to screw it somehow.

Also can i get a gdrive link to the files? Then I can grab it over my different systems more easy ;)

Gesendet von meinem C6903 mit Tapatalk 4
[Xperia Z1 Original Android Development] [NUT]:
It was a self-compiled version by [MENTION=2784807]DooMLoRD[/MENTION], with a ramdisk slightly modified to get it to work for the Z1. What did you do to get it to work on the ZU? [MENTION=4340984]krabappel2548[/MENTION] tried and failed there too...

EDIT: Just to be clear: it's not that the recovery does not work, it does, it's the kernel which triggers a reboot after 40 seconds because it seems to be unable to initialize the modem.
[Xperia Z1 Original Android Development] DooMLoRD:
the boot hijack scripts, chargemon, are based on the ones for Xperia Z by [MENTION=4904057][NUT][/MENTION], with the necessary modifications, if any, for Xperia Z1

the ramdisks for the recoveries are using the same CPIO as the ones for unlocked bootloader...

recovery works well on unlocked bootloader with recovery integrated in kernel ramdisk...

will send u link over gtalk ;)

did u post recovery for LOCKED bootloaders for Z Ultra?
[Xperia Z1 Original Android Development] Bin4ry:
Ok i did some first tests!

My own recovery works (see cm boot.img !). But this one does not work when ramdisk-recovery is integrated into your dualboot script!

So it is definetly a problem with the services from the "host" system. The ramdisks which get extracted also work fine when integrated into cm boot.img!

So wild guess here: You try to stop all services from host system but it seems not to work, since you dont really need anything running for recovery, but some of the host services dont want to stop here and waiting for the system to bootup. SOMETHING seems to reboot it then when nothing is happening :P

Need to see deeper whats happening, its quite a funny problem i think :P

Regards
[Xperia Z1 Original Android Development] [NUT]:
I came to the same conclusion, but I had to give up as I had no idea what services could have been responsible

It might be the RIL service as it slingshots a lot of the radio/modem functionality... But I'm really not too sure...
[Xperia Z1 Original Android Development] auras76:
Deleted
[Xperia Z1 Original Android Development] [NUT]:
original ramdisk and the files from /system/etc are now in post 3 for anyone without a Z1 to check them.
[Xperia Z1 Original Android Development] [NUT]:
Did you find anything useful yet?

I've been wandering around in the files again myself, i've checked the qcom modem init already but i rechecked it, it seems that before chargemon is started, it already initialized a lot of the radio/modem hardware... it seems that at least one service is responsible for the communications layer between the kernel and modem, but I have been unable to determine which one... seeing the 40 second timeout before a reboot occurs it probably accounts for the service needing some time to start up.
[Xperia Z1 Original Android Development] jos_031:
Since kernel have initiated the modem, is it possible to write a procedure to set smem_get_entry flag. most likely to assign flag one to it.. New to android development..When i program a micro controller..we will be checking a flag in modem to see if it is initiated.. or sometimes.. i assigns a variable or memory address...so instruction will check that location for status rather than checking modem flag...as it takes more cycles...so i think this may be clearing some flags or memory or variable....
[Xperia Z1 Original Android Development] Bin4ry:
I did not had time yet to continue working but boyhood you guys should be correct. I am just thinking of the easiest way to fix it. Give me some more days please ;)

Gesendet von meinem C6833 mit Tapatalk 4
[Xperia Z1 Original Android Development] [NUT]:
I've had a chat about it with Dees Troy from TWRP about it, he suggested RIL as a possible culprit, or maybe watchdogd...

I don't have a z1 so I'm unable to test it on my own...
[Xperia Z1 Original Android Development] jos_031:
For watchdog to reset an unexpected condition should occur.. for that something else have to go wrong...

and not sure- Radio Interface Layer is it not part of baseband?
[Xperia Z1 Original Android Development] [NUT]:
Yes, it is: so it's tied in with the modem hardware...
[Xperia Z1 Original Android Development] Jacob_Bentzen:
Where do I download that recovery??
[Xperia Z1 Original Android Development] [NUT]:
It's on the download tab in the project bar :)
[Xperia Z1 Original Android Development] delewer:
1- it's a pleasure :)

2 - exactly, someyhing wrong failed at un-mount...

That's the point i don't found that's wrong in dualrecovery.sh

My patch (little zip) work fine, so we see in guest cpio disk, the umount is working, after problem occurs...

No bug in ZU ?

:-/

Edit :

ok, i think i have found.

I haven't pc to test myself

You must delete /storage/removable/sdcard1 in /etc/mtab entries, in twrp recovery

I think it's this file witch mount and block sdcard1
[Xperia Z1 Original Android Development] [NUT]:
I'm not sure if the problem is the same for the ZU, maybe [MENTION=4340984]krabappel2548[/MENTION] could respond to that?

I have almost finished the new XZDualRecovery build kitchen (which was a lot more work then I thought!) and when/if it is able to release a working XZ version the change to the Z1 will be a breeze. From that moment onward I will be able to chuck out test versions extremely fast and easy :good:

[MENTION=4225567]delewer[/MENTION] your help, like the help from [MENTION=273310]monx®[/MENTION], is very much appriciated, therefor I salute you both for your time and effort!
[Xperia Z1 Original Android Development] krabappel2548:
Updated recovery again, just a small fix in install script.

EDIT: Sorry guys, another small error fixed :p latest version is in download tab
[Xperia Z1 Original Android Development] delewer:
Ok, i have no more sdcard1 issue

I have add this line in "/sbin/postrecoveryboot.sh" (in twrp cpio) :

#!/sbin/sh
umount -l /storage/removable/sdcard1

i have repack cpio, and, work perfectly now.

Here, my cpio to test yourself.
[Xperia Z1 Original Android Development] krabappel2548:
Good, now we still need to try and fix /system format issue
[Xperia Z1 Original Android Development] [NUT]:
And lets not forget the fact that the time_daemon should be restored, so we still need to figure out why the reboots happen when it does run...

I've included [MENTION=4225567]delewer[/MENTION]'s fixed twrp cpio image on the latest version on the downloads tab.

(Sorry for those who where downloading while i did that!)

---------- Post added at 01:00 AM ---------- Previous post was at 12:34 AM ----------

Can anyone who ran in to a bootstall after flashing a ROM (seeing only the sony logo and having to reflash a FTF to get the phone working again) please try once more in TWRP and NOT wipe cache when restoring to attach the logs from /cache/recovery to this topic?

We need them to see why formatting failed.
[Xperia Z1 Original Android Development] Juzman:
Hey guys,

Just downloaded this and ran the install. However it reboots, and doesn't go into CWM after "copy new busybox to system". I continuously tap the volume up, but nada. Just reboots and comes back to the home screen and says install finished.

Press any key to continue . . .
killing RIC, remount /system rw and temporarily disabling the RIC service...
copy recoveries to system.
rename stock chargemon
copy hacked chargemon to system.
copy dualrecovery.sh to system.
copy new busybox to system.
Waiting for your device to reconnect.
After entering CWM for the first time, reboot to system to complete this install
er

=============================================
Installation finished. Enjoy the recoveries
=============================================
[Xperia Z1 Original Android Development] gregbradley:
Did it reboot into cmw on its own during the install process?
[Xperia Z1 Original Android Development] Juzman:
Not at all, just did a reboot.

Edit: Rebooted both phone and laptop, it worked! :)

Now to do a nandroid backup. :)
[Xperia Z1 Original Android Development] gregbradley:
Did you grant root access to adb shell in supersu during the install process?

Did you pick the correct super user app in step 1 of the install process?

If all else fails download the latest version and try again, it was updated a few hours ago
[Xperia Z1 Original Android Development] Juzman:
See previous post. :)
[Xperia Z1 Original Android Development] krabappel2548:
New version coming up today, I fixed another small thing in scripts and added a remove option for those wanting to remove the recovery after trying it.

EDIT: New version is in downloads tab!
[Xperia Z1 Original Android Development] kamma:
there is a bug in the installation script. you misplaced options 3 and 4 :)

if "!menu_decision!" == "3" (

goto abort

)

if "!menu_decision!" == "4" (

goto remove

)
[Xperia Z1 Original Android Development] krabappel2548:
I know, btw everyone can stop searching for solutions with /system format issues, I have a working version now :p
[Xperia Z1 Original Android Development] [NUT]:
Yay! :D
[Xperia Z1 Original Android Development] Desperanto86:
Great! Will you share it?
[Xperia Z1 Original Android Development] krabappel2548:
Of course I'll share it, just some cleaning up to do and add twrp ;) I have only CWM for now, but it works perfect except the time issue with backup:p
[Xperia Z1 Original Android Development] Desperanto86:
You are awesome man! :)
[Xperia Z1 Original Android Development] fer2503:
so now we can have a pre rooted .257? :D
[Xperia Z1 Original Android Development] krabappel2548:
Yes I'll release both tonight :p
[Xperia Z1 Original Android Development] fer2503:
small ot: can you release also a odexed one?.

many thanks for your work guys :D
[Xperia Z1 Original Android Development] [NUT]:
whu?

Recovery is neither odex nor deodex ... it has nothing do do with the framework...
[Xperia Z1 Original Android Development] fer2503:
I was referring to rom. I prefer The odexed one like your stock rooted for the Z :D
[Xperia Z1 Original Android Development] gregbradley:
Can you let me know what the issue was with our problem.

I had tried to incorporate this recovery into my rom as well...

If we can discuss via PM that would be great.

Thanks
[Xperia Z1 Original Android Development] Desperanto86:
I want to know too :) Where was a problem? :)
[Xperia Z1 Original Android Development] [NUT]:
Ladies, please don't forget this is nowhere near production material...

Eventhough we have a WORKAROUND for the 40second reboot bug, we did not yet really solve it!!
[Xperia Z1 Original Android Development] krabappel2548:
I'm testing TWRP out, I also fixed installing issues on latest rooted 257 fw, and CWM is working perfect :)

Only issue at the moment is time_daemon I think :p

Or maybe ext sdcards, I may have forgotten to edit ramdisk for them, but at least we can backup & restore and flash roms. Release very soon!

EDIT: Twrp working flawlessly and no sdcard issues :)
[Xperia Z1 Original Android Development] fer2503:
Sorry But i'm a bit confused...The problem of 40 sec is still fixed or Not? What's the bugs of the Recovery?
[Xperia Z1 Original Android Development] harfot:
Read
[Xperia Z1 Original Android Development] fer2503:
But krabappel2548 says that He solved it
[Xperia Z1 Original Android Development] gregbradley:
Only by breaking something else, so it's not a real solution yet
[Xperia Z1 Original Android Development] krabappel2548:
exactly, we disabled time_daemon, but we are working on it right now, if it's not fixed tomorrow I'll release my recovery with workaround
[Xperia Z1 Original Android Development] Nagato Yuki:
But, in practice, would the recovery be able to flash the pre-rooted and recovery-pre-installed ROM (system)?

Also, in principle, would such system like your work for Z ( http://xdaforums.com/showthread.php?t=2454829 ) work for Z1 after the replacing corresponding proper files?

Since the rooting may be not available for following version Z1, the remain method is update through recovery...	:(
[Xperia Z1 Original Android Development] [NUT]:
As soon as the recoveries both allow it by being stable enough, I will start releasing the update to packages for the Z1 as well :)

It's a little riskier for the Z1 as i don't have that device yet...
[Xperia Z1 Original Android Development] fer2503:
i update to 257 pre-rooted with locked bootloader recovery. now i have the rooted 257 but i can't install the recovery. why?
[Xperia Z1 Original Android Development] slonn:
Sounds good. I'm running a rooted .257 rom and the dualrecovery can't be installed.
[Xperia Z1 Original Android Development] krabappel2548:
The version I have can be installed, but wait for release later today ;)
[Xperia Z1 Original Android Development] dagrim1:
Sweet, root required I guess?
[Xperia Z1 Original Android Development] [NUT]:
Aye sir :rolleyes:
[Xperia Z1 Original Android Development] slonn:
Was the .257 compatible version released?

Sendt fra GN8
[Xperia Z1 Original Android Development] aeron16:
Doesn't seem so? Been checking the past hrs but didn't see any updates yet
[Xperia Z1 Original Android Development] [NUT]:
Something changed on xda which is throwing off the app, anyone else noticing that?

Anyway, I assume krabappel2548 will post it today, he had a surprise visit from his gf so I'm guessing he was too 'busy' to think about this ;)

---------- Post added at 07:58 AM ---------- Previous post was at 07:57 AM ----------

Yes, it is :)
[Xperia Z1 Original Android Development] aeron16:
Lol i understand! Have fun! :p
[Xperia Z1 Original Android Development] dagrim1:
I assumed so, cheers ;) No issue anymore as I have now mastered the craft of flashing, rooting and adb-ing for the Z1 as well ;)
[Xperia Z1 Original Android Development] Michealtbh:
The current version seems to work fine in RomAur .257
[Xperia Z1 Original Android Development] slonn:
But didn't you install it on the version prior to 257?

Sendt fra Z1
[Xperia Z1 Original Android Development] Michealtbh:
Yes
[Xperia Z1 Original Android Development] aeron16:
seems to be fine on RomAur as well!
[Xperia Z1 Original Android Development] krabappel2548:
I started from scratch and ported my Z Ultra version :)

This stays.dev thread, Z Ultra will be user discussion thread ;)

You can download and follow it here: Xperia ZU & Z1 recovery for locked bootloaders

Keep in mind that trying this is your risk!

Also Updated OP a bit
[Xperia Z1 Original Android Development] Desperanto86:
Thx, man! Can you tell what problem was? In some words...
[Xperia Z1 Original Android Development] krabappel2548:
I used my method to port from scratch, so actually no..

I never had system format errors etc so I don't know what the issue was :p
[Xperia Z1 Original Android Development] Nagato Yuki:
Then I would like to try make_ext4fs /dev/block/mmcblk0p23 (/system) for my Z1 (to update to 14.1.G.2.257 ):p

OR rm -rf for that purpose?

Well, but it seems not need remount fix for Z1 ? :confused:
[Xperia Z1 Original Android Development] [NUT]:
The remount-reboot fix is included both the installer and the recovery. If you installed this recovery, you actually don't need the remount fix anymore :D

---------- Post added at 06:10 PM ---------- Previous post was at 06:08 PM ----------

@nagato yuki

The post was meant for you, the xda app is getting confused by something new on the forum...
[Xperia Z1 Original Android Development] Nagato Yuki:
Well, compare to the file list of the recovery for Z and Z1, there is no killric.sh and ctrlaltdel...

It means no need to include these two files?

Anyway, I just successfully use the recovery to update to official 14.1.G.2.257 with slightly modifying your package scripts :good:

The remain issue is the exFAT support in TWRP ( I would like to get the debug log for error reporting)
[Xperia Z1 Original Android Development] slonn:
Ah dammit... Just installed both. Oh well, it works like a charm :)

Sendt fra Z1
[Xperia Z1 Original Android Development] krabappel2548:
I'll fix exFAT tomorrow ;) I'm not home now
[Xperia Z1 Original Android Development] [NUT]:
Not anymore, their functionality has long been added to XZDualRecovery :)
[Xperia Z1 Original Android Development] Jacob_Bentzen:
Can I then install JB 4.3 without breaking the camera?? :)
[Xperia Z1 Original Android Development] dagrim1:
As far as I know camera only 'breaks' when unlocking the bootloader... Recovery has nothing to do with that.
[Xperia Z1 Original Android Development] Planet X:
The problem is that you cannot flash the kernel with a locked bootloader what is needed for cm to run.
[Xperia Z1 Original Android Development] y2grae:
going to sound dumb, but can we not save the cm kernel in a way to flash via flashtool? LB allows for kernel flashing of stock through it to different firmwares etc
[Xperia Z1 Original Android Development] Daelyn:
A locked bootloader will not load any custom firmware/kernel. If it had been possible I suppose many AOSP ROM's would be packaged in both FTF and CWM formats.
[Xperia Z1 Original Android Development] y2grae:
was thinking that, but did wonder after updating my LB Z1 via flashtool
[Xperia Z1 Original Android Development] DAddYE:
Hi I've the following problem:

Press any key to continue . . .
killing RIC, remount /system rw and temporarily disabling the RIC service...
Unable to chmod /sbin/ric: No such file or directory
Unable to chmod /system/bin/ric: No such file or directory
copy recoveries to system.
Toolbox!
Toolbox!
Unable to chmod /system/bin/recovery.twrp.cpio.lzma: No such file or directory
Unable to chmod /system/bin/recovery.cwm.cpio.lzma: No such file or directory
rename stock chargemon
copy hacked chargemon to system.
Toolbox!
Unable to chmod /system/bin/chargemon: No such file or directory
copy dualrecovery.sh to system.
Toolbox!
Unable to chmod /system/bin/dualrecovery.sh: No such file or directory
copy new busybox to system.
Toolbox!
make file for faster backup.
make sure first boot goes to recovery.

How I can solve? Thanks!
[Xperia Z1 Original Android Development] gregbradley:
Make sure you are rooted and have USB debugging on

Which firmware are you on?
[Xperia Z1 Original Android Development] DAddYE:
Hi,

the device is full rooted with Superuser and has usb debugging on.

I'm on a .257 (pre rooted), but TBH, I installed this version many times and dual recovery too without any issue. I've no clue what RIC service is and why is not present anymore.

Thoughts?
[Xperia Z1 Original Android Development] [NUT]:
[MENTION=3160680]DAddYE[/MENTION]

Do you perhaps run a custom kernel?

It might be the only reason why it's gone...
[Xperia Z1 Original Android Development] DAddYE:
Nope, I flashed the stock .257 kernel and bootloader

---------- Post added at 10:57 PM ---------- Previous post was at 10:29 PM ----------

*edit bootloader => baseband

---------- Post added at 11:00 PM ---------- Previous post was at 10:57 PM ----------

So, just to be sure, reflashed the kernel and same thing, my device is rooted and USB debug is on as well. Any ideas?
[Xperia Z1 Original Android Development] Amritttt:
I just installed rom manager and it says that there is an update for recovery should I update it?
[Xperia Z1 Original Android Development] [NUT]:
Unfortunately that won't work...
[Xperia Z1 Original Android Development] xshunin:
Is it "normal" that there is this huge time gap between the Sony Logo and the boot animation upon reboot? >_>
[Xperia Z1 Original Android Development] hush66:
Yes, if you turned off the "Optimised backlight" option in Settings -> Display.
[Xperia Z1 Original Android Development] xshunin:
You mean the "auto-brightness" checkbox? Well it keeps "unchecking" from time to time.

Or do you mean somewhere in the recovery options?

Is there a way to prevent that gap? It takes like 40 seconds before it starts to boot.