yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] DAddYE:
What can be the workaround to disable it on boot?
[Xperia Z1 Original Android Development] CappyT:
Well, obviusly without root you can't edit these files...
[Xperia Z1 Original Android Development] MohammadAG:
Patched kernel image == you need unlocked BL.

init script part of custom ROM == you don't, but you need a recovery to install this ROM.

It doesn't matter if you're rooted or not.

http://en.wikipedia.org/wiki/Initrd
[Xperia Z1 Original Android Development] [Fenix]:
So the profit is make a custom rom based on 4.3 with a modified init file and flash it on a previous firmware version?

Inviato dal mio C6903 utilizzando Tapatalk
[Xperia Z1 Original Android Development] CappyT:
Woha, i didn't know...

I just wait for a root method, my phone just waits shutted down, near me, connected to the PC.

Hope to see a fix soon =D

Thanks to every dev, you are doing an awesome work!

At least for LB...
[Xperia Z1 Original Android Development] brockyneo:
sorry to ask can we not go back to rom .534 root then OTA the .257 rom then OTA the 4.3 rom then still have root just install recovery after this?
[Xperia Z1 Original Android Development] secretfile:
Ok i made supersu 1.86 update for cwm.

Root is working on 4.3 thank you guys all credits to OP!

(if you have UB fastboot boot doomlord.img and vol+ to go to cwm and install this package)

Don't know will this work on LB with dualrecovery?

Not working after all tried on clean stock rom.
[Xperia Z1 Original Android Development] lzyllp:
I permission MohammadAG share it.

NOTE.This recovery is chinese language

http://www.mediafire.com/view/5rrb5utla3lick2/boot.img

Next,I Will disable sony_ric in ramdisk by default and relase a new boot.img,maybe also a English recovery.
[Xperia Z1 Original Android Development] DAddYE:
Yes please!

Thanks dude.

---------- Post added at 04:53 AM ---------- Previous post was at 04:39 AM ----------

I confirm too that doesn't work.
[Xperia Z1 Original Android Development] dmh1:
Please confirm: Do the recovery chinese work?
[Xperia Z1 Original Android Development] lzyllp:
Yes,It workfine

---------- Post added at 05:52 AM ---------- Previous post was at 05:51 AM ----------

New boot with disable sony ric by default

https://www.mediafire.com/folder/5rrb5utla3lick2,8l6c7jsjcm9518u/shared
[Xperia Z1 Original Android Development] guddu2011:
is it for c6902 also?
[Xperia Z1 Original Android Development] Poesini:
What do we have to do with this boot.img

fastboot flash boot boot.img

?
[Xperia Z1 Original Android Development] lzyllp:
For all version Z1

---------- Post added at 06:21 AM ---------- Previous post was at 06:20 AM ----------

Yes
[Xperia Z1 Original Android Development] Desperanto86:
Maybe you will integrate dual recovery? As for me I don't like CWM and use only TWPR with its cool file manager :)
[Xperia Z1 Original Android Development] Ashray_Vk:
Working great, thank you for the share!
[Xperia Z1 Original Android Development] krakkhor:
So is this the Image with root completely enabled?

Gesendet von meinem C6903 mit Tapatalk
[Xperia Z1 Original Android Development] guddu2011:
after flashing this. any cmd command for rooting on windows? adb ?
[Xperia Z1 Original Android Development] lzyllp:
flash superSU in recovery.
[Xperia Z1 Original Android Development] dmh1:
Seem failed

Cannot enter recovery with boot old and new

Need UB ?!
[Xperia Z1 Original Android Development] gregbradley:
OF COURSE!
[Xperia Z1 Original Android Development] TheKnux:
I'm running iHackers rom with an unlocked bootloader, lost IMEI but not really a big deal. Willing to be a guinea pig if needed.
[Xperia Z1 Original Android Development] gregbradley:
Works fine, no 40 second reboot problem.

Please can you repackage the ramdisk with a English version?
[Xperia Z1 Original Android Development] westernmg:
Still Chinese cwm?

Telepathisch übermittelt
[Xperia Z1 Original Android Development] lzyllp:
wait for a while.

I need recompile from English version recovery source.
[Xperia Z1 Original Android Development] lzyllp:
English version recovery kernel

https://www.mediafire.com/folder/5rrb5utla3lick2,kk82acwu6v8n7ak/shared
[Xperia Z1 Original Android Development] MohammadAG:
Thanks.

Can you outline how you repacked the kernel? I use some tools that unpack and repack the kernel (with dtb support), but the kernel doesn't boot when flashed, only when booted using fastboot boot.
[Xperia Z1 Original Android Development] fer2503:
It can works also on locked bootloader?
[Xperia Z1 Original Android Development] B1nny:
No. When your bootloader is locked you are never-ever able to flash a modded kernel in any way shape or form.
[Xperia Z1 Original Android Development] MohammadAG:
No, that's been mentioned at least 3 times now.
[Xperia Z1 Original Android Development] fer2503:
Ok, but if someone add this recovery to a flashable rom we can have a working recovery in locked bootloader too
[Xperia Z1 Original Android Development] MohammadAG:
No, recoveries are part of the kernel on Sony devices. Adding a recovery implies changing the kernel, changing the kernel means it's unsigned, so it won't boot on locked bootloaders.

The only way to get root on locked bootloaders is a new exploit that hasn't been fixed, or using ROMs repackaged as flashable zip files with a startup script that disables RIC.
[Xperia Z1 Original Android Development] B1nny:
Well in order to flash that flashable rom you need recovery in the first place.. Other than that, yes, as long as we have a rom running with root, we can get recovery working and we can flash a 4.3 custom rom. Right now developers are trying to figure out a way to get full root access while maintaining a locked bootloader.

Edit:

Listen to MohammadAG, don't bother with me.
[Xperia Z1 Original Android Development] secretfile:
I can confirm this boot.img is working, enable is set to 0.

For ppl who have LB, they can save Dualrecovery there is some flashable 4.3 and also striped ftf + install supersu 1.85 or up in recovery

after that all that they need to do is to create a script with SManager:

and then click su and boot icon, that will give them full root each time they restart.
[Xperia Z1 Original Android Development] lzyllp:
I think you pack up it with wrong dt.img

If you want pack up a stock kernel.

U need zimage and dt.img from stock kernel.sin.

Using flashtool unpack the kernel.sin and elf.

Rename kernel.elf.3 to dt.img.It's the same.
[Xperia Z1 Original Android Development] MohammadAG:
I got the dt.img from your own boot.img

Here are the tools I used https://github.com/xiaolu/mkbootimg_tools
[Xperia Z1 Original Android Development] lzyllp:
maybe U commond wrong

And U can't change ramdisk.cpio without uncompress and recompress.

If U want change it,U need uncompress it,make change,and recompress.
[Xperia Z1 Original Android Development] Desperanto86:
http://www75.zippyshare.com/v/47299431/file.html kernel with root enabled and TWPR recovery

THX [MENTION=3411267]lzyllp[/MENTION] for help!

don't forget to install update supersu
[Xperia Z1 Original Android Development] mamenvn:
Hi,

UB or LB?
[Xperia Z1 Original Android Development] MohammadAG:
Yes, I'm aware, the changes work fine if I use fastboot boot, but if I flash the kernel it doesn't boot.

mkbootimg_dtb --kernel zImage --ramdisk boot/newramdisk.cpio.gz --dt dt.img -o boot.img
[Xperia Z1 Original Android Development] lzyllp:
U command wrong.

Using this

# build ramdisk

cd ramdisk

find . | cpio --quiet -H newc -o | gzip > ../ramdisk.cpio.gz

cd ..

# build boot.img

./mkbootimg --base 0x00000000 --kernel zImage --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 --pagesize 2048 --cmdline "androidboot.hardware=qcom user_debug=31 maxcpus=2 msm_rtb.filter=0x3F ehci-hcd.park=3 msm_rtb.enable=0 lpj=192598 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y" --ramdisk ramdisk.cpio.gz --dt dt.img -o boot.img
[Xperia Z1 Original Android Development] Desperanto86:
stupid question...of course only UB
[Xperia Z1 Original Android Development] MohammadAG:
Where did you get mkbootimg? The one I have doesn't support ramdisk_offset or tags_offset

Edit:

I stringed the binary, it does but:

./mkbootimg_dtb --base 0x00000000 --kernel zImage --offset 0x02000000 --tags-addr 0x01E00000 --pagesize 2048 --cmdline "androidboot.hardware=qcom user_debug=31 maxcpus=2 msm_rtb.filter=0x3F ehci-hcd.park=3 msm_rtb.enable=0 lpj=192598 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y" --ramdisk boot/newramdisk.cpio.gz --dt dt.img -o Philz.img

I'm guessing it was the offsets, thanks.
[Xperia Z1 Original Android Development] lzyllp:
Here is my mkbootimg.

View attachment 2461468
[Xperia Z1 Original Android Development] Desperanto86:
http://xdaforums.com/showpost.php?p=15079200&postcount=5
[Xperia Z1 Original Android Development] Rodrigo Vilhena:
Working perfect here!

THANK YOU VERY MUCH!!!
[Xperia Z1 Original Android Development] MohammadAG:
Thanks, first post updated with all recoveries, yours, [MENTION=3227013]Desperanto86[/MENTION]'s TWRP recovery and my Philz one.

Credits to [MENTION=4904057][NUT][/MENTION] for his XZDualRecovery, the philz cpio file was pulled from there.
[Xperia Z1 Original Android Development] Desperanto86:
you are welcome :)
[Xperia Z1 Original Android Development] westernmg:
That works perfectly!

Recovery has installed su. Updated over the playstore and everything is fine now.

System is writeable.

Thank you!
[Xperia Z1 Original Android Development] RHBH:
Hi! Sorry the *dumb* question.

Can I save the script in any location?

Edit: Saved in Internal Memory and didn't worked.

Should I flash this script through recovery and save it where?
[Xperia Z1 Original Android Development] ArashMiniStar:
so,is it a final solution for rooting?? could you please explain all of the things to do for doing this??

thank you;)
[Xperia Z1 Original Android Development] gregbradley:
unlock boot, flash boot.img from OP, flash supers.zip in recovery

Only works for unlocked boot
[Xperia Z1 Original Android Development] RHBH:
After flashing superuser zip, can I go back to stock kernel?

I think no... But better ask.

What would be the solution to get proper root on LB?
[Xperia Z1 Original Android Development] BeetoCarvalho:
danger which I run unlocking the bootloader without the TA backup?
[Xperia Z1 Original Android Development] gregbradley:
If you have flashed the non stock kernel then you have unlocked the boot. Why would you want to go back to stock kernel or locked boot anyway?
[Xperia Z1 Original Android Development] RHBH:
Because I like Sony proprietary stuff (X-Reality, bionz)
[Xperia Z1 Original Android Development] chitose_ndy:
im sorry .. but i still dont understand .. please forgive me giving noob question ..

do i still need to run commands about root on boot?

or?

thankyou:fingers-crossed:
[Xperia Z1 Original Android Development] Desperanto86:
unlock boot, flash this kernel, install update_supersu via recovery in kernel, enjoy
[Xperia Z1 Original Android Development] chitose_ndy:
Yuuup i have done that ^^

That means i dont have to run a script or anything at boot ..

Ah 1 thing i found ..

I cant open root explorer .. dont know why ..

But the other apps with root run well ..

Tried reinstall the app, still force close ..

Editeeeddd

Cleared dalvik cache and everything back to normal ^^

Gesendet von meinem C6903 mit Tapatalk
[Xperia Z1 Original Android Development] gregbradley:
md5 mismatch error when trying to restore a backup made with this boot.img

CWM by [MENTION=3411267]lzyllp[/MENTION] http://xdaforums.com/show...3&postcount=48

Can anyone confirm any backups of 4.3 can be resotored with the TWRP or Philz recovery boot.img?
[Xperia Z1 Original Android Development] jmgg2k:
This kernel works on 6902 ?

thanks
[Xperia Z1 Original Android Development] Nonda95:
Everything good, working well on my c6903:good: (version with Philz recovery)
[Xperia Z1 Original Android Development] RHBH:
Guys, If I flash a update.zip with a script to disable Sony RIC in every boot, would this work with stock kernel and LB?
[Xperia Z1 Original Android Development] gregbradley:
How will you flash it with stock kernel and locked bootloader?
[Xperia Z1 Original Android Development] RHBH:
I already have root and recovery.

I did these steps:

Flashed .290 FTF

Restarted the phone twice to settle the new rom.

Unlock BL

Flashed DooMKernel v03

Flashed supersu, busybox and [UB/LB][TWRP][PhilZ Touch][CWM] XZDualRecovery 2.7.43 BETA through recovery.

Flashed Stock Kernel.

I can enter recovery and flash a update.zip (don't know if would work) because I'm using stock kernel at this moment.

But also I was thinking:

Flash using fastboot one of the kernels in OP.

Flash a update.zip that would place a script to disable Sony's RIC every boot.

Flash stock kernel, them I can restore my TA and have my DRM content back!
[Xperia Z1 Original Android Development] mamenvn:
Any tips for LB?, someone help me.

Thanks!
[Xperia Z1 Original Android Development] vinaaa:
this is working on any app? because op says that don't work on xposed...
[Xperia Z1 Original Android Development] ArashMiniStar:
i think that first post is edited about "xposed";)
[Xperia Z1 Original Android Development] gregbradley:
You will lose root, but by all means try it
[Xperia Z1 Original Android Development] MohammadAG:
Sony's theme engine broke Xposed, a new update to Xposed fixes that. The new test version is linked in OP.
[Xperia Z1 Original Android Development] Poesini:
Script doesnt work on LB. Just does nothing
[Xperia Z1 Original Android Development] Ferranza:
Sorry mates, I read all the posts but it's not clear for me the step by step flash... Is there someone who explain me?

Inviato dal mio C6903 utilizzando Tapatalk
[Xperia Z1 Original Android Development] ArashMiniStar:
Yes please make it clear and explain in one post with links.thank you so much :)
[Xperia Z1 Original Android Development] gregbradley:
For the second time today

1) Upgrade to .290

2) Unlock bootloader

3) Flash one of the boot.img from the OP

4) Enter recovery and flash the SuperSU.zip from the OP

5) Done

If you do not know how to any of these steps there are literally dozens of guides on the general/development section. Just look in the sticky threads
[Xperia Z1 Original Android Development] Ferranza:
So sorry for disturbing your work. Much appreciated your reply!

Inviato dal mio C6903 utilizzando Tapatalk
[Xperia Z1 Original Android Development] ilmorga:
i only want to thanks all the devs that working hard on this device.

rooting is perfectly working!

thanks again!

:good::good::good:
[Xperia Z1 Original Android Development] harfot:
The we are only missing 3 more to keep score :)
[Xperia Z1 Original Android Development] ilmorga:
Only one question: the kernels that came in op, except for recoveries things, are same to stock kernel?

Inviato dal mio C6903 utilizzando Tapatalk
[Xperia Z1 Original Android Development] harfot:
Yes, as the source has not yet been published.
[Xperia Z1 Original Android Development] gregbradley:
Your link to the philz recovery is not working. can you fix it please

---------- Post added at 07:10 PM ---------- Previous post was at 07:09 PM ----------

CMW still not working for me

It seems making the backup to sdcard1 fails. It cannot backup the cache partition then fails on md5 mismatch when trying to restore.
[Xperia Z1 Original Android Development] MohammadAG:
Hmm, it was working fine, but chrome tried to display it instead of downloading it.

Fixed mime type, it should work fine now.

Sent from my Sony Xperia Z1 using Taptalk
[Xperia Z1 Original Android Development] gregbradley:
That's much better, thanks.

Yes, it was trying to show it, made my browser tab undecipherable!!

Philz recovery is restoring the backup, it also backups up a lot quicker than cmw (I have used philz for quite a while on the Z1 with testing for [NUT]) [MENTION=3411267]lzyllp[/MENTION] it appears cmw in your kernel is broken...
[Xperia Z1 Original Android Development] Poesini:
Crap... What about LB rooting on 4.3?
[Xperia Z1 Original Android Development] DAddYE:
Quick question, is it normal that now everything seems working with root powers?

$ adb shell
root@C6903:/ # mount -o rw,remount /system #-> success

P.s. without adb root.

THX
[Xperia Z1 Original Android Development] lzyllp:
Will take a look when I am at home
[Xperia Z1 Original Android Development] lzyllp:
New boot.img

Fix navigation touch button

Fix backpack and restore

http://www.mediafire.com/view/kb517bwvvpjk76t/boot.img
[Xperia Z1 Original Android Development] ikenley:
Excellent work lzyllp!

Are you able to pack it in an recovery flashable Zip?

I'm using your previous version, so it would be great if I could just flash it from that recovery without having to use a PC.
[Xperia Z1 Original Android Development] crimsonm:
good job. :good: thankyou lzyllp
[Xperia Z1 Original Android Development] iBuzman:
Now we just need one of these over in z ultra land lol

Edit: which we now have, thx devs for all your help with [MENTION=3806218]ChillyChan[/MENTION]'s z ultra version
[Xperia Z1 Original Android Development] lzyllp:
In ramdisk,I set adb user as root by default.
[Xperia Z1 Original Android Development] TheKnux:
Root stopped working all of the sudden. Stock Central Europe 4.3 FTF, flashed Philz 4.3 kernel/recovery, flashed UPDATE SuperSU, root worked for awhile then superuser says that it can't install the binary. Unlocked Bootloader by the way.
[Xperia Z1 Original Android Development] DAddYE:
Sweet!!!! Thanks man!!!
[Xperia Z1 Original Android Development] Ferranza:
Delete....
[Xperia Z1 Original Android Development] ozgadgetguy:
Think I understand the process and I know the UB is now fixed to stop the camera breaking but what do we lose by unlocking?
[Xperia Z1 Original Android Development] taranfx:
There's no boot.img in OP
[Xperia Z1 Original Android Development] B1nny:
There actually is, multiple ones even:
[Xperia Z1 Original Android Development] DooMLoRD:
thanks for this fix

I have added this in my next DooMKernel release ;)

kernel will be released in few hours!

regards,

DooMLoRD
[Xperia Z1 Original Android Development] Ferranza:
I'm so happy! Tried with latest package and all works good!

Inviato dal mio C6903 utilizzando Tapatalk
[Xperia Z1 Original Android Development] diego9016:
Is it going to be compatible with all versions of Z1 (C6902, C6903, C6906...etc)?

Thanks for your work DooM.
[Xperia Z1 Original Android Development] 8geek:
This is how I rooted mine

1) Flash Doomkernal (v4) http://xdaforums.com/showthread.php?t=2448613

2) Flash http://download.chainfire.eu/supersu 1.86 file from here

3) done.

I didn't expect it to be so easy. I have had SuperSU pre-installed before I flashed from .257 (rooted) to .290.

Currently with DoomKernel on JB4.3 and rooted (BL unlocked.)

Thanks DoomKernel, all is well now!

Edit : I posted this on your Kernel thread as well [MENTION=2784807]DooMLoRD[/MENTION] ;

also [MENTION=2011359]MohammadAG[/MENTION] ; it seems that the recoveries don't work after flashing SuperSU 1.86, i managed to go to CWM at first boot (when using Doomkernel) then it couldn't, I held VOLUME DOWN and it went into TWRP, after flashing SuperSU using that method, it wouldn't boot into TWRP anymore as well.
[Xperia Z1 Original Android Development] MohammadAG:
I'm guessing you have XZDualRecovery installed as well as the kernels above. That means recovery is handled in both ramdisk and system init, I suggest uninstalling XZDualRecovery or going back to stock kernel.
[Xperia Z1 Original Android Development] 8geek:
I flashed Doomkernel instead of the 3 you posted, will check on this with Doomlord first :)
[Xperia Z1 Original Android Development] andymg350:
Has anyone tried relocking the boot loader after flashing one of these kernels to see if we can keep root and get xreality / bravia back etc? These are usually lost after unlocking right?
[Xperia Z1 Original Android Development] RHBH:
If you relock your bootloader with one of these kernels you'll get a soft brick.

If you flash the stock kernel before relock you'll lost the system remount fix (it is included in the kernel [ramdisk]).
[Xperia Z1 Original Android Development] iBuzman:
What about stock kernel, relock, remount fix as a startup script (I'm running the startup script already but have ol bl :silly:)

http://xdaforums.com/showthread.php?p=48653946
[Xperia Z1 Original Android Development] ekoandrew:
this method works great, thnx :good:
[Xperia Z1 Original Android Development] georgeartaki:
Backup in Ext SD with Philz kernel

On Philz Kernel (Philz by me: http://mohammadag.xceleo.org/public/...4.3_kernel.img) were is the choice to create backup in external Sd card?
[Xperia Z1 Original Android Development] iBuzman:
delete (sry)
[Xperia Z1 Original Android Development] [NUT]:
HELP ME HELP YOU!

Visit [DEV ONLY] Sony JB4.3 Insecure ramdisk development and help out!

Sorry for the cross-posting, just trying to get the word out :)
[Xperia Z1 Original Android Development] Amritttt:
I Flashed 4.3 and there is no root and no recovery I am stuck so now what should I do please if someone gonna help me so please give me step by step advice thanks
[Xperia Z1 Original Android Development] patwang0311:
Step-by-step guide here:

http://techbeasts.com/2013/12/19/in...ing-latest-14-2-0-a-290-firmware-how-to-guide

All info from the above guide is from this thread (wonder if that author 'Usama M' and OP is actually the same guy - didn't see any credit to this thread).
[Xperia Z1 Original Android Development] MohammadAG:
No, Usama and Mohammad aren't different spellings of the same name :P
[Xperia Z1 Original Android Development] um009:
Credits

Just tested the recovery and then rooted my Xperia Z1 C6903. Works like qcharm, All the credits to MohammadAG for the thread, I just made the guide, linked in the original thread in the guide as well. Usama M here :)
[Xperia Z1 Original Android Development] Nagato Yuki:
Could anyone provide a just-Sony-RIC-disabled and remount-/system-&-rootfs-fixed stock kernel (without recovery) for us?

After rooted the device, I just want to switch other recovery to install at /system instead of within kernel :D
[Xperia Z1 Original Android Development] Amritttt:
Alrite so by that guide I've unlocked bootloader and rooted my phone c6902 restored all my apps by titanium backup. How do I get xposed mods.
[Xperia Z1 Original Android Development] um009:
Find the Xposed Mods on the forum and Install em'. A little search might help you, I've not idea about Xperia Z1 xposed modules.
[Xperia Z1 Original Android Development] paulomario77:
Brazilian C6943 here. Performance is very poor with any of the three kernels at the OP. Even the boot animation stutters. Tried wiping, clearing Dalvik cache, with no success. Flashing the stock C6943 kernel back fixes the performance issues, root is maintained but /system cannot be written to.

Both TV and camera do work, but are very sluggish. Xposed framework can be installed but somehow cannot be activated. Oh, this is using the standard installer. XposedInstaller_2.4.1-xperia.apk doesn't work.

Anyway I can help?
[Xperia Z1 Original Android Development] MohammadAG:
The kernel is the same as the stock one, only the ramdisk is changed. So performance issues aren't related to this.

The boot animation always stuttered for me in the first go, even on stock 4.2, when it replays it's fine.
[Xperia Z1 Original Android Development] paulomario77:
Thanks for the response, and pardon my ignorance, but perhaps the C6943 kernel is different from the other models' ? The C6943 has digital TV, maybe there are other differences in hardware.

It's not just the boot animation that stutters, performance is so bad when the system is up that it's almost unusable.
[Xperia Z1 Original Android Development] RHBH:
No, C6902, C6903, C6906 and C6943 have the same kernel.

Did you wiped cache, Dalvik and Applog?
[Xperia Z1 Original Android Development] paulomario77:
I flashed the kernel using flashtool (fastboot mode), then during the first boot I entered recovery and wiped cache and Dalvik. Is there an option in CWM to wipe Applog?