yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Android Development] [NUT]:
FAQ & Tips and Tricks

Easy switching between locked and unlocked bootloader states!

NOTE: USE TWRP ONLY for this guide.

NOTE 2: You NEED to have XZDualRecovery 2.7.43 or higher to make this work.

Create a backup, including the Trim Area (TA!)

Unlock your bootloader

Restore backup without TA

Create a new backup of your UNLOCKED TA

Restore the previous TA backup to relock your phone.

Done :good:

Now you can switch between locked and unlocked bootloaders quick and painless: no more system wipes and you can basically do whatever you want :D

How to enable init.d support:

Open a filemanager app and navigate to the location where the XZDualRecovery folder is located and go in to it. Open XZDR.prop as a text file and set dr.initd.active to true.

NOTE: For this guide ROM it means the init.d script called 99SuperSUDaemon will kick in to action, so it's best to disable (by setting chmod 644) /system/etc/install-recovery.sh for the time being or to clear it's contents.

Done :)

Downgrading to a 4.2 ROM:

Download C6903_14.1.G.1.534_[NUT].ftf (Bittorrent: 770MB) and flash it using FlashTool. I've also added the FTF to the downloads page on this DevDB tab, this will allow straight downloads as well.

This FTF will allow you to downgrade to .534 without loss of your IMEI :good:

Thanks to [MENTION=4387725]mharckk[/MENTION] and [MENTION=2011359]MohammadAG[/MENTION] for the workaround which contributed to the creation of this FTF.
[Xperia Z1 Android Development] [NUT]:
ROM STATUS: STABLE

At this moment, running out of time to sleep before work tomorrow, I have to put this online still with a SEMI-ROOT :(

Fortunately recovery is working well, so I will be able to release a simple patch once I crack this one :good:

No patch required, it was my sleep deprived stupidity which resulted in a stupid mistake!
[Xperia Z1 Android Development] zyclops1:
Hahaaaa nice work mon ami ^_^
[Xperia Z1 Android Development] ali3nfr3ak:
I'm not much of a developer, but there is one thing im good at seeding! :good:
[Xperia Z1 Android Development] thanhhii:
[MENTION=4904057][NUT][/MENTION] it just have SEMI Root???

Another RIC must to crack??
[Xperia Z1 Android Development] SleemLDJ:
Thank you [MENTION=4904057][NUT][/MENTION]. You're awesome
[Xperia Z1 Android Development] binoslaw:
Is this normal, in this case to have /system without RW ?
[Xperia Z1 Android Development] [NUT]:
For this version, yes... Will try to find a solution tonight...

The rom is fine to use and some root tasks can still be performed, using recovery you are able to install just about everything... Provided it is flashable of course ;)
[Xperia Z1 Android Development] binoslaw:
Yes, I know. BTW great work. I need RW because I would like to uninstall some apps.

Anyway. I'm waiting for Your magic. ;)
[Xperia Z1 Android Development] [NUT]:
You can use twrp for that too you know ;)

Boot twrp, mount system, go to advanced and then the file manager. Navigate to system/app and tap all files you want to do something with... :highfive:
[Xperia Z1 Android Development] mynameisjon:
Will /system remount work on an Unlocked Bootloader?
[Xperia Z1 Android Development] [NUT]:
Only with a patched ramdisk on the stock kernel I'm afraid... I can do that though, it's not that hard :)

If anyone wants a patched ramdisk-kernel for this ROM, let me know. I won't integrate a recovery though, just the RW patch.

BIG NOTE: it is intended for use on an

UNLOCKED BOOTLOADER ONLY

then ... just FYI ;)

Because of your question [MENTION=2370820]mynameisjon[/MENTION] I reallized that with the guide in post #2, it should be fairly easy to switch between locked and unlocked TA+kernel sets :D
[Xperia Z1 Android Development] mynameisjon:
Would be awesome if you could provide the ramdisk-kernel. I'm assuming that it's a boot.img and that I'd have to install the dual recovery seperately?
[Xperia Z1 Android Development] fer2503:
For Locked booloader you can use the same root method of 259?
[Xperia Z1 Android Development] [NUT]:
Correct. But if you use my ROM package, recovery will already have been integrated.
[Xperia Z1 Android Development] [NUT]:
I'm assuming you mean .290? Well... that same method has been applied in this ROM... but to no avail unfortunately, it needs some updating unfortunately.
[Xperia Z1 Android Development] fer2503:
Yes, you are right, i mean 290. I Hope you Can find a solution :)
[Xperia Z1 Android Development] mynameisjon:
Does an unlocked bootloader still require flashing the stripped package?
[Xperia Z1 Android Development] [NUT]:
Yes sir, it contains all the bits the flashable zip can not flash. I did not check if the kernel itself changed to be honest, so maybe this ROM will work fine on any .290 kernel... but i still need to test that.

Loads of stuff to do tonight :eek:
[Xperia Z1 Android Development] Roughnecks:
Thanks mate, u r the best.
[Xperia Z1 Android Development] quan1984:
[MENTION=4904057][NUT][/MENTION] Sorry u. News 136 for 6902
[Xperia Z1 Android Development] jimsey:
Hi Nut, not sure if your server is having issues, I'm trying to download your kernel for UB but after clicking the link it says file not found?

edit: working now

thanks
[Xperia Z1 Android Development] SleemLDJ:
I have it too. Had it since. 290 and still have it on. 136 fresh install. This is Sony not fixing it coz iHackers fixed it when I was using his rom.
[Xperia Z1 Android Development] thanhhii:
Yes this is the reason!

I think that because i have met the same problem in the past!
[Xperia Z1 Android Development] [NUT]:
Yeah, I was busy revising the code on the website...

anyway, unrelated:

C6943 VERSION NOW ONLINE!

Will put the C6902 version online tonight.
[Xperia Z1 Android Development] darkoj2007:
That`s what I`m talking about... anyone know how to fix this? its really annoying...
[Xperia Z1 Android Development] fer2503:
I have some problem with wi-fi. The z1 sometimes doesn't get IP from The router. Someone have problems too?
[Xperia Z1 Android Development] hush66:
Came from a .290 LB with root. First I flashed to the latest XZDualRecovery (.80), then followed the instructions in the first post of this thread, and voila! now I'm on 139 with data intact and full root! Woohoo! Thanks [NUT]!

And I have no issues with phone restarting when I turn on Wifi. :)
[Xperia Z1 Android Development] RxLiTrO:
[MENTION=4904057][NUT][/MENTION]

here is the link for c6906

http://xdaforums.com/showthread.php?t=2630826

Enviado desde mi C6906 mediante Tapatalk
[Xperia Z1 Android Development] danytrial:
Waiting for C6906 :D

Enviado desde mi C6906 mediante Tapatalk
[Xperia Z1 Android Development] peteri8706:
[MENTION=410007]Nut[/MENTION], installed over RomAur 4.2, ub and no issues all good! Only question, busybox is installed with ROM when installing as part of script install. When I go to my apps it does not show up. I can download it from play store, do I need to install it, or will there technically be two busyboxes then? If not, why doesn't it show in app drawer?
[Xperia Z1 Android Development] [NUT]:
It's just the binary, it doesn't come with an app :)

Forget all other busybox apps though, they will ruin your full root...
[Xperia Z1 Android Development] peteri8706:
Nut, thanks for clearing that up. Great work on releasing these flash able ROMs, Thankyou.
[Xperia Z1 Android Development] [NUT]:
The C6906 ROM package is uploading, for now it's torrent file and FTF have been put online.

It will start seeding as soon as I've completed uploading it :)

Have fun people :good:

-- EDIT --

Will have the C6902 version online in about an hour too.

-- EDIT2 --

Updated OP with the links for the torrent file and FTF for the C6902 version now, still uploading though. It will start seeding as soon as it completes uploading.
[Xperia Z1 Android Development] juicio90:
Mmmm.... Testing!

Full root ! And Deoxede!, of course. UB....
[Xperia Z1 Android Development] diego9016:
NUT, could you create a modified kernel for C6906 with unlocked bootloader? There's only one for the C6903.

Thanks in advance.
[Xperia Z1 Android Development] [NUT]:
The kernel is the same, you can use the one for the C6903.

The C6906 package does however not require it though, XZDualRecovery (2.7.80) now has a way to set the same thing which the kernel ramdisk does too. :)
[Xperia Z1 Android Development] funky0308:
Hmmm...

After updating my home and recent button won't work..

Strange.

I updated without formating (from ihackers) but it should work.

Strange, really, strange.

I'll try tomorrow one more time

Tnx mate for this update...

And the other thing is funny too...custom themes (ours, not from market) doesn't work.

I thought it should work on stock, rooted and deodexed but not.

There must be something guys to in ihackers and monx ROM...
[Xperia Z1 Android Development] diego9016:
NUT, you should correct this. One of them is for C6902 but it says 03 ;)

Just to avoid confusion and unnecesary questions.
[Xperia Z1 Android Development] paullu:
yes I just want to say that too:D:D
[Xperia Z1 Android Development] zyclops1:
first one is for c6902 :D
[Xperia Z1 Android Development] Deggy:
Hey [MENTION=4904057][NUT][/MENTION] can you do anything for N.A. Sony Z1s such as root? Locked boot loader though. C6916

http://xdaforums.com/showthread.php?t=2631700
[Xperia Z1 Android Development] funky0308:
I had to wipe cache and dalvik after flashing. (first version, not deodexed).

I flashed zip then ftf but I bump into bootloop.

But when I wiped both cache it boot O.K.

As I sad I had many problems with it - navigation bar doesn't work (only back button worked).

Google search gave me few FCing and power menu had only power off function.

BUT - that's not problem of this ROM.

As I said, I flashed (dirty) over iHackers 2.1 and, obviously, that cause all errors.

Tnx [MENTION=410007]Nut[/MENTION] again and I didn't forgot for donation, I'm still waiting new credit card but I'll definitely support you mate.

You make my day ;)
[Xperia Z1 Android Development] whoosename:
@[NUT] : I followed your guide.Now I'm on .136, full root, unlocked BL, deodexed. Run smooth and without yellow tint!:good:
[Xperia Z1 Android Development] :
Can I flash 136 directly from 534??

Or I have to first flash 290 and then flash 136?

---------- Post added at 01:56 PM ---------- Previous post was at 01:49 PM ----------

Also the deoxex file is for c6903 can i still flash it on c6902??
[Xperia Z1 Android Development] Treatcon:
C6906: Download C6906_14.2.A.1.136.flashable.zip (Bittorrent: 872MB) and C6906_14.2.A.1.136_Stripped.ftf (21MB)

Flashed the update and ftf without any problems on my 6906. I just updated from C6906_14.2.A.0.290. Everything is working flawlessly so far. Will report anything out of the ordinary. Thanks and put the donation to good use!
[Xperia Z1 Android Development] darkoj2007:
For anyone who got this issue download xposed framework and download module: fix 4.3 bugs :) Now it`s okay :)
[Xperia Z1 Android Development] [NUT]:
You should be able to use the deodex package on your phone too.

I don't know if updating straight from JB4.2 will work ok... There is a chance you really need the 290 update to prepare your device the right way...
[Xperia Z1 Android Development] xshunin:
Another firmwareupdate? o_o Are there major feature updates that I might need? >_> Same lazyness issues as last time xD
[Xperia Z1 Android Development] [NUT]:
Speed, stability and smoothness and the white balance app, that's all: but so worth it :D
[Xperia Z1 Android Development] xshunin:
Huh I might do it when I am too bored then xD Btw my recovery suddenly disappeared o_o LED won't light up and it won't vibrate. I did nothing that could've removed it >_> Can I just use the windows installer again?
[Xperia Z1 Android Development] Treatcon:
Yup, I second that. Very smooth, stable, and speedy. The memory leak seems to have been fixed too.
[Xperia Z1 Android Development] [NUT]:
If you are on 290, then you probably don't have full root anymore either... That means the long way down and route...

At boot, does it show a red led where you expected the green led? If so, did you update busybox by any chance? If so... You have your answer.
[Xperia Z1 Android Development] xshunin:
I did. Was I not supposed to do that? >_>
[Xperia Z1 Android Development] thanhhii:
Deodex package can use for all

You can go from 534 directly to 136 but must fresh install

Gửi từ Honami 6903 bằng tapatalk pro
[Xperia Z1 Android Development] prietpraat1972:
coming from ihackers 2.1

Hi nut,

im on ihackers 2.1 at the moment, UB. can you tell me what the best way is to transfer to your rom? recovery first, then the rom and and stripped file? I guess i have to do a full wipe?

Thx in advance!
[Xperia Z1 Android Development] Klaus N.:
@ [NUT]

Thank you for another good job; I'll send you a donation.

e/ Here you are: 26K20981ML853290U

@all

Only a short ot:

If someone has problems with TitaniumBackup or AfWall+: The apps come with it's own busybox. At first I was afraid, that I didn't got su-rights, and then, that I eventually destroyed su. The solution was simple: Change the path of the busybox and binaries to "system"-busybox/-binaries.
[Xperia Z1 Android Development] [NUT]:
No need for a full wipe, simply wipe dalvik-cache only after flashing. That should be it :)
[Xperia Z1 Android Development] [NUT]:
Read the op again... XZDualRecovery is providing you with full root in this rom...

Add the warning to that knowledge...
[Xperia Z1 Android Development] funky0308:
[MENTION=4904057][NUT][/MENTION]

Mate do you understand why custom themes won't work on stock ROM.

They are working on stock based ROMs but on stock, deodexed, rooted and patched (signature checking disabled in services.jar) just apply wallpaper and lockscreen wallpaper.

We checked, all assets and files goes to right place and theme install went well...

What could be the difference?!
[Xperia Z1 Android Development] zyclops1:
Im feeling like something Is missing
[Xperia Z1 Android Development] Destroyedbeauty:
Hey, can you make an stock kernel boot.img with recovery & full root access / RIC disabled? :)
[Xperia Z1 Android Development] [NUT]:
I can, but i was actually hoping other devs would jump in on that part: I'm kinda busy as it is now already :x
[Xperia Z1 Android Development] [NUT]:
I actually do not know anything about theming, sorry... I would have helped if i knew the answer, but i know too little about what makes a theme tick or not... Maybe monx can help you in that department?
[Xperia Z1 Android Development] tyw87:
must i hv rooted .290 or i can do clean installation to this version?

If not, possible if i update this over custom rom .290? :p

Thanks 1st.
[Xperia Z1 Android Development] Klaus N.:
@[NUT]

Is it already possible to change Softkey dpi?
[Xperia Z1 Android Development] [NUT]:
All of the above is possible, just remember to clear at least the dalvik-cache.

Not sure if there is a mod for it like there is for the XZ, but you can use Xposed for that too.
[Xperia Z1 Android Development] juanpirulo:
Sorry NuT you said is posible to updated directly from. 534 or. 256 rooted to. 136? And its not necesary to do a factory reset? Just wipe Dalvik-Cache?. Cheers

Enviado desde mi C6903 mediante Tapatalk
[Xperia Z1 Android Development] whocares2:
Music unlimited missing

My update for my C6903 from .209 to .136 went smoothly, and I kept root. THANK YOU NUT!

But Music Unlimited is missing from the walkman app. I have not seen other missing thing yet, but I wonder why it's not there.

Nut, any idea? Wrong base ROM?
[Xperia Z1 Android Development] zyclops1:
Playstation missing :'(

I think this is not generik uk firmware :(
[Xperia Z1 Android Development] Riemen:
Maybe these Apps are not present in the Baltic ROM on which this ROM is based.

This brings me back my questions which I could not get answered up to now:

If there are differences in the Roms, is there any possibility to rip the customization from our local ROM version to flash it over the Baltic ROM? Am I right that all customization files are located in the /system/vendor folder? if this is correct, ripping and flashing them should be easy...
[Xperia Z1 Android Development] meetdaleet:
No problems seen jet with direct update from .534... Only wiping dalvic/cache after installing is necessary. I'll release a Video tut in a few days.

(German/english)

[MENTION=4904057][NUT][/MENTION]

Is there no way to give you space on my Webserver to host the flashable zip files ? :(

I would spend time to update them asap.

Regards

Meet

sent with my ololol phone via TapaTalk Pro
[Xperia Z1 Android Development] funky0308:
No, I know that, I asked you that once (sorry for asking again).

What I want to ask is - do you or [MENTION=273310]monx®[/MENTION] could tell what change and make the difference when you build stock based ROM.

I guess, you're right and I should ask someone who actually build stock based ROMs but niaboc79 don't know and, for now, can't figure that out, so I thought maybe you could know what could happened in process of creating ROM to enable custom themes to be visible.

If you don't know or can't deal with it, just skip this post and sorry for spamming your thread ;)
[Xperia Z1 Android Development] [NUT]:
From 534 to this rom the same backup and restore action as on 290 needs to be done. You can leave it empty to start fresh though.

Must be the customization...

its the Baltic customization...

Yeah, that would be possible. I'll try to create something before the next sony firmware release to easily change customization using any ftf you wish on the DIY Guide vm. I'll make it so that it rips the required files and creates a flashable zip from that much the same way as I did with the current script.

First I need to focus on other stuff before I get to that though.

I'll check an other ftf to see what might be required to integrate it's customization in to this one later.

If anyone else wants to do it, feel free to release it here for anyone to enjoy :good:
[Xperia Z1 Android Development] ZACQ8:
[MENTION=410007]Nut[/MENTION] : I was on your 290 Rom (6903 locked BL since phone was bought) and flashed monx 290 rom which is presently running.

I have no patience to wait Monx to release 136 update, could you confirm if I do the following will be ok

1) Make Nandroid Backup from TWRP

2) Flash 136 zip with full wipe + stripped ftf

3) Reboot to TWRP restore only DATA

or

Flash 136 zip without data wipe + and stripped ftf ..will this do??

Last question : currently PC companion prompting for new 136 update, is there anything harm if I select to update on my Rooted Custom ROM??

Best Regards
[Xperia Z1 Android Development] [NUT]:
Flash this update following the op, but after flashing the zip, wipe dalvik-cache only and you will be done :good:

When accepting the update through PC Companion you will most probably lose root.
[Xperia Z1 Android Development] oualidbenadid:
Hi,i'm unable to get the supersu grant acces popup with any root needed application.The app hang when it should require the root acces.

Supersu already updated,tried with supersuser (no system mount).

Full wiped 3 times

Do you have an idea ?

Thanks for the rom NUT
[Xperia Z1 Android Development] juanpirulo:
install latest xzdualrecovery and dont update supersu. cheers
[Xperia Z1 Android Development] kubook:
sound problem while open game or movie. it light sound when screen off and switch screen on sound it back loud.
[Xperia Z1 Android Development] oualidbenadid:
Thanks but it's not working
[Xperia Z1 Android Development] [NUT]:
It seems to be caused by daemonsu ... I don't really understand why...

Do you have:

- An unlocked bootloader and custom kernel?

- Enabled init.d support in XZDR?

- Updated SuperSU at some point?

- Updated the su binary at some point?

[MENTION=631273]Chainfire[/MENTION] buddy, I hope you read this. It happens on JB4.3 Sony ROM's only, it's happened to me too at some point, even [MENTION=2784807]DooMLoRD[/MENTION] experienced it on his device. Root is still available but at some point rooted apps just freeze when requesting root access.

This ROM includes SuperSu 1.91 (the contents came from the update zip)
[Xperia Z1 Android Development] franziro:
Finally c6906 let's try this :cool:

Enviado desde mi C6903 mediante Tapatalk
[Xperia Z1 Android Development] SleemLDJ:
Has anyone noticed that XLoud and Dynamic normaliser has no effect regardless of its settings in the movies app?

It works for Walkman only and it used to work for both before.
[Xperia Z1 Android Development] POWER1FM:
I have a huge battery drain with the latest update and a little bit lug (very very little) when i tap resent apps!

Anyone who noticed battery drain to?

I think a clean install would help but i need more opinions before I proceed.
[Xperia Z1 Android Development] ZACQ8:
Thanks [MENTION=410007]Nut[/MENTION]

I successfully updated to 136

As i forgot to wipe dalvic as you said there was a small bootloop, then at 3rd or 4rth time booting it got to start optimizing apps...thank God.

Now i am on 136 base and good to go for flashing any custom Rom of the same base without flasing Kernel & baseband ftf

Thanks Again
[Xperia Z1 Android Development] zyclops1:
is it necessary to update to 2.7.80 BETA??? :confused: :confused:
[Xperia Z1 Android Development] [NUT]:
No, but it won't hurt either ;)
[Xperia Z1 Android Development] Celestial Fury:
Wipe dalvik cache after flashing which zip - stripped? It doesn't say in OP. Also can data be backup and restored after flashing in this version? If so, when? The op seems slightly different than the .290 guide.

Do I need to delete xzdr.prop too?

Xperia Z1 Stock Rooted .290 Dual Recovery 2.7.76
[Xperia Z1 Android Development] hush66:
The "stripped" file is an FTF, not a zip file. So he's referring to the zip file that you flash in recovery.
[Xperia Z1 Android Development] albertobom:
Ok... I've a problem. WCDMA network is not supported in Spain so I dont have mobile data... What to do? Any advice?
[Xperia Z1 Android Development] MysticEnforcer:
if you download the stripped.ftf with opera classic,

it saves the file as a zip file
[Xperia Z1 Android Development] whocares2:
Thank you NUT. Actually, most of the sony services are missing from this BAL generic, and so we miss some of the interest of having an XPeria.

By the way, I wonder why baltic ROMs are so deprieved...

Well, now numerous .136 ROMs are out, maybe you could rebase the C6903 one on a more complete ROM (generic central or western europe?) without it being to much of a hassle?

Thank you in advance, and most of all thank you for your hard work and dedication to our devices!
[Xperia Z1 Android Development] rage77:
Weird, seems like the equalizer is completely nullified. The settings do nothing to alter the sound.
[Xperia Z1 Android Development] Roughnecks:
Is it possible to use an custom Kernel with LB and this Rom? Or do we still need UL for that?

Gesendet von meinem C6903 mit Tapatalk
[Xperia Z1 Android Development] whocares2:
You need an UL to run custom kernels.
[Xperia Z1 Android Development] xshunin:
So how do I get it back? >_>
[Xperia Z1 Android Development] hush66:
With the various limitations associated with the Baltic firmware, maybe [NUT] can consider basing his C6903 zip file on another firmware.
[Xperia Z1 Android Development] N77NS:
I work full mouth, but when I lose CWM install Kernet for unlocked rom
[Xperia Z1 Android Development] oualidbenadid:
I'm on stock kernel from the striped ftf (locked bootloader (unlock allowed :no))

enabled init.d

I use only the su with binaries one provided with the rom

And i found a fix: i deleted the XZDR folder and rebooted SU fixed with rwr

Tried re-enabling the init.d support with the prop file and su re-broken (definivetly a init.d problem with prop)

So i enabled with tjird party app and i have full root and init.d support budy [NUT]
[Xperia Z1 Android Development] whoosename:
Flash an other .136.ftf

Is it possible to flash an other .136.ftf (available from here: http://xdaforums.com/showthread.php?t=2469191, read OP)? Or what else is to do?

I'm on .136 BAL and I want to go to 14.2.A.1.136	1277-0154_R2B (Generic DE)