[GUIDE] Creating Rom Update.zip - Galaxy Note II Android Development

Hello Guys,This is an updated guide for creating an update.zip for your rom.I know that there are a few guides out there but i think my guide is a bit simpler and straight forward.
Step 1:
Download AutoUpdateCreator_V1.1
Step 2:Extract file and click on "CreateUpdateZip.exe"
Step 3: You can either drag your created zip file or press ENTER (If you did not compress your rom yet)
Step 4:Now drag & drop your ROM Folder in the program
**NOTE** Structure of ROM folder should be as follows:
ROM FOLDER(Containing)
---System
---Data
Note: If you get an error it means that your ROM Structure is incorrect!!)
Step 5:Now that everything is done,zip is signed go to GENERATED ZIPS in autoupdatecreator folder.
Step 6:Copy your update-script in your generated zip file at /META-INF/COM/GOOGLE/ANDROID/
(Do NOT replace Update-binary file!)
Other Notes:
(Update Script must be created,there are templates available)
(Editing Update Script with normal windows text editor will cause Status 6 Error)
(Adding an incorrect or non existing file in update-script will also give you a Status 6 Error)
Cheers

Thanx for work.means now i can convert .tar files into zip?and can flash from cell

not working in last cwm
switch to Edify error

Hey man, i guess you can help me. I have a samsung double time and it can't be flashed via odin, my wifi and all connections, except mobile data are not working. So i have the .tar firmware extracted. Is there any way to create an update.zip file from this firmware.

Stavr0s91i said:
Hello Guys,This is an updated guide for creating an update.zip for your rom.I know that there are a few guides out there but i think my guide is a bit simpler and straight forward.
Step 1:
Download AutoUpdateCreator_V1.1
Step 2:Extract file and click on "CreateUpdateZip.exe"
Step 3: You can either drag your created zip file or press ENTER (If you did not compress your rom yet)
Step 4:Now drag & drop your ROM Folder in the program
**NOTE** Structure of ROM folder should be as follows:
ROM FOLDER(Containing)
---System
---Data
Note: If you get an error it means that your ROM Structure is incorrect!!)
Step 5:Now that everything is done,zip is signed go to GENERATED ZIPS in autoupdatecreator folder.
Step 6:Copy your update-script in your generated zip file at /META-INF/COM/GOOGLE/ANDROID/
(Do NOT replace Update-binary file!)
Other Notes:
(Update Script must be created,there are templates available)
(Editing Update Script with normal windows text editor will cause Status 6 Error)
(Adding an incorrect or non existing file in update-script will also give you a Status 6 Error)
Cheers
Click to expand...
Click to collapse
The Download link is offline

Related

[GUIDE] Creating custom 2nd boot logo in Windows (replaces G tablet logo)

Hi All,
Long time reader, first time poster. Long story short I picked my Gtab up after a long hiatus and wanted to load a custom boot logo to replace the g-tablet logo. Unfortunately I coudlnt find any posts for windows-only users. I found 2 sites with really helpful guides and put 2 n 2 together. I was stoked when my custom logo worked! Credit goes out to Igorv at Slatedroid and LeslieAnn from Android Central forums for their well detailed guides. Special thanks goes out to rajeevvp for compiling the cwm script.
Running Flashback ROM on BL 1.2.
Standard Disclaimer:
Use at your own risk. Im not responsible for what happens to your tablet. Nor do I know how this will affect your other apps. Its highly recommended you do a back up.
Required:
- Gtablet
- 1024x600 pixel image of choice
- Update.zip from Igorv at Slatedroid
- boot_screen_logo_creation_package.rar from LeslieAnn at Android Central
- CWM experience
- Command Prompt experience
This was created for Viewsonic G-tablet. It will replace 2nd boot logo (logo after birds).
Using Clockworkmod flash "update.zip" as you would with a ROM. It will only replace logo.
A. Download one of the Gtablet.zip file from Igorv (See Link 1 below)
B. Unpack any one of the update.zip files. You should have subfolders META-INF and tmp folders. You will replace the initlogo.rle in the tmp folder later.
C. Choose or Create any image file you want to replace the logo with. Make sure the dimensions are 1024x600 pixels
D. Create the RLE file with LeslieAnn's guide (See Link 2 below)
Install:
Extract the boot_screen_logo_creation_package.rar file someplace (see Link 3 below), I recommend something short because you will have to type the location. I use my D drive and a folder named RLE. So D:\RLE is the location I put these files.
How to create an rle file:
Step 1
Make the image you want to use. It MUST be 1024x600 pixels (for the G Tablet).
Step 2
Save the file as a PNG file to the directory you extracted the tool (in my case D:\RLE). I also save the file as a psd so I can later edit it further in a folder specifically for storing this stuff.
Step 3
Go to your start menu and find Command Prompt. This will be in (All) Programs/Accessories.
Step 4
Go to the folder you put the tool, in my case D:\RLE
Step 5
Run the tool, you need to know the name of the png file, again, in my case this is logo.png. Run the tool with the command:
convert_image_to_rle.bat logo.png
You should be left with the raw file, a png file and an rle file, all named logo.
Step 6
Rename the rle file to initlogo.rle and place the file into the update\tmp folder
E. repackage both the META-INF and tmp folder into a new update.zip file. (do not repackage the update folder. Repackage both the META-INF and tmp folders.)
F. Copy the update.zip file into your internal SD card
G. flash the update.zip file you created in CWM like you normally would for a rom
H. Reboot twice and enjoy! (mine hung after the 2nd boot logo and wouldnt get to the boot animation. a second reboot did the trick)
Thanks
Links (add www in front)
1 - Boot Logos (replace 2nd logo) Flashable with CWM
slatedroid.com/topic/20807-boot-logos-replace-2nd-logo-flashable-with-cwm/
2 - Make/extract RLE files in Windows, the easy way (now with Linux)
forums.androidcentral.com/optimus-v-rooting-roms-hacks/113550-make-extract-rle-files-windows-easy-way-now-linux.html
3 - (image file)-to-RLE converter
mediafire.com/?36b7g54t1az8p4j

[GENERAL-GUIDE] You Are A Noob on Xda |How to Theme|How to Mod|How to Tweak|And More

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
General-Guide Just For You!​
Hello Xda,
I am Getting a lot of requests on how to theme/tweak/mod etc... now im gonna learn that to you!
What can you learn by reading this Quide?
The following things:
- Android Theming (Part 1)
- Deodexing (Part 2)
- Deleting/Adding Apps (Part 3)
- Android Tweaking (Part 4)
- Building From Source (Part 5)
- Open a .img File! (Part 6)
- Flashing With Odin (Part 7)
- porting roms (Part 8)
- flashing with heimdall (Part 9)
- flashing with cwm (Part 10)
- build kernel (Part 11)
- build cwm recovery (Part 12)
- flashing OTA leak (Part 13)
More to come stay tuned
Part 1 Theming Android:
First you need the following Tools for this:
-7zip
-A Windows PC
Step 1) Go to your rom you like to Theme and grab you Systemui.apk From system/app Copy it to your desktop!
Step 2) Now open the file with 7zip by right clicking on the file and choose open with 7zip
Step 3) When you are in the Systemui.apk with 7zip go to the Res folder and open up Drawable-hdpi Depending on your phone it could be also Drawable-ldpi or Drawable-mdpi Or Drawable-xhdpi Now just open that folder!
Step 4) when you are in that folder you see a lot of .png files that are all the files you could theme now If you want to theme your Systemui.apk to ICS/JB/GB/Froyo etc... source for the systemui.apk from a phone who is running on that OS!
Step 5) When you have found that systemui.apk from the other OS Then open that Systemui.apk also with 7zip and go to the res folder and than to Drawable-hdpi!
Step 6) when you have bot systemui.apk's opend source for the .png's you want to theme for example you want to theme the wifi signal icon Source in YOUR SYSTEMUI.APK FROM YOUR PHONE to stat_sys_wifi_signal
then also find the excactly same .png in the other Systemui.apk from that other OS and start copying the Files!
NOTE: Please Check the names if they are the same otherwise the systemui will Force Close (Crash)
Step 7) Now when your done copying and theming Close The file and put it back in your rom Flash your rom congratulations you have themed Now your Android Rom!
Part 2 Deodexing
What you need is:
A windows Pc
A zip opener tool
Xdaautotool
How to Deodex:
First Download xdaautotool From here: http://forum.xda-developers.com/showthread.php?t=1053227
Step 1) When you have downloaded XdaAutoTool you see some Folders and other things in the .rar file make a folder on your desktop and name the folder xdaautotool now just extract them to your desktop in the folder xdaautotool!
Step 2) In Res there is AAA_register_ocx.bat Run that!
Step 3) Run \Res\FileRegister.exe to register the files in your system!
Step 4) Now you can open xdaautotool.exe and go to the Deo screen when you are in there Wait!
Step 5) Open your odexed Rom.zip file and copy all the files inside the /system/app folder to _SOURCE_APP!
Step 6) Open your odexed Rom.zip file again and now copy all the files inside /system/framework folder to _SOURCE_FRAMEWORK!
Step 7) Now in the Deo screen Choose all stock and let it do it's work!
Step 8) When xdaautotool has finished open your xdaautotool folder and go to _DEODEX_APP and make a folder calld app! copy all the files inside of there and then go to your odexed rom.zip and delete the app folder once it's deleted paste the deodexed app folder inside your rom.zip
Step 9) open your xdaautotool folder and go to _DEODEX_FRAMEWORK and make a folder calld framework! copy all the files inside of there and then go to your odexed rom.zip and delete the framework folder once it's deleted paste the deodexed framework folder inside your rom.zip
Step 10) congratulations you have deodexed Now your Android Rom!
Part 3 Adding/Removing Apps
Needed Tools:
-A zip opener tool
Step 1) Open your Rom.zip file and go to system/app from there you can remove apps by clicking on the right mouse button and choose delete!
Becarefull by what you are deleting some apps are needed for you OS!
Step 2) Open your Rom.zip file and go to system/app then pick a .apk file you just downloaded and paste it into there!
DO NOT POST ANY WAREZ ON XDA SO ALSO NOT IN YOUR ROM!
Part 4 Android Tweaking
What you need:
-A zip opener tool
Tweak build.prop:
Step 1) Go to this thread for build.prop tweaks: http://forum.xda-developers.com/showthread.php?t=1588439
Step 2) When you are in that thread you see a lot of tweaks Go ahead and pick one Copy the tweak and paste it into your Build.prop paste it on the latest line just at the very end of your build.prop You can find your build.prop in your rom by going to /system and then you see the build.prop!
Step 3) Flash you rom Enjoy!
Tweak init.d
Step 1) Go to this thread for init.d tweaks: http://forum.xda-developers.com/showthread.php?t=1353903
Step 2) Do exacly what stands in that thread!
Part 5 Building From source
You need the Following
-A linux/Ubuntu PC or virtualbox with linux/ubuntu
I was thinking about writing my own guide but there are many quides out already
Building CM9 From Source: http://forum.xda-developers.com/showthread.php?t=1566224
Building CM10 From Source: http://forum.xda-developers.com/showthread.php?t=1566224
Building CM7 From Souce: http://forum.xda-developers.com/showthread.php?t=978544
Part 6 Opening a System.img File/Creating your first/own rom
what you need is:
sgs2ext4.jar
Java 6
diskinternals linux reader
Downloads:
sgs2ext4.jar: http://forum.xda-developers.com/showpost.php?p=15333542&postcount=135
diskinternals linux reader: http://www.diskinternals.com/linux-reader/
Java SE: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Step 1) Download all the files!
Step 2) When you have downloaded sgs2ext4.jar save it on your desktop
Step 3) Install Diskinternals Linux Reader
Step 4) Install Java SE
Step 5) Open up your .tar file and then open the .md5 file inside the .tar file when you have opend that folder copy the system.img or factoryfs.img depending on what phone you have to your desktop!
Step 6) Open up the sgs2ext4.jar application and Drop the system.img/factoryfs depending on your phone inside the application wait for it when it says done you can close the application!
Step 7) Now open Diskinternals Linux Reader.exe and go to drives--->Mount image--->Then a screen will pop up!
Step 8) then choose raw disk images and click next then source for the system.img.ext4 and open it then you see a new drive open up that drive!
Step 9) in the drive you will see all the folders select them all and go to Commands--->Save selected then choose a place you want to save the files!
Step 10) Make a .zip file and open up the file inside the .zip file make 2 folders META-INF and system Now open the system folder and copy all the files witch you have just opend with diskinternals to /system done! don't forget to paste the boot.img into the .zip file to NOT IN META-INF OR system just paste them by the 2 folders!
Step 11) Make the META-INF folder complete Gongrats you have made your own rom!
Part 7 Flashing With Odin
You need the following
- Odin!
Downloads:
For odin Look at your devices forum it must be somewhere around there!
Step 1) Download your rom from www.sammobile.com for your device!
Step 2) open up odin and choose in the pda file the .tar file you just have downloaded!
NOTE For some Devices you must fill in all the boxes!
Step 3) Put your device in download mode (This is for every device diffrent)
Step 4) When odin recognize it click on start when for it when it's done it will automatic reboot and doing some stuff automaticly no panic this is normal!
Step 5) The device will reboot and boot into Android Enjoy!
Part 8 Porting Rom's
What you need is:
-A zip opener tool
Step 1) Download the Rom you want to port from a other device to your device KEEP IN MIND IF YOUR PHONE IS A ARMV6 YOU MUST PORT IT FROM A ARMV6 THE SAME FOR ARMV7 AND ARMV5!
Step 2) Open up the rom you've just downloaded from now im calling that the ported rom and also pick your Base rom from your rom
Step 3) when you have opened both rom's then go to you base rom go and delete app/framework then copy app/framework from the ported rom to your base rom!
Step 4) Open up the etc folder in your base and ported rom!
Step 5) open in both rom's the permissions folder and copy all the files inside the permissions folder from the ported rom to your base rom!
Step 6) now go back and go to the bin folder in both folders copy all the files inside the ported rom into your base rom bin folder!
Step 7) that's it Guys enjoy porting!
Part 9 Flashing with Heimdall (Linux)
you need the folowing:
A linux/ubuntu pc!
I was thinking about writing a guide for this but look here please:
Step 1) Guide Here: https://github.com/Benjamin-Dobell/Heimdall/tree/master/Linux
Supported devices for heimdall:
Samsung Galaxy S GT-I9000 (8GB) from UK
Galaxy S GT-I9000 (16GB) from Australia
Captivate
Vibrant
Fascinate
Mesmerize
Epic 4G
Galaxy S 4G
Infuse 4G
GT-I9000T
Galaxy Tab (7 and 10.1 inches),
Galaxy S II, and the international GT-I9000.
Samsung Galaxy S II
Part 10 Flashing Rom's with CWM!
You need the following:
-Your Device!
-Cwm Recovery on your device
Step 1) Power off your device!
Step 2) Reboot it into recovery (This method is on every device diffrent)
Step 3) In CWM Choose Install Zip from sdcard--->choose zip from sdcard
Step 4) Choose the rom You've just downloaded and click on Yes!
Step 5) When it's done installing Wipe Data/Cache/Dalvik cache!
Part 11 Build your First kernel!
Step 1) Follow this Quide im Not good at building kernels! : http://forum.xda-developers.com/showthread.php?t=1748297
Part 12 Build You first CWM Recovery!
Step 1) Follow this Quide im not good at building CWM! : http://forum.xda-developers.com/showthread.php?t=1866545
Part 13 flashing a OTA leak
- Make a backup of your data
-*Download the Base firmware required by the OTA Update,*for example: E210KKKALH6*
- Unzip the file
- Open odin
- Restart the device into download mode
- Connect phone and wait until you get a yellow/blue sign in Odin
- Add*for example: KIES_HOME_E210KKKALH6_E210KKTTALH3_944665_REV00_user_low_ship.tar.md5*to PDA
- *Make sure re-partition is NOT ticked
- *Start flash, and wait a few minutes
- *Download the for example*E210KKKJLI3*OTA Update
- *Copy the OTA update to your External SD Card
- *Restart the device into Recovery Mode
- Select Apply update from External Storage
- *Browse to the OTA update and flash it
- *When OTA update is flashed perform “Wipe Data/Factory Restore” (Will format your internal SD Card)
- *Reboot your device and Enjoy!
Stickied for the time being
Reserved for more quides
Added new quide part 13
clear, cut, and simple stuff man. thanks a lot for taking the time to do this. im hoping to port roms myself to start off with getting familiar with android then eventually start dev from ground up.
solomon4400 said:
clear, cut, and simple stuff man. thanks a lot for taking the time to do this. im hoping to port roms myself to start off with getting familiar with android then eventually start dev from ground up.
Click to expand...
Click to collapse
Nice to hear that!
some guides toward editing kernel sources would be nice jus sayinn LOL great compilation though

[Q] URGENT HELP in making a flashable Stock Rom extracted from HTC RUU.

I am beginner to android ROM development. i am at learning stage. I want to make a stock rom of HTC Explorer in a zip format so that it can be flashable through CWM. Here is the steps i am following:
1. I extraced rom.zip file from HTC Explorer RUU.
2. I placed it in original_update folder in android kitchen.
3. I set up a working folder from android kitchen menu and i got these files and folders in WORKING folder
boot.img
system
META-INF
4. I selected the option 99 in kitchen menu that is Building a ROM.
5. After successful completion i got a zip file in OUTPUT folder.
6.Then, i copied that update.zip file from OUTPUT folder to my sd card.
7. Now, i boot into recovery, and try to install zip from sd card but it shows an error like this
Error in sd-card/update.zip
(Status 0)
Installation Aborted.
Now i dont understand why it is giving me an error even i have not touched any file from the working folder.
am i doing it wrong? pls help me.

[GUIDE]How To Create A Custom Rom(noob friendly guide)

HERE IS A GUIDE FOR YOU ALL YOU CAN CREATE YOUR OWN ROM BY THIS SEXY METHOD.I AM NOT RESPONSIBLE FOR BRICKED DEVICES,DAMAGED DEVICES IF YOU BLAME ME I WILL LAUGH AT U.
Click to expand...
Click to collapse
Requirement to make a custom rom
*java jdk installed on your pc
*windows xp or 7.
*package given in download section
Who is this kitchen for ?
Those who are brand new to
creating custom ROMs and
want an easy place to start
learning
Those who just want to modify
shipped ROMs or someone
else's custom ROMs to their
liking
Those who are confused by all
those scripts and complex
commands required for
building and extracting
This is NOT a tool to
automatically turn you into a
full-fledged ROM developer.
ROM development normally
involves work from the ground
up and involves time , research
and patience .
Click to expand...
Click to collapse
PRESS THANKS IF YOU LIKE MY WORK
Kitchen setup guide
setting up android kitchen
1.download all the three link and unzip kitchen.rar and cywin package.
2.open cywin_package then open folder Now, you can see 3 icons, a read-
me,a setup, and a folder. Choose
the setup. Here You will choose
install from local directory. Next,
Navigate to the the folder of
extraction of cygwin and choose
the folder Cygwin_packages inside
the cygwin extraction folder. Wait
for some time. Then, You will come
across a list of file. Click the 2-
circle-arrows,untill, it displays
“install”
After the procedure is complete,
run the batch file cygwin.bat . Now, minimise
it and copy kitchen folder,
Keep it in some location where you have installed your cygwin package open home/ajay-Pc(in my case this is administrator name of my pc)kitchen
Now, open the batch file window
and type
cd C:\Kitchen
Wait for some time and then when
the location the changed, type
./menu
Click to expand...
Click to collapse
PRESS THANKS IF YOU LIKE MY WORK
GUIDE
now minimize the batch file and extract official rom and open pda there you will find system.img then extract it using magic iso or flash
the official stock rom using odin the take a nandroid backup u will get system.rfs.tar in your sd card extract it using magic iso then make a folder in called rom and open it. again create a folder called system and copy all data from system.rfs.tar which u have extracted(do drag and dropping).
Now copy meta-inf of any stock rom and copy and kernel to rom folder.
Now you will get two folder and one file in your rom folder zip the folder content and copy the file where you have installed cygwin/home/ajay/kitchen/original update folder.
now open command shell which you have minimized 1st create working folder then add root permission,deodex your rom.
and at last press 99 to build your rom..
note-if it ask you to change updater script to update script change it but dont forget to change it back to updater script.now you will get your rom in output folder copy it to your sd card flash it if error occur unzip the zip file and delete meta-inf and boot.img and again copy meta-inf of any rom and kernel to it and zip it..again flash the rom..
PRESS THANKS IF YOU LIKE MY WORK
Downloads
Downloads​
Link for cygwin click here :good:​link for kitchen click here :good:​link for magic iso click here :good:​
PRESS THANKS IF YOU LIKE MY WORK
CREDIT
credits
xda
dev of kitchen DSIXDA
me for boring guide
PRESS THANKS IF YOU LIKE MY WORK
gd 1 but think theirs many guide to teach how to cook rom from kitchen
amanmehta007 said:
gd 1 but think theirs many guide to teach how to cook rom from kitchen
Click to expand...
Click to collapse
many user asked for my help so i created this for them
gd
THE DEV OF KITCHEN IS DSIXDA U SHOULD MENTION HER NAME
bY
------------------------------------------------------------------------------SOMKLL---------------------------------------------------------------------------------------------------
Yes
yes i m Flasholic
I already have a guide for this.
Sent from my GT-S5360 using XDA

[Guide] How to unpack/repack diffrent img files easily without pc.

Hey, today in this post I've discussed on the topic
"How to unpack/repack img without PC or android tools (android tool is a little complicated and sometimes doesn't works)."
So let's get started
First of all download & install 'android image studio'
1: open it and click on repack/unpack
2: select the port ROMs boot or recovery img.
3: we get two folders
a.) Split_img --->> contains kernal zimage.
b.) Ramdisk----> contains init.rc recovery. Fstab etc..
4: to delete any file long press on it and click delete
5: to import any file click on import button in right panel & select the file
6: after making desired changes. Repack the img using repack button
7: a file will be created with the name image-new.img
8: export this file using export button and select the desired location.
Congratulations you have just ported an img without PC easily.
Link for the tool: https://play.google.com/store/apps/details?id=com.redlee90.imagekitchenforandroid
Link to my video toitorial for better understanding on this:
If you liked it just PRESS the THANKS button
I need more help, trying to open a .IMG boot file for Samsung s5, it gives the "No Image Supplied" error
Screenshot
Using AIS. Trying to port custom recovery but first thing I've tried is to just unpack and repack stock recovery. When repacking output of AIS is new IMG and new ramdisk. New IMG is smaller than original but from what I've read this should be okay. Flashed new IMG and attempted reboot recovery and all I got was black screen. Flashed stock recovery and it booted recovery fine. Not sure what I'm doing wrong. I used AIS to open the new image it created and then kept doing file/folder comparisons on the output. I narrowed down the difference being recovery.img-ramdisk.cpio. But when I unpack with cpio the contents of the archive are the same. Additionally, I repacked the contents with cpio but it still comes up as not matching the original recovery.img-ramdisk.cpio. My device can and does make replacement recovery images using applypatch with bonus files and boot img. Any help greatly appreciated!

Categories

Resources