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

Like Tree1Likes
  • 1 Post By DaSchmarotzer

Closed Thread
 
LinkBack Thread Tools
Old June 3rd, 2011, 01:20 PM   #1 (permalink)
Blame it on me
Thread Author (OP)
 
DaSchmarotzer's Avatar
 
Join Date: Mar 2010
Location: Québec, Canada
Posts: 3,087
 
Device(s):
Carrier: Not Provided

Thanks: 442
Thanked 1,559 Times in 783 Posts
Default [TUTORIAL] Theming walkthrough v. 1

Warning, this thread is outdated. No support will be given. The links and pictures of the first post are down. You can still learn from it: the general idea is still the same. The "tips" given on the second post are still useful.

I've seen many people asking for a step-by-step guide to making a theme so I thought I'd attempt to fulfill this request. I will be using this method to edit a few files but this method can be used to create a theme for any ROM.

Thanks
Mad props to Ardchoille and karandpr for their help with this tutorial.

Disclaimer
I am not responsible for any problems that result from following this tutorial
I have attempted to keep this tutorial as basic as possible but please let me know if you have any questions.

Goals of this tutorial
* Edit the GPS icons that appear in the status bar as well as the status bar itself
* Create a theme zip file that can be flashed in a custom recovery

You will need the following skills
* Basic computer skills
* Downloading files
* Unzipping files
* File management
* Image editing

Tools needed
* Web browser
* A rooted android device
* Busybox
* Amon_RA recovery or ClockworkMod recovery
* Image editor - GIMP is free but Photoshop works just as well
* APK Manager - available here (Windows version is preferred)
* Your favorite beverage

Obtaining the required files
First we'll need a ROM. I'll be using the Fresh Evo 3.5.0.1 ROM for this walk-through, available here, but this walk-through can be used to make a theme for any android ROM.

NOTE ON THEMES:
When creating a new theme it is imperative that you begin with the same files that are included in the ROM you plan to use. Creating a theme for, say, ROM A will cause problems when using that theme on ROM B. Do not attempt to mix themes and ROMS. You will need to create a new theme each time you flash a new ROM.

NOTE ON PACKAGES: The required packages are in different locations for different versions of Android. Different packages may also be needed for each manufacturer.

Required packages
Let me know which packages are required for theming the various manufacturer ROMs and I will add them.

All Froyo ROMs:
* /system/framework/framework-res.apk

All Gingerbread ROMs:
* /system/framework/framework-res.apk
* /system/app/SystemUI.apk

Manufacturer specific ROMs:
The above packages will be needed in addition to the below requirements.

Sense UI ROMs:
* /system/framework/com.htc.resources.apk

Samsung Froyo ROMs:
* /system/framework/twframework-res.apk - Notification menu

Since Fresh Evo 3.5.0.1 is a Froyo ROM with htc's Sense UI we'll need the following packages in order to create a theme:
* /system/framework/com.htc.resources.apk
* /system/framework/framework-res.apk

If this were a Gingerbread ROM we would need these packages plus /system/app/SystemUI.apk

Extracting the ROM and packages
Once you have the ROM you'll need to extract it so you can work with the correct packages. I used a zip file extractor to extract the ROM and also to extract the com.htc.resources.apk and framework-res.apk packages which are located inside this ROM. Make sure you keep untouched copies of the packages that you extract from the ROM because you'll be adding the edited images back to those packages later.

Decompiling the packages
Please note that this step isn't a requirement: you could modify most picture files directly in the package (such as framework-res.apk). However, it will be much easier to modify the .9.png files and you will be able to edit important xml files making the theme much more customizable.

Unzip the APK Manager package and go into the folder that was produced. Launch APK Manager and follow the instructions. Choose "y" when it asks if you want to clean out all of your current projects. This will create some required folders that you will need to work in.

Place the package you want to modify in the "place-apk-here-for-modding" folder. Run APK Manager and select the 22th option to pick your project. Follow to onscreen directions to pick the apk you want to modify. Then, select the ninth option, "Decompile apk" (You might have to use the tenth one, but I won't give more details).

You should now see a folder named after the decompiled package in the "projects" folder of APK Manager. That's where you will edit the images and different files.

Editing the images
Now that we have extracted the ROM and required packages, it's time to edit the images. I use the GIMP on a Linux machine to do all of my graphics work but Photoshop works just as well.

The images I will be working with in this tutorial are:
From the com.htc.resources.apk package:
* /res/drawable-hdpi/sym_gpsone_0_sprint.png
* /res/drawable-hdpi/sym_gpsone_0_vzw.png
* /res/drawable-hdpi/sym_gpsone_3_sprint.png
* /res/drawable-hdpi/sym_gpsone_3_vzw.png
* /res/drawable-hdpi/sym_gpsone_none.png

From the framework-res.apk package:
* /res/drawable-hdpi/statusbar_background.png

I won't go into how to edit the individual images as that is beyond the scope of this tutorial. Use your imagination and personalize your images as needed.

What are .9.png files?
I won't be using this type of image in this tutorial but I wanted to touch on it for users who want to edit these images.

A NinePatchDrawable graphic is a stretchable bitmap image, which Android will automatically resize to accommodate the contents of the View in which you have placed it as the background. An example use of a NinePatch is the backgrounds used by standard Android buttons — buttons must stretch to accommodate strings of various lengths. A NinePatch drawable is a standard PNG image that includes an extra 1-pixel-wide border. It must be saved with the extension .9.png in your project so it can be compiled when you build your project.
This page has a nice explanation of what is required.

If you have decompiled the package (you should have if you followed the tutorial), you will see that the .9.png files have a 1 pixel transparent border with a few 100% black pixels around. You can modify them directly and the border will disappear when you compile the package again. If you haven't decompiled the package, you will see regular images, but modifying them will cause different problems as they will not stretch correctly and might cause incompatibility issues with UOT Kitchen for example.

Incorporating edited images into their packages
GPS icons:
Open the com.htc.resources.apk folder and drag and drop the 5 GPS icons that you edited into the /res/drawable-hdpi folder - their original location. Make sure you drop the images into the proper folder or your theme won't change.

Status bar image:
Open the framework-res.apk folder and drag and drop the status bar image that you edited into the /res/drawable-hdpi folder - its original location. Make sure you drop the image into the proper folder or your theme won't change.

Once the edited images have been dropped into their proper places in respective their packages, close the folder. Did I mention that you need to make sure you drop the images into their proper folders or your theme won't change?

Compiling the package
Open up the APK Manager again. This time, select the 11th option, "Compile apk". After a short while, you will be asked if it is a system app or not. The answer will probably be yes, since this is a theming tutorial. It will also ask if you would like to copy any additional files to avoid errors. You should pick no since it's faster and you are less prones to errors. My themes always worked perfectly. You should now find an apk file called "unsignedframework-res.apk" in the "place-apk-here-for-modding" folder (if you were modifying the framework-res package, of course).

Optimizing the package (Tested on Windows only)
This is a great way to enhance the performance of your modified packages. Take your compiled apk and place it into the "place-apk-here-to-batch-optimize" folder. Rename it to remove the "unsigned" part: you won't have to sign system applications. In APK Manager, select the 15th option: "Batch Optimize Apk". You will be asked what you want to do specifically, type zp and press enter. This will take a while, so enjoy your beverage.

Creating the flashable theme
I have supplied a blank theme template which you can use to create your theme. This template can be found here and includes a README.txt file. Download the theme template and unzip it to find a README file and 3 folders. Place the edited package according to this table AFTER you have edited the images and added them back to their proper packages:

Froyo ROMs:
framework-res.apk - framework folder

Gingerbread ROMs:
framework-res.apk - framework folder
SystemUI.apk - app folder

Sense ROMs:
com.htc.resources.apk - framework folder

If this will be a Gingerbread theme you'll need to add the following line to the /META-INF/com/google/android/updater-script file BETWEEN the run_program lines:

Code:
package_extract_dir("app", "/system/app");
There is already a package_extract_dir line there for framework, leave it there and add the above line under the existing line.

Signing the theme
Once the edited packages are in the proper places for the theme you'll need to sign the theme. APK Manager is an awesome tool and I would recommend keeping a copy of it for future use.

1. Place the theme zip file that you created earlier into the place-apk-here-for-modding folder

2. Rename the theme zip file to repackaged-unsigned.apk

3. In APK Manager choose item number 4 (Sign apk)

4. When the signing procedure is complete go into the place-apk-here-for-modding folder and your finished theme should be there already renamed to repackaged-signed.apk. This is the package you previously renamed to repackaged-unsigned.apk.

5. Rename this apk package to anything you want but change the .apk file extension to .zip. This is your new theme, place a copy of it somewhere for archival purposes.

Flashing your new theme
1. Place your new theme zip file on your SD card and make note of where it is placed

2. Reboot your phone into your custom recovery image

3. Flash your theme zip file as you would a ROM. I've never had to wipe anything prior to flashing a theme and my themes have always worked.

4. Reboot your phone and you should see your new theme

Reverting to the original theme
The easiest way to revert to the original ROM's theme is to create a flashable from the original packages that were edited. For instance, if you changed anything in framework-res.apk you can simply create a new flashable zip file using the original untouched framework-res.apk and flash it via your preferred recovery. Make sure, however, that you create the new flashable zip file to include untouched versions of ALL of the packages that were edited when you created your theme.

Conclusion
I have been creating themes from the above steps for some time and I've never had any problems with this procedure. Please let me know if there is anything I can do to improve this tutorial. I hope you enjoyed this tutorial and I look forward to seeing some new screenshots

Advertisements
DaSchmarotzer is offline  
Last edited by DaSchmarotzer; March 27th, 2012 at 08:32 PM. Reason: Changed OP
The Following 20 Users Say Thank You to DaSchmarotzer For This Useful Post:
9to5cynic (July 4th, 2011), AndyOpie150 (June 22nd, 2011), bk201123 (August 18th, 2011), cds0699 (June 5th, 2011), chevanlol360 (January 25th, 2012), DaSchmarotzer (June 8th, 2011), DemonMonk (May 25th, 2012), El Presidente (June 5th, 2011), eyebeam (June 3rd, 2011), funkyman (March 30th, 2012), gbiggie (May 22nd, 2012), Granite1 (July 11th, 2011), melissapugs (July 21st, 2011), MikeC1408 (June 3rd, 2011), moto179 (May 20th, 2012), nuked (January 11th, 2012), PatHoge (June 6th, 2011), Sak01 (June 4th, 2011), Shaddow313 (August 23rd, 2012), sweeds (June 7th, 2011)
sponsored links
Old June 3rd, 2011, 03:12 PM   #2 (permalink)
Blame it on me
Thread Author (OP)
 
DaSchmarotzer's Avatar
 
Join Date: Mar 2010
Location: Québec, Canada
Posts: 3,087
 
Device(s):
Carrier: Not Provided

Thanks: 442
Thanked 1,559 Times in 783 Posts
Default

This post will contain general tips about themes that you might find useful as an add-on to Ardchoille's guide. If you have a tip, you can PM me or post it here and I will add it to the list.

When I started creating themes, the information was scarce so I decided to share my "knowledge" when Ardchoille wrote the guide. It's something I had wanted to do for a long time. Enjoy.

Changing the boot animation




Changing system fonts




Adding files on the SD Card via a theme




Changing the menu background to black




Changing the order of the system notification icons




Changing system text




How to edit .9.png files correctly



Primokorn likes this.
DaSchmarotzer is offline  
Last edited by DaSchmarotzer; June 23rd, 2011 at 10:00 PM.
The Following 13 Users Say Thank You to DaSchmarotzer For This Useful Post:
AboRetag (October 18th, 2011), AndyOpie150 (June 22nd, 2011), ardchoille (June 7th, 2011), Artine (August 20th, 2012), blue2107 (July 19th, 2011), chevanlol360 (January 25th, 2012), Granite1 (July 11th, 2011), melissapugs (July 21st, 2011), ninadchaudhari (March 26th, 2012), rambo54 (October 12th, 2011), Shrikant716 (July 20th, 2013), sweeds (June 7th, 2011), Tresezk (June 6th, 2011)
Old June 3rd, 2011, 03:12 PM   #3 (permalink)
Senior Member
 
eyebeam's Avatar
 
Join Date: Nov 2009
Location: Richfield MN
Gender: Male
Posts: 5,418
 
Device(s): Me - Evo 3D, Nexus 7 - Wife - Evo 3D, Galaxy Tab 10.1"
Carrier: Sprint

Thanks: 2,095
Thanked 3,099 Times in 2,147 Posts
Default

Wow! Great work Ard. AF really needed someone to put something like this together. Thanks for taking the time to do it!
eyebeam is offline  
Old June 3rd, 2011, 03:22 PM   #4 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by eyebeam View Post
Wow! Great work Ard. AF really needed someone to put something like this together. Thanks for taking the time to do it!
You're welcome

I'm hoping to see some cool themes come from this.
ardchoille is offline  
Old June 4th, 2011, 02:42 PM   #5 (permalink)
Senior Member
 
Sak01's Avatar
 
Join Date: Mar 2011
Posts: 937
 
Device(s): Nexus 4, HTC Desire
Carrier: Not Provided

Thanks: 186
Thanked 148 Times in 115 Posts
Default

Have you got a link to all your themes, ardchoille?
Sak01 is offline  
Old June 4th, 2011, 05:37 PM   #6 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by Sak01 View Post
Have you got a link to all your themes, ardchoille?
I'm afraid I don't. I am, however, making a new theme now and will link to screenshots when it's done.
ardchoille is offline  
Old June 4th, 2011, 06:30 PM   #7 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Added screenshots to the OP.
ardchoille is offline  
Old June 5th, 2011, 08:18 AM   #8 (permalink)
Senior Member
 
Join Date: Feb 2011
Posts: 2,925
 
Device(s):
Carrier: Not Provided

Thanks: 486
Thanked 1,870 Times in 1,300 Posts
Default

Add Edit
Froyo Samsung ROMS
twframework-res.apk - Notification menu
framework-res.apk - Everything else

*/system/framework/twframework-res.apk
*/system/framework/framework-res.apk

If you are editing Why be satisfied with GPS alone ,use it to change battery ,status bar, notification header/footer, background and icons.Add transparency and glow.
Tresezk is offline  
Last edited by Tresezk; June 5th, 2011 at 08:34 AM.
The Following User Says Thank You to Tresezk For This Useful Post:
ardchoille (June 5th, 2011)
Old June 5th, 2011, 08:39 AM   #9 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by karandpr View Post
Add Edit
Froyo Samsung ROMS
twframework-res.apk - Notification menu
framework-res.apk - Everything else

*/system/framework/twframework-res.apk
*/system/framework/framework-res.apk

If you are editing Why be satisfied with GPS alone ,use it to change battery ,status bar, notification header/footer, background and icons.Add transparency and glow.
I only used a few images as an example. Good point, though, this theming method can be used to edit anything in a ROM.
ardchoille is offline  
Old June 5th, 2011, 09:11 AM   #10 (permalink)
Blame it on me
Thread Author (OP)
 
DaSchmarotzer's Avatar
 
Join Date: Mar 2010
Location: Québec, Canada
Posts: 3,087
 
Device(s):
Carrier: Not Provided

Thanks: 442
Thanked 1,559 Times in 783 Posts
Default

Good job Ardchoille.

Since the tutorial already requires you to use APKManager, why don't you edit it to include decompiling, compiling and maybe a quick note about optimization? They're all options in APK Manager and have more "power" than just changing a couple image files.

With these options, you don't have to worry about .9.png since they'll be compiled with the rest, meaning that you can edit them directly in GIMP or Photoshop. Also, the themer will have access to the "values" folder, where he could edit xml files to change some colors or even text in the ROM (for example the color of the menu and dividers when the menu key is pressed). Or the order of the notification icons. Many things.

Just a suggestion, I know your tutorial is a little more basic though. That's exactly how I started. (I even used Eclipse to compile my .9.png until I discovered APK Manager.)
DaSchmarotzer is offline  
Last edited by DaSchmarotzer; June 5th, 2011 at 09:14 AM.
The Following 2 Users Say Thank You to DaSchmarotzer For This Useful Post:
ardchoille (June 5th, 2011), Tresezk (June 6th, 2011)
sponsored links
Old June 5th, 2011, 09:15 AM   #11 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by DaSchmarotzer View Post
Good job Ardchoille.

Since the tutorial already needs APKManager, why don't you edit it to include decompiling, compiling and maybe a quick note about optimization? They're all options in APK Manager and have much more power than just changing a couple image files.

With it, you don't have to worry about .9.png since they'll be compiled with the rest. Also, they'll have access to the "values" folder, where they'll need to edit xml files to change some colors or even text in the ROM (for example the color of the menu and dividers when the menu key is pressed).

Just a suggestion, I know your tutorial is a little more basic though. That's exactly how I started. (I even used Eclipse to compile my .9.png until I discovered APK Manager.)
Yeah, you're right. I'll be updating this tutorial to include more APK Manager stuff. APK Manager is a lot easier to use than Eclipse for theming. Thank you for the suggestion

EDIT: Unfortunately the Linux version of APK Manager lacks much of the functionality of the Windows version, so I won't be able to do much updating here.
ardchoille is offline  
Last edited by ardchoille; June 8th, 2011 at 05:22 PM.
Old June 5th, 2011, 09:21 AM   #12 (permalink)
Senior Member
 
Join Date: Feb 2011
Posts: 2,925
 
Device(s):
Carrier: Not Provided

Thanks: 486
Thanked 1,870 Times in 1,300 Posts
Default

-----------
Good Work DaS I guess
Tresezk is offline  
Last edited by Tresezk; June 6th, 2011 at 10:42 AM. Reason: My mistake
Old June 5th, 2011, 09:38 AM   #13 (permalink)
Senior Member
 
Join Date: Feb 2011
Posts: 2,925
 
Device(s):
Carrier: Not Provided

Thanks: 486
Thanked 1,870 Times in 1,300 Posts
Default

I think UOT kitchen should be mentioned here
Tresezk is offline  
Last edited by Tresezk; June 5th, 2011 at 09:41 AM.
The Following User Says Thank You to Tresezk For This Useful Post:
ardchoille (June 8th, 2011)
Old June 5th, 2011, 01:22 PM   #14 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by karandpr View Post
I think UOT kitchen should be mentioned here
Yes, very good theming site and one that I've learned quite a lot from.
ardchoille is offline  
Old June 5th, 2011, 07:14 PM   #15 (permalink)
Blame it on me
Thread Author (OP)
 
DaSchmarotzer's Avatar
 
Join Date: Mar 2010
Location: Québec, Canada
Posts: 3,087
 
Device(s):
Carrier: Not Provided

Thanks: 442
Thanked 1,559 Times in 783 Posts
Default

After talking with Ardchoille, I modified the tutorial to include decompiling, compiling and optimizing packages. It should help beginners modify advanced stuff. I might add a second post with useful tips for themes, such as changing the boot animation, fonts, adding files on the internal memory (such as wallpapers, icons, readme, etc), modifying xml files, etc.
DaSchmarotzer is offline  
Last edited by DaSchmarotzer; June 5th, 2011 at 07:16 PM.
The Following 3 Users Say Thank You to DaSchmarotzer For This Useful Post:
ardchoille (June 5th, 2011), blue2107 (July 19th, 2011), eyebeam (June 5th, 2011)
Old June 6th, 2011, 05:15 PM   #16 (permalink)
Blame it on me
Thread Author (OP)
 
DaSchmarotzer's Avatar
 
Join Date: Mar 2010
Location: Québec, Canada
Posts: 3,087
 
Device(s):
Carrier: Not Provided

Thanks: 442
Thanked 1,559 Times in 783 Posts
Default

I inserted a second post and shared some tips about themes. I hope at least one person will find this useful!
DaSchmarotzer is offline  
The Following 2 Users Say Thank You to DaSchmarotzer For This Useful Post:
ardchoille (June 6th, 2011), blue2107 (July 19th, 2011)
Old June 23rd, 2011, 01:05 AM   #17 (permalink)
Junior Member
 
zeroibis's Avatar
 
Join Date: Jun 2011
Posts: 43
 
Device(s): Motorola Droid
Carrier: Not Provided

Thanks: 2
Thanked 7 Times in 7 Posts
Default

Something I was wondering. Why not just have users simply overwrite files such as framework-res.apk directly and then reboot. To me this seems safer for users with sprecovery as they can then keep there current rom as update.zip at all times ready to re-flash if something went wrong.

Logically this may seem like more steps but you only need terminal emulator or root explorer in order to do it. For example the instructions here have people modifying theme data without needing to flash or build an entire package. Likely much easier if your just trying to change a few things or fine tune stuff: [TUT] How to mod your own framework-res.apk to include the CRT screen off animation - xda-developers

Lastly I understand that doing
Quote:
"Batch Optimize Apk". You will be asked what you want to do specifically, type zp and press enter.
but what does this actually do to the file? How does it make it faster on the phone?
zeroibis is offline  
Old June 23rd, 2011, 03:25 PM   #18 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by zeroibis View Post
Something I was wondering. Why not just have users simply overwrite files such as framework-res.apk directly and then reboot.
I have done this on two different android phones and was thrown into a boot loop, was told it's dangerous to replace/edit framework files while the system is running. I noticed some of the comments in the thread you linked also complain of boot loops.

I would have to say it's safer to build and flash a flashable zip file.
ardchoille is offline  
Old June 23rd, 2011, 09:56 PM   #19 (permalink)
Blame it on me
Thread Author (OP)
 
DaSchmarotzer's Avatar
 
Join Date: Mar 2010
Location: Québec, Canada
Posts: 3,087
 
Device(s):
Carrier: Not Provided

Thanks: 442
Thanked 1,559 Times in 783 Posts
Default

Quote:
Originally Posted by zeroibis View Post
Something I was wondering. Why not just have users simply overwrite files such as framework-res.apk directly and then reboot. To me this seems safer for users with sprecovery as they can then keep there current rom as update.zip at all times ready to re-flash if something went wrong.

Logically this may seem like more steps but you only need terminal emulator or root explorer in order to do it. For example the instructions here have people modifying theme data without needing to flash or build an entire package. Likely much easier if your just trying to change a few things or fine tune stuff: [TUT] How to mod your own framework-res.apk to include the CRT screen off animation - xda-developers

Lastly I understand that doing but what does this actually do to the file? How does it make it faster on the phone?
In addition to ardchoille's reply, the .zip archive can easily be used by users with less knowledge, that's another advantage. It can be shared more easily.

About optimization, it is supposed to make the application more "efficient" by reducing its file size. The png image files will be optimized (such as indexed colors) without any loss of quality and the app will also be zipaligned (I won't get into details but the app should consume less RAM).
DaSchmarotzer is offline  
Last edited by DaSchmarotzer; June 23rd, 2011 at 10:04 PM.
The Following User Says Thank You to DaSchmarotzer For This Useful Post:
ardchoille (June 23rd, 2011)
Old June 24th, 2011, 02:20 AM   #20 (permalink)
Junior Member
 
zeroibis's Avatar
 
Join Date: Jun 2011
Posts: 43
 
Device(s): Motorola Droid
Carrier: Not Provided

Thanks: 2
Thanked 7 Times in 7 Posts
Default

Ah I see, for reference I do the method as shown in the link above where you replace files in the apk as an archive after recompile. Should I optimize before of after this step?

The only reason I could see a user throwing a bootloop is that they did not set the permissions correctly on the file before the overwrite leading immediately to a major file system error. Otherwise it should not matter when it gets replaced unless it gets corrupted somehow.
zeroibis is offline  
sponsored links
Old June 24th, 2011, 02:28 AM   #21 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by zeroibis View Post
Ah I see, for reference I do the method as shown in the link above where you replace files in the apk as an archive after recompile. Should I optimize before of after this step?

The only reason I could see a user throwing a bootloop is that they did not set the permissions correctly on the file before the overwrite leading immediately to a major file system error. Otherwise it should not matter when it gets replaced unless it gets corrupted somehow.
For what it's worth, on one of the phones that I tried (Samsung Vibrant), I was thrown into a boot loop as soon as I copied and pasted the new framework-res.apk over the old one. I'm talking a couple of seconds.. there was no time to change permissions. It seems different phones yield different results for this method.
ardchoille is offline  
Old June 24th, 2011, 09:05 AM   #22 (permalink)
Blame it on me
Thread Author (OP)
 
DaSchmarotzer's Avatar
 
Join Date: Mar 2010
Location: Québec, Canada
Posts: 3,087
 
Device(s):
Carrier: Not Provided

Thanks: 442
Thanked 1,559 Times in 783 Posts
Default

Quote:
Originally Posted by zeroibis View Post
Ah I see, for reference I do the method as shown in the link above where you replace files in the apk as an archive after recompile. Should I optimize before of after this step?
The last thing you should do on your apk would be to optimize it. If you change something, you should optimize it again.
DaSchmarotzer is offline  
The Following User Says Thank You to DaSchmarotzer For This Useful Post:
ardchoille (July 17th, 2011)
Old June 30th, 2011, 01:39 PM   #23 (permalink)
Junior Member
 
zeroibis's Avatar
 
Join Date: Jun 2011
Posts: 43
 
Device(s): Motorola Droid
Carrier: Not Provided

Thanks: 2
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by ardchoille View Post
For what it's worth, on one of the phones that I tried (Samsung Vibrant), I was thrown into a boot loop as soon as I copied and pasted the new framework-res.apk over the old one. I'm talking a couple of seconds.. there was no time to change permissions. It seems different phones yield different results for this method.
Yea that would be expected you need to move it to the systems folder first then change the permissions then move to the app folder and overwrite. As it will then overwrite with the correct permissions already set your problem can be avoided. Always got to be careful with those system files.
zeroibis is offline  
The Following User Says Thank You to zeroibis For This Useful Post:
ardchoille (July 17th, 2011)
Old July 11th, 2011, 08:23 PM   #24 (permalink)
Zercron Encrusted Tweezer
 
Granite1's Avatar
 
Join Date: Dec 2010
Location: Pittsburgh, PA
Gender: Male
Posts: 7,092
 
Device(s): M8, Note2(Wife) EL TEvo(retired :()
Carrier: Sprint

Thanks: 12,414
Thanked 6,999 Times in 3,732 Posts
Default

I find its much easier to work on your pc, do your thing inside the appropriate .apk res folder, reinsert into 7zip, update archive and then flash the update.zip. Of course I do a anadroid first.

I tell you Ardch has been a godsend from the beginning for helping me start my first theme. Thanks My Man!
I also have apk manager, but I havent got into it that much yet. I guess I need to start optimizing my .apk's.

Just as a side note, I'd add 7zip as a tool. I use it all the time, makes updating an archive a breeze.
__________________
"Not everything that counts can be counted, and not everything that can be counted counts." Albert Einstein
Granite1 is offline  
The Following User Says Thank You to Granite1 For This Useful Post:
ardchoille (July 17th, 2011)
Old July 16th, 2011, 11:43 PM   #25 (permalink)
Senior Member
 
9to5cynic's Avatar
 
Join Date: Feb 2011
Location: /home/
Posts: 4,858
 
Device(s): Galaxy S3 (Verizon) Evo 4G - retired/rooted
Carrier: Verizon

Thanks: 3,066
Thanked 1,763 Times in 1,189 Posts
Send a message via AIM to 9to5cynic
Default

Quote:
Originally Posted by Granite1 View Post
I find its much easier to work on your pc, do your thing inside the appropriate .apk res folder, reinsert into 7zip, update archive and then flash the update.zip. Of course I do a anadroid first.

I tell you Ardch has been a godsend from the beginning for helping me start my first theme. Thanks My Man!
I also have apk manager, but I havent got into it that much yet. I guess I need to start optimizing my .apk's.

Just as a side note, I'd add 7zip as a tool. I use it all the time, makes updating an archive a breeze.
Granite, so you are not using the apk manager then? Just going right for an update zip? Do you need to use it to sign the zip or anything like that.
9to5cynic is offline  
Old July 17th, 2011, 10:27 AM   #26 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by zeroibis View Post
Yea that would be expected you need to move it to the systems folder first then change the permissions then move to the app folder and overwrite. As it will then overwrite with the correct permissions already set your problem can be avoided. Always got to be careful with those system files.
That worked beautifully! Thank you
ardchoille is offline  
Old July 17th, 2011, 10:36 AM   #27 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Just wanted to say that you don't even need to be running the ROM for which you're creating the theme. I downloaded CM7 a couple days ago, here's what I did:

1. Downloaded the CM7 ROM
2. Created my desired theme before even flashing CM7
3. Created a stock CM7 flashable theme just in case I wanted to revert later
4. Copied CM7 and both themes to the sd card
5. Flashed CM7
6. Flashed my theme
7. Rebooted into CM7 and my theme was in place

I recently created a theme for a friend who was using a phone I have never used. Probably a little risky but I was comfortable doing it.
ardchoille is offline  
Old August 9th, 2011, 11:47 AM   #28 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

I'm having some trouble signing my files and was wondering if anyone could help. I'm trying to only edit the SystemUI.apk on my HTC Thunderbolt running a Gingerbread ROM (BAMF).

I have optimized the package and put the SystemUI.apk into the correct folder in the Theme Template. I updated the updater-script to include the line for GB ROMs. I didn't remove the folder for framework or remove the line for the package_extract_dir for framework either.

I zip up the 3 folders so I can sign them in APK Manager. I rename the .zip to repackaged-unsigned.apk and put it in the modding folder, open APK Manager, choose the repackaged-unsigned.apk to work with, then choose option 4 to sign. I get an error in the log that says it can't find unsingedrepackaged-unsigned.apk and then it fails.

I'm not sure what I'm doing wrong or if I'm skipping a step. Everything seems to work great up until I try to sign.
zarxic is offline  
Old August 17th, 2011, 01:19 PM   #29 (permalink)
Member
 
Join Date: Aug 2011
Posts: 103
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 14 Times in 11 Posts
Default

all I want to do is render the notification bar (not the icons in it) transparent or really really close to transparent (apparently slightly smoky is ideal so you can see the clock in otherwise white programs like market etc..)

problem is I can not install busybox. how would I do it ?? (for some reason busybox won't install my my winmo touch pro 2 running froyo 2.2

any suggestions? I just want the notification transparent so my wallpaper goes edge to edge.
nerys is offline  
Old August 17th, 2011, 01:25 PM   #30 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by nerys View Post
all I want to do is render the notification bar (not the icons in it) transparent or really really close to transparent (apparently slightly smoky is ideal so you can see the clock in otherwise white programs like market etc..)

problem is I can not install busybox. how would I do it ?? (for some reason busybox won't install my my winmo touch pro 2 running froyo 2.2

any suggestions? I just want the notification transparent so my wallpaper goes edge to edge.
Froyo doesn't support transparency in the notification bar, that supports came with gingerbread.
ardchoille is offline  
sponsored links
Old August 17th, 2011, 01:32 PM   #31 (permalink)
Member
 
Join Date: Aug 2011
Posts: 103
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 14 Times in 11 Posts
Default

I can't change the png image file or whatever it uses to draw that bar? drat that sucks hard core. not sure how viable ginger is on my hardware. I know a group is working on it not sure how complete it is though.

what about skinning it? ie take the top x pixels of my image and use "that" as the "skin" for the notification bar ? (like we do in winmo)
nerys is offline  
Old August 17th, 2011, 01:37 PM   #32 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by nerys View Post
I can't change the png image file or whatever it uses to draw that bar? drat that sucks hard core. not sure how viable ginger is on my hardware. I know a group is working on it not sure how complete it is though.

what about skinning it? ie take the top x pixels of my image and use "that" as the "skin" for the notification bar ? (like we do in winmo)
It doesn't matter what you put as the notification bar skin, it won't be transparent because Froyo doesn't support transparency for the notification bar - there's more involved than just rendering an image. If you use a completely transparent image, you'll end up with a black bar.
ardchoille is offline  
Last edited by ardchoille; August 17th, 2011 at 01:39 PM. Reason: fixed typo
Old August 17th, 2011, 01:44 PM   #33 (permalink)
Member
 
Join Date: Aug 2011
Posts: 103
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 14 Times in 11 Posts
Default

nono your missing it. in winmo we had the same problem and someone made a program that replaced the image with a NON TRANSPARENT image but that image was a "chunk" of the wallpaper.

so it would look "odd" when you slide left and right (the chunk would not line up) but one the core center home screen it would "line up" and be seamless if you cut it right.

so how do I replace the image with ANOTHER image. all I need are its dimensions so I know what "chunk" to remove from the image I am using as a wallpaper.
nerys is offline  
Old August 17th, 2011, 03:12 PM   #34 (permalink)
Senior Member
 
ardchoille's Avatar
 
Join Date: Mar 2011
Location: Seattle
Gender: Male
Posts: 3,684
 
Device(s):
Carrier: Not Provided

Thanks: 1,957
Thanked 1,959 Times in 856 Posts
Default

Quote:
Originally Posted by nerys View Post
nono your missing it. in winmo we had the same problem and someone made a program that replaced the image with a NON TRANSPARENT image but that image was a "chunk" of the wallpaper.

so it would look "odd" when you slide left and right (the chunk would not line up) but one the core center home screen it would "line up" and be seamless if you cut it right.

so how do I replace the image with ANOTHER image. all I need are its dimensions so I know what "chunk" to remove from the image I am using as a wallpaper.
You could do that, but some phones use a .9.png for the notification bar, so you'd need to edit the image, compile the image and include it in the frameworks somewhere.. then flash the new theme. The image you need to edit is called statusbar_background.9.png in the /system/app/SystemUI.apk file. Again, this image will be in different places on different phones, you just need to find it.

By the way, nice trick
ardchoille is offline  
Last edited by ardchoille; August 17th, 2011 at 03:26 PM.
Old August 17th, 2011, 03:22 PM   #35 (permalink)
Member
 
Join Date: Aug 2011
Posts: 103
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 14 Times in 11 Posts
Default

how do I know what mine uses? its a custom rom running off the micro sd card for the touch pro 2 (a winmo phone) I know its froyo 2.2 not sure of much else.

the image I am using came from here.
XDAndroid
nerys is offline  
Old August 20th, 2011, 04:36 AM   #36 (permalink)
New Member
 
Join Date: Aug 2011
Location: Brighton
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to Calx
Default

Thanks for this, i used to make Blackberry themes, and they were fairly popuplar, i'm thinking of getting in to Android themes so this is just what I need.

Appreciated!
Calx is offline  
Old October 4th, 2011, 11:24 PM   #37 (permalink)
New Member
 
Join Date: Mar 2011
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by ardchoille View Post

Manufacturer specific ROMs:
The above packages will be needed in addition to the below requirements.

Sense UI ROMs:
* /system/framework/com.htc.resources.apk

Samsung Froyo ROMs:
* /system/framework/twframework-res.apk - Notification menu

Since Fresh Evo 3.5.0.1 is a Froyo ROM with htc's Sense UI we'll need the following packages in order to create a theme:
* /system/framework/com.htc.resources.apk
* /system/framework/framework-res.apk

If this were a Gingerbread ROM we would need these packages plus /system/app/SystemUI.apk
Howdy,

That part confuses me...

I have a Thunderbolt with Gingerbread & I can read the above 2 ways specifically: If this were a Gingerbread ROM we would need these packages plus /system/app/SystemUI.apk

Is this saying I will need the above files listed under the Froyo & Evo (or even the Evo) as well as this one OR is it to be read I need the Sense file listed above as well as this one?

I am such a noob...so, a ROM is what I flashed my phone with when I flashed it(?) & this is what I need to begin with(?), because I attached my phone to the computer in Disk Drive mode & looked for the files the walk through stated I needed (such as framework-res.apk), but couldn't find them.

I'm also confused, because it sounds as if I need the ROM to get the files, but then when I upload the files back to the phone I'm really just flashing a recovery & not the full thing.

Please keep in mind I've rooted exactly ONE phone & that was less than a week ago, so I'm really new to all this.

I'm just trying this for the first time & don't want to create a brick.

Thank you all.
opossum is offline  
Last edited by opossum; October 5th, 2011 at 12:07 AM. Reason: Added more noob confusion.
Old March 11th, 2012, 08:26 PM   #38 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

The theme template link is down, can anyone post an updated link or send me the file?
ctijacob is offline  
The Following User Says Thank You to ctijacob For This Useful Post:
theclash123 (March 12th, 2012)
Old March 12th, 2012, 02:58 AM   #39 (permalink)
New Member
 
Join Date: Jan 2012
Location: Washington state
Posts: 7
 
Device(s): Rooted Verizon Galxy Nexus
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
fitzowen8@gmail.com
Default

Quote:
Originally Posted by ctijacob View Post
The theme template link is down, can anyone post an updated link or send me the file?
same here
theclash123 is offline  
Old March 12th, 2012, 08:30 PM   #40 (permalink)
New Member
 
Join Date: Jan 2012
Location: Washington state
Posts: 7
 
Device(s): Rooted Verizon Galxy Nexus
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
fitzowen8@gmail.com
Default

Oh. Well, that stinks. It says this on his new website (ardchoille.nfshost.com):

"08/24/2011 - Removed all android items due to bandwidth costs"
theclash123 is offline  
sponsored links
Old March 14th, 2012, 09:00 AM   #41 (permalink)
Junior Member
 
Join Date: Mar 2012
Location: Michigan
Posts: 54
 
Device(s): MS910 Esteem Rooted
Carrier: Not Provided

Thanks: 7
Thanked 2 Times in 2 Posts
Default

I am really new to this, so please excuse my noobness. In the OP, am I supposed to be doing this on the phone or PC?
Viper52 is offline  
Old March 14th, 2012, 09:53 AM   #42 (permalink)
Member
 
Join Date: Oct 2011
Location: United States
Posts: 160
 
Device(s): Samsung Admire Android 2.3.6 Stock++, Sony-Ericsson Xperia Play
Carrier: Not Provided

Thanks: 11
Thanked 14 Times in 12 Posts
Default

Although I've got the basics started using NinjaMorph, I've hit a snag in my theming. I've successfully been able to theme SystemUI.apk, Framework-res.apk, as well as MMS apk.

I would like to theme some non-System apps, too. Is it possible to theme, say Juice Defender?
SpawnHyuuga is offline  
Old March 15th, 2012, 03:20 PM   #43 (permalink)
Blame it on me
Thread Author (OP)
 
DaSchmarotzer's Avatar
 
Join Date: Mar 2010
Location: Québec, Canada
Posts: 3,087
 
Device(s):
Carrier: Not Provided

Thanks: 442
Thanked 1,559 Times in 783 Posts
Default

Yes, it's possible to theme non-system apps. I'm currently running a themed version of K9-mail.

Have any of you guys contacted Ardchoille for the files you are looking for? He might have a local copy that he could upload on a website like mediafire.
DaSchmarotzer is offline  
Old March 16th, 2012, 06:00 AM   #44 (permalink)
Junior Member
 
Join Date: Mar 2012
Location: Michigan
Posts: 54
 
Device(s): MS910 Esteem Rooted
Carrier: Not Provided

Thanks: 7
Thanked 2 Times in 2 Posts
Default

I am really new to this and would appreciate some help please. I think I'm missing something, do you do this on the phone itself or on the PC and then transfer it?
Viper52 is offline  
Old March 16th, 2012, 09:10 AM   #45 (permalink)
Blame it on me
Thread Author (OP)
 
DaSchmarotzer's Avatar
 
Join Date: Mar 2010
Location: Québec, Canada
Posts: 3,087
 
Device(s):
Carrier: Not Provided

Thanks: 442
Thanked 1,559 Times in 783 Posts
Default

Quote:
Originally Posted by Viper52 View Post
I am really new to this and would appreciate some help please. I think I'm missing something, do you do this on the phone itself or on the PC and then transfer it?
You do this on the PC and the result is a .apk file, just like what you started with. After transferring it to your phone, you can install the application using a file manager. You'll have to accept applications from unknown sources in the phone's settings because the app doesn't come from the market. Don't worry about that, it should prompt you when trying to install it.
DaSchmarotzer is offline  
Old March 26th, 2012, 11:34 PM   #46 (permalink)
What's up !
 
ninadchaudhari's Avatar
 
Join Date: Nov 2011
Location: 127.0.0.1
Gender: Male
Posts: 1,805
 
Device(s): iPhone 5, Micromax A89, Micromax A70, Micromax W900, Blackberry Curve 8520. Many more !
Carrier: BSNL,Vodafone,Docomo,Indicom

Thanks: 575
Thanked 529 Times in 309 Posts
Default

Images need update in OP
__________________
ya and more thing , you are reading my signature...

And the most important stuff here :Site Rules
Piracy Hurts ...
ninadchaudhari is offline  
Closed Thread


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 07:42 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.