yashsingh1/xdaforums huggingface dataset:
[Xperia Z General] long2905:
locked bootloader :D. Though it seems like I may or may not have lost CWM.
[Xperia Z General] Moody:
You probably already have the file by now, but anyway, the desktop version didn't work for me either so I downloaded the Mega app, signed up for a account, on the download link I pressed add to my files and downloaded the file from within the Mega app.
[Xperia Z General] RoberM:
This could be a very important finding, could you please do more testing to see if you certainly kept your root and recovery intact, and write the exact steps you followed?

I assume you just flashed the zip without wiping anything before, but just to make sure.

Thanks.
[Xperia Z General] long2905:
well i was on aura's custom rom. I simply re-zip the first one OP uploaded and put it in my memory card. Then I did a wipe/factory reset then flash this zip in CWM and voila!
[Xperia Z General] tomanlam:
can u check if the kernel is updated?:p
[Xperia Z General] Encang_Rojali:
I try this well this nice rom..but ill back to stock..

Great work buddy

Sent From C6603 Using xda premium

________________________
[Xperia Z General] Moody:
TWRP asks you if you want to root your rom if you're not rooted (well it only installs Supersu, and the su binary, not busybox). Maybe CWM did this by default or something?
[Xperia Z General] silencer51:
Correct.

Was on a clean FTF install of unbranded .434. I used CWM 6.0.30 to flash v5, everything works, except the reboot when mounting /system issue.
[Xperia Z General] wawyed:
So you followed all the steps in the op? You should have this kernel/rom/baseband right now, right?

Now try to reboot to recovery, make a factory reset and flash v5 again.
[Xperia Z General] silencer51:
Yes, and yes. I already mentioned in a previous comment that I did in fact, do a factory reset and flashed v5 again. It made no difference.
[Xperia Z General] wawyed:
How do you test if system rw works? Try opening terminal emulator and type mount -o remount,rw /system
[Xperia Z General] silencer51:
I simply use Root Explorer and mount /system as r/w. Trying to remount through a terminal also causes a reboot.

I realized I had the bug when after the first fresh installation I tried to install SuperSU (I prefer it to Superuser) and after granting it permission the device rebooted (obviously it tries to write to /system).

Could you explain what ric is and why stopping it solves (albeit temporarily) the reboot problem?
[Xperia Z General] wawyed:
Hmm, try something for me if you want. Reinstall again with factory reset, don't install anything else, enable usb debugging, and open an adb shell:

adb@shell>su

adb@shell>mount -o remount,rw /system

Report back what happens.

Maybe supersu messes up root.

Thanks.
[Xperia Z General] silencer51:
You misunderstand me, mounting /system as r/w even immediately after a fresh install (with Superuser, not SuperSU) results in a reboot. Its the first thing I tried after the second factory reset and reflash.
[Xperia Z General] wawyed:
Have you tried [MENTION=4904057][NUT][/MENTION] version to see if the same happens?
[Xperia Z General] drsoran2:
@ Silencer51 just flash the Superuser reboot patch 0.1 via recovery from op of this thread: http://xdaforums.com/showthread.php?t=2282415

I've upgraded from .434 firmware with root, locked bootloader to .253 firmware (root, apps, data everything retained) and used version4 from this thread (version5 was not yet released at the time). After the upgrade, I had the annoying reboot problem too. I've flashed the patch and it's gone since.

I don't know if the reboot problem is already fixed in version5 since I don't have the need to flash it because everything working fine now.
[Xperia Z General] bharat4ever:
Maybe you guys are aware of this already, but this is what I did.

I am on unlocked bootloader.

Flashed generic .253 India Rom directly - http://xdaforums.com/showthread.php?t=2278993

Used fastboot to push Doomlod's v6 stock kernel with CWM - http://xdaforums.com/showthread.php?t=2167381

Booted into recovery and flashed super su binaries - http://xdaforums.com/showpost.php?p=38154110&postcount=2

And voila, on .253, rooted, and ready to go.

Should I check anything to make sure everything is working the way it should?
[Xperia Z General] wawyed:
Open terminal emulator type:

su

mount -o remount, rw /system
[Xperia Z General] bharat4ever:
Wait, what does this check?

If you want to know if i have rw access, i do. I did that temp wifi fix in etc/firmware/wlan/prima folder.

EDIT: through terminal emulator, it says "Mount: Operation not permitted".

But through Root explorer, am able to mount /system as rw.
[Xperia Z General] BeDesireS:
I tried to upgrade from .434 with V5 yesterday, but I got stock at sony logo.

Then I flashed the whole .253 ftf to get the phone back to life.

Today I wanted to give it another try and first downgrade to .434 again,

but after reboot the NFC update starts everytime and ends in reboot!?

Some suggestions!?

Thanks in advance! :good:
[Xperia Z General] wawyed:
Disable wifi/mobile data before it finishes upgrading
[Xperia Z General] vibranze:
Hi Wawyed,

May I know what is the diff between flashing .zip followed by .ftf and .ftf first then .zip? Thanks.
[Xperia Z General] wawyed:
None. :D
[Xperia Z General] wawyed:
Did you type su first to have root privileges? Anyway, if it works in root explorer you are good to go then :)
[Xperia Z General] silencer51:
I haven't tried NUT's method, I instead went the riskier route.

I took a TA backup, then flashed .235 through SUS, unlocked bootloader, rooted via DoomLord's method, flashed stock kernel and relocked bootloader by flashing TA backup.

Everything worked fine, but... you guessed it. As soon as I relocked the bootloader, mounting system causes a reboot.

The 'stop ric' command works until the next shutdown of the phone.
[Xperia Z General] bharat4ever:
Damn I missed the su.

This is what I get. Is this right?

So this is now a straight forward easy way to root on 253? Do we shout it from the rooftops?
[Xperia Z General] BeDesireS:
Thanks for the tip, but it doesn`t work.

Maybe is there something to exclude in ftf to keep the new nfc version?
[Xperia Z General] wawyed:
No, it's not. This is to check that you have rooted the phone correctly.
[Xperia Z General] wawyed:
You can always set /etc/install-recovery.sh to run on boot. Which basically runs that command.
[Xperia Z General] silencer51:
Let's see if it works. For some people the script doesn't work, even though the command through terminal works.. Go figure!

Question: I just create a script in system/etc named 'install-recover.sh' and it will run automatically at boot? Note that I do not have any recovery installed now.
[Xperia Z General] bharat4ever:
He he, i got that. I was asking whether what I did (Quoted below), is the best way to root.
[Xperia Z General] wawyed:
With an unlocked bootloader is much easier yes. But the thing is people don't want to lose bravia engine etc.. by unlocking the bootloader.
[Xperia Z General] shoey63:
+ it takes a lot of guts to restore TA partition once bootloader has been unlocked :eek:
[Xperia Z General] firefox-58:
V5 Download due to traffic limitations not available :crying:
[Xperia Z General] diego9016:
Installed with no problems with Docomo status bar+PureXAudio.

Thank you.
[Xperia Z General] wawyed:
Reuploading to mega :) ETA 1:30hours
[Xperia Z General] Carceri:
Could this be due to a race condition? ric is started with the service command and soon after that the install-recovery.sh file is executed. Maybe in some cases install-recovery.sh is executed just before the ric daemon is actually started, and hence the stop command fails to stop it? It should be easy to fix by prefixing the "stop ric" command in install-recovery.sh with a call to "sleep 1" for example, giving ric one second to fully start before we try to stop it.

The ramdisk in the stock kernel will run the command /system/etc/install-recovery.sh at boot. It is the only file that is run at startup from the /system partition, and hence it is used to place whatever you want to run at startup. Remember to chmod 755 the script, otherwise it will not run.

I have created a more robust script to stop ric, but it is probably overkill. Anyway, if you have problems with reboots when mounting system r/w you can try putting this script in /system/xbin/antiric and call it from install-recovery.sh like this. Remember to chmod 755 both files!

/system/xbin/antiric

#!/system/bin/sh
#
# Anti-RIC script by Carceri @ XDA
#
timeout=0
while [ ${timeout} -lt 60 ]; do
/system/xbin/ps -o comm|/system/xbin/grep "^ric$" &>/dev/null
[ $? -eq 0 ] && break
/system/xbin/sleep 1
timeout=$((timeout+1))
done
timeout=0
while [ ${timeout} -lt 10 ]; do
/system/xbin/ps -o comm|/system/xbin/grep "^ric$" &>/dev/null
if [ $? -ne 0 ]; then
[ ! -f /sbin/ric ] && exit 0
/system/bin/mount -oremount,rw /
/system/xbin/rm -f /sbin/ric &>/dev/null
/system/bin/mount -oremount,ro /
/system/xbin/sleep 1
continue
fi
/system/bin/stop ric
sleep 1
pid=$(/system/xbin/ps -o pid,comm|/system/xbin/grep " ric$"|/system/xbin/head -n1|/system/xbin/cut -d" " -f1)
if [ ! -z "${pid}" ]; then
/system/xbin/kill "${pid}"
fi
/system/xbin/sleep 1
timeout=$((timeout+1))
done

/system/etc/install-recovery.sh

#!/system/bin/sh
/system/xbin/antiric &
[Xperia Z General] wawyed:
Added mirror :)
[Xperia Z General] silencer51:
I'm going to try your scripts momentarily, I will report back ASAP ;)

---------- Post added at 10:53 PM ---------- Previous post was at 10:37 PM ----------

Just tried both scripts... Rebooting still. I'm guessing the ric daemon is one of the last to load, perhaps the delay needs to be longer?
[Xperia Z General] thalada:
I have already updated to stock 10.1.1.A.1.253, so should i just flash the version5 with flash tool?? I don't care about any data/settings.

Thanks.
[Xperia Z General] Carceri:
No there should not be more than one second at most. Check if ric is actually running with ps from a shell. My script should stop it no matter what.

Also try placing a few debugging statements in the two files to verify that they actually run.
[Xperia Z General] silencer51:
Well, ric is actually running, just did a fresh reboot with your scripts and ps | grep ric shows it running.

So I'm guessing the scripts don't run properly...

Question: what is this ric daemon and why does it cause the reboot? I'm guessing some sort of tampering protection on behalf of Sony?
[Xperia Z General] Carceri:
Looks like it. It checks filsystem options for a few filsystems and reboots if they are not as expected.

Try to run the scripts from the shell to see if they are executable or if they give an error. Also make sure you upload them with unix newlines, not msdos.
[Xperia Z General] silencer51:
Indeed, running install-recovery.sh from an adb terminal results in the following error:

/system/xbin/antiric: No such file or directory

which is weird, because antiric is there (and obviously with rwrx-xr-x attributes)...
[Xperia Z General] Carceri:
Could it be because of msdos newlines in the file? It will cause problems like there.
[Xperia Z General] silencer51:
I edit all scripts etc. with Notepad++, which supports Unix newlines etc. So it can't be that...

---------- Post added at 11:38 PM ---------- Previous post was at 11:28 PM ----------

Update: I feel so incredibly stupid. For some reason I had switched the EOL mode in Notepad++ from Unix to Dos/Windows.

Guess what.. Now the simpler script works too (the one which directly stops ric at boot)! :)

Thanks for the help Carceri!!!
[Xperia Z General] Carceri:
Great! :) The simple script should work fine. Mine is just overkill.
[Xperia Z General] silencer51:
Wawyed, do you include the install-recovery.sh script in your pre-rooted ROM? I'm trying to understand why it didn't work in my clean flash of v5 and it works now..
[Xperia Z General] wawyed:
Yes, I did. It should be there.
[Xperia Z General] Crucio_:
Is there a mirror for the ftf file? thanks.
[Xperia Z General] wawyed:
How did you update? Do you have root and recovery?
[Xperia Z General] thalada:
I used this stock firmware & flashed it, http://xdaforums.com/showthread.php?t=2283170

So, i assume no root & recovery.
[Xperia Z General] wawyed:
You need to download a .434 ftf. Flash it with flashtool but only the system partition. Then root + install recovery. After that restart the phone, enter recovery and install my zip.
[Xperia Z General] thalada:
Oops, right now i am having a bad internet connection. I will wait for some one to exploit the new root.

Thank you.
[Xperia Z General] joejoe23:
How long does flashtool takes to flash? i have been on 14 percent for like 10 minutes now
[Xperia Z General] timchew:
Should be really fast if you use the striped ftf.

Else it could be about 15 mins if you include every thing, wipe data and all include.
[Xperia Z General] joejoe23:
I already got it sorted. I used a wrong flashtool lol. Thanks to Nut for pointing that out. By the way is this rom deodexed?
[Xperia Z General] timchew:
No. The odex files are still found in system /app folder.
[Xperia Z General] joejoe23:
So if i wanna flash mods ,i have to flash the odex ones?i cant flash the deodexed ones right?
[Xperia Z General] vibecatalin:
Hello,

I'm on .434 rooted with SuperSU and TWRP recovery. The root works ok , no reboots, no problems. I want to upgrade to .253

Can I upgrade to .253 without wiping data? I mean , has someone made the update from a

not

fresh installed, working, no forced reboots, rooted .434 to this .253 and had no problems?

Thanks.
[Xperia Z General] JPWOA:
Just follow the steps on the first post and your good to go!

No need to wipe anything ;)

The only thing I did different and had no problems and the NFC firmware updated correctly was in step 4.

Instead of rebooting and then shutting down to update kerner, baseband and fota I immediately shutdown the phone after the TWRP install the Rom. Flashed the kernel, baseband and fota and then start up the phone.

No data loss, no nfc update error and everthing good :good:
[Xperia Z General] joejoe23:
I just checked and noticed i dont have nfc. i followed every steps of op. Where did i go wrong here?

Edit: a fullwipe resolves the problem
[Xperia Z General] timchew:
It's possible to flash mod for odex rom, though it depends on whether the mod supports odex rom or not. Check the Op for the mod and see. ;)
[Xperia Z General] TheTrooper:
After flashing v5 Rom from zip my phone stopped to recognise my SIM Card (T-Mobile). When I made my own zip from original ftf 10.1.1.A.1.253 CE all works so far.
[Xperia Z General] wawyed:
Try factory reset
[Xperia Z General] TheTrooper:
Problem solved :D I made zip myself from original 10.1.1.A.1.253 CE and then flash ended flawlessly.
[Xperia Z General] wawyed:
Good for you :). Did you retain root? :)
[Xperia Z General] TheTrooper:
Yes root is intact :D

Added su, busybox and install-recovery.sh to my zip.
[Xperia Z General] wawyed:
Can you mount system as rw? :good:
[Xperia Z General] TheTrooper:
So far... yes :thumbup::D
[Xperia Z General] xbladex:
i have flashed v5 but now im only getting a blinking white screen :(
[Xperia Z General] wawyed:
What do you mean? Which version do you come from? did you follow the steps in the op?
[Xperia Z General] xbladex:
all i have is a backlight nothing else followed steps

---------- Post added at 10:54 PM ---------- Previous post was at 10:54 PM ----------

tried flashing with flashtool getting simlock.ta error

---------- Post added at 11:21 PM ---------- Previous post was at 10:54 PM ----------

ok just flashed system and kernel from stock .253 with flashtool and booted fine
[Xperia Z General] JPWOA:
check TA to be excluded from flash
[Xperia Z General] xbladex:
all working now but i think i have lost root now tho
[Xperia Z General] JPWOA:
If you do not follow the instructions on the first post and flashed the hole system...most definitely!
[Xperia Z General] vibecatalin:
I've followed the instructions, installed everything with no problems BUT and I get this when I open the SuperSU app :

"There is no SU Binary installed, and SuperSU cannot install it. There is a problem!''

What should I do???

P.S. in TWRP after flashing , it asked me to fix the superuser and binary permission and I've pressed fix it. Maybe from there was the problem. Anyway, has anyone got a solution for my problem?

P.S. 2 I cannot get in the TWRP. What the heck happened to my phone????

I've followed exactly the instructions

L.E. : I've found the problem : ME . stupid ME. I've flashed everything EXCEPT the kernel baseband and FOTA :)))))))))))) I'm so f****** stupiddddd :) . I will reflash all now. Thanks

L.E. 2 : OK, everything is working now, and WOW the colors , they are all so so wow beautiful.
[Xperia Z General] wawyed:
:D I'm glad everything went ok at the end. And yes, I reckon is a bit confusing those ticks in the flashtool.
[Xperia Z General] jacsterw:
N00B

I'm a N00B first class..... can u explain me a couple of things??

Installation

3. Enter recovery and install zip (optionally make a factory reset). (Enter Recovery???)

4. Reboot, you should have all your data saved and root retained.

5. Turn off the phone.

6. Download the ftf from op or one with latest version 1.253. (download the ftf????)

7. Open flashtool, select flasmode.

8. Select the right options, BE CAREFUL. You want to flash ONLY kernel, baseband and fota. You DON'T want to WIPE anything. It should look like in the wipe part nothing is selected and in the exclude part everything is excluded but Kernel, Baseband and fota.

9. Click ok and follow the instructions.

10. After that you should have the latest kernel, baseband, rom with all your data and root retained.

11. Enjoy
[Xperia Z General] wawyed:
To be honest you shouldn't try to install custom roms if you are inexperienced, but here I go...

Recovery is a mode of the phone that allows you to perform maintenance to your phone. It has been modified by developers so we can install custom roms with additional features like root and stuff. There is two kinds of custom recovery, clockworkmod (cwm) and teamwin recovery project (twrp). To install them, you need to root your phone first. To root your phone you must be in the firmware ending in .434 or .350. Once you have rooter and installed one of those two recoveries you need to enter recovery. To enter recovery mode you need to turn off your phone and then turn it on again, once you see the led in green you have to press either the up or the down volume key of the phone to enter recovery. You will see an option called install zip from sd card, this is where you select the zip I created (supposing you previously downloaded my zip and you have copied it to the sd card).

FTF is a file extension format used by a program called flashtool that allows the installation of stock firmwares by sony. You will find the ftf in my first post. You also need to download and install flashtool. Once you've done this if you open the program and click in the lighting icon, you need to select flashmode. Then click the right choices as I explain in my first post.

There is lots of guides explaining how all those tools work, I suggest you read them before you do something you might regret, like deleting all the phone contents, etc...

You can start here: http://xdaforums.com/showthread.php?t=2153167
[Xperia Z General] jacsterw:
Thanks for the advice. I think I let it go for now. Im really pissed because I want to play my games with my ps3 controller :crying: ......
[Xperia Z General] vibecatalin:
Everything was working fine. And now I've wanted to mount RW and forced reboot :( . I've installed SuperSU , same problem, force reboot!

What should I do?

L.E. : I think is solved with a superuser patch post it in another thread.

Thank you all!
[Xperia Z General] buciupetru:
i'm allready on custom 253 rooted can i flash in cwm v5 without wipe enything? just flash and done. i want a stock rom. thx.
[Xperia Z General] wawyed:
Hmm, yes u can.
[Xperia Z General] Wasmachinator:
So I'm on normal .253 now. Flashing .434 while preserving my data results in a bootloop. So I wonder can I just flash this rooted .253 over the stock .253?
[Xperia Z General] shoey63:
No, because you need root to flash this one via CWM, and stock .253 isn't directly rootable ( if it were, you wouldn't be here in the first place):D
[Xperia Z General] Thraxzzz:
CWM can be installed without root,using doomlord's advance kernel

Rooting can be done by this method

http://xdaforums.com/showthread.php?t=2154310
[Xperia Z General] Wasmachinator:
but I would need to unlock my bootloader for that right?
[Xperia Z General] shoey63:
Correct.
[Xperia Z General] SE_iCEQB:
[MENTION=4264691]wawyed[/MENTION]: Sorry for bringign this up again, but I realy want to know this :D

So I'm just quoting myself:
[Xperia Z General] wawyed:
That's because they used a different compression setting, from what I've read the best thing is leave at storage which doesn't compress anything. I got it from the official FTF and then I added the changes manually.
[Xperia Z General] GuidoTheSuit:
hi i already done all steps but now all my widget failed to load, and when I clicked to re add new widget I got meesage "Unfortunately Xperia Home has stopped" I tried to go to setting and clear data of xperia home but still happen.. pls advise.. Also I noticed my docomo status bar mods also lost.. Is that normal? should I reinstall all mods? sorry I'm nubie in andro :D
[Xperia Z General] wawyed:
You might need to make a factory reset.
[Xperia Z General] Peanutboy:
hi

Hi! :), i come from Xperia ZL, and i wanted to ask, can this ROM work on ZL? , i'm eally looking forward to get a ROM with .253 for locked bootloader. Thanks in advance :)
[Xperia Z General] GuidoTheSuit:
did factory reset, installed again my apps one by one ( I didn't backup before) it's normal earlier, now I got the same error. noticed my last two apps I installed were 1weather and photobucket. And I know I'm in trouble again when try to add 1weather widget... :eek: already uninstall both apps but still I can't use my add widget function	:confused:
[Xperia Z General] wawyed:
Weird I don't think it has nothing to do with this rom. Some app is breaking it. Are you using any mod?
[Xperia Z General] GuidoTheSuit:
before I upgrade to this ROM 253, I'm using docomo status bar mods and pure audio mods. I thought by installing this ROM the mods will be all gone?
[Xperia Z General] wawyed:
I think they modify the data partition too.
[Xperia Z General] GuidoTheSuit:
I started all over again, but this time in flashtool I wipe all.. I can add widget now. thanks for ur respond :good:
[Xperia Z General] kk1228:
My xz was 434 rooted n have twrp recovery. When i'm finish flashing the Stock 10.1.1.A.1.253 CWM/TWRP ZIP then reboot system, the phone only staying on sony logo. Wat can i do? I have restart so many times also the same. Pls help...... :crying:
[Xperia Z General] wawyed:
Factory reset and reflash.
[Xperia Z General] nysokheng:
Sorry, can I flash this to my Xperia Z C6602 ?
[Xperia Z General] wawyed:
You might be able to, but build.prop says C6603 so your device will be wrongly identified. Also the baseband on the ftf is for C6603.
[Xperia Z General] caqo71:
Yes, you can.

I flashed this to my 6602 with no baseband issues. :o
[Xperia Z General] rohit25:
could some1 this cuz i am confused a bit

++ would need to come to .434 using flashtool root it and then install xz dual recovery

++ then flash the .253 from there and its stock kernel also

++ now after flashing it i would lose the recovery but would still have root and i would be able to restore my TA.img on the rom with no problem at all am i right.
[Xperia Z General] shoey63:
You can try this method:

http://xdaforums.com/showthread.php?p=41918845

Edit : No need to go back to. 434 doing it this way.
[Xperia Z General] wawyed:
You dont need to unlock your bootloader to install this
[Xperia Z General] shoey63:
True. And probably the best way, as it seems Sony is keeping a record of IMEI's of those who have requested bootloader unlock code, and putting them on a "no warranty repair" blacklist:mad:

Read this http://xdaforums.com/showthread.php?p=41821320
[Xperia Z General] rohit25:
so my steps are right.... should i have the follow the same and root my .253