yashsingh1/xdaforums huggingface dataset:
[Xperia Z Android Development] [NUT]:
[MENTION=265575]fards[/MENTION] [MENTION=3379666]Carceri[/MENTION] and [MENTION=4293754]RoberM[/MENTION]

The OP contains the link to the AROMA ROM Mutator, version 0.8b is now online, which installs a script in place of /system/bin/ctrlaltdel and gets run by an exec command from init.sony-platform.rc line 13. Just run the installation of superuser or supersu to install it through recovery.

I've given it a thread of it's own: [Locked Bootloader] The definitive root Remount-Reboot fix!

This will work, every boot, all the time and leaves the ric binaries in place, i don't like deleting binaries, so I chose to make them non-executable. :) ctrlaltdel is an applet from the /system/bin/toolbox binary and as such /system/bin/ctrlaltdel is a symlink to toolbox, so it will never hurt to remove and replace that :)
[Xperia Z Android Development] [NUT]:
No, you can flash this straight in... and then don't forget to reinstall superuser or supersu with the mutator (link in OP) to fix the reboot on remount issues.
[Xperia Z Android Development] [NUT]:
whups... reuploaded the mutator... i made a booboo in the updater-script ...

For anyone who already downloaded it: please download it again! This one will fail and forget to make the fix-script executable!

-- EDIT --

Forgot to edit my previous posts with new bits of info :p

-- EDIT 2 --

I'm currently rebuilding the flashable updater zips to contain the reboot fix, i'll EDIT > this < post when i'm done :)

-- EDIT 3 --

Uploading now... :silly:

-- EDIT 4 --

Uploading done! For anyone who already downloaded it, you can simply use the AROMA ROM Mutator (Link in OP) to fix the one you have!
[Xperia Z Android Development] naga.nino:
I'm trying to flash mutator via TWRP but nothing happens. It says "Flashing file 1 of 1" for about 15 minutes now...

EDIT

...for 25 minutes now...I guess something is not right. :D

Is it safe to do force restart because everything is frozen and can't do normal reboot?
[Xperia Z Android Development] DiscipleOfKane:
I'm having the same issue, I force restarted and tried with CWM but it also seems to freeze.

The force restart doesn't seem to do any harm.

I just tried downloading again but same result.
[Xperia Z Android Development] naga.nino:
Same here. Photos are posted in attachments.
[Xperia Z Android Development] [NUT]:
Yah, your both running in to the same problem. Like I said in the OP, AROMA has its issues... :p

reboot using power+vol-up and try again in TWRP. Give it a few times... It will run.

Read my reply above your quote...

I'm hoping for a fixed AROMA soon, amarulz is working on a fixed version. I've been testing for him and it's looking promising :)
[Xperia Z Android Development] Benjoy Ericsson:
I tried Aroma to reinstall superuser but the reboot bug is still there. Switching to SuperSU also doesn't work, the system just reboot. So if I download C6603.flashable.307.zip (the newest one you rebuilt) and install it again in recovery, will this fix reboot bug?
[Xperia Z Android Development] naga.nino:
I tried like 15 times man. :D And finally after aroma installer, everything seemed to be fine, and then I got this. Is this fine or...?
[Xperia Z Android Development] RoberM:
Re-Installed superuser using mutator 0.8b, worked fine first try, but the reboot issue is still there. Tried 2 times more, it does not fix the issue.

Edit: Reinstalled the new full Zip, and the issue is still there.
[Xperia Z Android Development] naga.nino:
Same here, after few times i finally succed. Tried with supersu, and superuser, few times with each, but reboot issue still remains.

Lucky patcher > block adds > confirm superuser permission > black screen and reboot. Same with terminal emulator. Same with mount r/w.

God damit! :D
[Xperia Z Android Development] RoberM:
Before going to bed i did some testing. I have the new C6603.flashable.307.zip installed and i was suffering the reboot issue.

Started a terminal

typed: su

typed: ps (to list all processes)

looked for a process named "/sbin/ric", and i found it with a PID of 768

typed: kill 768

Reboot issue is gone till the next reboot.

So i came with a shorter command which kills the process by name instead of PID (requires busybox which all of us have)

Type: su

Type: busybox pkill -f /sbin/ric

Then i put it into a install-recovery.sh script, copied it to /system/etc, set permissions 755, and "voilá", reboot issue fixed forever. :highfive:

[NUT], just integrate the attached install-recovery.sh into your rom, and that's it (anyone doing prerooted roms of .307 can integrate it without any kind of asking permission)

To clarify some things, "ric" process is called just like before, nothing different, but it seems Sony simply modified it to ignore "stop" signal, but they were so kind enough to make it still accept "kill" signal. if they ever make it to ignore this signal also, we can force kill it with pkill -9, which cannot be ignored.
[Xperia Z Android Development] mochuothp:
follow your step but it said there is no 768 :(
[Xperia Z Android Development] RoberM:
PID changes from device to device and from one reboot to another, that is why i had to search for the PID number in the list manually, and after every reboot, because the number changes.

Anyway that is useless, i have edited my previous post with a definitive fix.
[Xperia Z Android Development] Andrewtst:
Hi, [NUT], I didn't face reboot issue when mount R/W so far but it just happen just before.

After phone restart, now seems ok.

Means it sometimes happen sometimes not.

May I know any fixed for that?

I read back all previous all about aroma but I didn't use that.

Edit: I found, the fixed under aroma mutator.
[Xperia Z Android Development] Langdang02:
My phone get some error and I want to reinstall rom. Could I boot into recovery, wipe data/factory reset then install rom in 1st page as normal or it will lose root?
[Xperia Z Android Development] RoberM:
If you have locked bootloader wait for the next revision, probably [NUT] will incorporate the fix I posted some posts before which fixes the nasty reboot issue.
[Xperia Z Android Development] ahgahg:
Anything for C6506?

Thanks
[Xperia Z Android Development] Langdang02:
thks for your quick responde, i want to ask if I could wipe data/factory reset in TW recovery and then install this 307 rom again? Do I need to flash ftf in flashtool?
[Xperia Z Android Development] Andrewtst:
Thanks for your script, it running fine now. :) Now no more restart issue.

Sony better stop this thing, stop make much troublesome for root user. I don't might with unlocked bootloader but badly Sony half remove the BE2 function when you at bootloader unlocked stage.
[Xperia Z Android Development] Carceri:
I tried this some time ago but it doesn't work for me. Worked on kernel from 253 but in 307 it just respawns. Init monitors it and starts it again if it is killed.

If you flash 307 while still keeping the kernel from 253 it should work though.
[Xperia Z Android Development] nhoc_huhu:
It doesn't work for me too...:(..My rom C6602 stock
[Xperia Z Android Development] Andrewtst:
I do as below and it is working for me.

Uninstall any BusyBox from Play Store if had been install before.

Download the new C6603.flashable.307.zip or just download the Aroma Mutator v0.8b - http://www.fun-industries.nl/xda/?dlid=bXV0YXRvcg== and re-install the SuperUser.

Download RoberM script - http://xdaforums.com/attachment...53&d=1370660814

Extract the file and put at /system/etc via root explorer (permit when ask for overwrite the file) & let the phone restart itself.

Set the permission of the file to 755 using root explorer (as seen as screenshot below) and let the phone restart again.

Voila! Done, no more restart after this.
[Xperia Z Android Development] nhoc_huhu:
Done....It work..Thanks U :laugh:
[Xperia Z Android Development] Andrewtst:
Glad it work. :)
[Xperia Z Android Development] shysparrow:
Thnx

Eureka..!! Eureka..!! Worked for me thanks a ton...!!!! :good::highfive::good::highfive:
[Xperia Z Android Development] [NUT]:
Erh... well.. seeing your fix script gives us 2 options, but as you also put mine on your phone:

1: Can you check /sbin/ric and see if it's exectuable or not?

2: can you check if /system/bin/ctrlaltdel is less then 1Kb in size and executable?

It worked just fine for me so i'm getting confused :(
[Xperia Z Android Development] hadramos:
Hi,

I have a strange problem.

I can not go on the recovery!

During the boot I have the Sony logo, it vibrates and I have the green LED notification.

I press the up or down volume button stay on the Sony logo and nothing happens. Forced to reboot by power + volume up.

Any idea?
[Xperia Z Android Development] shysparrow:
I too Re-Installed superuser using mutator 0.8b, worked with me in 2nd attempt, it takes about 10-12 sec to see the splash screen. Managed to flash supersu 1st it FAILED, tried again and it was successful.

The reboot issue is was still there.

Then I followed RobertM's fix and since I replaced the file I haven't noticed any reboots.

s/bin/ric = 0.00 kb

/system/bin/ctrlaltdel = 1.06kb
[Xperia Z Android Development] [NUT]:
Download the latest release version of XZDualRecovery and install that. :)

You can create an empty file called 'boot' inside either /cache/recovery or in the XZDualRecovery folder. If you want it to start to TWRP that way, you can create a file 'default' in the XZDualRecovery folder and put in the single word 'twrp'. Then reboot.
[Xperia Z Android Development] shysparrow:
I had the same prob. Installed dual recovery again & flashed the 2.4 update from Nut's OP

Now it's working perfectly fine..
[Xperia Z Android Development] [NUT]:
I'm asuming you meant /sbin/ric ?

Can you see if they both are executable? (Something similar to rwxr-xr-x)
[Xperia Z Android Development] hadramos:
Thanks [NUT] ,

I'm test it :)

Envoyé depuis mon C6603 avec Tapatalk
[Xperia Z Android Development] shysparrow:
Oops my mistake ..

Yes /sbin/ric --- Permission is 0644 (rw-r--r--)

/system/bin/ctrlaltdel --- Permission is 0755 (rwxr-xr-x)
[Xperia Z Android Development] [NUT]:
Well.. that means my script is correctly installed and running fine...

I'm trying to find out what is causing it to still run ric then...
[Xperia Z Android Development] shysparrow:
Ok thank u so much..
[Xperia Z Android Development] [NUT]:
Oh yes, one more thing you can check, if you can :)

Open /init.sony.rc as text and look for the line with "# Start RIC" (should be line 68).

The 4 lines below that should be commented out (Also with a # in front of them). Are they?
[Xperia Z Android Development] shysparrow:
YES..

It appears like this -

# Start RIC

# service ric /sbin/ric

# class main

# user root

# group root

Edit -

Screentshot -
[Xperia Z Android Development] Carceri:
It is probably spawned by /init which might cause it to run even before your script gets executed, since it is called from a script that gets executed by init.

I believe the service ric line is a leftover from the previous kernel since init now takes care of starting ric.

I have a few ideas to try when I get the time... Hopefully soon :)
[Xperia Z Android Development] [NUT]:
Thanks bro, now i at least know it works as i designed it :)

I've just had a chat with DooMLoRD and decided it would be good to alter that script. There is a posibility the init scripts run in parallel and that probably causes the ric service to get started just before it gets disabled. I'll re-release a new version soon, lets hope that will fix it once and for all :fingers-crossed:
[Xperia Z Android Development] shysparrow:
No problem bro.. PM me anytime if u need assistance.. :good:

WoW.. DooM's solutions r outstanding.. Thank u to pull up so much efforts to help noobs like me.. Will wait anxiously for ur new version..

Thanks a lot.. :good:
[Xperia Z Android Development] RoberM:
1: I checked it when i was testing; "/sbin/ric" was

not executable

(RW_R__R__)

"/system/bin/ric" was executable first, and i changed it to not executable (RW_R__R__)

Doesn't make any difference, the process was excuted at boot i doesn't matter what permissions i set it up.

2: Yes i checked much less than 1k and executable, even excecuted it by hand

3: As you are releasing roms and stuff for locked bootloaders, you should be using stock kernel, that way you will know what is really working and what is not working at all. Custom kernels have this kind of things hard patched out.

[MENTION=3379666]Carceri[/MENTION], no, ric is nor respawned by kernel automatically this way, i rebooted my phone 6 hours ago, and still no ric ;) it seems [NUT] script render it useless, and my way of killing it actually kills it.
[Xperia Z Android Development] naujoks:
I wonder why the update to .253 was so straight forward and the update to .307 is so much more troublesome...
[Xperia Z Android Development] naga.nino:
Works like charm! Thank you so much! :)
[Xperia Z Android Development] Carceri:
I never said kernel, I said init. I'm happy it doesn't respawn on your system, but it does on mine.
[Xperia Z Android Development] [NUT]:
I know, most of my testing i do on stock kernels ... why do you think i'm getting confused? :eek:

A new version of the rom Mutator is now online. I've updated my script to also pkill ric. The script contents have been updated in this post.

Could you give it a try?

-- EDIT --

Try it when your install-recovery.sh is set to 644...

-- EDIT 2 --

[MENTION=3379666]Carceri[/MENTION] can you try that version too?
[Xperia Z Android Development] RoberM:
You need [NUT] scripts in place to be able to kill it and not respawning. install-recovery.sh alone doesn't do the job as it respawns itself.

I edited my previous post to make it clearer.
[Xperia Z Android Development] lethalfriend:
After flashing as per the OP instructions, i am not getting status/navigation bars. Can somebody tell me why is this happening? i have flashed the the rom twice still no luck :(
[Xperia Z Android Development] [NUT]:
:eek:

Make a backup of your phone and then do a dalvik-cache wipe. Use TWRP for that, i found it more dependable myself.
[Xperia Z Android Development] lethalfriend:
Its very strange but i am unable to see my internal SD in TWRP. However, CWM works just fine. Let me try to wipe the dalvik.

EDIT: Wiped the dalvik using TWRP but still no luck with status/navigation bars. Any other idea? or i have to factory reset and then re-reflash the rom in order to make it working perfectly?
[Xperia Z Android Development] [NUT]:
[MENTION=3379666]Carceri[/MENTION] and [MENTION=4293754]RoberM[/MENTION]

I've updated the ROM Mutator again... it's now implementing both my and RoberM's solutions. I'm unsure why ric still gets started, i'll be looking in to that together with DooMLoRD to make a one-script-fixes-all solution... if we can crack it it finally fixes the CWM question on the stock recovery just before reboot as that will replace install-recovery.sh totally.

It's running fine for me now, no reboots, no running ric processes and no chance for the phone to spawn a new one... :victory:
[Xperia Z Android Development] [NUT]:
You can, it's called 'internal storage' and you can switch to it by tapping the bar just below the line 'Select Zip to Install' when trying to install anything. :)

Well, you CAN try to flash my rom and then do a factory reset: it will wipe everything, so be sure to have a backup, including the stuff on sdcard0!
[Xperia Z Android Development] Aresmar:
Hi NUT!

I have .253 rooted and BL with your method if you remember (the chargemon.stock issue too) :)

Now what should I do? just flash kernel etc and than flash update zip from recovery? ANy problems with reset on system folder now?

BTW there is a new flashtool now instead of the beta you gave link to ;)
[Xperia Z Android Development] [NUT]:
Oh, thanks, i'll update it in the near future.

If you have downloaded it already, be sure to grab a copy of the ROM Mutator to fix the reboot issues (hah, new ones in this version :( ).

I'm updating the update packages as we speak, so if you didn't download yet, watch this post for confirmation the new one's are online.

-- EDIT --

Latest updated scripts now integrated in the flashable zip packages NOW!
[Xperia Z Android Development] lethalfriend:
Actually i am aware of TWRP functions and i was using it just fine few days back but once it asked me to fix something related to permission (I don't remember the exact thing) and i chose yes after that it doesn't detect the internal memory rather stays at root. Anyhow, any other idea to fix the above issue? How can i get back the Status/Navigation bars? Is it now necessary to factory reset and then flash the rom again?

Sorry for too many questions :)
[Xperia Z Android Development] Aresmar:
I can download again it is ok. Just alert us when you update the flashable307zip. :good:

---------- Post added at 01:33 PM ---------- Previous post was at 01:13 PM ----------

Is it true that 253 and 307 have same kernels and baseband? no need to flash the stripped ftf if we have already did that on 253?
[Xperia Z Android Development] [NUT]:
Try a factory reset after flashing my rom... I'm guessing something is wrong with your userdata...

What phone are you using? C6603 or C6602?

New baseband, same kernel SOURCE but apparently a changed ramdisk.

Flashable zips have been updated.
[Xperia Z Android Development] Aresmar:
Thanks m8 now I will download and try asap!

I have a wake lock issue since I upgraded to 253 I hope this one will fix it. :P
[Xperia Z Android Development] [NUT]:
It's more energy efficient for me anyway, so it is looking promising :)
[Xperia Z Android Development] NetSkill:
so the reboots are solved ? :)
[Xperia Z Android Development] [NUT]:
Yup :)
[Xperia Z Android Development] philipsim@live.com:
So how can I update from 253 rooted firmware by you last time? Just do everything you stated in op? Do I need to install anything extra like the aroma thing?

Sent from my blazing fast Xperia Z !
[Xperia Z Android Development] lethalfriend:
Update: I had to factory reset in order to obtain the Status/Navi bars. Now its working fine though. However, reboot issue is there for me since i had the older version of your flashable zip, Also, i have tried to run the updated Mutator.zip but its not loading the Aroma installer at all, Just freezed at recovery screen. Any idea how to solve this?

My Phone model is C6603.
[Xperia Z Android Development] [NUT]:
Just download the current flashable zip and ftf and go for it, you won't need the mutator package then.

Yah, keep trying the mutator, it takes about 10 seconds to start, if it doesn't reboot and try again. this time TWRP really is needed... CWM does not want to run AROMA 90% of the time...
[Xperia Z Android Development] lethalfriend:
Can you help to fix the TWRP issue which i mentioned eariler? i am on latest dual recovery version 2.4 but unfortunately, i am unable to see the contents of the internal storage.

Thanks in advance.
[Xperia Z Android Development] Aresmar:
Updated from 253 rooted to 307 successfully. Root is working without any extra flashing.

Thanks NUT!
[Xperia Z Android Development] [NUT]:
I'm out of time for today, but if you want to fix your ROM now, just re-download the flashable ZIP and install that (just that, no need to flash the FTF again).

That will fix it for sure. Otherwise, wait for me to return to help you troubleshoot your problems.
[Xperia Z Android Development] philipsim@live.com:
What if I wanna do a factory reset? If I wanna update from 434 do I need to root it beforehand?

Sent from my blazing fast Xperia Z !
[Xperia Z Android Development] Aresmar:
You cant install recovery without root anyway so first install 434 than root it than install dual recovery and continue with upgrade procedure.
[Xperia Z Android Development] philipsim@live.com:
Now I'm on 253 rooted following nut's method last time. I was thinking of doing a factory reset , will it revert my firmware back to 434?

Sent from my blazing fast Xperia Z !
[Xperia Z Android Development] RoberM:
No, you will still be in .253, and theoretically keeping root intact.
[Xperia Z Android Development] philipsim@live.com:
So I can just do a factory reset 1st before attempting the update right?

Sent from my blazing fast Xperia Z !
[Xperia Z Android Development] lethalfriend:
Thank you so much for you help NUT. I have flashed the latest flashable zip and now all is good, no more reboots :) Only issue left is with TWRP. I don't know how to fix that.

Anyhow, keep up the good work ;)
[Xperia Z Android Development] CambaStorm:
Tested on C6602, working nice but with reboot issue (used your first zip) will try at night the Mutator to fix it. Thanks.

EDIT: just notice than my phone is identified as a C6603 it's posible to fix it?

Enviado desde mi C6603 usando Tapatalk 2
[Xperia Z Android Development] -Sumsy-:
updated to this successfully. sony update service keeps telling me to update to 253 its 68mbs in size will tis downgrade me if I proceed with this ?
[Xperia Z Android Development] [NUT]:
Did you use the C6602 update package or the C6603 one?

Used this guide http://xdaforums.com/showthread.php?p=42309835 ?

It's because you officially did not entitle to this update yet according to your TA partition. You can use titanium backup or something similar to freeze the OTA apk until the next update arrives.

If you would upgrade to that you would effectively be downgrading, yes :screwy:
[Xperia Z Android Development] [NUT]:
You can, but you should not need to, really. I'd create a good backup first though, before you make an attempt.
[Xperia Z Android Development] CambaStorm:
Yep, used that guide, downgraded to .434 rooted using Easy rooting Toolkit, installed XZRecovery, flashed Xperia_Z_10.1.1.A.1.307_C6602_TW-stripped.ftf using flashtools, and flashed C6602.flashable.307.zip using Recovery.

I just see than it says than i'm on .253. Really anoying I just remember than this says .307 when I flash the rom. Going to flash again just the C6602.flashable.307.zip again to check.

EDIT:

Yep, it's showing .253 at compilation number.

Should I download again the firmware? Thanks for your help.

EDIT2:

Downloading again, checked the SHA-1 and it's diferent comparing to the one than is write on your website. I'll flash the new one in 2 hours. :)
[Xperia Z Android Development] guybrush2099:
...so I need a SD Card.. ..or could I use another drive/method?

thank you for your work!
[Xperia Z Android Development] Faelz:
no need.

Just put the file in the internal memory. (SDcard)
[Xperia Z Android Development] Aresmar:
No need to flash mutator. NUT updated the flashable.zip.
[Xperia Z Android Development] CambaStorm:
Sorry for be so insistend but I downloaded the .zip again, installed it but get a .253 C6603 firmware again. Extracted the build.prop directly from the zip and it says .253 C6603 but it's the file you uploaded. Thanks for your support, I know you don't have a C6602 but It's nice to have people trying to suport other similar phones. :cowboy:

EDIT: Added screenshot.
[Xperia Z Android Development] [NUT]:
Whups, I might have used the wrong system.sin for the C6602 then... I'll check that soon.