This is a mod of mine who was in the area of Galaxy Ace, and I decided to post here to give a longer range, so that several people can use it.
1) First of all, you need to download and install APK MANAGER:
http://forum.xda-developers.com/showthread.php?t=695701
2) Extract with WinRAR, from the ROM you want to modify, the file framework-res.apk, that you can find in the directory \System\framework\.
3) Go to the apk manager folder and place the framework-res.apk file in the folder "place-apk-here-for-modding".
4) In the apk manager folder, double click on the file "Script". A cmd window will open.
5) Where it says "Please make your decision", write "22" (Set current project) and enter. Then enter "1" (to choose the first apk) and enter. Then enter "9" (Decompile apk) and enter.
The script will decompile the framework-res.apk.
6) Now go to your apk manager folder, go to projects\framework-res\res\anim\.
In this folder there are the animations of your rom. They consist in some .xml files decompiled.
7) Download this: http://www.mediafire.com/?9pf469gjjtpz9qf
8) Copy the files from the folder "anim" of the zip downloaded into the anim folder and you are asked to replace the files; choose yes.
9) Now go to your apk manager folder, go to projects\framework-res\res\values\. Edit the file integers.xml.
Modify the values in those lines: [OPTIONAL]
Code:
<integer name="config_shortAnimTime">150</integer>
<integer name="config_mediumAnimTime">300</integer>
<integer name="config_longAnimTime">400</integer>
to:
Code:
<integer name="config_shortAnimTime">200</integer>
<integer name="config_mediumAnimTime">400</integer>
<integer name="config_longAnimTime">500</integer>
and add these just below:
Code:
<integer name="config_activityShortDur">150</integer>
<integer name="config_activityDefaultDur">220</integer>
Save.
10) Return to Script. Enter "11" (Compile apk) and enter.
The script will rebuild the framework-res.apk.
11) You are asked if this is a system application. Enter "n" and enter.
12) Go to the folder "place-apk-here-for-modding" delete the file "unsignedframework-res.apk", click with the right mouse button on "framework-res.apk" and select "7zip > Open file", delete the folder "res" and "resource.arsc", go to the folder "projects\framework-res\build\apk\" select the folder "res" and the "resource.arsc", drag to zip and close.
13) Ready, now just replace.
P.S.: If you think that this post can help or interest people of other forums (with other devices), please share this post and also give credit to me!
Video demonstration:
http://www.youtube.com/watch?v=6Jy13o4miME
Related
Works in any Android ROM
This will teach you how to make a custom boot screen. (Usually replaces the default HTC quietly brilliant screen)
I HAVE NOW INCLUDED MY FIRST BOOTSCREEN. (It is katy perry wearing an elmo shirt) Download both items, and extract the one that says "EXTRACT THIS.rar" and make sure "Just download this.rar" is in the same file location. (I had to do this because the upload limit was 8mb and I had to split the file)
Then skip to Step 12
I sorted them into steps so you can easily follow what you must do.
1. Download "Root Explorer" from the Android Market. and allow SuperUser access
2. Open the application and go to system->customize->resource->and locate the file that says "bootanimation.zip"
3. on the top of the screen, there should read a toggle that says "Mount R/W". Click it, to where it says "Mount R/O". (Turns on the option to write to your Root)
4. Copy this file to your computer
5. Now put this aside for a while. Download the file attached to this post, extract it, and add it to your it to C:\Program Files\Adobe\Adobe Photoshop CS5\Presets\Scripts
6. Get a .gif or .avi file and open it with Adobe Photoshop. (Make sure it is already edited and must have a frame size of 480X800)
7. Now in Photoshop, go to, File->Scripts->Export Layers to Files(Fast PNG)
8. Locate the file you downloaded earlier to your computer from your phone. Extract it and go into the "android" folder.
9. Go to wherever you saved the exported layers, and rename every frame with accordance the frames in the "android" folder. So it matches.
10. Put all the renamed frames in the "android" folder and delete the old ones.
11. Use WinRar to zip them up again. BUT DO NOT COMPRESS THE .ZIP FILE, OTHERWISE THE PHONE WILL NOT RECOGNIZE IT.
12. Go back to your phone and locate the old "bootanimation.zip" and rename it to "bootanimation.bak".
13. Copy the the new "bootanimation.zip" into the same location and reboot phone.
14. Enjoy!!
Thanks for this very interesting tutorial.
Does anyone know a way without using Photoshop?
thank you very much
thankx a lot buddy this is first working and no problem tutorial...thankx
This is a helping guide from think i learn all this time editing and publishing roms here for U8800pro it isnt something great but i think it will help a lot of people who want to start with easy thinks
Programs and files that you need
Download Java JDK 7u2
Download Cygwin_Packages.zip
Download Android Kitchen Version 0.207
Download ApkTool 1.5.0
Download zip_signer
Download baksmalimanager
Download 7zip
Download Notepad++
The first and most importand thinks to have so you can cook a rom is Cydwin Kitchen!
So what do you need to start your setup!
Download Java JDK 7u2 : Latest Java Development Kit at the time of writing. You can download most recent version here.
Download Cygwin_Packages.zip : Cygwin packages with setup file for offline installation. The Cygwin tools are ports of the popular GNU development tools for Microsoft Windows. For more info on Cygwin read here.
Download Latest Android Kitchen Version 0.207 : Latest android kitchen at the time of writing. You can look for a much recent version at dsixda's Github.
So, once you have got the required files. Follow the steps below carefully to setup Android Kitchen on your PC. Want more details? Watch this video I did on installing Android Kitchen on Windows PC.
1. Install latest Java JDK. It's pretty simple just follow the instructions and you are done.
2. Download and Extract Cygwin Packages and Android Kitchen on your desktop or somewhere easy to access.
3. To begin, install Cygwin first. So, run setup.exe from the extracted files and go through the installation process.
{
"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"
}
4. Choose install from folder not from internet and choose the folder that you extracted on your desktop then click the round icon until it says install next to it!
5. Run Cygwin.exe from desktop once and it will create a folder with your username on /home/ directory.
6. Navigate to the folder where you installed Cygwin and go inside .../home/yourname/ folder.
7. Copy the Android Kitchen Version 0.207 to this location.
8. Run Cygwin.exe and navigate to kitchen folder. for that simply type the command cd kitchen and press Enter.
9. Once inside kitchen folder, type ./menu to run android kitchen. Note: if you get a permission denied error then type chmod +x menu or chmod 777 menu in Cygwin command line utility first and then only run the command ./menu .
10. You will be presented with the Android Kitchen menu seen above. Use these options and get started.
So you have a working cygwin application to be able to let you cook your roms
Now lets use this app
1) Run Cygwin.exe from desktop
2) Wait the terminal to show you your name above and a $ character then type ./menu and press enter
3) Wait for the kitchen to load you will se the menu of the kitchen
4) Now we have to put our base rom on the kitchen folder example c:\cygwin\home\(yourpcname)\original_update folder
5) After adding the zip rom to this file press 1 on the kitchen menu
6) Read and follow the info on the kitchen until it extract the files to c:\cygwin\home\(yourpcname)\WORKING_xxxxxx_xxxxx (x is numbers)
7) In this folder you will have an extracted contents of your rom do anything you like change apk's change libs change what ever you wan't
8) After editing your rom, you can test other features of the kitchen too like adding root or like adding init.d support, press the 99 command on the kitchen
9) The kitchen then will begin to build your rom press the 1 when it ask you its a interactive method to build your rom it will ask you to zipaling your apk's press Y and then wait for the rom to build on the folder c:\cygwin\home\(yourpcname)\OUTPUT_ZIP
10) Your rom now is ready to release with one more think to do...cos kitchen is made for HTC phones the META-INF folder is made for a HTC phone you need to take the META-INF folder from the previous zip rom... (of course is a working for your phone rom) and paste it in the new zip kitchen made for you
Voila you have a working freshly cooked rom from kitchen put it on your sdcard and test it before publish it on the forum!
Now we have to use ApkTool, The latest ApkTool is 1.5.0 and you can download it from here
Apktool lets you de-compile and compile apk's so you can edit them for example you can de-compile your framework-res.apk so you can change the battery icon remember that many thinks to change you need to edit a bunch of xml's too!
So the apktool is a simple tool nothing too dificult and strange
1) After downloading the zip extract it to a folder no in your desktop is good to have all your programs to a specific folder so you dont have to search but its a personal choice
2) The first think to do is to register our systemui.apk and framework-res.apk to the apktool so it can find the strugture of the files we edit
3) Remember that those too files are for a specific phone not for all android phones cos not all android phones uses the same systemui and framework-res
4) So we need to take our two this files from a working rom for our phones and put them to our windows folder (Yeah the exact folder that have your windows in it)
5) We also need the two files inside the apktool zip too...so all the 4 files the two from the zip and the two apk's from our rom to put them on windows folder
6) After that we need to register them through CMD
7) The easiest way to do it is from inside the windows folder with pressed shift and left mouse click to choose open command window here
8) Be sure that the path of the cmd will be C:\Windows just to be sure and then we need to type apktool if framework-res.apk & apktool if systemui.apk we will see after each command that the cmd will tell us that the 1.apk and 127.apk are register on c:\users\......\apktool
9) Now that we have our apk's register we can edit our apk's
10) Now close the window folder we finish from here and open your folder that have the working apktool in it
11) Just like before press shift and left mouse click to open command promp
12) You need to put at least on apk that you need to edit inside apktool folder
13) In the command type apktool d nameoftheapk.apk
14) Wait for the decompile to finish and you will have a folder with the name of the apk that you decompile
15) Inside this folder you will see the contents of the apk you just edit the most easy think to change is the png's the png's are inside /res/drawable-hdpi
15*) Remeber that when you edit an apk to make a mod just like move statusbar clock to center or make transparent status bar use the exact steps that you find here on xda on a tutorial you will find don't just change png's and xml's the sure think is that after finishing this the apk will give you a lot of FC's!
16) Anyway after changing whatever you want inside the apk go again to the command promp window and type apktool b nameofapk (without the .apk extension) nameofapk2.apk! INFO:You dont need to put the apk extension in the first part cause you now compiling the folder not the apk and then you need to add a 2 or 3 or test after the name of the apk so it didn't cause problems with the existing apk with the same name!
17) Your apk is now ready remember that sometimes the apk will be smaller on size if this is happening the compile is faulty mostly cause resources.arsc didnt copy in the new apk or some times most of the times if it is a system apk like systemui.apk or settings.apk you need to open the original apk and took the META-INF folder and the androidmanifest.xml and paste them to your new created apk!
Now we need the zip_signer. The zip_signer tool is a simple tool that you can sign your roms without having to put them on the kitchen only for signing its quite simple to use
1) Download zip_signer from here
2) Extracted to a folder on your pc and open the application
3) Drag the rom that need signing and press sign then wait for the app to finishing and then you will see a newly created zip on the same folder this is you new sign rom ready to use!
INFO: So now what is sign and why we need it..remember when you trying to install a rom that the cwm sais (bad) this is an unsign zip sing need to verify the files in the rom and to see that they have the same key...also remember that you need to sign a rom when you just edit apk's through winrar on winzip kitchen always sign a rom when cooking it!!
One more came to my mind is the smali/backsmali editor
Smali files are files inside an apk and/or a jar file in our roms that we need to decompile from apk/jar edit and the recompile it an example of editing a smali file is smooth scrolling and patched services on ICS/JB for memory optimise with supercharger
1) First of all again you need to download baksmalimanager from here
2) Also like the apktool this is an easy tool to use extract it on a folder to your pc
3) Open the baksmali Manager.bat ignore the adb error press enter and in the interface choose 4
4) There is no need to say that you already have your apk/jar file in the same folder with baksmali Manager choose it on the interface
5) Then press 1 and wait for the tool to baksmali the apk/jar file
6) When it finished dont close the manager you will see a folder named after the file you just baksmali open it made tha changes again unter a tutorial and then go again to the baksmali Manager
7) After finishing editing the smali files and you are back on the baksmali Manager choose 2 and wait for the tool to smali the apk/jar that you just edit
8) The diference with apktool is that after the tool is finished smaling the files it will extract a classes.dex in the folder you have the tool
9) This is the compiled smali files you just edit take this classes.dex file and put it in the original apk/jar that you baksmali in the first use 7zip cos is the best for this thinks after droping the classes.dex file to your apk/jar file you are ready to put the new file in your device for testing!
Thats for now more as i remember to come!!
Bump may need who knows!!
Nice Guide Ill follow this weekend.
pika the ultimate uot kitchen si 208 not 207 and there are a lot of other tool to unpack file .smali to unpack update.app
mauronofrio said:
pika the ultimate uot kitchen si 208 not 207 and there are a lot of other tool to unpack file .smali to unpack update.app
Click to expand...
Click to collapse
I dont update kitchen if its an update you can update inside kitchen...also i know there are a lot of tools to unpack a update.app but kitchen is the easiest!!this is a help guide to start with no to read it and then go to work to google!
Update links please.
Umm Ok pika i used this guide to port and few more stuffs *Stalker!!* lol. Well add this to requirements!
1)Android SDK for ADB
We need this to take logcat when the rom we made is not booting .
And moreover NEVER EVER LET kitchen make a kernel for you! It screwes up! I was porting DesireHD pacman onto My CM10. kitchen just swapped ramdisk and the phone was stuck on Huawei Logo. Next i pulled out battery tried to go to Recovery to restore found out alls gone so it was a bluescreen. So remember this when you make rom out of Dsixda's kitchen change the META-INF folder and chnge the BOOT.IMG.
Ramdisk and init.rc doesnt allow htc roms to boot on our phone.
And I think Ivans 6.0 recoery could be used to Mount our U8800pro im the kitchen directory i kinda did it.
-Rik[Rittik]
Reverse engineer "Perfect software" , managed to convert apk to a jar file and decompile it using JD(via dex2jar)
The program uses 3 tools (apktool.jar, dex2jar.bat, jad.exe)
I've updated all lib/scripts ,apktool.jar 1.5.2, dex2jar 0.0.9.15
in attach you will find
Fragment.apk I've tested with this tool and works fully !!,look on OutPut_Fragment.zip to see the result
Download:
DeCompileAPK.zip
To Start
Works on Windows7/8
1. Scan dir for “apk” file or look for the file with “APK File Directory”.
Scan has a “subfolders” flag ,in the “Options” tab.
2. Double click on the found file it will be transferred to the “APK File Directory”.
3. Write or look for the output directory. Leaving this line empty will put all
the project output files under the directory “OutPut” where this program is executed.
If there is an output directory name, a directory “OutPut_” + APK file name
will be created.
3. Press the Decompile KEY.
4. All Dos messages will be seen in the “Decompile OutPut” panel.
5. It will be shown also in the “Edit log” panel.
6. The log can be edited and printed.
7. A java file editor is included. Scan project files, Scan any directory or open any file.
NOTE : USE ONLY ENGLISH CHARACTERS FOR FILE NAMES !
Credit and Thanks !
Tool Dev Website: http://www.limelect.com/android/
Reversed for new stuff
anyone tell us how it works with him?
codexc said:
anyone tell us how it works with him?
Click to expand...
Click to collapse
no download link to test
Here is a way by which you can Change the Displayed Custom Rom Name
THIS CANNOT BE DONE BY EDITING "build.prop" FILE SO READ THIS GUIDE FOR XPERIA DEVICES CUSTOM ROMS.
Software Needed (downloads attached below)
1) Java
2) 7-zip
3) Notepad ++
4) Advanced APK Tools
Files Needed From Custom Rom:
1) framework-res.apk (from "system >> framework ")
2) SemcGenericUxpRes.apk (from "system >> framework ")
3) settings.apk ( from "system >> app")
Expected From You :
1) Some Time
2) Patience
3) Basic knowledge of Installing Software.
Step wise Guide
STEP 01 : Download and Install "Java" and "Notepad++". Extract "Advanced APK Tools".
STEP 02 : Place the Three Files mentioned above from Custom Rom to "2-IN" folder of Advanced APK Tools.
STEP 03 : Open "Advance ApkTool.exe"; it will check Java on your your PC and then you will get a screen showing different options.
STEP 04 : Type "1" and press Enter to select the Option "1- Install Framework". Install "framework-res.apk" and "SemcGenericUxpRes.apk". Then come back to Main Menu.
STEP 05 : Type "2" and press Enter to select the Option "2- Decompile Files". Decompile "settings.apk" and wait for some time as it will take some time. After decompiling minimize "Advance APK Tools" but DO NOT CLOSE it.
STEP 06 : Open "3-OUT" folder in "Advance APK Tools" folder. There you will see a folder names "Settings.apk". Open this folder and go to " res >> values " folder.
STEP 07 : In the Values folder open the file "strings.xml" using Notepad++. Press "ctrl" and 'F" keys on the Keyboard of your PC at the same time to find the Rom Name as shown in Device. After Finding the ROM Name replace it with Whatever you Want. Save this file and Close is.
STEP 08 : Go back to "Advanced APK Tools" and Type "3" and press Enter to select the Option "3-Recompile Files". Recompile "settings.apk" and wait for some time as it will take some time. After recompiling close "Advance APK Tools".
STEP 09 : Now go to "4-OUT" folder of "Advanced APK Tools" where you will find "settings.apk". Extract this file using 7-zip.
STEP 10 : Open the extracted "settings.apk" and delete the file "Android Manifent.xml " inside it.
STEP 11 : Open 3-OUT" folder. Then go to "Settings.apk folder >> original " from this folder Copy all the contents i.e. "META-INF" folder and " AndroidManifest.xml" file and paste them in extracted "settings.apk" in "4-OUT" folder.
STEP 12 : After all this, select all contents of settings.apk in 4-OUT Folder and add them to archieve using 7-Zip and replace ".zip" extention by ".apk".
Place this "settings.apk" into "system >> app " folder of Custom Rom and flash this Custom Rom. You will have the ROM NAME changed.
DOWNLOAD Advance apk tool FROM HERE
CHEERS YOU HAVE DONE IT:good:
seems good
Nice post seems usefull to me
Edit: Wrong thread whoops!
Looks nice. This can also be placed in the CrossDevelopment section from Sony
~~ Regards
Copied ?
Don't you think you just copied your thread from my one ?
http://forum.xda-developers.com/son...t/guide-how-to-change-rom-custom-rom-t2841070
By ROM name do you mean Build number? Also screenies would be nice...
(that's for the both of you )
~~ Regards
iSiddharth said:
Don't you think you just copied your thread from my one ?
http://forum.xda-developers.com/son...t/guide-how-to-change-rom-custom-rom-t2841070
Click to expand...
Click to collapse
I din't copied it I just have corrected the files and pasted as it was not working on Xperia sp but now it is....ok
ravendra275 said:
I din't copied it I just have corrected the files and pasted as it was not working on Xperia sp but now it is....ok
Click to expand...
Click to collapse
OKKK
And sorry to blame you, that was not my intention..
iSiddharth said:
OKKK
And sorry to blame you, that was not my intention..
Click to expand...
Click to collapse
it's ok
Thread Closed: 12. Using the work of others. Please see Forum Rules....
Maybe you know about it, but I just wanna share something I think very interesting : Simple way how to put and modify a file/folder to C:\directory*
1. Based on this thread , pleased know: How to open C:\ folder directly on your phone.
2. Firt thing, copy your file to "This Devices". ex: Documents folder (is up to you, not only Documents folder. You can use other folder)
3. Now, open C:\ directory like following step 1.
4. Go to C:\DATA\USERS\PUBLIC\Documents (here is your file)
5. Try to Copy or Move your file on here (C:\DATA\USERS\PUBLIC\Documents) to root of C:\ or somewhere you liked by pressing the address at the top bar.
*you must know, some file/folder can't modified or re-write because they're have read-only attributes. :laugh:
Thanks, :good:
@T4ufik_Hidayat