yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] zippy01:
Thank you, I created my first 4.3 rooted Rom :)
[Sony Cross-Device General] [NUT]:
Udev is a hotplug daemon, which prepares your computer for the use of whatever you connected to it.

It also governs who has the rights to use the new devices which you connect.

The udev rules in this case are enabling a regular user to use the adb/fastboot instead of having to sudo (elevate to root) everything you do.
[Sony Cross-Device General] arash74:
Emmmm, and how should I set it?

Sorry for disturbing and being noob here. The reason that I didn't download your ubuntu is that i'm on a dead slow connection.
[Sony Cross-Device General] [NUT]:
If you are using ubuntu, Google for 'ubuntu android udev 51' (without quotes). You will find all the Intel you will need there :)
[Sony Cross-Device General] Nagato Yuki:
Well, I would like to notice you that for other Xperia device, the device location of /system (i.e. the number of mmcblk partition) might be changed. :D

For example, /system was on mmcblk0p

24

for Z,but mmcblk0p

23

for Z1:D
[Sony Cross-Device General] [NUT]:
The flashable zip is using the named structure, so that should not be an issue though :)
[Sony Cross-Device General] Nagato Yuki:
Well, anyone with experience of making flashable zip should check flash script before publish the ROM, should it? :)

As there is possibility of personalized ROM for other sony devices or even non-sony device, some remarks for ROM-make-beginners I should point out here.

If someoone create flashable system for other devices (like Z1) instead of Z, pls note that file in the DIYGuide UPDATE PACKAGE,

DIY_Guide\updater\META-INF\com\google\android\updater-script

ui_print(" Formatting SYSTEM...");
unmount("/system");
[B]run_program("/sbin/make_ext4fs", "/dev/block/mmcblk0p24");[/B]
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
ui_print("");
set_progress(0.500000);

The bold line (major the mmcblk0p

24

part) should be modified according to the devices. :p
[Sony Cross-Device General] [NUT]:
Lol, I never noticed I forgot to update that line, but it's incorrect indeed... Will fix it in a few days... Thanks for pointing that out!
[Sony Cross-Device General] zippy01:
How to know which one for which devices?

Thank you
[Sony Cross-Device General] [NUT]:
forget it, I'll upload the patched update in a few minutes ;)
[Sony Cross-Device General] Rootk1t:
So my question maybe is a bit offtopic but anyway.

I have flashable zip with prerooted system.tgz inside made according to DIY.

I would like to make another prerooted package of another customization firmware. All the same files and firmware but another region one.

I extracted system.sin from ftf file of my region resulted in system.ext4 file, and i want to make system.tgz of it (convert somehow) to replace the existing one in flashable zip.

So can the operation be done without once again making steps found in this DIY (adding root files and recovery, etc).
[Sony Cross-Device General] [NUT]:
Have a look at the builder script, the commands are in there to reproduce it's function by hand.
[Sony Cross-Device General] Rootk1t:
Can you upload it somewhere cause don't have access to pc where your VM package is.
[Sony Cross-Device General] [NUT]:
lol, at the moment, me neither... I'll post the contents here tonight.
[Sony Cross-Device General] Rootk1t:
I understand that all files are your property and it is up to you where to place them, but downloading from torrent diyvm-update-29-12-2013.tar.gz and NUTsDIYGuideVM.rar is extremely slow, cause there is one or no seeds at all. I've practically give up because of it:(
[Sony Cross-Device General] [NUT]:
You can download torrents using http://zbigz.com and then download them as a straight download to your pc ;)
[Sony Cross-Device General] Rootk1t:
Managed to download all files, but service didn't help me.

Several questions rose that are not covered in guide:

1). When stripping ftf according to guide we remove userdata.sin, cache.sin, appslog.sin, system.sin that's clear.

But different customizations of firmware one version contain different files:

On the screenshot two firmwares .569, one contains boot folder and preset1.ta/simlock.ta files another doesnt.

Boot is recognized as bootbundle in flashtool, other files as UNKNOWN.

Should i delete this folder with files or not? Exclude from flashing or not?

2). Speaking of update packages to VM, should i apply two of them or second includes contents of the first one?

I see new versions of Flashtool, SuperSU, XZDualRecovery, i suppose rootfix is included in second one?

3). By applying update package 2 we presume that we're updating from 4.2.2 to 4.2.2 or 4.3, cause i didn't find following code in updater script

that ui_print(" Moving contents of the internal storage to it's new location...");
ui_print("");
ui_print(" NOTE: This may take a while!");
ui_print("");
run_program("/sbin/busybox", "mv", "/data/media", "/data/temporary");
run_program("/sbin/busybox", "mkdir", "/data/media");
run_program("/sbin/busybox", "mv", "/data/temporary", "/data/media/0");
set_progress(0.850000);

What will happen if i update from 4.1.2 and script didn't contain this lines and therefore didn't move files?

Thanks.
[Sony Cross-Device General] zyclops1:
Thanks NUT ^_^
[Sony Cross-Device General] TeamR:
+1

It's the same here, very very slown only 1 peer....

I don't use ZIGBIZ but now free access is limited to 1gb max size file download !

Thanks for all !
[Sony Cross-Device General] GavTheStoner:
While using this VM I ran into an issue. If you delete things using a SU Nautilus they dont go to the normal trash can.

This meant that I quickly ran out of space after several 'builds' of my rom.

You can run 'sudo baobab' to open the disk usage analyzer from terminal to delete things from the su trash can.

Is there any other way to do this?

Also, If you delete things from the mounted folder using a SU Nautilus it creates a folder called .Trash-0 in the root of the mount. You need to go into the mounted folder with terminal then type 'sudo rm -r .Trash-0' else this trash folder gets included in the flashable zip.
[Sony Cross-Device General] Rootk1t:
How can i make deodex.zip to DE-ODEX my ROM?
[Sony Cross-Device General] eclyptos:
[MENTION=4904057][NUT][/MENTION] Hi Nut, I will like to do a simply task, extract an entire system FTF from my Stock Xperia Z1, and flash it to another Z1. This guide help to extract the FTF from my Z1, it is compatible? or do you have any specific application to do it for Z1?

Thanx in advance.
[Sony Cross-Device General] [NUT]:
You only need to include the XZDualRecovery for the Z1 to get that to be compatible, including the ric patch to turn that off.

Download the flashable package, open it with winzip or winrar, copy the system folder in the zip to the updater/ folder in the VM.

Then copy disableric (from the tmp folder inside the zip) to updater/system/xbin/ in the VM.

Now you are set to get a fully rooted ROM for your Z1 which is compatible with all of the same model number matching Z1 devices :good:
[Sony Cross-Device General] Crash338:
Hi Nut,

I used this method to create the flashable and stripped FTF for my tablet Z which worked but when I tried for my ZL C6506, the flash halts with:

Performing finalizing tasks...

set_perm: some changes failed

E: Error in /storage/sdcard1/system.flashable_569.zip

(status 7)

Installation aborted.

press any key to continue.

I looked at the log and it tries to change the permissions of a file called "ramdisk.stock.cpio.lzma" which no longer exists in your latest 81 version of DualRecovery so I copied the ramdisk file from my tablet Z and it allowed for the flash to complete successfully. I'm now running rooted 4.3. :good:

My question is...what is the purpose of the ramdisk and if no longer needed is it safe to delete from /system/bin?

Thanks
[Sony Cross-Device General] reignzy:
Hey if anyone is having trouble downloading torrents, you can try this torrent app ;)

Utorrent from the play store

Sorry my Xda app won't let me share the torrents apk
[Sony Cross-Device General] DripleX:
I have a problem with this method. If I copy the the "disableric" to the "xbin", the phone stuck at Sony-logo and vibrates all the time, with small pauses. In this mode, I can boot into recovery.

I made a fresh flash with a complete wipe and I tried to flash it with TWRP and Phils Touch recovery.

If I don't put the "disableric" to the "xbin", my Z1 starts, but I haven't got full root and no recovery.

I tested it with "Z1-lockeddualrecovery2.7.85-BETA.flashable" and "Z1-lockeddualrecovery2.7.86-BETA.flashable" with no success.

What should I do, to solve this problem?

Sorry for my bad english, I am German ;)
[Sony Cross-Device General] [NUT]:
In TWRP-> Advanced -> File Manager -> /external_sd/XZDualRecovery/XZDR.prop and delete it. Then try to boot again.
[Sony Cross-Device General] DripleX:
Thanks for your fast reply.

I deleted it, but the Z1 doesn't boot. Stuck at Sony-Logo...
[Sony Cross-Device General] [NUT]:
Hmm... does it still allow you to enter recovery?
[Sony Cross-Device General] DripleX:
Yes, I can enter to both recoverys...
[Sony Cross-Device General] [NUT]:
From what ROM did you come up to this package?

Did you flash the FTF yet?
[Sony Cross-Device General] DripleX:
The original ROM is the C6903_14.2.A.1.136_Generic_DE_1277-0154_R2B.ftf.

I followed your guide and done the special configuration for the Xperia Z1, the DualRecovery Step. I also download the update for the VMWare machine.

I copied the files in the described section. Then I created the flashable.zip. This I copied to my external SD card an flashed it over CWM (I tried both recoverys). I shut down the Z1 an flash the "stripped.ftf" of the Generic_DE... It has got the same file size as your "136.BALstripped.ftf".

And after that, I stuck at Sony-logo
[Sony Cross-Device General] [NUT]:
No I meant what rom did you have before flashing this one?
[Sony Cross-Device General] DripleX:
Oh Sorry,

At first I did a full wipe and flash 14.1.G.1.534.1276-4314_R2A.ftf over Flashtool. I rooted it with binary and installed the Z1-lockeddualrecovery2.7.86-BETA.installer. Then I installed over TWRP or/and Phils Recovery my generated flashable.zip. Then I power off the device and flashed the stripped.ftf.

The second try. I went to Backup, recovered it. It is your BAL136 Version. Then I flashed over TWRP or/and Phils Recovery the flashable zip. And so on...

If you need my generated files:

https://mega.co.nz/#!N8oVGZBQ

https://mega.co.nz/#!09hR3brB
[Sony Cross-Device General] [NUT]:
I'm wondering why leaving out the disableric file makes such a difference... If you delete it now, does it boot?
[Sony Cross-Device General] DripleX:
Where is the File located? I didn't find it in TWRP File manager...

Edit:

I started from the beginning of the guide again and created a new flashable.zip and now my Z1 starts.

I done all steps as before. This is confusing. xD

Before I only used the romrebuilder again and now i started with flashtool to export the ROM to .ext4.

Sorry for wasting your time. But thank you for your help!
[Sony Cross-Device General] [NUT]:
[MENTION=2208522]DripleX[/MENTION], no worries, glad you got it to work in the end :) :good:
[Sony Cross-Device General] juanpirulo:
i dont know what i am doing wrong. I made a flashable zip following the instruccions from the op. But when i flash it the only thing is flashed is the recovery but not the system. I attached a print of the flashable.zip. cheers
[Sony Cross-Device General] oualidbenadid:
The link for 4.3 starting package is wrong mate,can you give us the corrected link please ?

Thanks
[Sony Cross-Device General] [NUT]:
Nope, the link is correct :)

Why do you think it's wrong?
[Sony Cross-Device General] [NUT]:
I guess you copied the META-INF folder too... which you where not supposed to do when updating the recovery files.
[Sony Cross-Device General] juanpirulo:
Should i then leave the one that comes with the 4.3 update? And the other files and folders? Should i removed anyone that is not in the 2.87 update?. Cheers

Enviado desde mi C6903 mediante Tapatalk
[Sony Cross-Device General] oualidbenadid:
Sorry my bad i was tired x)

Excuse my stupidness mate
[Sony Cross-Device General] [NUT]:
Only copy the system folder and then copy disableric from the tmp folder to system/xbin. That will be enough.
[Sony Cross-Device General] almsamer:
how can i expand my hard drive more than 10gb

I tried a number of ways I can not:crying:
[Sony Cross-Device General] [NUT]:
This took me literally 3 seconds to search using Google:

How to expand the ext4 primary partition size in a VMware Player virtual disk?

:rolleyes:
[Sony Cross-Device General] ralf_waldo:
Hey man, will you please upload and message me the link to download the zip file that you flashed successfully on Z1?. I'm running into same issues.

-Ralf.
[Sony Cross-Device General] DripleX:
C6903_14.2.A.1.136_Generic_DE_flashable.zip

https://mega.co.nz/#!x9xVXJDT!fMS_Z6lXXq6gR7G65PjxlF-Y45TF5m4nBY_mjNcI1cI

MD5Sum: e421a6a92417c8c1f78a478019f5e308

C6903_14.2.A.1.136_Generic_DE_stripped.ftf

https://mega.co.nz/#!09hR3brB!gjlHIT57XfKwtfWqgBLOHKD3lMfawXmALkDOsdwgnD4

MD5Sum: 4d556871cafb3f5ef2fc1b150b0909a9
[Sony Cross-Device General] alfi07:
Some questions please

In order to have 4.3 rooted and with recovery :Do i have to build as described or is it easier ?

thanks in advanced.:confused:
[Sony Cross-Device General] [NUT]:
Build as described. And if you are currently unrooted, you will have to go back to a rootable 4.2 before you can update using this package.
[Sony Cross-Device General] alfi07:
Thank you NUT

:good:
[Sony Cross-Device General] swagie:
[MENTION=410007]Nut[/MENTION]

I tried today to make a rom with customized NL as a source which I downloaded as per guide.

After flashing I had no recovery (updated to Z1-lockeddualrecovery2.7.94-BETA.flashable.zip) and I end up with no recovery and no root.

Any idea?

ps. VM update 2 also aplied, no super su update.
[Sony Cross-Device General] [NUT]:
Can you make a zip and upload your updater folder stripped of the system.tgz?
[Sony Cross-Device General] swagie:
[MENTION=410007]Nut[/MENTION]

OK, here is the link

https://www.dropbox.com/s/ymkvs4vl0y1nujk/updater.tar.gz
[Sony Cross-Device General] [NUT]:
Everything is there, are you absolutely sure you flashed the stripped ftf which excluded the system partition?
[Sony Cross-Device General] swagie:
[MENTION=410007]Nut[/MENTION],

I Will try again later today.

Thanks anyway.
[Sony Cross-Device General] swagie:
[MENTION=410007]Nut[/MENTION],

tried again and still no full root and stock recover only.

Any other idea?
[Sony Cross-Device General] [NUT]:
Hmm...

PM me what you did and include some pictures of flashtool settings while doing it again in Dutch if that makes it easier to explain what you do. I will need a complete step-by-step 'guide' if you will to get any idea what you are doing to help you fix this.
[Sony Cross-Device General] ralf_waldo:
Hey NUT, I need few instructions to update Super SU user in the DIY_Guide to its newest build. Please, explain what files need to be replaced for updating the guide.

-Ralf :)
[Sony Cross-Device General] lancebuks:
Replace the Superuser.apk and you should be good.
[Sony Cross-Device General] Rootk1t:
thanks for clearing the things, i wondered why i got Trash-0 folder inside /system/:confused:
[Sony Cross-Device General] euronaut:
after reading this thread, i think i'll probably have to go through this whole procedure, if i want to have a flashable.zip for rooting my z1compact with locked bootloader with my own german firmware as described in this thread? http://xdaforums.com/showthread.php?t=2634196
[Sony Cross-Device General] zippy01:
The whole proceedure doesn't actually take that long :) once system is extracted to ext4
[Sony Cross-Device General] Rootk1t:
[NUT]

Will this guide work with forthcoming 4.4.2 kitkat firmwares on Xperia series?
[Sony Cross-Device General] [NUT]:
Possibly, yes. Maybe it will need some tweaks on the updater-script again, but i consider that to be unlikely.
[Sony Cross-Device General] swagie:
@ nut,

Did.you get my pm?

What ever i tried didnt work so far. Any idea

FIXED. Its working
[Sony Cross-Device General] Destroyedbeauty:
No seeders or leechers on this torrent so I can't download it at all.. :(
[Sony Cross-Device General] [NUT]:
Are you able to download one of the update packages?

The main seed is still up...
[Sony Cross-Device General] Destroyedbeauty:
Nope, the downloads stats on Utorrent is just staying on Connecting to peers - both for your UbuntuHost VM and the 4.3 adjusted core update package..

Any chance that you can share those two (the UbuntuHost VM and the JB 4.3 specific files) on a direct download site like Rapidshare or some fast share site? I got superfast 100 Mbit down / 10 Mbit up broadband connection so DL speed is not a concern for me..
[Sony Cross-Device General] iBuzman:
Thank-you so much for this [MENTION=4904057][NUT][/MENTION] :thumbup: I have been creating rom's in [MENTION=673068]dsixda[/MENTION] kitchen (cygwin shell in windows) but it only supports up to API 17. Thanks again, Much appreciated.

(Hurry up ZU warranty repair!)
[Sony Cross-Device General] DripleX:
The both downloads work perfect. I can download both files with high download speed (5 - 10 Mb/s). There are 3 - 5 seeds available at the moment.

I think your torrent configuration is faulty.
[Sony Cross-Device General] Destroyedbeauty:
I don't think so, dude. Everything else that I am downloading thru my uTorrent set-up is working flawless, something else must cause this issue..

EDIT: Forget it! It's now working. Seems like something in my firewall, together with Avast Anti-Virus config, blocked some incoming hosts / seeders / packages that was needed for download to work.

Everything is fine now! Happy ROM deving- and cooking! ;)
[Sony Cross-Device General] dastane:
thanks a lot for this great job!!!

just one problem; I already have a ububtu set up, could any one provide a link to just the "rom builder" scripts please? i alredy try to download the update, i don't know way, but the torrent don't work so please guys, just the "rom builder scripts"

thanks a lot to you :)
[Sony Cross-Device General] NoSubstitute:
FlashTool died on sin extraction

Hello!

Right up until extracting the system.sin everything worked.

Now, I am not getting any further.

After selecting system.sin I click "Extract data" and wait a short time.

FlashTool complains about some file is missing and is then Killed!

xda@ubuntu:~$ cd FlashTool/
xda@ubuntu:~/FlashTool$ sudo ./FlashTool
[sudo] password for xda:
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre32

(Flashtool:3372): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.IZDLCX': No such file or directory

(Flashtool:3372): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(Flashtool:3372): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.55DLCX': No such file or directory

(Flashtool:3372): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
Killed
xda@ubuntu:~/FlashTool$

I tried once to create that file, but it still crashed.

***

WTF! Now the darn thing is working! :-/

Ok, maybe it wasn't necessary, but this is what I did:

sudo mkdir -p /root/.local/share
sudo touch /root/.local/share/recently-used.xbel
[Sony Cross-Device General] zippy01:
Hello, when do I use this "sudo rm -r .Trash-0"

Thank you
[Sony Cross-Device General] Premananda_laishram:
Can I create a lite rom with this Guide? If so, what are the packages I can delete from stock 136 rom? What about a deodexed rom?
[Sony Cross-Device General] ralf_waldo:
Hey, can I build a deodexed rom from this guide?. If not, then can I manually deodex the system app and framework using rom kitchen and add those folders replacing the odex ones prior building the final flashable zip file?.

Will this require any additional modifications in the rombuilder script and the updater script?.

-Ralf
[Sony Cross-Device General] aliakbar.mirzaee:
[MENTION=4904057][NUT][/MENTION] Any update for creating personalized sony kitkat stock roms by this guide?the kitkat update for z1 is already released.:confused:
[Sony Cross-Device General] [NUT]:
As soon as I am able to release a stable update to package I'll release an update package for this guide as always :good:
[Sony Cross-Device General] nasroed:
Can i use ubuntuhost as my OS alongside with win 8..?
[Sony Cross-Device General] Premananda_laishram:
[MENTION=410007]Nut[/MENTION] will there be any more addendum for advanced customisation? Adding deleting packages! Deodexing!
[Sony Cross-Device General] [NUT]:
Yes, AFAIK the VMWare player works on windows 8 as well.

Maybe, when I have more time to burn... but I wouldn't hold your breath on that though :p
[Sony Cross-Device General] Rootk1t:
[MENTION=410007]Nut[/MENTION]

Please release DIYGuide UPDATE PACKAGE 3 for VM compatible with 4.4 ROM.
[Sony Cross-Device General] [NUT]:
I'm working on an update for it, it will be more user friendly, with a menu structure and more features.

If you wish to do a kitkat rom you can using the latest update package, be sure to grab xzdualrecovery 2.7.99 and use it's files to update the ones in the updater folder.
[Sony Cross-Device General] juanpirulo:
Just follow the guide its Works with 4.4. Just update recovery and flashtool with last versión. Cheers

http://xdaforums.com/showpost.php?p=42135309&postcount=7

Edit mmm i didnt see Nut´s answer. How many eyes do you have?
[Sony Cross-Device General] Rootk1t:
that's great, waiting with anticipation.
[Sony Cross-Device General] NoSubstitute:
Yes, definitely!

On the other hand, I tried updating the UbuntuVM and ran into all sorts of trouble. :( Updating only the tools used in the guide worked fine. A little tricky, but doing it while reading a couple of relevant posts resulted in a working custom 4.3.1 with the latest SU and Dual Recovery. :)

Sent from my C6603 using Xparent BlueTapatalk 2
[Sony Cross-Device General] [NUT]:
The next update package will come in due time, I've updated bits and pieces in the OP and guide for now.
[Sony Cross-Device General] desean:
Thank you for this wonderful guide. Managed to create my own rooted stock 4.4 ROM for my Z1 using this guide.

I updated the "DIY_Guide" folder according to this thread (with SuperSU 1.94, XZDualRecovery 2.7.101 BETA and on the update script), so if you are interested in mine, download it here: DIY_Guide.desean.tar.gz
[Sony Cross-Device General] juanpirulo:
[MENTION=410007]Nut[/MENTION] I wonder if in the rombuilder script should be an umount order to this line "mount -o loop $PRM/$each $name " at the end of the script. Sometimes after running and fiinishing the rombuilder the folder is still mount and i cannot umount till i reboot the vm. Could you have a look at this when you updated the guide. cheers.
[Sony Cross-Device General] DripleX:
You can unmount it, if you open terminal. Then you type "sudo nautilus" (without ""). Now you can unmount the partition in Nautilus.
[Sony Cross-Device General] Rootk1t:
If i want to update flashtool, should i delete initial folder and unpack flashtool-0.9.15.0-linux.tar on its place?

I read instruction, but should i perform stages 2 and 3? What does it mean in point 4 - Apply the latest update? How can i apply it?

So can smb clarify this things for me how to do it properly on DIY VM?
[Sony Cross-Device General] [NUT]:
You can simply remove te Flashtool folder and replace it with the contents of the tar.7z file you have. Ignore everything else in the guide you read: it will work fine.