STOCK ROM (tar file to zip file) - XDA-University

If someone can teach me how convert the rom.... I really appreciate it.

Use this method..
rizal2105 said:
If someone can teach me how convert the rom.... I really appreciate it.
Click to expand...
Click to collapse
Download a valid update.zip to
use as a template - for example,
my CyanogenMod 0.7.
Extract the zip to a new folder and
rename it - let's call the folder
updatezip .
Inside the updatezip folder, delete
the system folder and boot.img
file (as these are the
CyanogenMod files that you don't
want).
For the ROM you want to convert,
extract the contents of its
system.rfs image to a new folder
called system.
Copy this new system folder to the
updatezip folder.
Copy the boot.img file from your
ROM to the updatezip folder.
Re-zip the contents of the
updatezip folder (but not the
updatezip folder itself). If you see
warnings about symlinks not
being added, don't worry - we
don't want to add them anyway.
You need to have some Linux shell
experience in order to do this. You
can't do it from Windows.

rizal2105 said:
If someone can teach me how convert the rom.... I really appreciate it.
Click to expand...
Click to collapse
Use dsxida kitchen
Search about it.
Sent from my Nexus 5 using Tapatalk 2

Thanks for to all of your concerns. I really appreciated.

@sangalgojoe

Thanks Dude???

thanks for this i was seraching for this

Related

I Need Helping Making A Custom update.zip

So I guess my question is, "Can anyone help me?"
I used custom ringtones, and I don't like using them from the SD card, it creates lag, takes longer to load the ringtone, etc, so I keep them on my /system/media folder. Normally to accomplish this, when I install a new ROM update, I edit it and resign it, with my media folder, rather than the ROM's.
My predicament however, is that I don't know how to change the file structure for the update, I know there are files in the update that say, this and this folder exist, where this goes, etc. This is what I don't know how to do.
All I need the update to do is contain the media (/system/media) folder, so I can just add all my ringtones and notifications to this update, and flash it after I flash whatever update/rom, etc, instead of always having to be at my computer to create a custom version of every rom I use.
Could anyone please care to help? I'd be ever grateful.
You can use the attached file.
Just edit the files in the ROM
zip it
put the zipped ROM in the same folder as the attached files
run sign.bat
FLASH
ID# said:
You can use the attached file.
Just edit the files in the ROM
zip it
put the zipped ROM in the same folder as the attached files
run sign.bat
FLASH
Click to expand...
Click to collapse
is this just to be used for signing? i already know how to sign files. i need someone to edit w/e files are inside the rom that tell its structure (this folder exists, and gets flashed here, this folder goes here, etc). i cant just take a cm rom and delete everything i dont need then flash it. it will get errors in recovery.
Make a folder called media in the root of your update, and create the proper descending folders in media (i.e. audio/ringtones, etc). Place your notifications/ringtones/alarms etc in the proper folders. (I am sure you understand this already)
Open your update-script file for the update and add the line
Code:
copy_dir PACKAGE:media SYSTEM:media
That should do it.
Note that if in the update-script you already have an entire system folder being copied over via
Code:
copy_dir PACKAGE:system SYSTEM:
then you need only add the folder media to the folder /system in the update.
cloverdale said:
Make a folder called media in the root of your update, and create the proper descending folders in media (i.e. audio/ringtones, etc). Place your notifications/ringtones/alarms etc in the proper folders. (I am sure you understand this already)
Open your update-script file for the update and add the line
Code:
copy_dir PACKAGE:media SYSTEM:media
That should do it.
Note that if in the update-script you already have an entire system folder being copied over via
Code:
copy_dir PACKAGE:system SYSTEM:
then you need only add the folder media to the folder /system in the update.
Click to expand...
Click to collapse
Thanks man, but my buddy actually just helped me out with this, but yeah thats exactly what I needed to know. Thanks a ton mate

[Q] I want your help.......?

hi
I have original 2.1 (eclair mod ) installed in my milestone
and i want to customize it ( change status bar, add and remove apps.......)
without installing new custom rom.
so can any help me how to do this ?
thanks in advance
i use 7-Zip to open .apk then you can edit/replace file in apk file
to change or edit .9.png file you need other program like 9patch or draw9patch to save in good format.
the main file to edit is framework-res.apk practically all theme is in that file
all system file does not need signing but all other should be sign before you put back in phone and don't forget to zipaling all file that you touch/edit.
many tutorial are available on the net on how to theme android for more in deep detail.
thanks a lot
I'll try
one more thing please
how to extract the current rom that i am using it and put it into update.zip
like cm6 so i can modify it ( like i want in the previous thread )
thanks in advance
hearts king101 said:
thanks a lot
I'll try
one more thing please
how to extract the current rom that i am using it and put it into update.zip
like cm6 so i can modify it ( like i want in the previous thread )
thanks in advance
Click to expand...
Click to collapse
well first do a nandroid backup of your rom then copy to pc, now extract system.img with unyaffs.
then you have all system file of your rom to play with.
after all your change copy file to sdcard/openrecovery/update/test-update-nosign.zip, don't forget to remove babble
i am using OpenRecovery_v1_46
hope it help
HO!NO! said:
well first do a nandroid backup of your rom then copy to pc, now extract system.img with unyaffs.
then you have all system file of your rom to play with.
after all your change copy file to sdcard/openrecovery/update/test-update-nosign.zip, don't forget to remove babble
i am using OpenRecovery_v1_46
hope it help
Click to expand...
Click to collapse
I did not understand the red part
if it's a program please upload it
if it's not can you tell me what is it?
thank you for your reply
unyaffs is a program to extract files from a yaffs file system image
google it you will find it for sure
I'm so sorry
i found it but i have no idea how to use it
sorry again
hearts king101 said:
I'm so sorry
i found it but i have no idea how to use it
sorry again
Click to expand...
Click to collapse
look for unyaffs.exe
then in a cmd windows type: unyaffs system.img
thank you so much
I've done it and i hope it works
but regarding the nandroid backup there are another files like
boot,bpsw,data.img........
are these files important in making custom rom?
thanks again

[Q] how do i create a clockwork flashable zip?

recently i tried to replace the kernel that came with a version of Phoenix with an updated kernel before flashing, but it did not work out. I simply extracted the original, replaced the zimage, and created a new zip file with the new kernel in the rom, using windows to package the zip. is this what i should do, or is it more complex than this? the flash failed.
Don't extract the rom zip. Use 7zip or similar and open archive, delete the zimage then drag the other kernel zimage in there. Or just flash the rom as is and then flash the kernel.
newter55 said:
Don't extract the rom zip. Use 7zip or similar and open archive, delete the zimage then drag the other kernel zimage in there. Or just flash the rom as is and then flash the kernel.
Click to expand...
Click to collapse
thanks! that makes sense. can i just do what you said using windows explorer?
7zip is free and handles many more file extension types.
Install it then right click on the file in windows explorer, select 7 zip, then open archive. This allows you to make changes without actually extracting the entire file.
newter55 said:
7zip is free and handles many more file extension types.
Click to expand...
Click to collapse
yes i know, but when just dealing with a zip file, can i use windows explorer to delete contents inside the zip and replace them?
You are too quick....edited my post above
newter55 said:
You are too quick....edited my post above
Click to expand...
Click to collapse
so when i double click on a zip file in windows explorer, and it opens it as if it were just another folder, can i not replace stuff directly in windows explorer where im at?
That extracts everything and you may have issues after zipping it back up
newter55 said:
That extracts everything and you may have issues after zipping it back up
Click to expand...
Click to collapse
in windows explorer, you can right click and select extract files, but when you double click the zip it appears that it is allowing you to edit the contents without completely unzipping. am i wrong in thinking this?
Perhaps you can do it that way......i just always used 7zip. You will have to try it and see.
newter55 said:
Perhaps you can do it that way......i just always used 7zip. You will have to try it and see.
Click to expand...
Click to collapse
alright, thanks bud =D
I am using winzip. When I right click the zip file it gives me the option to "open" with winzip. When I do it shows me files like windows does. So my question is can I use winzip to replace the file and then close it?
winzip works as well

[GUIDE][TUT]::Modifying & Making Your Own Custom Roms::(New Method)

This is a detailed tutorial about modifying or making your own custom roms....but not as regular method... It is a new method...
So...lets start....
In this Guide...you will come to know how to--
Modifying rom..
Adding apps and removing..
Changing bootanimation, rom's name, fonts, ringtones...etc.
A new and easy method to make the rom....
::Requirements::
Galaxy Mini..
A windows PC.
Some basic knowledge..
Time and Patience(most imp)
::Important Tools::
7zip or any other zip manager>>Download Here<<
Update Zip Packager>>Download Here<<
Notepad++ >>Download Here<<
Dsixda's Kitchen..(OPTIONAL)..>>XDA Link<<
::About "BaseRom".zip::
Now, suppose, your base rom is CyanogenMod7.zip...
So...when u will extract that zip...u will see there...
META-INF (Folder)
system (Folder)
boot.img
META-INF :
This folder contains the files which are related to your recovery....in simple words...these files guide your recovery to flash zip, set permissions and some other things...
So...the change that we want here is to add the text that our recovery shows while flashing the rom...look in the extras for the tut...
boot.img :
This file contains Kernel of ur rom....and it also contains splash screen of ur rom....which u can edit...!! Look in extras..
NOW, the main thing..
::Main Tutorial::
Download your base rom and flash it....(without editing anything).
Flash Gapps..
Flash some other material such as Bravia Engine, Audio Enhancements, Scripts, Tweaks, etc
Flash each n every thing that you want in your rom...
Flash any theming material..which u want in ur rom
If you are modifying some system apps such as phone.apk, systemui.apk, framework-res.apk....then modify them one by one and flash them..
When you are done your theming, tweaking, and rest of the things...(now, you are running your rom having your desired theme, scripts, tweaks...)
Now....go to CWM recovery and do a Nandroid backup..
After the backup is completed...locate to the folder in sd-card where the backup file is created..(SD-Card>clockworkmod>backup>.....)
In this "backup" folder...you will see a folder named as the date when you have taken the backup..
In that folder...you will see a file - system.ext4.tar.
Copy that system.ext4.tar file in your PC...
Extract the file...you will see a folder - system
Now, this "system" folder is your Rom's system folder.. having all scripts, tweaks and theming...
Just delete the folder "lost+found" in that system folder and take this folder to the folder where your META-INF and boot.img are...
IMPORTANT:You have to delete "xbin" folder from the extracted system folder and then u have to copy and paste the original xbin folder to that folder..
::Extras::
Editing build.prop :
Locate to the system folder....open build.prop and edit it as you want by adding lines to it...refer this link...
Adding and Removing Apps :
Under system>>app folder copy the apps that you want to add to your rom...also remove the apps that you want...but click here to know the list of apps that can be removed...
Adding UI print to the meta-inf :
Locate to the file updater-script (META-INF>com>google>android>updater-script).
Open the file updater-script with Notepad++...
Scroll down to the last line of the matter...
Copy and paste the following code exactly below the last line
ui_print("Have A Nice Day");
Click to expand...
Click to collapse
You should type your own desired text at the place of Have A Nice Day..(with "....")
Done!!
After u have done....leave the META-INF folder as it is....for now..
Editing Splash Screen :
Extract the boot.img by using dsixda's kitchen....it is very easy...
After that....refer to this LINK for editing boot splash screen......and then repack the boot.img again using dsixda's kitchen
Editing boot animation of rom :
Download your desired bootanimation.zip.
Rename it "bootanimation.zip".
Now, locate to the folder system>media
You will see a file bootanimation.zip there..
Replace that file with your desired boot animation..(renamed)..
Done!!
Adding ringtones :
Take your ringtone file...it should be in .ogg format..If not then convert it to .ogg..
Locate to the folder system>media>audio>ringtones>
Copy and paste your .ogg files here in ringtones folder..
You can also change notifications, alarm and UI tones like this..
Changing the Fonts :
Take your desired font.ttf file and rename it as DroidSans.ttf..
Locate to the folder system>fonts>
Now, replace the file DroidSans.ttf with your desired DoridSans.ttf...
To change the lock screen clock font...replace the Clocktopia.ttf with your desired one..(rename first)..
Changing the ROM's name :
Note: It will be shown in settings>about phone>
Open build.prop with Notepad++
Find the line-
ro.cm.version="Base rom's name"
Click to expand...
Click to collapse
Type your rom's name instead of "Base rom's name"..
Save..
Done!!
Theming Your Rom :
Refer to the following links for theming guides-
http://forum.xda-developers.com/showthread.php?t=1422116
http://forum.xda-developers.com/showthread.php?t=916814
http://forum.xda-developers.com/showthread.php?t=1342895
http://forum.xda-developers.com/showthread.php?t=821638
http://forum.xda-developers.com/showthread.php?t=1469987
Now you have your MODIFIED : -
META-INF (folder)
system (folder)
boot.img
::Creating your ROM.zip::
Extract the provided UpdateZipPackager.zip
You will see->>placehere(folder)
>>others(folder)
>>script.bat
Now, copy your modified META-INF, system and boot.img in the folder "placehere" in UpdateZipPackager..
Run the script.bat in UpdateZipPackager..
It will ask something...type "n" and press enter..
Now, you will see a list in the script window...
Choose option 2 and press enter..
It will create an update.zip...
This is your roms zip..
Flash your rom and upload it to XDA..!!! Enjoy..!!
Plz...press thanks if I helped you with this guide...
-::Reserved::-
-:::Reserved:::-
-::::Reserved::::-
-:Reserved:-
nice guide dude!
gonna try this wen i m free from my school homeworks!
Sent from my GT-S5570 using Tapatalk 2
ronakmachhi said:
nice guide dude!
gonna try this wen i m free from my school homeworks!
Sent from my GT-S5570 using Tapatalk 2
Click to expand...
Click to collapse
Ok..bro..but...
I have forgot that word "homework" from...last year...lol...
oj_buddy said:
Ok..bro..but...
I have forgot that word "homework" from...last year...lol...
Click to expand...
Click to collapse
bt unfortunately i ll have to concentrate on that as i m in 12th grade-science stream!
Sent from my GT-S5570 using Tapatalk 2
Great tutorial OJ.....
This should help many who want to create their own roms, but I also fear xda will now get flooded with themed or modified roms.
thats an awesome tutorial buddy
Thanks a lot
-Rik(Rittik)
Greats,, its fast to make a custom rom
all app data will be in the rom that we have creat?????causs i don't want my sms and other thing to be in the rom that i will make.....pleazzz anwers....
lackhoo said:
all app data will be in the rom that we have creat?????causs i don't want my sms and other thing to be in the rom that i will make.....pleazzz anwers....
Click to expand...
Click to collapse
NO, it won't be there.... ALl your apps and data will not be in this rom as we've not included the data folder data.ext4.tar (which is the one to store all your data).
SO, don't worry much about it.
all app data will be in the rom that we have creat?????causs i don't want my sms and other thing to be in the rom that i will make.....pleazzz anwers....
Click to expand...
Click to collapse
Use titanium Backup to backup your apps and Some SMS backup app from market...many of them are available..Then after installing neW ROM just restore
em..thats how i do it
easy and simple
A problem i am facing is..i have created around 2-3 update.zip like the way mentioned above...following every procedure...but while Installing througg CWM it says...Installation aborted
-Rik(Rittik)
yagya said:
Great tutorial OJ.....
This should help many who want to create their own roms, but I also fear xda will now get flooded with themed or modified roms.
Click to expand...
Click to collapse
Thanks man...
But...r u serious yagya..?? Only source builds..???... how do you know it..??
Sent from my GT-S5570 using Tapatalk
Rittik said:
thats an awesome tutorial buddy
Thanks a lot
-Rik(Rittik)
Click to expand...
Click to collapse
Thanks...
Sent from my GT-S5570 using Tapatalk
Rittik said:
Use titanium Backup to backup your apps and Some SMS backup app from market...many of them are available..Then after installing neW ROM just restore
em..thats how i do it
easy and simple
A problem i am facing is..i have created around 2-3 update.zip like the way mentioned above...following every procedure...but while Installing througg CWM it says...Installation aborted
-Rik(Rittik)
Click to expand...
Click to collapse
Check your framework-res.apk for errors...as well as...check your meta-inf...try with an unedited meta-inf...and also..dont forget to replace that xbin folder with the original one...from base rom...also delete lost + found folder taken from system.ext4.tar ...try everything freshly..dont make anything wrong in update zip packager..in options selection...u will surely get success..
Sent from my GT-S5570 using Tapatalk
After I did the nandroid backup and went my backup folder, I only saw a "system.img" file inside the other folder - no "system.ext4.tar" ...what should I do in this case?
Oj-buddy, I am trying to follow your guide to make a custom ROM, but I find myself in a spot. You said that after I do the nanadroid backup, I'm supposed to go to: sdcard/clockworkmod/backup/(dated folder which contains my rom) where I will see "system.ext4.tar", but that's not what I see ;these are the files I see: android_ secure.img, boot.img, cache.img, data.img, nandroid.md5, recovery.img, sd-ext.img, system.img.....what should I do at this point?
jayrome876 said:
After I did the nandroid backup and went my backup folder, I only saw a "system.img" file inside the other folder - no "system.ext4.tar" ...what should I do in this case?
Click to expand...
Click to collapse
You should use latest CWM recovery for it.....
or you can also extract system.img with magicISO tool...
both system.img and system.ext4.tar are same files..

Tweaking rom - begginer question ;)

Hi!
Since xda-univeristy arised i thought it would be nice to learn something about green droid
I am going to learn about tweaking and theming:and here comes dozens of my questions:
1. I have downloaded Official ics repack by N00BY0815
2. I extracted it and i have:
2 folders ( META-INF and System)
2 files boot.ing and system.img
How can i extract this system.img ?
I tried to use 7zip but it says that" it cannot open it as archive"
Thanks in advance and please for leniency
it can be opened with Diskinternals Linux Reader. if not. use "sgs2toext4.jar" to convert it to .img.ext4 and then open it
Nihiliu said:
Hi!
Since xda-univeristy arised i thought it would be nice to learn something about green droid
I am going to learn about tweaking and theming:and here comes dozens of my questions:
1. I have downloaded Official ics repack by N00BY0815
2. I extracted it and i have:
2 folders ( META-INF and System)
2 files boot.ing and system.img
How can i extract this system.img ?
I tried to use 7zip but it says that" it cannot open it as archive"
Thanks in advance and please for leniency
Click to expand...
Click to collapse
Everything for theming is in the System folder. All the APK's(Applications) Boot.img is probably the recovery image it installs. But to theme you would need to decompile the apks in the system folder
Everythink was in system folder in gingerbread, in this system folder i have only app folder with su.apk and bin folder with su file.
So files i need are in system.img
@broodplank1337 thanks for help, program works well, now i can begin
But first only one question, now i can extract files, but can i pack them using same tool ?
Nihiliu said:
Everythink was in system folder in gingerbread, in this system folder i have only app folder with su.apk and bin folder with su file.
So files i need are in system.img
@broodplank1337 thanks for help, program works well, now i can begin
But first only one question, now i can extract files, but can i pack them using same tool ?
Click to expand...
Click to collapse
I don't know much about S2 but can't you just use 7zip to make it an archive and flash it through rrecovery?
"Anger and intolerance are the enemies of correct understanding." -Mahatma Gandhi
Nihiliu said:
How can i extract this system.img ?
Click to expand...
Click to collapse
Hi. You can use dsixda's Android Kitchen for that.
Nihiliu said:
Everythink was in system folder in gingerbread, in this system folder i have only app folder with su.apk and bin folder with su file.
So files i need are in system.img
@broodplank1337 thanks for help, program works well, now i can begin
But first only one question, now i can extract files, but can i pack them using same tool ?
Click to expand...
Click to collapse
You can pack them with the android kitchen, install the zip, then you do this in terminal emulator to make the system.img file:
Code:
su
cat proc/mounts
now look up the system partition, in my case it's mmcblk0p14
Code:
dd if=/dev/block/mmcblk0p14 of=/sdcard/system.img BS=4096
This will dump the system partition to system.img (for example when making an odin image)

Categories

Resources