I am sharing a tool that I have been using for years to customize roms, because I am heavy modder.
With this I can download multiple roms and cherry pick the feature I want and get rid of the ones I do not want. Its like Aroma on steroids
You are in complete control of the look and feel from the first boot, provided you know what you are doing.
You can also use this tool to mod multiple roms or same the rom with different feature/themes.
How does it work:
You must have a Windows 2000 or later.
Download and install 7zip. If you are using a Windows x64. Download the x64 version of 7zip.
Download the zip file buildrom-template.7z and unzip it anywhere on your PC.
Place the full filename (e.g. system\app\PDF_Viewer_F_A.apk) or directory (e.g. system\media\oobe\video) for the files/app/wigdets you want to delete in a text file (in this template this is delete-rom-1files.txt and/or delete-rom-2files.txt). If change the filename you will need to change it in the corresponding batch file. In this template, it is customise-rom-1.bat or customise-rom-2.bat
Add the files/apps/mods/wall papers/fonts/ring tones (whatever) to their correct file location (directory) in the include directory. E.g. If you had an inverted gmail.apk app, you could put it in the include\data\app\ directory.
Drag and drop the rom zip file on the batch file that will start the customization (in the template this is customise-rom-1.bat or customise-rom-2.bat)
Your are done unless you want to theme the rom.
To theme the rom look into the themes directory. This should be straight forward. I left the files I used to theme Sense 5 as an example.
[*] The apk/app to be themed are placed in the apk-to-be-themed.txt. Look in the file for examples [Edit: 4/23/213]
Drag and drop the customized rom on the themer.cmd batch file after you have all the icons and layout changes in place.
Happy modding!
Files
buildrom-template.7z
Mine...
yardi4life said:
I am sharing a tool that I have been using for years to customize roms, because I am heavy modder.
With this I can download multiple roms and cherry pick the feature I want and get rid of the ones I do not want. Its like Aroma on steroids
You are in complete control of the look and feel from the first boot, provided you know what you are doing.
You can also use this tool to mod multiple roms or same the rom with different feature/themes.
How does it work:
You must have a Windows 2000 or later.
Download and install 7zip. If you are using a Windows x64. Download the x64 version of 7zip.
Download the zip file buildrom-template.7z and unzip it anywhere on your PC.
Place the full filename (e.g. system\app\PDF_Viewer_F_A.apk) or directory (e.g. system\media\oobe\video) for the files/app/wigdets you want to delete in a text file (in this template this is delete-rom-1files.txt and/or delete-rom-2files.txt). If change the filename you will need to change it in the corresponding batch file. In this template, it is customise-rom-1.bat or customise-rom-2.bat
Add the files/apps/mods/wall papers/fonts/ring tones (whatever) to their correct file location (directory) in the include directory.
Drag and drop the rom zip file on the batch file that will start the customization (in the template this is customise-rom-1.bat or customise-rom-2.bat)
Your are done unless you want to theme the rom.
To theme the rom look into the themes directory. This should be straight forward. I left the files I used to theme Sense 5 as an example.
Drag and drop the customized rom on the themer.cmd batch file after you have all the icons and layout changes in place.
Happy modding!
Files
buildrom-template.7z
Click to expand...
Click to collapse
could you explain a littlle bit more about the theming part? i ll have to change all icons and layout changes in the rom and then add the .zip to file to the batch file?
galaxys3lover said:
could you explain a littlle bit more about the theming part? i ll have to change all icons and layout changes in the rom and then add the .zip to file to the batch file?
Click to expand...
Click to collapse
If you look at the themes folder in the template if should make for sense.
You need to create the folder/directory structure exactly like it is in the apk you themeing (See the picture below).
Then you place the pictures or modified xml files in the correct folder.
When you drag and drop the rom zip on the themer.cmd batch file, files in the rom zip will be updated with the changes from the folders.
{
"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"
}
Related
Ok has anyone managed to (successfully) change their battery icon on 2.2.1. I've tried various times but it always ends in boot loops or no battery indicator at all. They've mostly come from the UOT Kitchen, but I've no idea how to properly 'install' them as such.
Any ideas?
There is an app for sgs to change battery icon. Maybe that app can help you.
Joost
Sent from my GT540 using XDA App
sgs is hdpi it wont work
adb pull /system/framework/framework-res.apk
it will end up in your user folder, mine is Mark
get that apk and extract it using 7zip or other program
look in the folder drawable-mdpi folder and you will see towards the end a bunch of battery icons representing the amount of charge.
replace those files with those from another theme or rom.
once done then create a folder called res and put all extracted folders in there.
then put the res folder in a new folder called framework-res.
place framework-res (and this xml file http://dl.dropbox.com/u/18706196/BattIcon.xml) in a zip called BattIcon
on your phone go to market and get metamorph.
copy the zip made earlier onto your sd card in a folder called AndroidThemes.
open metamorph and select unzip theme, unzip the file you added
then click select theme and choose the folder and tap the xml inside.
a popup will come just click ok then click apply all another popup will come just hit ok
it will apply and may ask to restart or it may do itself.
voila icon changed
same proccess used for theming
pashinator said:
adb pull /system/framework/framework-res.apk
it will end up in your user folder, mine is Mark
get that apk and extract it using 7zip or other program
look in the folder drawable-mdpi folder and you will see towards the end a bunch of battery icons representing the amount of charge.
replace those files with those from another theme or rom.
once done then create a folder called res and put all extracted folders in there.
then put the res folder in a new folder called framework-res.
place framework-res (and this xml file http://dl.dropbox.com/u/18706196/BattIcon.xml) in a zip called BattIcon
on your phone go to market and get metamorph.
copy the zip made earlier onto your sd card in a folder called AndroidThemes.
open metamorph and select unzip theme, unzip the file you added
then click select theme and choose the folder and tap the xml inside.
a popup will come just click ok then click apply all another popup will come just hit ok
it will apply and may ask to restart or it may do itself.
voila icon changed
same proccess used for theming
Click to expand...
Click to collapse
Thanks, I'll give it a try once I get to a computer, just one question, the stock battery icon goes down in 10%, would it make a difference if I then added a battery icon that moves in 1%?
pashinator said:
adb pull /system/framework/framework-res.apk
it will end up in your user folder, mine is Mark
get that apk and extract it using 7zip or other program
look in the folder drawable-mdpi folder and you will see towards the end a bunch of battery icons representing the amount of charge.
replace those files with those from another theme or rom.
once done then create a folder called res and put all extracted folders in there.
then put the res folder in a new folder called framework-res.
place framework-res (and this xml file http://dl.dropbox.com/u/18706196/BattIcon.xml) in a zip called BattIcon
on your phone go to market and get metamorph.
copy the zip made earlier onto your sd card in a folder called AndroidThemes.
open metamorph and select unzip theme, unzip the file you added
then click select theme and choose the folder and tap the xml inside.
a popup will come just click ok then click apply all another popup will come just hit ok
it will apply and may ask to restart or it may do itself.
voila icon changed
same proccess used for theming
Click to expand...
Click to collapse
Also that link doesn't seem to work for me. This is what I get:
{
"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"
}
EoinSheehy said:
Thanks, I'll give it a try once I get to a computer, just one question, the stock battery icon goes down in 10%, would it make a difference if I then added a battery icon that moves in 1%?
Click to expand...
Click to collapse
Well it would probably make the battery icon flash when on screen. But what you can do is, say the battery icon is meant for 1% accuracy then you can use the more accurate icons and place them on the 10% blocks so you can see where your battery is more clearly. Does that make sense?
i have the Voicemail Icon on my Status bar ALL the time.
NO it's not a service provider issue. Nor anything else. it's just something i have to live with it (i live in Iraq,and trust me these things are normal here)
WHAT I NEED IS: is it possible to REMOVE the icon from the system so i can't see it on the status bar anymore????
If your rooted you could find the png file in framework-res.apk or systemUI.apk and replace it with a transparent image other than that i cant help sorry.
Yes Rooted. and Yes i want to use this method (either delete or make it fully transparent)
BUT: where can i find those? directory ???
omid_freesky said:
Yes Rooted. and Yes i want to use this method (either delete or make it fully transparent)
BUT: where can i find those? directory ???
Click to expand...
Click to collapse
framework-res.apk is in system/framework
SystemUI.apk is in system/app
What rom are you on?
Custom or stock?
Take a screen shot with the icon ill see if can change it for you.
i use CriskeloRom V18 with Blue theme
and as you can see from the screen shot the voicemail is ALWAYS there.
{
"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"
}
BTW, Thanks for your concern and kind help.
I have found the file its stat_notify_voicemail.png in framework-res.apk.
Can you copy your framework-res.apk from system/framework with a root file manager and upload it and ill replace the image for you.
If your not sure how to do this let me know and ill try to explain.
Ive modded the file to be transparent just needs injecting into your framwork
can you teach me how to replace the PNG inside the APK? so i can do it myself in the future.
Thanks again ( A LOT )
update:
the Framework-res.apk is over 10mb big and won't load (unless i zip it and send it in 2 parts) ... it'll be great if you tell me how to replace the png.
Sure i can we like a user who likes to learn
first you need winrar http://www.rarlab.com/
1. using a root file manager (this is a good free one http://www.ghisler.ch/board/viewtopic.php?t=30417) copy your framewor-res.apk from system/framework to your internal or external SD Card
2. Copy it off the SD to your pc.
3. open the framework-res.apk on your pc with winrar
4. Navigate to drawable-hdpi
5. drag the modified stat_notify_voicemail.png i attached into drawable-hdpi leave all the options as they are and press ok.
4. copy the framework-res.apk bk to system/framework *you might get a force close or random reboot (dont worry its normal)
5. when phone has rebooted navigate to system/framework and change the permissions to as per my pic.
6.reboot
7.???
8. Profit
Hope that made sense!
Never will the voice mail icon annoy you again
My upload didnt work properly ive rar'd it up hopefully will work better this time
no matter what i do or use it won't let me edit (over write - replace - rename) the framework-res.apk file.
i replaced the png but can't replace the whole apk
PS: is there a way to permanently stop the Voice mail. (like uninstall the functionality from the phone)
You need to set your file system to writable, try this.
1. Download es file explorer from the market
2. In options tick root explorer
3. Tick mount file system as writable
4. Copy the file using es explorer
-possible reboot
5. go bk to system/framework in es explorer
6. long press the file - properties and change permissions to match my pic
6. reboot
hopefully that should sort it and you still get voicemail
ps. this shouldn't need saying but im gonna say it anyways, make sure you have a CWM recovery backup first just incase something goes wrong and you can restore
Hello Guys,
I was just getting bored so decided to share some of my knowledge regarding compiling and editing .9.PNGs using draw9patch tool from Android SDK and xUltimate 9PatchCompiler. This is based on what I learnt when I created my Ice Cream Sandwich Theme.. This is not for N00BS. It's just for people who are willing to learn new things.. There are easy methods to do this but I like this one.
I am not responsible for any damages caused due to following this guide.
WHAT YOU NEED -
Click to expand...
Click to collapse
1. The Android SDK ( It contains Draw9Patch Tool ) (requires JDK for installation)
2. xUltimate 9PatchCompiler
3. Photoshop/GIMP (For Resize)
4. APK Manager (For Decompiling APKs)
5. Common Sense
6. Lots of Patience and some experience in de-compiling APKs
HOW TO -
Click to expand...
Click to collapse
1. De-compile the APK whose .9.PNG you want to re-size using APK Manager (you need to decompile as you need Raw APK for resize otherwise it will look weird). Browse to that decompiled .9.PNG. You will notice Black LINES/DOTS are in border of that .9.PNG (see the example Pic Below)
{
"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"
}
2. Now carefully observe these lines and remember how it looks. You need to remember the pattern on how these lines are drawn. Every Line/Dot is important and if you fail to realize you will end up with an error during last few steps.
3. Suppose you need to re-size the APK to a x b px resolution then open up Photoshop/GIMP or any editor and re-size the image to a+2 x b+2 px resolution.
4. You will notice some Lines/Dots will disappear. It's all fine.
5. Now browse to directory where you have installed Android SDK and go to TOOLS folder in it and fire up the file named draw9patch, when you are done it will open like image below.
6. Now go to File and click Open 9Patch and then open the .9.PNG you just resized to a+2 x b+2 px , it will look something like
7. Now construct the missing lines on basis on the pattern you memorized before re-sizing image. Be careful, and draw cautiously. To draw you just need to drag mouse while left-clicking. You can delete lines by pressing shift button and and left clicking and dragging.
8. When done, go to file again and save the image.
9. Go to directory where you image was there and copy it.
10. Navigate to directory where you have extracted 9Patch Compiler ZIP and paste the .9.PNG to GO-INSIDE/res/drawable-mdpi.
11. Go back to main folder and click xUltimate-COMPILER this will generate a folder done in same directory if you have drawn lines properly.
12. Go to /done/GO-INSIDE/res/drawable-mdpi and you will find there is your .9.PNG compiled with no black Lines/Dots.
YOUR 9.PNG is ready for use.
reserved for something i forgot..
a good video for the 9.png is found here:
http://www.youtube.com/watch?v=IfrXE2R2nqM&feature=related
it´s a bit long with a lot of text, but it is worth to view and to get a good start with this guide.
A better example would be one a picture with a letter or a pattern in it, a uni color png is not very good for a graphical explanation for what the black lines are good for and what the effect will be.
No offense bro, just a tick to improve this topic.
cheers
qaysed
As much as I appreciate your work, but there's already a more detailed tutorial available here:
[TUTO] Create your 9.png !
you have done a good work friend but there are optimizer software's better and makes easy just suggestion
venkat kamesh said:
you have done a good work friend but there are optimizer software's better and makes easy just suggestion
Click to expand...
Click to collapse
Yeah, I know.. Just in case somebody wanted to learn I made this coz I had to struggle a lot to learn this coz there werren't good tutorials..
Android App Theming Guide(Self)
This is my guide on how to create themes for Android Apps.
First lets start with desktop preparation.
Tools you need
Decompiling tool : apktool
Image Editor : Adobe Photoshop(paid) or Photoscape(Free)
IDE : Notepad++ (one of the best code reading tool)
Tools and SDK : Android SDK with any API(API-10 if you want to theme only for SGY)
1.Download apktool and extract the files in windows root directory (windows) or add the directory where aptool files are in to PATH
2.Navigate to directory where the apk file is using cmd and type
Code:
apktool -v d filename.apk destinationdir
4.Now you have the folder with all the xml files and images which are now in human readable format.
Reserved
Image files
First, Lets start with editing the image files..
Before that android uses png image files mostly as this format contains transparency and alpha stored in image and it is light.
The two most used image files are .png and .9.png.
The file .png can be edited by the photo editor i have posted but the .9.png requires a seperate care.
For editing .9.png first you have to use normal photo editor to edit the image and then drag the resulting png image into the draw9patch file in sdkdirectory/tools.
So What is this .9.png????
Unlike normal png files this .9.png files contain information for expansion of the image according to the content inside.
With the draw9patch draw black borders to the edges what you feel that has to be expanded.
This is how the draw9patcher screen looks like
{
"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"
}
XML Files
Now the second part is the xml files..
These are present in res folder.
Android uses xml files for the user interface part of the app and Java for the logic.XML files are the very important files used by an Android App.
XML files are for Layout,Manifest values..etc
We are not going to tamper with these xml files a lot.
The basic operations using XML files are editing the layout and animations or drawables etc.Also Xml editing is used to change string values in APP.
You can also add additional image to android apps.This can be exactly done by,
Choose the required image and put it in /res/drawable folder.
Now open the folder values inside res and open public.xml using Notepad++ and go to the last line of type drawable (incase of image) or any other depending on resource and create a new line like
HTML:
<public type="drawable" name="imagename" id="" />
In the place of id put the id of your previos line incremented by 1.It is in HEX so for example if my previous line ID is 0x750395f then the id for this line will be 0x7503960
SMALI FILES
smali files are present in the folder src.This is somwhat tricky part as these are dalvik-bytecodes which are of low level language and are similar to the java files you write.These are the files you have to modify in order to change the app permissions or if you want to mod the app by customising features and adding additional features.You can find more information of smali here
Tip:If you find smali difficult just write your code in java and build it.After that decompile the resulting apk and take the smali code from it...
Now once you are ready with all just build app by
Code:
apktool b WorkingFolderName appname.apk
Pls dont forget to sign your app
Press Thanks is this was helpfulll :good:
Thanks and Gud luck
optimus
Nice guides
ROM EVOLUTION X3
KERNEL HELL FUSION
ALINS JB THEME + EVOLUTION S3 STATUS BAR.
Thanks
Really needed it.
Sent from my GT-S5360 using xda app-developers app
Nice guide
PHONE SLOW CLICK ME?
_____________________________________
"No one lives in the slums because they want to. It's like this train. It can't run anywhere except where its rails take it."- Cloud[FFvii]"
Is there a more simpler way of creating themes? Like using drag and drop method? Can someone provide a link?
nice, will try it on my phone but it is s6312
hope that it works
So, if I want to change my stock ROM pop up look like ICS, I must edit 9.png ?
metalhead\m/ said:
nice, will try it on my phone but it is s6312
hope that it works
Click to expand...
Click to collapse
Nice Guide
{
"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"
}
INTRODUCTION
this is a guide , with this, you can make your own flashable zips
DISCLAIMER
Code:
[SIZE="3"][CENTER]Please Follow The Instructions Carefully, Just In case Anything Goes Wrong, Please Don't Blame Me[/CENTER][/SIZE]
DOWNLOAD
BASE.zip
INSTRUCTIONS
Download the given BASE.zip
place it somewhere in your PC and extract it using any zip manager(Ex: WinRAR , 7zip etc)
you will find 3 folders
go inside system, and add whatever you want..
then repack the zip ,give whatever the name you want and flash using twrp:good:
HOWTO?
detailed guide/ instructions
like, how to add apps, boot animation, ringtones, fonts etc
ADDINGAPPS
go inside system folder
create a folder named "priv-app" (without quotes)
and now, create another folder (with the name of your app, without spaces) inside priv-app
and place the apk file inside the folder that you just created
the path of your apk should be like:
Code:
[CENTER]BASE\system\priv-app\PixelLauncher\PixelLauncher.apk[/CENTER]
BOOTANIMATION
go inside system folder
create a folder named "media" (without quotes)
and place the bootanimation.zip file inside the folder that you just created
the path of your apk should be like:
Code:
[CENTER]BASE\system\media\bootanimation.zip[/CENTER]
RINGTONES
go inside system folder
create a folder named "media" (without quotes)
inside media, create another folder "audio" (without quotes)
inside media, create another folder "ringtones" (without quotes)
and place the ringtone.ogg file inside the folder that you just created
the path of your apk should be like:
Code:
[CENTER]BASE\system\media\audio\ringtones\"yourfile".ogg[/CENTER]
CUSTOMFONTS
download any FULL font pack
and extract the font zip,
you till noticee font files
use the same procedure and coppy ALL font files to "fonts" folder inside system, and obtain path to be like
Code:
[CENTER]BASE\system\fonts\font files.ttf[/CENTER]
if you want to add some apps that can be uninstalled later,
you will find a folder named "data" ,inside the BASE.zip
inside that, there will be another folder named "app"
now, drop any apk here, if you want that apk to be uninstallable after the flash, that is
it should be like like
Code:
[CENTER]BASE\data\app\uninstallable_app.apk[/CENTER]
WARNING
DO NOT TOUCH ANYTHING INSIDE META-INF FOLDER
IMPORTANT
:laugh::goodLAY ON AND PRESS THANKS :good::laugh:
Long time guys
#1
good to see you again.. welcomeback
the__wolverine said:
good to see you again.. welcomeback
Click to expand...
Click to collapse
thank you, but i will not be here for too long though
Hi, I tried to flash new version of Miui Music app but it doesn't read my musics, permissions are ok. What's wrong with that?
squirrel27 said:
Hi, I tried to flash new version of Miui Music app but it doesn't read my musics, permissions are ok. What's wrong with that?
Click to expand...
Click to collapse
i cannot help youwith the app specific problems, may be the app is missing libraries or odex files or permissions within etc folder..(which, by the way are somewhat pro things)
i can help you if you have any problem with flashing the zip or if you cant flash the zip, or if you want help in the procedure, or if your app is missing even after flashing the zip..
best adwise that im gonna give you is,
try and put your app inside data/app/miuimusicplayer.apk
it will work:good:
thilak devraj said:
i cannot help youwith the app specific problems, may be the app is missing libraries or odex files or permissions within etc folder..(which, by the way are somewhat pro things)
i can help you if you have any problem with flashing the zip or if you cant flash the zip, or if you want help in the procedure, or if your app is missing even after flashing the zip..
best adwise that im gonna give you is,
try and put your app inside data/app/miuimusicplayer.apk
it will work:good:
Click to expand...
Click to collapse
I just dropped the same apk in data/app but this time it's not installed
squirrel27 said:
I just dropped the same apk in data/app but this time it's not installed
Click to expand...
Click to collapse
are you sure the path was base.zip/data/app/music.apk ??(should work if this is the path)
or if you just created the data folder inside system??lol
btw, which rom are ou tryin this on??