Go Back   Android Forums > Android Discussion > Android Themes
Android Themes Customize the look/feel of your Android with wallpaper, icons, graphics and more!

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old September 12th, 2010, 04:36 PM   #1 (permalink)
Member
Thread Author (OP)
 
Join Date: Jul 2010
Posts: 129
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 25 Times in 18 Posts
Default How to theme APK's

People were asking how to theme widgets so I figured I make a quick write up how I do it.

This is only a guide: I am not responsible for anything that may happen

Tools you will need:
Java JDK: Java SE Downloads - Sun Developer Network (SDN)
Android SDK: Android SDK | Android Developers
APK Manager:http://forum.xda-developers.com/showthread.php?t=695701
Windows: Winzip, 7Zip, etc.
Image editing software: Gimp (FREE!!) or Photoshop
Advanced:
Eclipse with ADT: Developing In Eclipse, with ADT | Android Developers

Set up Android SDK will the correct packages. Ensure that ADB is recognizing your device. Open APK manager and follow the instructions on how to set it up at the xda site. If you are modifying an .apk from your phone select option 0. If the .apk is already on your computer skip step 0. (the following steps may be able to be skipped in windows with winzip or 7zip...someone help me that has experience working with windows) Select option 1 to unzip the .apk this will create an out folder with all the contents of the original file. At this point edit your desired images which will be located in the res/drawable and or res/drawable hdpi for those working on hdpi devices. The drawable mdpi is for lower pixel density screens and will not effect the outcome on hdpi devices. Open up your photo editing program and modify the .png files. Note: some files are labeled .9.png these files should not be modified unless you plan to proceed with the advanced steps or are ok with distorted images or trial and error. *SEE ADVANCED* if you want to work with .9.png's. After your images have been modified and saved with the original names back in the res folder go back to apk manager and select option 3 (you could do option 2 as well but it is not necessary) and then select 2 if it is a system or non system app. For safety reasons I would first learn how to do this with non system apps first. Once that finishes do step 4 then 5. Look in the folder that you placed the .apk for modeling and there should be a new signed .apk Rename the file and then put it on your sd card. Make sure you have unistalled the previous version first then install this .apk with astro or whatever file manager you prefer.

Advanced To modify the .9.png images you will need the draw9patch tool in the android sdk and eclipse. First take the file that you intend to modify and do your modifications to it within your image editing software. When done save as to a different location without .9 in the file name. Open up the draw9patch tool in the SDK and drag the image into it. You then will need to add grids to where the image will stretch. They will be in the outer most part of the image. Do not add more than 2 next to each other on the top and left side. You can look in the SDK for examples of where they placed these grid markers. When satisfied with how the image looks save them and it will add the .9 to the file name automatically. Then you will need to open up eclipse and create a new android project. File - New Project - Android - Android Project. Select create project from existing sample. In your build target I believe any will work but I usually select Google APIs. Then you drag your images into the res folder and make sure there are no errors at the bottom, warnings are fine. Then right click on your project upper most, go down to android project and export as unsigned apk. Then you will need to go back into apkmanager and select option 1 or use winzip/7zip to take your files back out that you created. Place them back in their original res folder and then proceed with the steps listed above.

If anyone can streamline some steps or has any information on how to do this on mac or windows let me know.

Edit After reading a bit you may be able to use apk manager to work with .9.png's but I'm not exactly sure how. This would eliminate much of the advanced stuff so if I figure it out I will report back.

Dtatch is offline  
Last edited by Dtatch; September 13th, 2010 at 12:13 AM.
Reply With Quote
The Following 5 Users Say Thank You to Dtatch For This Useful Post:
brotherswing (May 7th, 2012), nitsuj17 (November 8th, 2010), StuntinX (November 8th, 2010), TattooedDroid (March 14th, 2012), thetomlin2 (September 13th, 2010)
sponsored links
Old September 12th, 2010, 06:57 PM   #2 (permalink)
Senior Member
 
ericnail's Avatar
 
Join Date: Dec 2009
Location: Alpharetta, GA
Posts: 632
 
Device(s): Motorolla Droid X
Carrier: Not Provided

Thanks: 7
Thanked 137 Times in 75 Posts
Default

Nice!

____________
Should be moved to:
Android Themes - Android Forums
__________________
"......." - Helen Keller

Support the DX: http://androidforums.com/groups/droid-x.html
ericnail is offline  
Last edited by ericnail; September 12th, 2010 at 07:25 PM.
Reply With Quote
Old September 12th, 2010, 06:59 PM   #3 (permalink)
Done by choice
 
Kelmar's Avatar
 
Join Date: Nov 2009
Posts: 11,819
 
Device(s):
Carrier: Not Provided

Thanks: 1,132
Thanked 4,783 Times in 2,658 Posts
Default

Quote:
Originally Posted by ericnail View Post
Agreed (and moved)!

This will help EVERYONE on the forum find this useful information
Kelmar is offline  
Reply With Quote
Old November 8th, 2010, 10:57 AM   #4 (permalink)
New Member
 
Join Date: Oct 2010
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Kelmar View Post
Agreed (and moved)!

This will help EVERYONE on the forum find this useful information
IDK where it is! Thank you for this post cause I have been trying everything to get my moded apks to intall! THANKS
StuntinX is offline  
Reply With Quote
Old November 8th, 2010, 11:57 AM   #5 (permalink)
New Member
 
Join Date: Oct 2010
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

I am having trouble with it tho... I get an error file not found whenever I do a zipalign for step five. Anyone run into this too? or maybe have an idea of what's goin on?
StuntinX is offline  
Reply With Quote
Old November 9th, 2010, 02:48 PM   #6 (permalink)
Senior Member
 
Join Date: Jul 2010
Posts: 2,279
 
Device(s):
Carrier: Not Provided

Thanks: 39
Thanked 266 Times in 223 Posts
Default

Am I correct in assuming that this wouldn't work with market apps since it would mess up the md5sum?
snapper.fishes is offline  
Reply With Quote
Old November 12th, 2010, 03:10 AM   #7 (permalink)
Member
Thread Author (OP)
 
Join Date: Jul 2010
Posts: 129
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 25 Times in 18 Posts
Default

Didn't expect this thread to get dug back up.

You can make edits to market apk's but you cannot update directly from the market to an edited .apk because you are resigning it after you make edits.

The process would be to pull, extract, edit, zip, sign and then install.

*Be responsible and do not distribute warez*
Dtatch is offline  
Reply With Quote
Old May 18th, 2012, 04:50 PM   #8 (permalink)
h20
Member
 
h20's Avatar
 
Join Date: Jan 2012
Location: Daytona Beach FL
Posts: 143
 
Device(s): mobile=galaxy s2-VILLUMINAT-CM11-Extreme_Kernel1 @pc=#!_crunchbang_wal
Carrier: Not Provided

Thanks: 35
Thanked 36 Times in 29 Posts
Default indexed png

i am themeing an apk an have edited some indexed png's by changing them to rbg should
i save them bac as a indexed png or rbg ?
h20 is offline  
Reply With Quote
Old December 29th, 2012, 06:16 PM   #9 (permalink)
Member
 
Join Date: Sep 2012
Posts: 202
 
Device(s):
Carrier: Not Provided

Thanks: 29
Thanked 12 Times in 10 Posts
Default

if anyone wants to theme/black-out the spring visual voicemail apk, i'd be willing to compensate them for it.


hit me up
droiddekka is online now  
Reply With Quote
Old January 7th, 2013, 10:10 PM   #10 (permalink)
New Member
 
1stshift's Avatar
 
Join Date: Jan 2013
Location: NOR-CAL
Posts: 8
 
Device(s): Many
Carrier: Not Provided

Thanks: 0
Thanked 2 Times in 2 Posts
Default

Great tut will give this a try
1stshift is offline  
Reply With Quote
sponsored links
Reply


Go Back   Android Forums > Android Discussion > Android Themes
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:32 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.