yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] juanpirulo:
Well, first i will try to explain a Little bit what changes and how a made my personalized rom. First i got extracted the Ext4 from the zip i made with pcrfcreator. copy to my virtual machine on Linux then run de DIY guide i added a line to the rombuilder scritp to mount system and run with nautilus to get able to change system.

mount -o loop $PRM/$each $name

gksu nautilus $name&

then I delete app, framewor and priv-app folders and replac them with ones I made with kanome tools after that i delete on framewor folder services.jar and put a modified one to get superusermod.

and finally open updater script in a terminal with " nano updater/META-INF/com/google/android/updater-script " then added the following permissions in one of my test.

/system/bin/.ext/.su");

ui_print(" concediendo permisos......");

set_perm(0, 0, 0755, "/system");

set_perm(0, 0, 0644, "/system/app");

set_perm(0, 0, 0644, "/system/framework");

set_perm(0, 0, 0644, "/system/priv-app");

set_perm(0, 0, 0777, "/system/bin/.ext");

set_perm(0, 0, 06755, "/system/bin/.ext/.su");

set_perm(0, 0, 06755, "/system/xbin/su");

set_perm(0, 0, 06755, "/system/xbin/daemonsu");

set_perm(0, 0, 0644, "/system/bin/recovery.cwm.cpio.lzma");

set_perm(0, 0, 0644, "/system/bin/recovery.philz.cpio.lzma");

set_perm(0, 0, 0644, "/system/bin/recovery.twrp.cpio.lz

The result was bootloop after getting the bootanimation But not problems when flashing zip

Second test i change the permissions for those ones

ui_print(" concediendo permisos......");

set_perm_recursive(0, 0, 0755, 0644, "/system/app");

set_perm_recursive(0, 0, 0755, "/system/framework");

set_perm_recursive(0, 0, 0755, 0644 "/system/priv-app");

set_perm(0, 0, 0644, "/system/framework/services.jar");

set_perm(0, 0, 0777, "/system/bin/.ext");

set_perm(0, 0, 06755, "/system/bin/.ext/.su");

The result in this one was " e:: error executing updater binary in zip " when trying to flash the zip.

Hope this help you to find what i am doing wrong. and many thanks for you help and interest. Cheers
[Sony Cross-Device General] zxz0O0:
You're doing completely wrong. If you want to edit system.ext4 from PRFCreator, simply do this

(Copy system.ext4 to linux machine, run commands as root or with sudo)

mkdir -p /vdisk
mount -o loop system.ext4 /vdisk
cd /vdisk

(make changes as you want, make sure replaced file have same permission as previous one)

(after you finish making changes: )
umount /vdisk

(copy system.ext4 back inside zip)

No need to edit updater-script whatsoever. Don't mix PRFCreator with this guide.

As a hint: You can display permission for example with

ls -l

and set permissions with the command chmod
[Sony Cross-Device General] juanpirulo:
I cant believe what I am doing wrong. I just make everything as you said and set the permissions as you said with chmod and check again the folder with ls -l to see if there is any wrong permission but everything is like the original one, but still i get a bootloop after flashing. I am going to make one just changing bootanimation to see if the problem is when i copy the modify system.ext4 to the zip. I ll make you know. cheers

Well the last flashable.zip with just modify bootanimation is ok so now I know something i am doing wrong when i modify the the system/App, framework and priv-app folders with the deodex ones. cheers
[Sony Cross-Device General] Premananda_laishram:
Deodexing achieved

Don't mess with any script.

1. Just delete content of apps, priv-app and framework through sudo nautilus in terminal.

2. Copy contents of apps from deodex of kanome output inside the apps folder found in updater folder.

3. For priv-app and framework just create two empty folders with respective names inside updater/system and copy contents from kanome output.

Note you should finally have one apps folder, one priv-app folder and one framework folder inside updater (inside updater/system I think).
[Sony Cross-Device General] Premananda_laishram:
Recovery twice

I have a new problem. The recovery in my final rom gets activated twice - first green led with double vibration and second purple led with double vibration. Can anyone help?
[Sony Cross-Device General] juanpirulo:
Not such a problem on mine. 2.7.154 z1 flashable.zip, what version is yours?. By the way i get my rom finally. Cheers
[Sony Cross-Device General] Premananda_laishram:
Same version Xperia Z ultra. Guess I will have to start from scratch without replacing recovery and get to next step slowly.
[Sony Cross-Device General] mai77:
OK

I use the VM for comparison.

its basically a Linux with flashtool working and scripts. pretty decent.

since SONY xperia E1 has no CWM, this tool is kinda pointless since it wants to run a UPDATE.ZIP in a recovery, which the E1 does not offer.
[Sony Cross-Device General] [NUT]:
Create a CM11 device repo and I might have a solution for this ;)
[Sony Cross-Device General] mai77:
thanks, mate !

http://xdaforums.com/showpost.php?p=55796321&postcount=559 :good: <--- backlink - I hope we will set up CM11 repo for XPERIA E1
[Sony Cross-Device General] iBuzman:
Hey [MENTION=4904057][NUT][/MENTION] hope you're well, if any progress on E1 recovery, don't forget to shoot me a copy for falcon tool testing [emoji12]
[Sony Cross-Device General] Premananda_laishram:
After 20 builds and flashing I found the culprit to be the recovery. Guess I will have to wait for new release.
[Sony Cross-Device General] [NUT]:
After re-reading your problem, first my apologies for the sluggish support there: real life has been too dang busy!

If you still have this double trigger issue... during the build pause you get traverse to bin/ and copy chargemon from there to the desktop.

After you've completed the package, open the zip (inside the VM), then open system.tgz and see if chargemon.stock exists, if it does drag it from there to the desktop and open it by double clicking on it, choose a text editor to open it. If it contains a script something you did throws off the original workings of the build script... if it's a bunch of gibberish, I have no idea why it doubles the entry offer...
[Sony Cross-Device General] Premananda_laishram:
I have no chargemon.stock inside.

My steps

1. Replaced recovery files from 2.7.154 downloaded from your site as per your instruction

2. Fire up script

3. During pause navigated inside mounted system folder and deleted app, framework and priv-app folders

4. Inserted app, framework and priv-app folders containing deodexed apps from output of kanome tool. The folders are inserted inside DIY_Guide/updater/system

5. Continue DIY step.

THATS ALL.
[Sony Cross-Device General] [NUT]:
Well, you'll have to check why not, because chargemon.stock should be there and should be the original but renamed binary.

You could unpack and mount the original system partition by hand (start with a fresh copy from the FTF you are using!) and see if chargemon is there. If it is, use that to copy and rename to chargemon.stock to the bin folder of your flashable zip's system.tgz.
[Sony Cross-Device General] Rootk1t:
[MENTION=4904057][NUT][/MENTION]

Will this DIY Guide work with Android L 5.0?
[Sony Cross-Device General] [NUT]:
It needs a patch to put the NDRutils app in the right location, but otherwise it should work just fine.
[Sony Cross-Device General] Rootk1t:
are you planning to release the patch sometime?
[Sony Cross-Device General] [NUT]:
Yeah, it's time for a decent update anyway :)
[Sony Cross-Device General] NoSubstitute:
What, if anything, do I have to consider when I follow this process on an Xperia E3? I have done it several times on my Xperia Z.

Sent from my C6603 using Xparent BlueTapatalk 2
[Sony Cross-Device General] [NUT]:
First of all check a stock rom to see if it has /system/bin/chargemon. If not, this rom builder won't work.
[Sony Cross-Device General] NoSubstitute:
Great!

Awesome!

Where in the process can I check to see if such a file exists?

Downloading the update with PCC right now.
[Sony Cross-Device General] NoSubstitute:
Ok, just ran rombuilder and /system/bin shows me a file called "charger_monitor", but not "chargemon". :crying:

---------- Post added at 08:28 PM ---------- Previous post was at 07:51 PM ----------

If it is possible to continue in some way I was also wondering...

I have only ever used TWRP, so can I edit and/or remove some files and thereby not install other recoveries? Or would that be foolish?

The question goes both for this new E3 and my old Z.
[Sony Cross-Device General] NoSubstitute:
I so wish for NUT to post a single line saying:

"No worries, mate. That's just an easy edit of the script."

:)
[Sony Cross-Device General] NoSubstitute:
Hello, [NUT] !

I hope you're doing well.

I was wondering if there is any hope for updates on this guide and/or tools/patches? Also, I'm still hanging on by my fingers, hoping to find a solution to the E3, which apparently has a slightly different system than the Zs.

I just suspended the VM where I got stuck in my last post, with the missing chargemon file. Now I'm heading over to the E3 forum to see if they have made any progress regarding root without BLU.

Regards,

No Substitute

Sent from my C6603 using Xparent BlueTapatalk 2
[Sony Cross-Device General] swagie:
[MENTION=4904057][NUT][/MENTION]

Will you be updating vm when lollipop os out?

So we can can can root, customize and flash for our devices?
[Sony Cross-Device General] Rootk1t:
I also wait for DIY Guide update, but for now you can use PRFCreator.
[Sony Cross-Device General] NexusGTS:
fix the images in the thread please . thank you
[Sony Cross-Device General] apacher:
Make a video about how to make a META-INF for the ROM plss :good:
[Sony Cross-Device General] FcukBloat:
dear [MENTION=3975929]zxz0O0[/MENTION] thanks a lot for the guide for modifying system.ext4

but i have a small problem hope you can help me ;)

my original system.ext4 is about 2.7gb

i removed lot of stuff from it (about 1gb) but after unmounting system. ext4 size is still the same :(

i have also deleted with -rf command the .Trash folder that appeared inside the /vdisk folder but still size is the same.. it's not so easy to trim down size of system.ext4? is there a command i should run to compress/get rid of the blank space i think there is now inside the image after i deleted a lot of stuff?

TIA bye ;)
[Sony Cross-Device General] zxz0O0:
ext4 is an image, no matter how much you delete, it will not change the file size (but you will have more free space). It might get compressed once you add it back to the zip.
[Sony Cross-Device General] FcukBloat:
that's what i guessed... thanks for confirming it! :o

I've already put it back in zip and flashed.. same size as before well not a big problem of course all stuff i removed was not installed.. thanks for your prompt reply mate and congrat again for your great tools ;) so easy now to create pre-rooted flashable FWs now thanks to you! ;) :o :good:
[Sony Cross-Device General] juanpirulo:
mm i dont know if there is a possibility of using another small ext4 image, delete everything and to put inside de debloat system, so you can get small size. cheers
[Sony Cross-Device General] zippy01:
Would really like an update. I have been trying myself for ages now. I even tried to edit the updater script to not include the dual recovery but bootloop everytime :(

Currently resorting to PRFCreator which is not what I wanted to do
[Sony Cross-Device General] zippy01:
Can anyone help me understand why I am getting bootloops even when I edit the script and remove all the necessary recovery files?

EDIT...

Actually I just realised that the zip I had was old even though I downloaded it yesterday.

Can anyone help with which files I need from the new zip for my Xperia Z and I will give it another go

Maybe that is why I kept getting bootloop
[Sony Cross-Device General] zippy01:
Hello, will there be an update for this? I would still rather this method

Thank you
[Sony Cross-Device General] Rootk1t:
http://xdaforums.com/showpost.php?p=57714815&postcount=261
[Sony Cross-Device General] zippy01:
Has it worked for you as I've not had much luck
[Sony Cross-Device General] Rootk1t:
Does it bootloop or what?
[Sony Cross-Device General] zippy01:
It was doing everytime though I've not tried lately if I know it pretty much works out the box now I'll try again
[Sony Cross-Device General] [NUT]:
The problems you encountered before probably failed due to a bug in xzdr, which has been fixed since 2.8.20.
[Sony Cross-Device General] boncaunhaquynhanh:
Thanks. But I have a question.

What the different between rw-r--r-- and rw-r--r--.

I try to delete all wallpapers of sony and replace by new wallpapers.

The old permission of these jpg is rw-r--r--.. And new permission is rw-r--r--

After repack and flash via TWRP , I can't view these wallpapers.

How to change permission from rw-r--r-- to rw-r--r--.

Thanks
[Sony Cross-Device General] [NUT]:
That's the SELinux security context.

You will have to restore that before they can be used.

Search the Web for how.
[Sony Cross-Device General] zippy01:
Don't suppose this script will be updated will it I tried myself but can't get it together ?
[Sony Cross-Device General] Rootk1t:
what's the problem? Did you update flashtool inside VM?
[Sony Cross-Device General] zippy01:
I tried to update the recovery and root files but something is wrong. Does yours work out of the box almost? Would updating flashtool be an issue since I'm only one version behind and I only use it for extracting the .sin?

I would much prefer to use this method other than prfcreator no offence to the dev who created it.

I even tried making my own meta script but that failed also :)

I am concerned with 5.0+ that the rooting method is different files procedure etc which is why I have been trying to edit the script that this uses.
[Sony Cross-Device General] Rootk1t:
I tried to make ROM 5.0.2 with this guide, i got bootloop. But it was where recovery had issues with LP, so i don't know for sure what was the cause of the issue VM or recovery.

Flashtool 0.9.18.6 should work just fine. Also all "my" roms created with this guide prior to LP (4.3-4.4.2-4.4.4) work just fine.
[Sony Cross-Device General] ondrejvaroscak:
Download

Hi, no download links are working ....
[Sony Cross-Device General] [NUT]:
Whoops... The files are still there, just look for them on my website.
[Sony Cross-Device General] ondrejvaroscak:
Ok, could have figured myself :) ok, so you know that direct linking fck..
[Sony Cross-Device General] [NUT]:
Heh, yes, at least now I know I need to update the links B)
[Sony Cross-Device General] ondrejvaroscak:
I am in mood to work on adaptation of you VM to accommodate following:

1. Make the process compatible with latest Sony .546/.580/.200 firmware families (5.1.1 D6603)

2. Update VM to (U)buntu 14.04 LTS and most probably avoid Unity and use Xubuntu/Lubuntu, as there is no added value of Unity in virtualized environment.

Is there anything I would need to take care of, except:

1. DYI Guide folder including your scripts (credited)

2. udev rules

3. Flashtool

any aditional programs/utilities I need to install/configure (except of obviously Java etc.). I think I am able to figure out in process, however your advice can help me to speed up.

Your advice would be of great help.
[Sony Cross-Device General] [NUT]:
You got it all already, I have nothing to add. But be ware you don't start with a very big storage, because it compresses very VERY poorly...

Once you created the VM, please send me a link to put it on my bittorrent server :good:

I used Unity to make it easier to use in case of issues, because I wasn't used to Xubuntu at the time I installed this VM. If I would have to do it again, I would as Xubuntu is now by default desktop version because I personally do not like Unity...

If you make your VM match mine in usage, I will convert the topic to a DevDB thread and won't mind to add you as a collaborator so you can update this topic instead ;)
[Sony Cross-Device General] zippy01:
Since I use Ubuntu anyway would you do an update to the DIY_Guide folder only?
[Sony Cross-Device General] ondrejvaroscak:
I have to get an agreement on that with [MENTION=4904057][NUT][/MENTION] but generally I would like to have full blown Xubuntu_VM and then just DYI_Guide folder with scripts etc + installer script for Debian/Ubuntu that checks and installs required software (Flashtool, Java etc.).

But please be aware that this is WIP and no ETA. I will be over next two weeks in holidays anyway.
[Sony Cross-Device General] Rootk1t:
[MENTION=6351145]ondrejvaroscak[/MENTION]

Any news on DIY Update?
[Sony Cross-Device General] Kizoky:
Is this fully compatible with KK 4.4.2?
[Sony Cross-Device General] Rootk1t:
Yep, if you update all packages. But using PRFCreator is easier.
[Sony Cross-Device General] Hamidreza2010:
I edit my system.ext4 but when i want to repack it get this error:

how can i solve that?
[Sony Cross-Device General] juanpirulo:
Try to get out from vdisk First

CD..

Umount /vdisk

Enviado desde mi C6903 mediante Tapatalk
[Sony Cross-Device General] Hamidreza2010:
I try it

please see picture ;)

i entered Umount /vdisk but get that errore
[Sony Cross-Device General] juanpirulo:
Yes but you are inside the folder you want to umount.

So First get out from vdisk with CD.. Then umount vdisk

Enviado desde mi C6903 mediante Tapatalk
[Sony Cross-Device General] hoan1999:
Can i deodex it then make to system.ext4 ?
[Sony Cross-Device General] [NUT]:
Coming from you my friend that comes as a big compliment :)

If you need me to test risky things on the arc you can always contact me by Google talk bro, it's now a less important phone for me :D
[Sony Cross-Device General] krishter:
Is the Ubuntu host VM image hosted elsewhere? I'm licking my lips waiting to try this out :). If the image is not hosted anywhere else, could you tell me what I need to do on my Linux distro to get the dev environment setup?
[Sony Cross-Device General] [NUT]:
:eek:

I've actually moved it to a BitTorrent seeder as a permanent solution but I forgot to update this OP... Sorry!

Check http://www.fun-industries.nl/xda/ for the vm torrent file.

-EDIT-

I'll update the OP tonight because there are some other links outdated... You can download the vm anyway, I'll create an update package for it soon.
[Sony Cross-Device General] scoobydu:
Would be cool to get the vm too, once you get chance to sort the torrent :)

Edit: Found it ...
[Sony Cross-Device General] [NUT]:
Already sorted: http://nut.xperia-files.com/?dlid=TlVUc0RJWUd1aWRlVk0ucmFy

Just need some time to do that update package...

And to update this OP for that matter :D
[Sony Cross-Device General] [NUT]:
Finally had some time to do a proper update package :)

I've edited the OP to contain the link to the torrent download. I've also included a addendum in one of the reserved posts. The INDEX in the OP will point you to the right one :)

Have fun people!
[Sony Cross-Device General] gregbradley:
I already have a ububtu set up, could you provide a link to just the rom builder scripts please?
[Sony Cross-Device General] [NUT]:
Don't have them separately... Yet. I'll create a package soon.
[Sony Cross-Device General] [NUT]:
Come to think of it, if you download the update package, you will have everything you need too... Just make sure you have functional udev rules and you'll be set :)
[Sony Cross-Device General] gregbradley:
Many thanks, I have done that now and tried using your full VM machine.

Finally, I know you said you were updating this to include the Z1 but so far I have had no luck with mounting the system.img

Is it because flashtool extracts the system.sin as system.elf and not system.ext4?

I have never had this problem before using dsixdas kitchen and my xperia T, but I found your thread here after having this issue, but it does the same with the xperia Z1 firmware..

Dsixdas gave the error of

"Unable to mount, no system/framework folder found"

Yours gives an error similar to

"Cant mount to loop" Or something like that.

Would really love it if you could give me a heads up on how to extract the folder structure so I can work on my own rom.

Thanks
[Sony Cross-Device General] [NUT]:
Rename the .elf to .ext4 and it should work (its a bug).

I'll try to compile a latest flashtool for linux and test it for [MENTION=2807379]Androxyde[/MENTION] to release :)
[Sony Cross-Device General] gregbradley:
I tried that but it didn't work.

However, I have updated flashtool to 0.9.12.1 and now it dumps the system.sin as system.ext4 which works fine in your rombuilder and also in dsixdas when name changed to system.img

Many thanks

previous version I was using was 0.9.11.0
[Sony Cross-Device General] [NUT]:
I know, I did the testing for androxyde today :D
[Sony Cross-Device General] gregbradley:
Thanks, I would hit the thanks button but it seems to have disappeared....
[Sony Cross-Device General] [NUT]:
Rotflol, yah, xda is weird from time to time :D
[Sony Cross-Device General] shehabskull:
Very good :good: but where is the link of download UbuntuHost.vmx ?
[Sony Cross-Device General] [NUT]:
First of all: please edit your post to remove the quote ... that's a bit much for such a small question... :p

Really... It's there!
[Sony Cross-Device General] Oxydeme:
Compatible? ;)

Hi NUT,

Will we be able to use you method with some 4.3 Sony(tm) roms?

Or will it be a bit different?

Thanks in advance,

Oxydeme.
[Sony Cross-Device General] [NUT]:
I was planning on releasing an update package for this too, making sure the base will work fine with the JB4.3 roms.

Give me a few days to prep something.
[Sony Cross-Device General] Oxydeme:
Glad to hear that NUT, as always, you ROCK! :)

EDIT: If you update your guide, may I have your permission to edit the sony rom you posted? or do I have to ask Androxyle? (Sorry if I'm a bit annoying :$)
[Sony Cross-Device General] shehabskull:
hi mate ....

I follow all your instructions and now I have 2 folders : 1- the sony firmware (ftf)

2- DIY guide ... what should I do next ?? should I put the DIY guide files in the ftf or what ?? :confused:
[Sony Cross-Device General] [NUT]:
See this post for your answers :)

If you have any more questions, please do ask :)
[Sony Cross-Device General] [NUT]:
You can release roms built with this guide if you wish. It would be nice to get a bit of credit, but it's not mandatory.

---------------

I've released the JB 4.3 compatible update package, the link is in the OP, the way to update is the same as in the guide post about updating your VM.

It includes Flashtool 0.9.13.0, SuperSU 1.86 and XZDualRecovery 2.7.60.

Have fun people!
[Sony Cross-Device General] `SBR`:
Hi [NUT],

i have converted the Tab Z FTF into flashbale Zip via the VM for 4.3, but it stuck in the Sony Boot logo when i flashed.. did i miss something specific to Tab.

I have changed the recovery files ffrom Tabz to the Updated folder.
[Sony Cross-Device General] [NUT]:
I've discovered the bug causing this...

I'll release a new version of the update package tomorrow.
[Sony Cross-Device General] `SBR`:
your solution worked good.. able to Root 4.3..

Thanks for your help in fixing this

I have posted in tablet Forum and copied your content (With full credits ;))
[Sony Cross-Device General] [NUT]:
I've updated the update 2 package last night, so it's now safe to use.
[Sony Cross-Device General] zippy01:
I have some questions :)

Can I increase the size of the vmware?

How do I copy the files to my Windows desktop?

And if I was to setup a ubuntu boot how easy would it be to setup like you have?

Great guide thank you
[Sony Cross-Device General] [NUT]:
You can increase the size, but that's outside the scope of this guide... look for it using google, many guides to be found for it.

You can drag the files from your VM to your desktop and viceversa, as much as you like :)

This is basically a base version of ubuntu, I only prepped it for easy use on the guide, next to setting up the udev rules file :)
[Sony Cross-Device General] arash74:
Can you please explain a little about udev rules? I have ubuntu on vm from past. So I only downloaded your update for 4.3

I have not send the package to my ubuntu yet, but I was concerned about this udev rules. What is it?

(I'm newbie on ubuntu)