[GUIDE] How to create CM12 Themes using Eclipse/Android Studio - Android Themes

{
"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"
}
Hello everyone, I'm back once again from my cave and providing this active community with something beneficial. Lately I wanted to get back into Theming, this time for CM12 but the guides out there aren't what I'm looking for. They have potential and is a great way to start but for me... It just wasn't working out. I'm going to keep this tutorial simple and on point whilst proving useful information as well, however this time I will NOT be explaining how to theme. That is something you're going to have to learn yourself. But you may ask me or other users on how to theme certain content and if you need help. Don't hesitate to ask us, we're here to help.
Click to expand...
Click to collapse
What this guide will help you with -
- Creating and coding a simple Theme base from scratch. - Creating resource folders and needed .xml's for the theme to register correctly. - How to harness the power of Kryptonite. - Provided code and resources.
Click to expand...
Click to collapse
- A good image editing software, I use Photoshop(Paid) and Paint.NET(Free). Gimp is also another good software. - Android Studio or Eclipse. (Eclipse preferred) - And your special Iron Man underwear.
Click to expand...
Click to collapse
Section One
0. Create an Icon for your theme (512px x 512px) then convert it to different DPI's here. 1. Open your preferred IDE and create a new Android Project. 2. Name your App (Theme Name) and give it an appropriate packagename (com.yourname.appname). 3. Skip the icon and use API 21 as target and compiler. 4. Finish creating your project.
Click to expand...
Click to collapse
Section Two
1. Navigate to your workspace folder. 2. Open your project folder and delete the following. - Res folder - The folder inside src folder (Should be labeled as package name) - Your Manifest file.
Click to expand...
Click to collapse
Section Three
1. Download my theme_package. 2. Extract the folder and move everything into your workspace directory. 3. Overwrite assets folder when prompted. 4. Go back to your IDE and refresh your project folder to apply changes.
Click to expand...
Click to collapse
Section Four
1. Open your AndroidManifest.xml file and delete everything. 2. Go here and copy the code and replace it with yours. 3. Apply all the changes stated in the code. (Package Name) 4. Save everything.
Click to expand...
Click to collapse
Section Five
To theme create a folder in the /assets/overlays folder. Give the folder the packagename of the app you're theming (com.android.whatever). remember the structure of theming is exactly the same contained in the app you're theming. For example, if you theme ic_launcher.png (icon) from /res/drawable-xxhdpi then create a folder inside of com.android.whatever called res then create a folder inside res called drawable-xxhdpi. Then drop in your themed image into the folder and you're done. The same goes for any asset file or .xml code. Note you cannot modify the code within the application as there is no way to do so, so please don't ask.
Click to expand...
Click to collapse
If you think this guide helped. Then hit the thanks button!
Click to expand...
Click to collapse

If you would like to load a template instead manually making one, you can download a pre-made template by me.
Download from http://thearcproject.tk/ make sure to click on the Projects tab and select the third project.
Thanks

hi i cant find the res folder could u pls help me out thanks.

What to do to change only the green-esque colors? (sliders, some texts & icons)

Google for 'Theme DIY'

How to test the theme
TheArc said:
Click to expand...
Click to collapse
After completion of process how can I test the first theme that was created by me by following the instructions of yours. Please help

syed sajid said:
After completion of process how can I test the first theme that was created by me by following the instructions of yours. Please help
Click to expand...
Click to collapse
Export the .apk and install it on your device or run the "Build" or "Run" function in your IDE.

What if I'm using Android Studio 1.2. The package you provide in section three is pretty different.

Using Android Studio, I navigate to assets > overlays and right click and select New > Directory and create com.android.settings. I select the folder I just created and right click and select New > Directory and create res. Android Studio creates res in two places, assets and com.android.settings. What am I doing wrong?

I want to edit the status bar icons spacing. Both system and notification icons. Is it possible?

Hello,
I did what you said, Android Studio exported the APK successfully... but after installed on my phone, CM just doesn't recognize it :/
Here is my APK: drive.google.com/file/d/0B7ix-E7JPJ2iX0E4UDBhRFhuY3c/view?usp=sharing
Could you please have a look at the file and tell me what I done wrong?
Thank you!

Nice guide sir, but anyone got their theme working on cm12.1/13 here with this base ?

Related

[PC BETA APP] AndroSkinner .1 - Mix and merge themes

This is currently for HDPI devices
This is something I made personally to help with constantly merging themes to get the desired look I want. It wasn't until I saw ThemePorter that I thought this would be useful. I plan on developing this to the max if the interest is there. This will allow you to virtually merge any roms no matter what version of android the themed ROM is running (froyo/sense/2.1/2.2). It does this by analyzing the files within the hdpi/mdpi/ldpi folder of the themed ROM and replacing it with the new version only if it exists in the old ROM.
Requirements:
-Windows based PC
-.NET 4.0 framework installed (If you dont currently have it installed, the program should download and install.
-If you have any issues running it, try running as adminstrator
Features
-Mix and match system framework images from different ROMS
-The current version only allows for framework images (status bar icons, buttons, checkboxes, etc..)
Instructions
Important:
**Extract the contents of the zip file to C:\AndroSkinner**
Once the program is installed and loaded, select your current ROM be selecting load from the dropdown. Do the same for the themed ROM. Once both are loaded, click the merge button.
After the program completes the merge, your modified system.framework-res.apk will be in C:\AndroSkinner. You need to push this back to "system\framework\" using ADB.
Important Notes
--I take no responsibility for any damage done to your phone--
There is still a possiblity that you may get a bootloop after pushing modified framework back to your phone so I reccommend creatin a nandroid backup. Depending on the themes you chose to merge the level of elements combined will vary. All I can say is try and report back. There may be something I can do to fix it.
Planned Upgrades
-Make it universal (right now it only supports hdpi)
-Convert mdpi themes to hdpi themes? (Not sure if possible)
-Ability to chose which items you want to merge IE: Only status bar icons, Only buttons, or combination of the both
-Automatically push the new framework to your phone
-Optionally create a metamorph to be used for flashing
-Optionally create an update.zip for flashing
-View which items were merged
-Merging things other then the system framework
-TBD
Please submit any bugs any ideas for future improvement. You are what will make this an useful tool or not
http://www.mediafire.com/file/9j4rrel57sjfhd4/AndroSkinner.zip
If you'd like to support the future development of AndroSkinner please do so below. Every bit helps
Stealing this +)
Maybe this one too
I like this, i'll have to try it. I currently use theme porter
mrono said:
I like this, i'll have to try it. I currently use theme porter
Click to expand...
Click to collapse
It's the same concept only it has an UI. If people find it useful I plan on integrating a lot more features.. I was using it to switch my status bar icons from the cyanmod nightlies.. It saved me some time and I figured I would share it..
WOW amazing work those updates couldnt come fast enough lol. What about the xml files?
I keep getting a licensing error"? Quits the app
rjmjr69 said:
WOW amazing work those updates couldnt come fast enough lol. What about the xml files?
I keep getting a licensing error"? Quits the app
Click to expand...
Click to collapse
I'll be re-uploading shortly
ComplexMinded said:
I'll be re-uploading shortly
Click to expand...
Click to collapse
ok
will be waiting
rjmjr69 said:
ok
will be waiting
Click to expand...
Click to collapse
one more sec.. thought I fixed the issue
ComplexMinded said:
one more sec.. thought I fixed the issue
Click to expand...
Click to collapse
ok lol take your time rather a good working product
It's back up.. Existing users just replace the contents of the existing folder and run the setup. It will update your existing application.
ComplexMinded said:
It's back up.. Existing users just replace the contents of the existing folder and run the setup. It will update your existing application.
Click to expand...
Click to collapse
{
"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"
}
rjmjr69 said:
Click to expand...
Click to collapse
Same problem here. Win7 64bit with .NET 4 installed.
Hey guys, try again.. If it fails i'll have to build this without some of the tools that make my life easier =P
Worked for me. Thanks!
I keep getting an error. Tried different roms, different themes, XP 32bit and Win7 64 bit.
I'm getting the attached error. You should also add a 'default' radio button in the options, or make them check buttons as to unselect them you gotta restart it.
Win7 64-bit
nugzo said:
I keep getting an error. Tried different roms, different themes, XP 32bit and Win7 64 bit.
Click to expand...
Click to collapse
I'll be working on this tonight. The issue stems from it looking for the framework-res.apk in a full ROM. It then looks for the res/drawable-hdpi/ folder within that apk. It looks like there is no res folder in your framework-res.apk.
ComplexMinded said:
I'll be working on this tonight. The issue stems from it looking for the framework-res.apk in a full ROM. It then looks for the res/drawable-hdpi/ folder within that apk. It looks like there is no res folder in your framework-res.apk.
Click to expand...
Click to collapse
Thanks a lot. Something i'm doing wrong?
I finally was able to run it all the way through without getting the "res" error, but it did not create a folder under c:\Androskinner. Not sure if it was 100% complete or not.
I do all my Theme tweaks the long way so cant wait until the next update.
Thanks

[TUTO] Create your 9.png !

I will guide you into the famous 9.png creation
First rule before to start how to learn to theme your device :
Always make a backup of the files you are about to edit or do a nandroid backup.
If anything goes wrong you will get a bootloop.
{
"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"
}
☺ TOOLS you must have ☺
1. PHOTOSHOP / GIMP http://www.gimp.org/downloads
or a good alternative for those who are rookies in Adobe products : PAINT.NET http://www.paint.net
or any other Graphics editor you like to use of your choice.
2. DRAW 9-PATCH http://developer.android.com/sdk/index.html
You will find it in your SDK starter package ( android sdk/tools )
The Draw 9-patch tool allows you to easily create a NinePatch graphic using a WYSIWYG editor.
3. xUltimate-d9pc.exe http://lmgtfy.com/?q=xUltimate-d9pc
Basically you will need to compile the edited 9.png to Draw9Patch Compiler
*****
Now let's play with your pics in the graphic editor of your choice :
your 9.png's files would be in <drawable/drawable-hdpi> folder' apk
When you are done editing your image,
you can open it in the draw9patch tool to verify that it stretches properly.
Here is the most important part of the 9.png creation.
You need to define 2 parts :
* Stretch part ( always left and up side )
* Content part ( always right and bottom side )
When you are done stretching your image,
you can open it in the 9.png compiler tool to compile it properly.
you notice the 1pixel border created for the stretcheable 9.png
Place your files in example1/drawable-hdpi
Execute the xUltimate-d9pc.exe
If you defined properly your 9.png,
you must find no errors and you can hear a "peeep"
Compiled ready files are in /Done folder
When you are done compiling your image,
you can see that the 1pixel border disappeared.
Use 7-ZIP http://www.7-zip.org
(an open source file archiver with a high compression ratio)
to drag your files into the apk !
Source : androidbyyorzua
Congatulations, you can enjoy your work ​
thanks to "PoorCollegeguy" who featured my thread the XDA Portal )))
and tweeted as well :
spc_hicks09 said:
Thank you soooo much for posting this!
Click to expand...
Click to collapse
A single click on the thank button would make me happy if i helped you
Great tutorial. Thanks for writing it.
But do you happen to know how to do it the other way round?
If you have a single compiled .9.png file, is it possible to decompile it again?
I know apktools do decompile it when decompiling complete apks, but I couldn't figure out how to do it to a single png file.
EddieFAF said:
Great tutorial. Thanks for writing it.
But do you happen to know how to do it the other way round?
If you have a single compiled .9.png file, is it possible to decompile it again?
I know apktools do decompile it when decompiling complete apks, but I couldn't figure out how to do it to a single png file.
Click to expand...
Click to collapse
Thanks for your comments,
Maybe this is what you are looking for :
[UTILITY][TOOL] 9patchPngSuite [Windows&Linux]
Personally never tried/needed it yet
Great tutorial. Nice job making the front page on xda too. I assisted with making a new draw9patch a couple months ago and would highly recommend checking out my thread here on xda. It will literally save you hours of time from using the original draw9patch.
http://forum.xda-developers.com/showthread.php?t=1344909
Guy's please keep the thread clean and on topic and please do not post a thank you post just hit the thanks button in the OP's first post
Thanks
I have a problem with the display of icons .png in Photoshop.
The original icon:
When I paste into Photoshop:
There are many icons that appear in Photoshop in this way. Can anyone help? My version of Photoshop CS5
przemo5020 said:
I have a problem with the display of icons .png in Photoshop.
The original icon:
When I paste into Photoshop:
There are many icons that appear in Photoshop in this way. Can anyone help? My version of Photoshop CS5
Click to expand...
Click to collapse
A little off topic, buddy, as it is not really a 9.png you are trying to work on but doubke check if the png is indexed. You will find many of the pngs indexed and some not.
Answering from my phone, will help you better tomorrow
Freaking awesome dude will try this out. Since I was looking to add some of my costume 9.pngs.
Thank you, as this is a good guide. Took me awhile until it finally clicked. I know you emphasized but I do not think enough, the stretch and content lines are vital. I did not quite get WHAT that meant till messing over and over.
Any one trying fot the first time, definitely play with the examples he provided and you will be all good.
There is an app for Android called "9 Patch Editor" that can load .9.png (compiled or with border) and edit them or remove patches altogether. I hope that helps.
Hi,experts,I'm new to this theming and png editing stuff
Can I create 9.png if I just follow your guide Yorzua? If yes,
I'll give it a try soon!
Orelse, if this is a higher level thing,could you guide me into something basic .so that I learn some things and then jump over here!
Sorry for the questions....! Hope you don't mind!
Sent from my MT11i using xda premium
Do .9.pngs need to be source to resize with the 9patch tool or can they be resized when compiled.
thank you so much for this i was going crazy !
seand88 said:
thank you so much for this i was going crazy !
Click to expand...
Click to collapse
You are welcome,
glad it could help someone
Hi Yorzua,
If you see the sending text message animation on ios or any iphone it is
is awsome and smooth sliding effect and message goes upped side with
sliding... I want to do same animation on my android phone... but the
problem is when i decompile WhatsApp apk i can not found folder of
animation. Can you plz tell me or show me how can I do that???
Plz do needfull.
please help me, I want only this 9.patch colors change to white , can someone do and share to me ? thanks..
http://www106.zippyshare.com/v/FmVNQcCP/file.html

[cm10/AOSP][how to] change the background image of the settings menu/contacts/dialer

Time to update this
Older data on howto change manually is in the spoiler below
Hi all, this is a copy of my thread for galaxy s2
This guide is split into two parts as of now , part 1 is for changing the settings menu background and part 2 is for changing the backgground for dialer and contacts.
Part -1
may be this method is known to few but im posting this to people who dont know how to change the background image of the settings menu and other few.
Sample screenshots
{
"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"
}
Like it?
here is the method to do this.
Software needed :
1.7zip (to replace the image)
2.android sdk(to use adb commands to push/pull the files)
How it works:
We are modifying/replacing an image called "background_holo_dark.png" in the "framework-res.apk" which is responsible for displaying background images in menu.
Step 1:
Use the following adb command below to pull the "framework-res.apk" from your mobile to pc.
Code:
adb pull system/framework/framework-res.apk
Step 2:
Open the framework-res.apk via 7zip and navigate to the following directory
"framework-res.apk\res\drawable-nodpi\", you will see a file called "background_holo_dark.png". Delete the image and dont close the 7zip.
Preparing your own image:
Now use any png image you want to set as background , resize it to 512 x 512 via mspaint or any other image editing software and rename the file to "background_holo_dark.png".
Drag the newly created image file back to 7zip(to the same directory where the old file is deleted) and close the 7 zip .
Step 3:
Now its time to push the file back to mobile, type the following command in the same command prompt
Code:
adb remount
now type the following
Code:
adb push framework-res.apk system/framework
Step 4:
Now reboot your mobile, you will have the new background image enabled
Part-2
Wanna change the background of the dialer and contacts?? well read below,
Step 1:
Use the adb command (or u can use root explorer) to pull the "Contacts.apk" from your mobile to pc.
Step 2:
Open the Contacts.apk via 7zip and navigate to the following directory
"Contacts.apk\res\drawable-nodpi\", you will see a file called "background_dial_holo_dark.png". Delete the image and dont close the 7zip.
Drag the image (similar to the one created in part 1 of the guide) file back to 7zip(to the same directory where the old file is deleted) and close the 7 zip .
Step 3:
Now its time to push/copy back the file back to mobile. Copy back the file to the same directory from where it is copied.
Step 4:
Now reboot your mobile, you will have the new background image enabled
Your dialer and contacts shortcut may be missing from your launcher, just drag it back to the homescreen from the app drawer.
Step:5
This step is optional!!! If you do not get those shortcuts, enter cwm and wipe cache and dalvik cache.
Sample screenshots.
Note:
For users who know how to use root explorer can use the same to copy/paste the framework-res.apk before and after editing.
Sample images are taken with 160 dpi, this mod will work with all dpi.
Instructions:
1. Download the zip from the download section below and open it in 7zip.
2. Navigate to the following directory "\mode\system\framework\framework-res.apk\res\drawable-nodpi\".(Sample images on post 2)
3. Change the images "background_holo_dark.png" and "background_holo_dark.png" as per your wish.
4. Flash it
Sample screenshots from aosp rom:
Downloads:
bg mod
credit:
vertimus (thanks to him , he helped finding the right image to replace)
you can find some ready to use backgrounds in this post ... will be updating this post when i find something beautiful for a background
Thanks man, you make my setting look cool
Thanks mate, you're a real champ.
Thread updated with "how to change background for contacts and phone dialer"
Hi sir, what is the image you used to replace?
Sent from my GT-S5830 using XDA
ax3911 said:
Hi sir, what is the image you used to replace?
Sent from my GT-S5830 using XDA
Click to expand...
Click to collapse
You will be replacing the stock background image with the new one you like, there are some sample backgrounds in second post
#*posted on the move *#
If i were you, i will go for the harder way... Which is:
Compile those apk...
Sent from my Nexus S using Tapatalk 2
DaXmax said:
If i were you, i will go for the harder way... Which is:
Compile those apk...
Sent from my Nexus S using Tapatalk 2
Click to expand...
Click to collapse
though i can compile/decompile Harder way dosent suits everyone
This sounds like an Awesome guide but I do have one question, will this work on CM7 as cm9 is not out yet for my T-989 SG2? I have looked for the background_holo_dark.png and I'm not seeing it in the frameworks. I've used 7zip and then decompiled but haven't found it. If not, would you happen to have any other guides for cm7 that may do the same thing?..
Thanks,
Derek
bala_gamer said:
though i can compile/decompile Harder way dosent suits everyone
Click to expand...
Click to collapse
Then, make a morph. Or a Universal Flasher. That will make everyone at ease...
Sent from my Nexus S using Tapatalk 2 Beta-5
DaXmax said:
Then, make a morph. Or a Universal Flasher. That will make everyone at ease...
Sent from my Nexus S using Tapatalk 2 Beta-5
Click to expand...
Click to collapse
ya sure, will do it soon
Thanks for the "how to" !
Do you think it is possible to set a transparent image ?
I mean 50% transparent, just to keep a correct visibility.
Thanks man
It was just the thing I was looking for :thumbup:
Sent from my HTC Glacier using xda premium
NICE ! now i can edit my crappy background, hmm. Do you mind uploading the png. file on sample pictures that you shown us?
RomelStyle said:
NICE ! now i can edit my crappy background, hmm. Do you mind uploading the png. file on sample pictures that you shown us?
Click to expand...
Click to collapse
Those pictures are already there on second post
#*posted on the move *#
thx for the tutorial ..i have tried it but only change apex setting background, system setting background still the same with before, am i mistake some way?
jojoku said:
thx for the tutorial ..i have tried it but only change apex setting background, system setting background still the same with before, am i mistake some way?
Click to expand...
Click to collapse
yes you are doing some mistake in the process. try wiping cache if you are sure you have followed all the steps correctly
bala_gamer said:
yes you are doing some mistake in the process. try wiping cache if you are sure you have followed all the steps correctly
Click to expand...
Click to collapse
thx..try again
wow sir good tutorials but after replacing framework-res.apk using root explorer my phone is boot looping

[GUIDE]Theming your phone by editing PNG'S(framework-res.apk)

So friends, here is a quick and easy guide for changing the status bar icons of your Gingerbread(Actually any phone )
For those who don't know how to do it(for anyone actually :highfive
Theory
Android is the awesome platform which is easily configurable and is able of being edited very easily
The icons used in every app and Android framework are located as png images in apk of those respective apps in location:-
*.apk/res/drawable-ldpi (in my case, as our phone is ldpi)
So, we can change any icon of our status bar like battery, signal, (not clock[clock is to be configures in SystemUI.apk{will post how to change it shortly}]), etc by editing png's in framework-res.apk
Not even that, you can edit images of any app as I told you
There are several ways to decompile and compile apk in which we have made change
If we want full access of apk and want to change every thing like the xml's in it and smali content in jar files, then we would have to do it on computer by apktool or apkmanager
But, we are here to only change image, so we would not go in detail of apktool or apkmanager. For changing images, that can be very easily done even on the phone by an app NinjaMorph that is made for developers by our senior head and DEVELOPING LEGEND Stephen(Stericson)
But be careful as backing up the original file if you do something wrong
And as you all know any developer or even a newbie posting something interesting that you want to try WILL NOT BE RESPONSIBLE for your mobile blowing up, resting in peace, sleeping like a dead, behaving like a non-living BRICK, or anything whatsoever that may or may not happen to phone in this universe or any other universe known or unknown
What to do if anything happened to my mobile
We have had a backup of your original file so we can restore it
But if while editing the system files like framework-res.apk
If you deleted some un-backed up apk's
Well you can always have backup of your ROM and that is why Koushik Datta has made clockworkmod Recovery
You can restore your ROM from there
Pre-Requisites
Patience
Mind
A Android (A spare one if you brick your phone, just kidding)
Root access(to change the apk)
NinjaMorph(http://bit.ly/ninjamorph)
Root Explorer(Optional)(http://bit.ly/stericson)
GUIDE
So Let's Start
Download NinjaMorph. Install it and give it root access. It will prompt for starting checks. Click on start checks.
Now you would have three options, namely, New Project, Finish Project, Existing Project
Click on new project. Go to system/framework/ and click on framework-res.apk. It will start extracting files
Once it has extracted all the files, it will open to show you what is inside framework-res.apk.
Exit it and go to your file explorer.
Go to /sdcard/AndroidThemes/workspace/framework-resapk
This is what is inside apk. Go to res/drawable-ldpi folder
There you will see hundreds of icons of your menu, lockscreen, battery, signal, and everything
You can edit them and replace them as you want. But the name of the file you are replacing and size and dimension must be equal to the file you are replacing with(I recommend Googling and finding icons of battery, signal, and other things)[I have even used hdpi icons, there was no problem]
If you download a theme file which is to be flashed in recovery that is not for your phone, no problem, extract the zip and place its framework-res.apk in your sdcard and extract the apk with Ninjamorph. Replace your icons with its icons and TADA
After you have done replacing the icons and you are satisfied(I am never)
Go to NinjaMorph. Click on Fininsh Projects. Click on framework-resapk. It will recompile and ask to replace the original apk with modded one. Click OK
Then it will ask if you want to remove the completed project, Say No(As you would need it if something gets wrong)
Reboot your phone
Maximum chances are that your icons will be replaced. Rare cases have their status bar gone or no change, if so:-
Download(Buy) Root Explorer. Go to /sdcard/AndroidThemes/workspace,
There you will see framework-res.apk. Copy it and go to /system/framework
Mount as R/W
Paste the apk. If it asks that file already exists, overwrite it.
SET PERMISSIONS
Long click on framework-res.apk and click on permissions
You will see three columns
Read Write Execute
You have to set them in the following way
x means you have to tick it
blank means uncheck
Read Write Execute
.....x........x.................
.....x...........................
.....x...........................
Click OK
You will see it as rw-r--r--
Reboot
Do it over again if nothing happens
Enjoy
This way you can edit not only framework-res.apk but any apk
Treat
This section is different from the thread topic
I: Faking Up
Want to make your device show Jelly Bean in About Phone
Go to Root Explorer
Go to /system
Long click on build.prop
Click on Open in a Text Editor
Change the files as
ro.build.display.id=Jelly Bean
ro.build.version.release=4.1.4
Save Changes
Reboot
II: Easter Egg
You all must know that an image of GingerBread Zombie comes up when you repeatedly click on Android Version in Setting>About Phone
Wanna change it to look like Jelly Bean?
{
"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"
}
Extract framework-res.apk
Go to res/drawable-nodpi
You will see platlogo.jpg
Replace it with the file in attachment
Recompile
Reboot
Troubleshooting
Will find and update it
Tell me what problems are you having
Ninjamorph extracts apks . Is there any app which can decompile
Sent from my GT-S5570 using xda premium
arpitkh96 said:
Ninjamorph extracts apks . Is there any app which can decompile
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
i don't think so...
arpitkh96 said:
Ninjamorph extracts apks . Is there any app which can decompile
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
No, there is no app on mobile that can do it
As you need Java environment and some applets for back smali and smali extraction
Good guide :thumbup:
Sent from my GT-S5570 using xda app-developers app
very good guide, will surely test........ thanks
to bad thats on jena thats dont work so soon and easy
luki2411 said:
to bad thats on jena thats dont work so soon and easy
Click to expand...
Click to collapse
Please use English
BUMP
how can i make my drawer background and status toolbar transparent i turned back my galaxy mini to 2.3.6 i cant figure out how i tried to examine framework-res.apk ,systemui.apk and touchwiz30launcher.apk but nothing happens, please help me...

[Universal Tut] Make your own vrtheme flashable zip (any ROM)

Disclaimer
Code:
You are using this tutorial by yourself and i'm in no way responsible if your mobile is damaged due to it. I will help you in best way possible to get you out of the worse situation but I can't guarantee anybody. ThankYou!
How to build apps icon pack:
Things you require:
-Base VRTheme-Here!(Don't worry there are no trojans)
-You will find a lot of icons on XDA.
-Required apps from the ROM which you want to modify.
-Notepad++ for changing updater-script.
-Any good photo editing tool.(Even the one that comes with MS-Office will do)
-A brain to avoid mistakes and bother me with stupid questions.
-Kindness to press the THANKS button below.
Click to expand...
Click to collapse
Steps:
1. Download all the things required.
2. Open your ROM and copy all the apps and move them to a seperate folder. Here we will take only 3 apps-Browser, Messaging and Calculator.
{
"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"
}
3. Now extract these apps using 7zip or winrar.
4. Now open the app folder, go to res and find the location where the icon of the app is present. These are generally present in mipmap-hdpi/mdpi/xhdpi/ldpi/xxhdpi or drawable-hdpi/mdpi/xhdpi/ldpi/xxhdpi . For e.g. in my case Browser app it's present in mipmap-hdpi named as ic_launcher_browser.png:
5. Now extract the VRTheme base folder and go to vrtheme->system->app and make a new folder their with named as appname.apk(Here appname refers to the name of the app). For e.g. Browser.apk in my case.
6. Now make res folder in it. And under res folder make another folder which contains app icon. For e.g res->mipmap-hdpi in my case:
7. Now place your modified icon in it and rename it to the original icon name. For e.g. ic_launcher_browser.png in my case. And resize it according to your DPI.
Try resizing by percentage if possible.
Also I don't recommend resizing from a lower DPI to a Higher DPI or the icons may seem blur.
8. Do the same for other apps. In my case calculator and messaging.
9. Now give this icon pack your name. Go to META-INF->com->google->android and open updater-script with notepad++ and in second line replace alokbina with your name. You can practically change almost everything under ui_print in updater-script but remember that it should be in the format ui_print("ABCD"); . Here replace ABCD with whatever you like.
10. Now you will be having 4 folders- data, META-INF, system, vrtheme and an image named as preview. Zip all these and rename it to whatever you like and flash it with CWM and you're done! Enjoy your own icon pack Feel free to THANK me :laugh:
Click to expand...
Click to collapse
Important Tip:-Note the size of the original icon and modify the new icon accordingly or else you may not get any icon or smaller icon. For e.g. sometimes the icon present in the app is of size 96X96 though it is hdpi app. But still change the other icon size also to 96X96 to get best result.
Click to expand...
Click to collapse
Credits:
Abhinav2
Sandy7
Add your name if I missed...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Reserved for systemui and framework etc...vrtheming
Press THANKS if I helped,
Best Regards,
AJ
alokbina is now Abhinav2
Just a doubt, when I downloaded the zip, I didnt any signing (signature whatever) files, so shouldn't the zip be signed before flashing??
Simple to the point and yet thorough. Thank you for this. I'm shocked this thread doesn't have more action!:thumbup:
Sent from a Shaftamle Galaxy S4
"Thanks Button" is always appreciated!
http://mycolorscreen.com/Shaftamle/
Cool Thanks for this. Just what i have been looking for
Now i will create the best Icon pack known to man :victory:
how about 9.png ?? is it okay to use vrtheme?
Diaz1999 said:
how about 9.png ?? is it okay to use vrtheme?
Click to expand...
Click to collapse
Pretty much anything in the apk can be flashed into it using a vrtheme script.
Any png/.9.png, fonts, resources.arcs, classes.dex whatever.
The main thing is the name and folder location must match exactly!
There is even some edits to the scripts to automatically create a "restore" zip of the apps before they get modified so if something doesn't look right or you get force close issues you can simply flash the restore.zip in recovery and get back to normal quickly.
Thanks to @Spannaa for the awesome idea and base script! I've been using it for years.
Good luck friend and happy flashing!
stangdriver44 said:
Pretty much anything in the apk can be flashed into it using a vrtheme script.
Any png/.9.png, fonts, resources.arcs, classes.dex whatever.
The main thing is the name and folder location must match exactly!
There is even some edits to the scripts to automatically create a "restore" zip of the apps before they get modified so if something doesn't look right or you get force close issues you can simply flash the restore.zip in recovery and get back to normal quickly.
Thanks to @Spannaa for the awesome idea and base script! I've been using it for years.
Good luck friend and happy flashing!
Click to expand...
Click to collapse
ikr I mean how about 9.png? is it using its black border or not? because usually if we extracted 9.png from an APK it'll be without borders, while in compile-decompile process it has to be bordered
Verstuurd vanaf mijn HTCONE met Tapatalk
Diaz1999 said:
ikr I mean how about 9.png? is it using its black border or not? because usually if we extracted 9.png from an APK it'll be without borders, while in compile-decompile process it has to be bordered
Verstuurd vanaf mijn HTCONE met Tapatalk
Click to expand...
Click to collapse
I'm know all about patch 9 pngs and vrtheme requires ANY file, rather it be 9.pngs, xml, classes.dex etc to be compiled.
Again, any file you want to push to an apk in recovery using a vrtheme script MUST BE COMPILED!
Pushing a regular png renamed to 9.png can have serious negative results causing the corrupt image to block a button, create force close issues when that image is being call for or even cause a boot loop. Just saying be careful. That's why I use a version that creates a restore.zip that i can flash in case something does happen.
It's a great tool and has many great uses. Just like any time you mod and apk, make sure you understand unexpected things can happen ad be prepared for them if they do.
Good luck and hope this gives you a little info you can use.

Categories

Resources