yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] acervenky:
Hey Guys,

First of all this is not a guide to build a rom from source.

Instead of downloading roms made by other users,you can make your own:D

And this is not a guide for NOOBS it is for NEW USERS who don't have enough knowledge to build custom roms.

NOTE : I AM NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE

Things You Need Before Starting :

*7zip/Winrar

*Notepad++

*A Working Brain

Follow each step carefully to get a working rom.

1-First download the .zip file according to your device provided below and extract them.

2-You will get two folders;system and META-INF.

3-Go in system folder and open apps folder.

4-You will find all the system apps here,remove bloatware if necessary.Two Most important files are Home.apk and SystemUI.apk which are faces of your custom rom and without them your rom will be like a pizza without cheese.

5-Replace Home.apk and SystemUI.apk with the one you choose.(You can find plenty of them on XDA,Just keep in mind don't put paid launchers like Apex Launcher Pro as it is not allowed on XDA)

6-You can also replace Browser.apk,Conversations.apk,MusicWidget.apk,SoundEnhancement.apk,Phonesky.apk(There are many themes versions available on XDA),SemcMusic.apk according to your choice.Now you are done with apps.

7-Now go to media folder and replace bootanimation.zip with the one of your choice,you can also add extra ringtones(But I don't recommend this as this makes your rom heavier)

8-Now we are done halfway.Lets head on to build.prop.(Its device specific don't replace it just edit it)You can find build.prop tweaks in next posts.

9-Now go to META-INF/com/google/android and open updater-script with Notepad++(This is what you see while flashing the rom,so keep it short and helpful)

10-Again put this modified folders in a .zip and give your rom a good name.

I recommend to use Devhost for uploading your roms.

And you are ready to open a new thread on XDA for your own Rom:D

And ya,don't forget to test it yourself :cool:

Regards,

acervenky,

XPT

EDIT : I will not upload the .zips(Slow Upload Speeds) but will give you the procedure.
[Sony Xperia P, U, Sola, Go] acervenky:
build.prop Edits

Add these lines at the end of your build.prop to enable the tweaks.

Signal Tweaks.(Don't expect much from these)

# Signal Tweaks
ro.ril.hsxpa=2
ro.ril.gprsclass=10
ro.ril.hep=1
ro.ril.enable.dtm=1
ro.ril.hsdpa.category=10
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=5

Network Tweaks.(They can cause a little difference:D)

# NetSpeed Tweaks
net.tcp.buffersize.default=4096,87380,256960,4096, 16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,163 84,256960

2D Tweaks.(These are must have tweaks)

# Touch Responsiveness
debug.performance.tuning=1
video.accelerate.hw=1

Performance Tweaks.(No Idea)

# Performance Tweaks
ro.kernel.android.checkjni=0
ro.config.nocheckin=1

Happy Editing !!!!!

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] acervenky:
META-INF Folder

Without this file,your rom is not flashable:D

Download : http://d-h.st/vds

Edit the file : META-INF>com>google>android>updater-script With Notepad++

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] acervenky:
How To Pre-Root Your Rom

Download THIS .zip and Extract It.

Add The Files From Folders In The .zip To The Folders Of Your Rom.

And Add These Lines To The Updater-Script In META-INF Folder(Not Needed If You Are Using My META-INF;)) :

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

And Your Rom Will Be Ready To Use.(With Root :good:)

Hope It Helps.

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] acervenky:
Extras

Under Construction:D
[Sony Xperia P, U, Sola, Go] acervenky:
Procedure For Extracting System Files From .ftf

Needed :

Flashtool

WinRar

ext2explore

Steps :

-Download the latest .ftf file for your device.

-Open it using Winrar

-Extract system.sin from the .ftf by using WinRar(Alternative : 7zip)

-Open Flashtool.

-Go to Advanced>Sin Editor And Select the file(system.sin)which you had extracted and click on Dump Data

-The .ext4 file will be created in the same folder in which system.sin was located.

-Open ext2explore.exe(As Admin)and navigate to the folder containing .ext4 file and open it.

-You will now get access to the system files but still they need to be extracted.To extract them from .ext4 right-click on the needed folder and select extract.

-Now you will get the needed folders to cook your own rom:cool:
[Sony Xperia P, U, Sola, Go] Ben36:
Cool. Where are the folder links?

Tapatalked Xperia S
[Sony Xperia P, U, Sola, Go] acervenky:
I will be uploading them soon.

Currently uploading for P.

And I will continue to upload for S,U,Sola,Go,Tipo:D

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] jetaw03:
Thanks! i will try this myself as soon as this guide is complete..
[Sony Xperia P, U, Sola, Go] corsav6:
If I use Root explorer and replace framework apk and home apk and then edit the build prop and do whatever else I want to customise the rom then backup with CWM will I get the same result?

Will others be able to install my backup?

I will try your method as building from source requires programming knowledge.

Thanks for your guide, I see your quite busy around Xperia section so thanks for supporting our devices :D
[Sony Xperia P, U, Sola, Go] Jason Fernandes:
Hope it's your done uploading by next week..... I will try it after my stupid exams... :)
[Sony Xperia P, U, Sola, Go] acervenky:
I am also busy due to my exams.:D

Anyways,I will also upload more bootanimations and systemuis.

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] Divaksh:
How to make a rom Pre Rooted?
[Sony Xperia P, U, Sola, Go] Azyx:
Nice guide! ^^ thanks
[Sony Xperia P, U, Sola, Go] Theonlyzii:
Any updates :confused:
[Sony Xperia P, U, Sola, Go] CiscoX:
+1

Would be nice to know that if is possible. I have seen one pre rooted ftf that i just flashed with flashtool on my Xperia Active for some time ago. :)
[Sony Xperia P, U, Sola, Go] acervenky:
Thanks for your Idea.

I will update the OP shortly :D

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] Theonlyzii:
It would be nice if you also add how to de-odex and implement supercharger :D
[Sony Xperia P, U, Sola, Go] acervenky:
Thread Updated.

Now you guys can start making your own roms.

If you have any problems PM me.

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] Me‎:
Yay finally a way to extract system folder with new ftf thanks!

and for the great tips :)
[Sony Xperia P, U, Sola, Go] acervenky:
Nice to hear that It helped you.

Hope to see a custom rom from you in near future.:D

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] Me‎:
I have one just never got around to testing XD
[Sony Xperia P, U, Sola, Go] neectron:
If flashtool doesn't work when extracting system.sin,try this http://xdaforums.com/showthread.php?t=1834081.
[Sony Xperia P, U, Sola, Go] mrbrunor:
Wow, thanks, i may try this next week :victory:
[Sony Xperia P, U, Sola, Go] Howlin' Wolf:
Bro, absolutely perfect Guide! Love it!

I'll try it when there are some JB.tfts for Sony XU around here...

... or sooner, coz you made me curious ;)

Highlight would be a guide to make ROMs pre-rooted :cyclops: :angel:

Thanks a lot!

---------- Post added at 10:51 PM ---------- Previous post was at 10:22 PM ----------

+1

I've just copied a nandroidbackup to my PC.

If i'd zip that folder i should get the same results, shouldn't I?
[Sony Xperia P, U, Sola, Go] ilgreco112:
Am going to see this as soon as I get a XU (it's cheaper and I don't want to mess with my xp)
[Sony Xperia P, U, Sola, Go] acervenky:
Sure ;)

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] akp.ajinkya:
The files you provided in META-INF,Are they universal?I mean will they work on all devices?

Also,it contains a file named updater script...is this the file according to which apps and other things are installed from system folder?

Also will u provide me a walkthrough for editing updater script?

Thank you in advance.
[Sony Xperia P, U, Sola, Go] ilgreco112:
I can't wait to get a XU:( so I can start playing with it :-o
[Sony Xperia P, U, Sola, Go] acervenky:
Yes The Script Works For SXP|SXU|SXSola and SXGo.(It can also work on other devices ;))

And To Edit Updater Script,Download Notepad++ And Then Open updater-script with Notepad++

Regards,

acervenky,

XPT

:cool:

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] krakerz:
this is Good idea, this will help other members to develop they're own ROM :good:

i just want give another alternative, for copying / extracting from *.ext system

you can use this

ext2fsd + osfmount

usage :

>install ext2fsd and run

>install osfmount and run

>simply mount *.ext* files from osfmount, and tick "mount as removable media" to mount it as flash drive

>you good to go ;)

*sorry i can't put the link, still new members :D, you can search it on google, and it's free
[Sony Xperia P, U, Sola, Go] ilgreco112:
I wanted to ask, to change things on a CM. Zip rom it seems easy But how to do if I only have a FTF ? I want to change Sony's stock. :)
[Sony Xperia P, U, Sola, Go] krakerz:
>open the ftf files using winrar/winzip/7z or simply rename it from *.ftf to *.zip and open it

>extract System*****.sin

>then unpack the *.sin files with flashtools (on 0.9.10.1 , go to > Tools > Sin Editor > open the files > dump data)

>it will create system.ext4, you can extract files using my method (earlier post) or using on first page method :cool:
[Sony Xperia P, U, Sola, Go] ilgreco112:
Tyvm, will see when I come home

:)
[Sony Xperia P, U, Sola, Go] tuananhpt:
How to make custom Rom from Stock Rom

How to make custom Rom from Stock Rom ???
[Sony Xperia P, U, Sola, Go] ilgreco112:
Dude that's exactly what we are talking about on the comments above yours,
[Sony Xperia P, U, Sola, Go] The_0bserver:
Bro thank u for that.U gave the stepping stone that i definitely needed. :) Thanks for that. Sadly i can start trying to get stuff (thats not pre-made by others) only after this (academic) year gets over. :) Still this is one great source. :D
[Sony Xperia P, U, Sola, Go] ilgreco112:
Yeah I'm getting a XU next Friday, new Rom coming soon :D
[Sony Xperia P, U, Sola, Go] XqepX:
AW: [GUIDE][New User Friendly]How To Make Custom Roms(Under Construction)

Thank you soo much! :D You made it possible that on my Sola is now running my own modified Stock ROM!:) Thank you soooooooo much!!:):beer:
[Sony Xperia P, U, Sola, Go] ilgreco112:
Mine will be coming in a while :p
[Sony Xperia P, U, Sola, Go] megablakbar:
Wow I just saw this topic I'll read it and I'll try to make my own rom :D
[Sony Xperia P, U, Sola, Go] acervenky:
Goodluck :good: :highfive:

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] The_0bserver:
Do u know / have access to any resources that may help in producing your own Custom Boot Animation? I don't mean on how to just add a boot.img file . Searching for a way to change the boot animations (and just the boot animation- as in with all the other functions of a downloaded boot animation, but with ur own custom image/animation etc.)?

I hope U've understood what I'm trying to say. I believe I might have beaten around the bush so to speak. :/
[Sony Xperia P, U, Sola, Go] ioang:
can someone give me the link for xperia u meta fin-system you know what im talking about
[Sony Xperia P, U, Sola, Go] Min3r:
The file you're looking for is bootanimation.zip in the /system/media folder ;)

To create a Bootanimation, you obviously need to make animation using frames with Paint or Photoshop :p

Basically, the zip file contains folders like A,B.etc which contain different parts of your animation (ie, the frames you make )

You can loop between these folders any way you like ;) You just need atleast 1 folder though.

So, lets say you have 3 folders, A, B & C. You place the relevant looping boot animations in them.

Now, you create a file desc.txt and add Content to it. Here's a sample :

The first line contains the resolution of the phone as well as the Frames per second of the boot animation. Ie, for Sola & U,the resolution is 480x854. The FPS, you can decide, basically, FPS = no. of pictures that are displayed in a second. If you include 120 files in a folder, and FPS is 12, One loop will take (120/12) = 10 seconds.

The next few lines describe the order of looping

p 1 0 A - This tells the phone to display all the images in A as a loop '1' time and to run the next command after '0' seconds. If you set the loop no. (1st parameter) to 3,then 3 times, A will be displayed.

After that, next command is p 1 4 B. With this, the loop displays all the images of folder B once (1) and waits 4 seconds before starting the next Command.

The third command will go with 3rd folder showing it 2 times and a 3 second waiting time between each iteration of the loop.

And final command, the '0' in loop iteration means its Infinite,ie, it will keep repeating itself till Booting is complete ;) Always ideal to make the last loop Infinite :D

Then, save the desc.txt and make a zip with the folders A,B,C.etc and the file desc.txt in it.Then save the zip as bootanimation.zip in /system/media folder and set permission 644 ;) Then reboot and Enjoy Boot Animations :D

Just note : the pictures in each folder are shown in alphabetical order. So its best to name like 001,002,003.etc to be sure you dont make mistakes :D Hope you like it and waiting for new boot animations from you ;)

Cheers

META-INF, its something you create for installing the rom mate :p Go to my thread about craeting Flashable zips and you'll get an idea how to make your own :D

And system is the base directory of the ROM you make. So extract the system folder from Stock FTF and then, make your mods ;)

Hope it helps :D

Cheers
[Sony Xperia P, U, Sola, Go] The_0bserver:
Thanks (already hit the thanks button.) :D Though I don't think anyone would be interested in the BootAnimations that i create. i was just Hoping to add some FanArt that I've done (Naruto/random anime characters etc) that I've done, instead of the Free Xperia project one which I'm seeing now (and am bored of). I don't think anyone would be interested in it though. :(

Still, I will try to make some. Thanks for ur help again. :)
[Sony Xperia P, U, Sola, Go] Min3r:
You'd be surprised how many anime characters there are ;) Best of luck with them :D
[Sony Xperia P, U, Sola, Go] OverdiveKill:
can i brick my phone with this?
[Sony Xperia P, U, Sola, Go] kelechi96:
You can brick your phone with anything if you try hard enough.
[Sony Xperia P, U, Sola, Go] OverdiveKill:
what do you mean by hard enough...? that its difficult to brick it?
[Sony Xperia P, U, Sola, Go] ChongWiz:
Nice guide bro. Ideal for noobs really. Really appreciate that you shared it. I respect you and your mods and roms, but I don't aggree with "Post your rom on xda". Too many rethemed roms here. I made lots of them too, but none were special enough to share it. Maybe a full Xperia T skinned goodness that is fast as lightning without anything other than Xperia stuff?(I use it currently). Only nyan. Bytheway thanks for the ext2explore app! With respect - CWiz. ;)
[Sony Xperia P, U, Sola, Go] ioang:
I encourage the people to post their roms so they can learn developing and maybe in the future they cn give us help .None of us knows everything.

Off soory for my stupid english but to schoold i dont go
[Sony Xperia P, U, Sola, Go] ChongWiz:
I agree, but people should share their first tries made using this guide in Themes and apps, or general, but not in dev section.
[Sony Xperia P, U, Sola, Go] The_0bserver:
I don't that would work as the Themes and apps section is for exactly that.. Themes and apps. U would be sharing ROMs which are supposed to be in dev forums only. If something aint special, it most prolly will be relegated to the later pages soon any way.
[Sony Xperia P, U, Sola, Go] :
Dafuq??????

No offense but I saw you posted in 3 topics like that.

Ur keyboard's spoilt dude??
[Sony Xperia P, U, Sola, Go] XqepX:
Can you please tell us how to pre root a ROM? or special a Stock ROM? Do we only have to paste some files into /system/xxx or is there more to do?:confused:I think many people will appreciate it :)
[Sony Xperia P, U, Sola, Go] acervenky:
Pre-Rooting Guided Added.Check Post #4 ;)

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] Min3r:
Venky, you forgot to include a Root Manager ;) You also need to add Superuser, SuperSU or any other root manager else Root access isnt regulated :p
[Sony Xperia P, U, Sola, Go] acervenky:
Check The .zip Properly,SuperUser.apk Is Present In app/ Folder :confused:

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] Min3r:
I meant permissions mate ;) Its not necessary if you do a recursive permission set on system/app though :p
[Sony Xperia P, U, Sola, Go] acervenky:
Its For New Users.And In Your First Post You Meant Something Different :p

Regards,

acervenky,

XPT
[Sony Xperia P, U, Sola, Go] MetalSlut:
Thanks for this tutorial. ;)
[Sony Xperia P, U, Sola, Go] rafix96:
Odp: [GUIDE][New User Friendly]How To Make Custom Roms(Under Construction)

Thanks bro!

Wysyłane z mojego Xperia U za pomocą Tapatalk 2
[Galaxy S III General] testadeferro:
I´m wondering how fast the S3 was after using S2 for long time.

S2 had reading sd card speeds of 100 mb/s.

With my S3 it goes between 35 and 45 mb/s. That´s weird...

Strangely enough, benchmarking my S3 and it doesn´t matter wich rom or kernel I use I get always the same speed.

For the rom generaly and for the sd card speed.

In antutu I only get between 12000 and 12300 (allways 1.4GHZ), no matter if I use stock roms/ stock kernels syah, speed mod or others.

In CM10 also the same.

I´ve large experience in benchmarking and android tunning with other devices, and with some tweaks here and there I was able allways to get different values with other phones.

Is somehow the S3 locked in some way?
[Galaxy S III General] Simonetti2011:
Card speed won't vary with firmware. No matter what firmware you put in the phone, flash memory and SD card I/O is extremely slow compared to actual RAM. It is a hardware limitation, not a software limitation.

Having a Class 10 SD card helps a bit (as opposed to a Class 4).

Now to the benchmark issue:

None of the current benchmark tools are adequate to the S III. They are meant for single-core devices, and a quad-core CPU is an entirely different game.

Besides, no matter how much you overclock the phone and still keep it within a safe margin, there are other aspects that limit the result and which you cannot change. I/O is one of them. The inability of the benchmark tool to work with threads and paralel execution is another.

So, my advise is: forget about benchmarks: they are IMO utterly useless.
[Galaxy S III General] testadeferro:
I mean the internal sd card not the external. I find it compared with the s2 very slow.
[Galaxy S III General] earthman5678:
Mine read close to 100mb/sec.
[Galaxy S III General] testadeferro:
Very strange I never came up 50...
[Galaxy S III General] chrcol:
The s3 has dire i/o speed.

I have been doing tests all night to find out why my s2 is so much faster than the s3 and right now I See it as a combination of 2 things.

the s3 has much higher ram demands due to the higher resolution (and also the s3 tw roms are more bloated than s2 tw roms). (meaning less free ram)

secondly the i/o performance is worse on rom memory. On the s2 it has a internal sdcard for storage and dedicated rom memory, the s3 only has the internal sdcard which is also used for its rom. This dedicated rom memory on the s2 is way faster than the internal sdcard on the s3.

I also have a s3 mini here now which is also snappier than the s3. Again it uses way less ram than the s3 so more free ram for caching etc. but not as low ram usage as the s2. The s3 uses its intenral sdcard for rom like the s3 (so shares the same cost cutting as the s3) so suffers from the same low io speed.

free ram on tw fresh install.

s2 - 480meg

s3 mini - 412meg

s3 - 210 meg (yes ouch)

time to load widgets tab on tw launcher first time uncached.

s2 - 0.3 seconds

s3 mini - 1.8 seconds

s3 - 2.4 seconds

apps stay cached much longer on the s3 mini over the s3 which hides the poro i/o performance better.

I am curious if they fixed the i/o issue on the s4. But its easy to see why the s3 lte and s4 got given 2 gig of ram now.

This makes a mockery of those reviews that called the s3 mini underpowered, since the s3 mini has a smaller screen to power than the s3 as well as a smaller less bloated rom, meaning the s3 is more underpowered than the s3 mini. on aosp based roms the s3 is faster than the mini but the s2 remains faster than both.
[Galaxy S III General] b-eock:
That'd be wrong. They all have an Internal Nand chip as the phones memory. No dedicated memory and then an actual SD card as the internal. Its all the same. Its all one chip. And the internal card usually has better performance than the external one.
[Galaxy S III General] testadeferro:
I dont know exactly how it works but I have s2 s3 and s4 and s2 is faster on ram (only on read/write) strange anywau. Makes sense what the other user sayed.
[Galaxy S III General] xclub_101:
I believe you are seriously confusing things here - the internal nand is very likely the same.

That being said the amount of free RAM is very important. Also on S2 you might see the external microSD (with certain ROMs) as UMS instead of MTP (which is the normal one in S3 - but there is UMS with rooted RONMs) - Universal Mass Storage can be a huge lot faster since it is "exclusive in block-device mode", while MTP is shared in a file-mode style.
[Galaxy S III General] testadeferro:
Comparing s2 with s4 sd card test in antutu the diference is not great 345 s4 250 s2. Maybe processor is kicking things and memory is same?
[Galaxy S III General] b-eock:
Well RAM is not the same as the Internal Memory. RAM is RAM. And it's dedicated on every phone.
[Galaxy S III General] chrcol:
you are right in the sense I cant be sure that the onboard storage used for s2's rom is faster than the s3, it could be due to the software implementation or other reason.

But certianly most of the i/o related functions on the s2 are a lot faster than my s3. The s3 only is on par (or faster) when it hasnt got i/o to do such as loading a cached app or not having to write anything.

Im still working on the performance gulf as the gap is huge. Surely others would have noticed by now if it was such a big gap? hence I am still trying to treat it as some kind of config/kernel/rom issue.

on benchmark apps my s3 beats the s2 shame its not the same in real world performance. My s3 is also beating other s3 scores I have seen submitted.

---------- Post added at 08:27 PM ---------- Previous post was at 08:16 PM ----------

on my s3 the internall sdcard has space partitioned of for the rom as you said,.

not the case on my s2. or if it is the case on the s2 then the sdcard is bigger than 16gig.
[Galaxy S III General] testadeferro:
I agree with you. S2 and s3 roms are more or less same size. And after install you get a lot more space in sd card. S4 as same prob. After rom install you have only 9 gis free!!!
[Galaxy S III General] b-eock:
Its a 16 GB Nand chip. Partitioned for the ROM size. that's why you have the different sized space available to the user. As the ROM gets bigger, less and less space is available to the user.
[Galaxy S III General] chrcol:
if adding up space for user, cache, rom, on the s2 its bigger than 16 gig.

on the s3 it equals 16 gig.

conclusion?

on s2 rom is not on internal sdcard.

s3

1 gig cache

1.5 gig system

11.4 gig data + media

total useable space approx 14 gig.

s2

100 meg cache

500 meg system

2 gig data

12.1 gig media

total useable space approx 14.6 gig.

expected useable space on a 16gig sdcard 14gig. so where is this 0.6 from on my s2?