[I9003][MOD] Modded Stock Recovery (allow test-signed update.zip) - Samsung Galaxy SL i9003

WELCOME ROM & THEME DEV!!!
Hi all.... since the work on CWM is longer than i wish i have done this MOD that - for the moment - can help all.....
This is the custom recovery modded by me to allow the installation of update.zip signed with the test key.
Attached at this post you can find:
- The PDA that must be flashed with odin;
- The tool for signing your custom update.zip
Update.zip must be signed like so:
java -Xmx1024m -jar signapk.jar -w testkey.x509.pem testkey.pk8 your-update.zip signed-update.zip
Very important is the "-w" that mean ( if i remember well) whole file.
To enter in recovery mode the combo is VOL-UP + Home + POWER
Hope you enjoy it!
UPDATE: I attach also an update.zip that will install Microbes Live Wallpaper, maybe you don't like it but sure it can help you on building you own update.zip. PLEASE STUDY IT!
IMPORTANT: System folder maybe cannot have more space, in this case the update.zip will i attached not work until you haven't deleted some bloatware like aldiko and other ( in all case i suggest to remove all bloatware). The update.zip that overwrite system files don't have this issue i think.
UPDATE 2: i forgot to tell you that this is based on XXKB3 kernel, it might also with other FW without problem but if you find any issue please PM what firmware is and i'll build the recovery for you.
A guide for n00bs that want build their update.zip - written by trip007in -can be found HERE
Last Thing
Press the Thanks Button if you like my work!

could better explain the steps?
I do not know if I explained well ....
could make a tutorial on how to do?
thanks and sorry for the inconvenience

Flashed succefully
Sent from my GT-I9003 using Tapatalk

Thanks alot man atleast we are on the right track........... excellent work

Great work mate, so you finally did it.
Immediately flashed PDA file uploaded by you and successfully flashed. Made an update.zip of livewallpapers to test the recovery, signed it using your tools. You dint mention any hardware key combinations to enter into recovery, so used root tools and entered recovery and tried update but it failed. in the last step.
I made update.zip by putting the livewallpapers.apk in system>app folder and zipped it. Signed it using your signing tool. placed it on sdcard for flashing.
Any suggestions?

nice dude
it's begin

nice work dude

please can anybody explain what is use of this...? I am new to android & its modifications...

trip007in said:
Great work mate, so you finally did it.
Immediately flashed PDA file uploaded by you and successfully flashed. Made an update.zip of livewallpapers to test the recovery, signed it using your tools. You dint mention any hardware key combinations to enter into recovery, so used root tools and entered recovery and tried update but it failed. in the last step.
I made update.zip by putting the livewallpapers.apk in system>app folder and zipped it. Signed it using your signing tool. placed it on sdcard for flashing.
Any suggestions?
Click to expand...
Click to collapse
I think that the content of updater-script is the part where you have to work.
EDIT: Look at the first post, i have updated it.

thx man greet hard work,year after we can install custom rom,kernial,them,apk,etc.. via update.zip will try and tel rex4u release rom update.zip

Skin1980 said:
I think that the content of updater-script is the part where you have to work.
EDIT: Look at the first post, i have updated it.
Click to expand...
Click to collapse
Thanks a million, it worked. I replaced the files in the zip using 7zip, and resigned it using the script. It worked but flashed a message during update regarding the microbesgl wallpaper that was packaged by you. I underastand thats because of the update-binary and update-script. It does not matter though, I would like to know how did you get/ create that android folder and its contents inside the zip. was it packaged separately or created automatically during signing zip?
The second question, the most important one is how to enter recovery using combo keys? does it work or we have to depend on ADB or softwares like root tools? to get into recovery from the on mode. Then there is no way to recover a bricked phone with wrong framework or essential files which are loaded during boot.

trip007in said:
Thanks a million, it worked. I replaced the files in the zip using 7zip, and resigned it using the script. It worked but flashed a message during update regarding the microbesgl wallpaper that was packaged by you. I underastand thats because of the update-binary and update-script. It does not matter though, I would like to know how did you get/ create that android folder and its contents inside the zip. was it packaged separately or created automatically during signing zip?
The second question, the most important one is how to enter recovery using combo keys? does it work or we have to depend on ADB or softwares like root tools? to get into recovery from the on mode. Then there is no way to recover a bricked phone with wrong framework or essential files which are loaded during boot.
Click to expand...
Click to collapse
The sign create only the three files inside the folder META-INF, you must create the other folder or simply edit the zip i posted.
If you edit the updater-script and change the first line ui_print("Installing Microbes...") you wil not see Instaling Microbes.
To enter in recovery mode simply shut down your phone then Press VOL UP + HOME (the center keys) + POWER.
Bye!

A little guide for using custom recovery (3e)
Hi Skin, this is a small guide to your recovery for noobs, who need some help for creating or flashing the update.zip files. You are free to link this post to the first post for easy reference.
Download the three attachments on the first post of this thread and save them on your PC.
Flashing Recovery to phone:
1. power down the phone and simultaneously press Vol. down + HOME (Center key) and power on buttons till you see download mode connect the phone to PC through USB.
2. open ODIN on PC and check Auto Reboot and F. Reset Time.
3. Click on PDA and browse to the location where you placed the PDA.tar file from this post. and click start.
Wait for the phone too reboot, the recovery is flashed now.
Preparing the update.zip for flashing.
You do this if you are an experienced user and know the location of the files to be paced on the system partition of phone or avoid this and may use the already uploaded update.zip provided here.
1.First create a folder called ‘updzip’ in c:\ drive, the path would be C:\updzip
2.Place here the contents of the sign-tools in this folder i.e signapk.jar, testkey.pk8 and testkey.x509.pem.
3.Now edit the update.zip file downloaded from this post with the files you want to flash in recovery. This can be done by dragging the files into the zip archive, which can be opened with applications like 7Zip. Alternatively you can extract the contents of the file and place the files to be updated in appropriate folder and rebuild the zip file. The location of this zip file will be the same C:\updzip.
Eg: for flashing system applications you have to place the apk files in system/app inside the zip. Whereas framework files goes into system/framework.
4.The update.zip contains META-INF folder which is essential for update.zip to work. After placing the files inside zip in appropriate folder(s) you need to sign it using the sign-tools. Before this you have to delete the three files inside the META-INF folder i.e CERT.RSA , CERT.SF and MANIFEST.MF, as these files will be created after signing the whole zip.
5.Now go to command prompt ‘cmd’ and browse to the C:\updzip and sign the zip as follows, assuming you have named the zip as ‘sysap-update.zip’.
Code:
C:\Users>cd c:\updzip
c:\updzip>java -Xmx1024m -jar signapk.jar -w testkey.x509.pem testkey.pk8 sysap-update.zip signed-update.zip
c:\updzip>exit
6.Now you will have signed-update.zip in C:\>updzip folder this file should be placed on the SDCARD and name it as update.zip for it to work in recovery.
Flashing update.zip files from recovery:
1.Power down the phone and simultaneously press Vol. up + Home and power on for few seconds till you see the samsung logo and release the keys wait for the phone to enter recovery (3e).
2.Select the option apply sdcard: update.zip, using vol down key to navigate to the option and press home button.
3.After update reboot the phone.
Your files are flashed and system is updated.
Enjoy and Happy Flashing. Now its not easy to screw up/ brick your phone.

@ tripin
dude thanks for this useful post

Later i will update the first post... thanks
Sent from my GT-I9003 using Tapatalk

really thanx for such wonderful mod...because of this we can now install themes, roms very easily...i have small question. Is this mod different than CWM...???? Because CWM very helpful for backup entire rom...& later we can flash that rom very easily...!!!

Grazie, sei un grande

@ vishal
dude it is a modded stock recovery it is not cwm

thanx krrazy for ur reply...
but can u tell me what is difference between modded stock recovery & CWM...? I m new to android & i m trying to learn all these basics about android modding, backup, rom etc...!!!!

vishal24387 said:
really thanx for such wonderful mod...because of this we can now install themes, roms very easily...i have small question. Is this mod different than CWM...???? Because CWM very helpful for backup entire rom...& later we can flash that rom very easily...!!!
Click to expand...
Click to collapse
CWM is different and i'm sure it will be ported.... i got it works succesfully but i have problem with the keys so i must review something.
Since tomorrow i leave for two week ( HOLYDAYS!!!) i decided to build this so you can enjoy with it.
When i'll came back i will work hard to port the CWM so please be patient.
Best Reguards.
Skin1980

Related

How do you make a Update.zip for Apps?

Once again let me preface this by saying that I am a Noob. However, I have been swapping roms for the past couple of months with no major problems. The one annoyance is every time I install a new rom I have to go through the hassle of reloading all my favorite apps.
I wanted to know how to make a update.zip folder that will actually load on my Google Ion for my apps. Any help would be greatly appreciated.
If you know how to sign a ROM its no Problem, if you dont ...
Lol, that would be a big "No."
You would have to be able to sign .zip files for it to work, You could have your favorite apps on the side so you could open your rom on the computer and add them in the apps folder.
Your prolly better off installing them individually because some roms (mostly skins) wont run with some apps although this is VERY rare!
is it not possible to resign i.e. the cyanogen rom after adding a few apps?
frleus said:
is it not possible to resign i.e. the cyanogen rom after adding a few apps?
Click to expand...
Click to collapse
I am new to the signing of roms but from what i can see it is possible and seems to be a little easier than I originally thought. I just started with signing last night and was able to take parts of three different roms put them together and was able to sign it and sucessfully loaded and installed with no problems to my mytouch. Just to give an example I used the bootscreen from Qteks rom along with the transparent lockscreen from evils sense rom and combined them with wikeds rom cause I liked his icon pack. signed it and loaded on first shot with no issues.
Here is what I used posted by Dave Da illest 1 Senior Member
link to op
http://forum.xda-developers.com/showthread.php?t=471586
How To Theme Develop for Windows For Dummies in 10 easy steps (( no your really not a dummy its just an easy name for a how to lol))
well i'm going to give this a shot in the dark on how to create this how to be as easy as possible
1st
download these files if you don't already have them
JAVA
http://java.sun.com/javase/downloads/index.jsp
download the JDK
Winrar
http://rarlabs.com/rar/wrar380.exe
and Auto-sign.zip
http://www.mediafire.com/download.php?uwzjjydnm2r
2nd
Download my included Auto-sign files.
what it contains.
the Test keys file..
and an update.zip file
and a batch file i created called auto-sign to make things easier to sign
3rd
after you have downloaded my Auto-sign
then you extract it to where ever you want.
4th.
use the update.zip included if your a Beginner it includes my windows 7 theme .. i edit so many files that it's easier to tell what does what and whats goiing to go where. now open that zip file DON'T EXTRACT just open it using winrar..
5th
When it is open go to Framework.. and open Framework-res.apk
NOW IF THE APK. POPS UP AND SAYS IT CANT OPEN BLAH BLAH SELECT A PROGRAM AND THEN SELECT WINRAR.
6th
Once you open Framework-res.apk KEEP THIS WINDOW AND UPDATE.ZIP WINDOW OPEN!!
then just extract the whole Res Folder to where ever you like this makes it easier to see what files you wish to edit.. most of the files will be in the folder called Drawable
7th
open up your favorite photo editor .. i use photoshop along with 90% of the people who Graphic Design... Edit your pictures Remember a file with a .9 can mess up your phone so edit those carefully.. and save what ever pictures you have
8th
Now drag the whole Res Folder .. back into the Framework-res.apk
now your update.zip file is going to say files has been changed to framework-res blah blah do you wish to save it . click yes .. now your framework has been updated you can close everything out
9th
go to the Auto-sign folder.. and open Auto-sign this will now sign your update.zip .. and rename it to update_sign.zip .. now just delete your old update.zip.. rename update_signed.zip to update.zip
10th
put it on the root of your memory card.. reset using green call + menu + end
then hold home and end .. until the recovery mode shows up .. then press Alt+S and hope your device isn't bricked
Disclaimers
I'm not responsible if your brick your device.. but i will help to the best of my abilty and if i can't help i'm sure XDA will
i don't sign every file in my update.zip i just sign update.zip .. and hey it works lol..
For ADP or RC 8 versions .. just download your favortie ADP theme or RC 8
put it in the Auto-sign folder.. and rename it to update.zip if it isn't already then just follow my steps
thelastgoodbrother said:
Once again let me preface this by saying that I am a Noob. However, I have been swapping roms for the past couple of months with no major problems. The one annoyance is every time I install a new rom I have to go through the hassle of reloading all my favorite apps.
I wanted to know how to make a update.zip folder that will actually load on my Google Ion for my apps. Any help would be greatly appreciated.
Click to expand...
Click to collapse
the easy way
what i do is a .bat file with my info in it
place all the stuff you want installed into a folder
and create ad .bat file(notepad save as select all files from dropdown the put .bat on end of file name\)
mine is all.bat and inside looks like this
adb remount
adb push D:\android\install\apns-conf.xml /system/etc
adb push D:\android\install\wpa_supplicant.conf /data/misc/wifi
adb install D:\android\install\apps\android.tether.apk
adb install D:\android\install\apps\com.a0soft.gphone.aTrackDog.apk
adb install D:\android\install\apps\org.freecoder.widgets.overclock.apk
adb install D:\android\install\apps\com.metago.astro.apk
adb install D:\android\install\apps\com.qype.radar.apk
adb install D:\android\install\apps\com.arron.taskManager.apk
adb install D:\android\install\apps\com.rerware.android.MyBackupPro.apk
adb install D:\android\install\apps\com.curvefish.widgets.silentmodeonoff.apk
adb install D:\android\install\apps\com.mattwach.trap2.apk
adb install D:\android\install\apps\com.tapjoy.coloroid.apk
adb install D:\android\install\apps\com.schwimmer.android.mmsextract.apk
adb install D:\android\install\apps\com.google.android.stardroid.apk
adb install D:\android\install\apps\de.android_telefonie.appmanager.apk
adb install D:\android\install\apps\MyBackupPro.apk
adb shell
reboot
and i do it when the setup wizard starts so when it reboots my apn and wireless are installed
here is the one twisted made... its simple and eazy... btw when I was getting sick of restoring all my apps every time I flashed a new rom, I searched for it and learned how to do it without posting once... but thats just me
download incremental here
http://twistedumbrella.slackdev.com/Incremental.zip
Back your apps up as an update in case you do a wipe using this:
Use Incremental_original.zip
Back all the apps up you want.
Open the archive and replace the apps in the data/app directory.
Sign the archive like a regular update and place in root of SD card.
Flash the update you want. When finished, flash Incremental.zip
Reboot the phone and both the update and apps will be installed.
to learn how to sign files look at this thread...
http://forum.xda-developers.com/showthread.php?p=4721739
You can avoid the hassle easily by going apps to sd. After that, any rom that enables apps to sd (almost every rom) will automatically have your apps installed upon first boot.
That being said, next time post in "General" first. We don't want this section to get as messed up as it has become in the Dream forum.
Buster3616 said:
That being said, next time post in "General" first. We don't want this section to get as messed up as it has become in the Dream forum.
Click to expand...
Click to collapse
lol have you noticed this forum? i guess better late than never...
as every other post says "this should be in general" or "this should be in Q&A"
but then again I cant say Ive ever seen a clean forum... sad
Also if your gonna say "this should be [where ever]" you shouldn't also provide an answer to the initial question... What does that teach? Post where ever you want because you'll still get an answer? That doesn't help your cause.

Question about modifying signed Rom zip files

Can I modify an existing one by simply dropping in updated bootscreen files, rosie.apk, etc.. and signing the existing rom zip?
Any good guides on how to do one if not, and/or how to use Flipz kitchen tool to create a rom?
Ceger
I am pretty sure if you sign the file and you modify it after that you will have to resign it. At least thats how it goes for other things that are similar that I deal with.
Kcarpenter said:
I am pretty sure if you sign the file and you modify it after that you will have to resign it. At least thats how it goes for other things that are similar that I deal with.
Click to expand...
Click to collapse
I understand that, just wondering if I can add new files and they will move or does some master script need to be updated to know to move the files. In other words, is it done by directory or by file?
For example, if I add some apps to /data/app in the zip will they be there on the phone when I install the ROM zip, etc.. More specifically, I have added an alternate boot sequence. The rom does not have a boot1.gif. If I add the new sequence with XML, will the boot1.gif be installed as well or do I need to update something that directs the install of the ROM to move that file or is it automatic as the folder is moved over?
Ceger
Ceger said:
I understand that, just wondering if I can add new files and they will move or does some master script need to be updated to know to move the files. In other words, is it done by directory or by file?
For example, if I add some apps to /data/app in the zip will they be there on the phone when I install the ROM zip, etc.. More specifically, I have added an alternate boot sequence. The rom does not have a boot1.gif. If I add the new sequence with XML, will the boot1.gif be installed as well or do I need to update something that directs the install of the ROM to move that file or is it automatic as the folder is moved over?
Ceger
Click to expand...
Click to collapse
I have found that the easiest thing to do is just put the files that you want to use to replace the old ones into a signed zip and then flash just those files I have tried altering a rom file with no success
wtphoto said:
I have found that the easiest thing to do is just put the files that you want to use to replace the old ones into a signed zip and then flash just those files I have tried altering a rom file with no success
Click to expand...
Click to collapse
Oh well, was trying to have a one step zip. I guess I can make at least have a 2 step process which is better than 4-5.
Thanks,
Ceger
Yes you can modify just about anything in the rom and flash your zip as long as it is signed and the update script is correct. I always make all my changes to a rom before flashing it so i do not have to flash several different things etc.
The update script is located in RomName\META-INF\com\google\android\
Lets look at a very simple update script to show you what i mean.
In this update script it is to write something to /system
example:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
We see here that whatever is in the system folder within the signed zip will be written to the phone
in this case i am writing /system/app/mobiledefense.apk
That will be the only file written to the phone and will be written to /system/app
The update script is not specific to every file so you can have 1 thing in the system folder or 100 and it will write everything in there.
One thing that many people mess up on is not using a update-script file when they sign a .zip file. The recovery has to know what to flash or it will not flash anything.
So the answer is yes you can change many things and then flash the signed update.zip file.
Not everything can be done this way but most things will work.
But for example changing the boot sceen can be done even if the file names are different as long as the folder structure stays the same and the .XML file is the correct one for the boot screen. I opened the .zip of a rom deleted everything out of the boot screen folder and dropped in all the files from the nexus one hero hybrid boot screen re signed the zip and everything flashed perfect. I changed many other things as well in the .zip like rosie.apk, sound files, lockscreen files, busybox files, added apps to /system/app and just resigned the zip and everything flashed the way i wanted it to and works perfect.
The way to correctly zip a file is to extract the zip modify what you want then select everything inside the zip right after you open the folder and the highlight everything select add to archive and then zip it up now sign that .zip
so say you extract the ROM and it is named Rom123 now you will have a folder named Rom123 open that folder and select everything file or folder in there and then hit add to archive that will make another zip right there called Rom123.zip pull that zip out to the desktop and sign that zip file and thats it.
I Know that is confusing as it is late as hell and i am tired but wanted to answer this real quick.
zippy-man said:
Yes you can modify just about anything in the rom and flash your zip as long as it is signed and the update script is correct. I always make all my changes to a rom before flashing it so i do not have to flash several different things etc.
The update script is located in RomName\META-INF\com\google\android\
Lets look at a very simple update script to show you what i mean.
In this update script it is to write something to /system
example:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
We see here that whatever is in the system folder within the signed zip will be written to the phone
in this case i am writing /system/app/mobiledefense.apk
That will be the only file written to the phone and will be written to /system/app
The update script is not specific to every file so you can have 1 thing in the system folder or 100 and it will write everything in there.
One thing that many people mess up on is not using a update-script file when they sign a .zip file. The recovery has to know what to flash or it will not flash anything.
So the answer is yes you can change many things and then flash the signed update.zip file.
Not everything can be done this way but most things will work.
But for example changing the boot sceen can be done even if the file names are different as long as the folder structure stays the same and the .XML file is the correct one for the boot screen. I opened the .zip of a rom deleted everything out of the boot screen folder and dropped in all the files from the nexus one hero hybrid boot screen re signed the zip and everything flashed perfect. I changed many other things as well in the .zip like rosie.apk, sound files, lockscreen files, busybox files, added apps to /system/app and just resigned the zip and everything flashed the way i wanted it to and works perfect.
The way to correctly zip a file is to extract the zip modify what you want then select everything inside the zip right after you open the folder and the highlight everything select add to archive and then zip it up now sign that .zip
so say you extract the ROM and it is named Rom123 now you will have a folder named Rom123 open that folder and select everything file or folder in there and then hit add to archive that will make another zip right there called Rom123.zip pull that zip out to the desktop and sign that zip file and thats it.
I Know that is confusing as it is late as hell and i am tired but wanted to answer this real quick.
Click to expand...
Click to collapse
Perfect, just what I was looking for.
Thank you, just made my day!
Ceger

[HOWTO] Theming your framework / apps for newbies ;)

It's not much, but I thought everyone should be able to theme their Framework
Requirements: WinZip(or any other zipping program), Android SDK, testsign, some graphics editor...
NOTE: This will work with theme apk's as well !!!
So what you need to start with is your framework files:
framework-res.apk, com.htc.resources.apk ... both are located in SYSTEM:framework/
These files are just renamed zip files, so rename them back to .zip and extract them (you can also edit them inside WINRAR or something, but it is more comfortable if you extract them)
In these, images are usually saved in res/drawable-mdpi or such, but you have to think here, allways modify all files from one resource
Now locate the images you want to edit but I only know how to edit .png files (.9.png files are for a different howto, probably not by me as I've never really mastered it)
Pick those you want to edit, and edit them (I'm not gonna tell you how here, I usually use photoshop to do that )
Once you have edited those images, it is recomended to optimize those png's (Firstly to make them smaller, but more importantly, most of the times the png's from Windows graphics editor didn't work for me...)
To optimize png's you can use:
OptiPNG: DOWNLOAD This one is drag'n'drop batch conversion capable...
Pngcrush: DOWNLOAD Command line utility, but it has more settings
...or something else, but I find these two the best
Once you have these optimized, copy and re-write them to folders you took them from to edit...
Now you need to zip these back, for framework files I was told it is usual to zip them as "store", but correct me someone if I'm wrong.
After you have zipped those, they will have to be re-signed. To do this, use testsign from code.google.com
Then run this in cmd line (or create a .bat file as I did, it's much easier):
Code:
java -classpath testsign.jar testsign [COLOR="DarkRed"]file.zip[/COLOR] [COLOR="DarkRed"]file-signed.zip[/COLOR]
Now that you have signed it, it is recomended to zipalign it:
(zipalign.exe is located in /tools in your SDK)
Run this in cmd line:
Code:
zipalign 4 [COLOR="DarkRed"]infile.zip[/COLOR] [COLOR="DarkRed"]outfile.zip[/COLOR]
(4 is alignment in bytes)
Now that you have aligned the .zip, rename it to the original name and then you just need to push it back to your phone:
Code:
adb shell mount /system
adb push [COLOR="DarkRed"]com.htc.resources.apk[/COLOR] /system/framework/[COLOR="DarkRed"]com.htc.resources.apk[/COLOR]
or
adb push [COLOR="DarkRed"]framework-res.apk[/COLOR] /system/framework/[COLOR="DarkRed"]framework-res.apk[/COLOR]
And you're done
I hope this helps someone! Enjoy!
note: This way you should be able to modify any apk I think
Very good.
Good initiative, thank you.
Lets hope that others will follow your example and contribute in this community,we need it.
Sent from my HTC Desire S using XDA Premium App
One question... can i change the framework if i'm s-on? And if yes how? flash it through recovery or how?
LE: Thx for the info. I found out how to edit themes... i will create a cool one to upload here. I could edit the framework.....but i am s-on so no use for that.
Unfortunately, when you're unrooted, you can't push files to your system...
But this will work for those Theme apk's too... so grab a theme you like and you can edit it as easily as you would your framework It has a limited potential, but it's something for you S-ON users
Hmm, I skipped the push part and copied the file back over the one in the phone. Now my phone is stuck in a continuous loop on the "quietly brilliant" screen.
Any help? Where do I get a stock rom to flash?
rogbese said:
Hmm, I skipped the push part and copied the file back over the one in the phone. Now my phone is stuck in a continuous loop on the "quietly brilliant" screen.
Any help? Where do I get a stock rom to flash?
Click to expand...
Click to collapse
Just enter recovery & factory reset,wipe, then wipe dev cache, then reflash your rom that you were using before the bootloop.
You can even swap icons in the framework of your rom then just flash (if you try to swap framework.apks or dialer.apks using a file manager you will delete or swap the file but this will cause loads or errors & force closes & then result in your bootloop!) Then just swap via a computer within the zip file then just flash in recovery as normal & if done right you wont get bootloops

[TUT] How to extract .ftf file to make custom rom - and few tips [2012 Xperia]

[TUT] How to extract .ftf file to make custom rom - Flashable ZIP [2012 Xperia]
This tutorial is for developers who want to make their own custom rom based on official firmware. OK, let's start.
Explanations:
Inside every flashable zip file there are two folders - system and META-INF:
1) system folder - That is actually your ROM and all it's content (If you ROOT your device you gain access to this folder in your device).
2) META-INF folder - That folder gives instructions to your device (ClockWorkMod) how to flash ROM, sets permissions...
This is method to get Stock/Official system folder that you need to edit to make custom ROM.
You will need to find/make yourself contents of META-INF folder - You may took it from another ROM and (maybe) edit.
NOTE: If you use this method your ROM will work for both Locked/Unlocked bootloaders, and it will require that you have firmware your ROM is based on already installed before flashing.
Click to expand...
Click to collapse
How to get contents of stock/official system folder - Extract .ftf file:
1. Download .ftf file for your device.
2. Extract .ftf file using 7Zip.
3. You will get system.sin and other files. You only need system.sin file so delete others.
4. Open flashtool and inside flashtool open SIN Editor to dump data from system.sin - you will get an ext4 file.
5. Open ext2Read and extract ext4 file.
6. Done.
Click to expand...
Click to collapse
How to put CWM into your ROM:
OK, Now you ask - Why do I have to put CWM into ROM? Let's explain:
CWM is custom recovery that you use to flash zip files to your device. There are two types of CWM:
1. For both Locked and Unlocked bootloaders - Recovery is in the system folder of the ROM.
2. Only for Unlocked bootloaders - Recovery is somewhhere else (You don't need that).
Because your ROM is based on official firmware it will be for both Locked/Unlocked bootloaders.
Therefore, you will flash your ROM in CWM for both Locked/Unlocked bootloaders.
And if you flash you will replace system folder of previous ROM. Because CWM was in that folder of previous ROM - You will lose CWM.
That is why you need to put CWM.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1. Find CWM for both bootloaders for your device.
1. Copy sh file inside files folder to system/xbin.
2. Copy other files inside files folder to system/bin.
3. Go to META-INF/com/google/android/ and you will find updater-script.
4. Add the following lines to it
Code:
set_perm(0, 0, 0755, "/system/bin/recovery.tar");
set_perm(0, 0, 0755, "/system/bin/battery_charging");
set_perm(0, 0, 0755, "/system/bin/battery_charging_help");
set_perm(0, 0, 0755, "/system/xbin/sh");
Thanks srl3gx for tutorial.
Click to expand...
Click to collapse
How to add ROOT into your ROM:
Want your custom rom to be rooted? Here is how:
1. First you need to choose from two great root management apps: Superuser (choose ARM one) and SuperSU(I prefer SuperSU).
2. Download zip file.
3. Go to "system" folder in downloaded zip and copy files within their folders to its place in your rom (same directory - if was "app" then copy in "app".
4. Edit updater-script to set correct permissions - Find that on someone elses rom, it should look just like for CWM, but for those files.
5. Done.
Click to expand...
Click to collapse
Useful notes:
1. Don't edit any file in zip with Windows Notepad or else you will get an error in CWM - you need Notepad++.
2. When you put system and META-INF folders into zip set compression to - Store.
Click to expand...
Click to collapse
thanks.....
very helpful :good:
Option58 said:
[TUT] How to extract .ftf file to make custom rom - flashable ZIP [2012 Xperia]
This tutorial is for developers who want to make their own custom rom based on official firmware. Note that as of 2012 our Xperias use ext4 file system so other tutorials won't work.
Inside every flashable zip file there are two folders - system and META-INF...System folder is ROM content...and META-INF gives instructions to CWM how to flash ROM Content....This is method to get contents of SYSTEM folder, you must find META-INF yourself....​
1. Download .ftf file for your device.
2. Extract .ftf file using 7Zip.
3. You will get system.sin and other files..You only need system.sin file so delete others...
4. Open flashtool and inside flashtool open SIN Editor to dump data from system.sin - you will get an ext4 file.
5. Open ext2Read and extract ext4 file...
6. Done...you will get contents of system folder that you need to modify...
7. IMPORTANT - When you later make zip choose compression - Store
PS: Don't edit files with Windows Notepad or else you will get an error in CWM - you need Notepad++...
Maybe later I will make Screenshots
Click to expand...
Click to collapse
any idea on how I can edit boot.img? the one used for this device are different from what I know.. I am trying dual boot..
you can pack and repack boot img with Android kitchen i think
Great tut
Sent from my Xperia Tipo using xda app-developers app pro
I already knew this method. However I congratulate you for your initiative. :highfive:
Well I learned something else. Before it only used to extract some files. I did not know we could do this way the custom roms.
I'll try to make a custom rom.
However verified that the file size of system.ext4 is 665,654 KB. Once extracted using ext2read, is only 467 MB.
It is normal for this situation? Instead of decreasing, should not increase after extracted?
Kind regards,
Jorge Moreira
drummer1839 said:
you can pack and repack boot img with Android kitchen i think
Click to expand...
Click to collapse
nope.. you cant.. It says android magic header not found. researching a bit, found out that this is a cpio archive.. I did manage to extract it to get 2 .gz files.. but they cannot be opened..
Jorge Moreira said:
I already knew this method. However I congratulate you for your initiative. :highfive:
Well I learned something else. Before it only used to extract some files. I did not know we could do this way the custom roms.
I'll try to make a custom rom.
However verified that the file size of system.ext4 is 665,654 KB. Once extracted using ext2read, is only 467 MB.
It is normal for this situation? Instead of decreasing, should not increase after extracted?
Kind regards,
Jorge Moreira
Click to expand...
Click to collapse
That was my problem too I ended up with an ext2read error and less size
But ext4 is Linux system partition and not zip file. Maybe flashtool made partition that big so every file could go there easily and it couldn't set exact size.
There is no other tool on internet, only ext2read.
Option58 said:
That was my problem too I ended up with an ext2read error and less size
But ext4 is Linux system partition and not zip file. Maybe flashtool made partition that big so every file could go there easily and it couldn't set exact size.
There is no other tool on internet, only ext2read.
Click to expand...
Click to collapse
Anyway I will try this weekend, make a custom rom lighter and functional.
Kind regards,
Jorge Moreira
Jorge Moreira said:
Anyway I will try this weekend, make a custom rom lighter and functional.
Kind regards,
Jorge Moreira
Click to expand...
Click to collapse
OK, don't forget to add CWM and root into your ROM. Actually I will rewrite my post in few days.
OK, the tutorial is rewritten. But it is not done. I will finish the rest later.
i did these steps[even without adding CWM ,just making a flashable stock rom(not included cwm) from cwm] ,but while want to install zip (my custome rom) from recovery ,installation after 2 seconds facing with error("installation aborted")
what is it's reason?
thanks
Jamal_RS said:
i did these steps[even without adding CWM ,just making a flashable stock rom(not included cwm) from cwm] ,but while want to install zip (my custome rom) from recovery ,installation after 2 seconds facing with error("installation aborted")
what is it's reason?
thanks
Click to expand...
Click to collapse
There's some error in updater script, upload it...
Have you edited with notepad or Notepad ++
Option58 said:
There's some error in updater script, upload it...
Have you edited with notepad or Notepad ++
Click to expand...
Click to collapse
i didn't edit updater script
Jamal_RS said:
i didn't edit updater script
Click to expand...
Click to collapse
And you took it from who?
Option58 said:
And you took it from who?
Click to expand...
Click to collapse
oh understood!!
i want to combine your tutorial and this thread
to make a rooted and included cwm custom rom
so i used from "META-INF folder and ROOTING files" that presented on that thread
i think this is my fault!
is it right?
thanks
Jamal_RS said:
oh understood!!
i want to combine your tutorial and this thread
to make a rooted and included cwm custom rom
so i used from "META-INF folder and ROOTING files" that presented on that thread
i think this is my fault!
is it right?
thanks
Click to expand...
Click to collapse
I understand now.
First that zip should only make use to you to learn a little bit more about development. To install that you need already to be rooted with CWM installed.
Second it doesn't install because our devices use a little bit different things. Edit and change every MTD to EMMC and every yaffs (or similar) to ext4. (Notepad ++)
I have only one recovery, from this thread : http://forum.xda-developers.com/showthread.php?t=2034639
Where I need to put it? in zip file or in system folder?
lozohcum said:
I have only one recovery, from this thread : http://forum.xda-developers.com/showthread.php?t=2034639
Where I need to put it? in zip file or in system folder?
Click to expand...
Click to collapse
Read my tut again, that recovery wont do the job.
Does anybody want help me about the new project. Extract ftf. Look at Q&A section.
I read it several times and still can't get it. So please explain. And can You reupload flashtool?

[SOLVED]deodex zip D6603_Customized US_1288-7827_23.4.A.1.232_R6C

Wondering if anybody around here has some experience on using SVADeodexerForArt?
Trying to deodex D6603_Customized US_1288-7827_23.4.A.1.232_R6C and from what I gathered this is the tool to use, but been bouncing from thread to thread trying to understand how to make use of it and the more I read the more confusing it has become and I'm still at square one...
Anybody willing to shade to light and give direction on how to proceed?
Thanks
-Deodex-
Ok, so after a few days of reading I figured how to deodex my rom, took the long way since I didn't have the rom on my phone, just started from the xperifirm file...
Want to give a big THANKS @serajr for answering my questions and letting me use his zip to add my files for flashing!
This deodex zip is only for the D6603_Customized US_1288-7827_23.4.A.1.232_R6C firmware with root and recovery so be sure you're on that exact firmware before flashing!
-BACK UP before you even think of flashing this-
there is no debloat in the zip , you'll end up with a full stock D6603_Customized US_1288-7827_23.4.A.1.232_R6C deodexed, rooted and dualrecovery firmware
just flash the zip through recovery, wipe cache and dalvik and then boot...
get the deodex zip to flash here
-DM- said:
Ok, so after a few days of reading I figured how to deodex my rom, took the long way since I didn't have the rom on my phone, just started from the xperifirm file...
Want to give a big THANKS @serajr for answering my questions and letting me use his zip to add my files for flashing!
This deodex zip is only for the D6603_Customized US_1288-7827_23.4.A.1.232_R6C firmware with root and recovery so be sure you're on that exact firmware before flashing!
-BACK UP before you even think of flashing this-
there is no debloat in the zip , you'll end up with a full stock D6603_Customized US_1288-7827_23.4.A.1.232_R6C deodexed, rooted and dualrecovery firmware
just flash the zip through recovery, wipe cache and dalvik and then boot...
get the deodex zip to flash here
Click to expand...
Click to collapse
Hello there,
Can you please share how you did that? I am not able to find any way.
I wanna deodex D6653 firmware 23.4.A.1.232 Customized IN
I have .ftf, PRF Creator and SVA Deodexer
Thanks in advance
Mohitash said:
Hello there,
Can you please share how you did that? I am not able to find any way.
I wanna deodex D6653 firmware 23.4.A.1.232 Customized IN
I have .ftf, PRF Creator and SVA Deodexer
Thanks in advance
Click to expand...
Click to collapse
First make sure that you have the firmware you want to deodex, rooted with recovery and installed on your phone already so in your case D6653 firmware 23.4.A.1.232 Customized IN , if not then create a prerooted zip with that ftf file, SuperSu and latest dual recovery with PRFcreator then flash it and boot....Once that exact firmware is on your phone, you can follow those steps below to create a deodex zip.
Here is the process:
-download the zip that I provided in this thread (you'll need it later to swap my files with yours)
-open the ftf with 7-Zip to copy the system.sin file
-then use Flashtool Sin Editor to extract data to get System.ext4
-from there, use ext2explore (download it here) to open the system.ext4
-Once you opened system.ext4, locate those 3 folders (app, framework and priv-app) and build.prop
-create a folder called deodex on your C drive (so C:\deodex) and copy those 3 folders mentioned above and the build.prop file to it
-then move SemcGenericUxpRes folder from framework folder to app folder and take the 2 containing folders from vendor\app and move them to the app folder as well
- then run SVADeoderForArt.exe and selected the path to C:\deodex folder, check deodexing framework, app and private-app, let the tool run (it should tell you if it ran without errors when done)
-now you should have app, dex, framework, odex and priv-app folders (inside the SVADeodexerforart folder) after the tools finished the deodexing process (you can delete the dex and odex as they're not needed anymore)...now move SemcGenericUxpRes folder back to framework folder...also move back the 2 folders that you took from vendor\app, just put them anywhere on your desktop you're going to need them in a minute
-now when you open the deodex zip that you first downloaded, go into the system folder and you'll see 4 folders, app, framework, priv-app and vendor....delete the 3 folders app (but before, move the supersu folder from my app folder to your app folder, otherwise you'll end up without supersu) , framework and priv-app folders and move your 3 corresponding folders in there...now open vendor\app and delete the 2 folders and put yours instead
-your deodex zip should be good to flash now, put it on your sdcard...reboot to recovery, choose your zip to flash , then clear cache and dalvik cache and then boot....now you should have a full stock deodexed D6653 firmware 23.4.A.1.232 Customized IN (if you want to debloat, remove what you don't want from the app and private app folder in the zip before flashing, but you're on your own for that)
And as always make a backup before you start all this
Also, you should thank @serajr, as he's the one that wrote the script to clean and replace the system odexed folders, he nicely let me use it as a base to make my changes
-DM- said:
First make sure that you have the firmware you want to deodex rooted with recovery installed on your phone..............Also, you should thank @serajr, as he's the one that wrote the script to clean and replace the system odexed folders, he nicely let me use it as a base to make my changes
Click to expand...
Click to collapse
Thanks a lot for taking your time to write this and to give me good guide. This will help others too.
Ok i will follow the guide and now i am good to go. In case, any help needed, i will post here
And i think you saying to download your deodexed.zip only for meta inf and SuperSU, so i am not going to download that because i can do it myself so why to download ~800mb zip
And ya, Big thanks to @serajr. I dont know where to post exactly. So i am thanking you @serajr here.
Thanks and Regards
Mohitash
Mohitash said:
And i think you saying to download your deodexed.zip only for meta inf and SuperSU, so i am not going to download that because i can do it myself so why to download ~800mb zip
Thanks and Regards
Mohitash
Click to expand...
Click to collapse
yes, but looks like that you know what you're doing so you should be good to go
-DM- said:
yes, but looks like that you know what you're doing so you should be good to go
Click to expand...
Click to collapse
Ya, you got me right. May be you checked my profile or you can check now my history on XDA
I am just very very new to Sony and lollipop
Sent you pm.....
Regards
Mohitash
-DM- said:
First make sure that you have the firmware you want to deodex, rooted with recovery and installed on your phone already so in your case D6653 firmware 23.4.A.1.232 Customized IN , if not then create a prerooted zip with that ftf file, SuperSu and latest dual recovery with PRFcreator then flash it and boot....Once that exact firmware is on your phone, you can follow those steps below to create a deodex zip.
Here is the process:
-download the zip that I provided in this thread (you'll need it later to swap my files with yours)
-open the ftf with 7-Zip to copy the system.sin file
-then use Flashtool Sin Editor to extract data to get System.ext4
-from there, use ext2explore (download it here) to open the system.ext4
-Once you opened system.ext4, locate those 3 folders (app, framework and priv-app) and build.prop
-create a folder called deodex on your C drive (so C:\deodex) and copy those 3 folders mentioned above and the build.prop file to it
-then move SemcGenericUxpRes folder from framework folder to app folder and take the 2 containing folders from vendor\app and move them to the app folder as well
- then run SVADeoderForArt.exe and selected the path to C:\deodex folder, check deodexing framework, app and private-app, let the tool run (it should tell you if it ran without errors when done)
-now you should have app, dex, framework, odex and priv-app folders (inside the SVADeodexerforart folder) after the tools finished the deodexing process (you can delete the dex and odex as they're not needed anymore)...now move SemcGenericUxpRes folder back to framework folder...also move back the 2 folders that you took from vendor\app, just put them anywhere on your desktop you're going to need them in a minute
-now when you open the deodex zip that you first downloaded, go into the system folder and you'll see 4 folders, app, framework, priv-app and vendor....delete the 3 folders app (but before, move the supersu folder from my app folder to your app folder, otherwise you'll end up without supersu) , framework and priv-app folders and move your 3 corresponding folders in there...now open vendor\app and delete the 2 folders and put yours instead
-your deodex zip should be good to flash now, put it on your sdcard...reboot to recovery, choose your zip to flash , then clear cache and dalvik cache and then boot....now you should have a full stock deodexed D6653 firmware 23.4.A.1.232 Customized IN (if you want to debloat, remove what you don't want from the app and private app folder in the zip before flashing, but you're on your own for that)
And as always make a backup before you start all this
Also, you should thank @serajr, as he's the one that wrote the script to clean and replace the system odexed folders, he nicely let me use it as a base to make my changes
Click to expand...
Click to collapse
I understand the problem but somehow I do follow instructions whose results have been bootloop
đạt gao ô said:
I understand the problem but somehow I do follow instructions whose results have been bootloop
Click to expand...
Click to collapse
Sent you a pm

Categories

Resources