Jump to content


Photo

Theming Introduction - Images

Theme APK Manager

  • Please log in to reply
100 replies to this topic

#1 mopar57

mopar57

    Developer/MOD

  • Superuser
  • 375 posts

Posted 01 February 2012 - 10:56 AM

APK Manager 5.0.1
This guide is intended to help get started on creating your own themes! This guide is only to cover the basic images. Other changes will be cover in future guides.

I know there is an updated version of this ( APK Manager 5.0.2), however I choose not to use it because of a common issue when decompiling.

I normally use photoshop and winrar. Free programs that do the same thing are GIMP and 7zip.
To install:

Please Login or Register to see this Hidden Content



Extract the folder inside the zip and place on your hard drive. I will be placing on my desktop.

Download the rom you wish to modify, and choose the apk in which you wish to edit images.
Move this file into “place-apk-here-for-modding’
Posted Image


This is what your file should contain. Make sure you check the location.
Posted Image


Back out to the main directory
Click on Script.bat
Choose option 22
Posted Image


Then choose your project: Should be 1 is you have only added 1 file, then hit enter.
Posted Image


Now check the top right hand corner, make sure it has the correct apk listed.
Then choose option 9- This will decompile the apk. Be patient….
It should say decompiling…then when it’s finished it will return to the main screen
Posted Image


Now go back the APK Manager directory, and choose projects
Posted Image


You should have something like:
Posted Image

This is your decompile framework.
Navigate to framework-res.apk/res/drawable-hdpi
This is going to be all the images in the framework that you can change.

**Note- until you feel good about your skills I would stay away from .9.pngs These take special attention and I will discuss more on these at a later time.**

Change all the images you wish I use photoshop, GIMP would also be a great program to use. …………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………
When you are finished editing the images, it’s time to compile them.
Go back to your Script.bat file
And choose option 11

Posted Image


It will build APK/ and then ask you a few questions:
Is this a system apk – type “y”
Also put “y” for the second questions when copying original information

Posted Image



This will do a lot of extracting……
When it’s finished It will ask you to delete any files you modify out of a keep folder. If you go to the apk manager folder you will see that a “keep” folder has been added.

Posted Image


Now if you navigate to the keep/res/drawable-hdmi folder you can delete every image that you changed….Or since you answer “y” to both questions earlier then you can take the easy way and delete the whole folder.
Once done return back to the Script.bat and press any key. It will compile if all your images are correct.
*This is also the part were it causes a lot of headaches, if you edit .9.pngs most likely it will not compile, if it does why are you still reading this J *
Once the compiling is complete the Script.bat will return to normal, and you will have a new apk in the modding folder. “unsignedframework-res.apk
Choose option 12 in Script.apk
This will sign the apk.
Congradulations!!! Your theme is now complete!
Now you can transfer to the phone by several ways….
Adb it by replacing frameworks
Replace the apk in the original rom and installing by CWR
Or steal one of my update zips and add your file in the correct location. ( same location as in the rom)

Please Login or Register to see this Hidden Content





-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Another option if you have having trouble..by DroidTh3ory

If you just download the 3 files(apktool, apktool.jar and aapt) and give them root permissions, you can use Terminal. Much easier. In terminal type

Apktool install framework framework-res.apk

Apktool install framework moto-res.apk

Apktool install framework blur-res.apk

You will now see a apktool folder with 3 folders in them 1 2 3.

Grab the apk you want to decompike, drop it in the /home folder and in terminal type.

Apktool d filename.apk out

It will be in /home/out

To recompile in terminal type

cd out
Apktool b

It will recompile.

:)


  • MrFrankRazr, mattlgroff, listenman20 and 9 others like this

Posted Image

Posted Image

Got an idea for a theme?

PM me!

I like mail! :D


#2 Guest_24v_*

Guest_24v_*
  • Guests

Posted 01 February 2012 - 11:09 AM

Thank you for this. I can't wait to get home from work and give it a shot.
Quick question though. This is done on apps in /system. What if you want to theme apps that are not? Like Handcent for example?
Can you just decompile/recompile/sign, then add them into /system in one of your flashable zips?

#3 MrFrankRazr

MrFrankRazr

    Dedicated Supporter

  • Dedicated Supporter
  • PipPipPip
  • 669 posts
  • Twitter:@MrFrankReyna
  • Google+:frankreyna
  • LocationSoCal, USA
  • Current Device(s):LG G2 on VZW

Posted 01 February 2012 - 11:13 AM

This is just brilliant! Thanks for your write up and time!

Moved on to the LG G2 on VZW and lovin it!


#4 Guest_24v_*

Guest_24v_*
  • Guests

Posted 01 February 2012 - 12:56 PM

I used this to do the framework-res.apk, and all is well. However, when I try an app like blur-res.apk, or BlurPhone.apk it fails at decompile. Should I be using option 10 for that or something?

#5 mopar57

mopar57

    Developer/MOD

  • Superuser
  • 375 posts

Posted 01 February 2012 - 01:05 PM

Thank you for this. I can't wait to get home from work and give it a shot.
Quick question though. This is done on apps in /system. What if you want to theme apps that are not? Like Handcent for example?
Can you just decompile/recompile/sign, then add them into /system in one of your flashable zips?


Yes, same process. IIt will add it under system, but last time I did handcent it worked just fine.

Posted Image

Posted Image

Got an idea for a theme?

PM me!

I like mail! :D


#6 mopar57

mopar57

    Developer/MOD

  • Superuser
  • 375 posts

Posted 01 February 2012 - 01:07 PM

I used this to do the framework-res.apk, and all is well. However, when I try an app like blur-res.apk, or BlurPhone.apk it fails at decompile. Should I be using option 10 for that or something?


if its blur, you might have to use moto-res.apk as a dependency.... I can look into it.

PM me a link to what you have.

Posted Image

Posted Image

Got an idea for a theme?

PM me!

I like mail! :D


#7 Guest_24v_*

Guest_24v_*
  • Guests

Posted 01 February 2012 - 01:43 PM

if its blur, you might have to use moto-res.apk as a dependency.... I can look into it.

PM me a link to what you have.

It tells me to drag the dependee apk in this window or type its path. I have tried both with moto-res.apk, and blur-res.apk, and neither work. It wont even let me drag anything into the window.
What do you want me to PM you?

[edit]
Got the path to work. I was typing it wrong. I have tried moto-res.apk, and blur-res.apk and neither seem to work. I will post what it says in a second[/edit]

#8 Guest_24v_*

Guest_24v_*
  • Guests

Posted 01 February 2012 - 01:55 PM

Ok, it says "Can't find framework resources for package of id: 3. You must install prope framework files, see project website for more info."

#9 BigJArm

BigJArm

    Member

  • Developer
  • 212 posts
  • LocationIdaho
  • Current Device(s):Droid RAZR; Nexus 10

Posted 01 February 2012 - 02:13 PM

Thank you for posting this. I am stoked to try it out.

Sent from my DROID RAZR using Tapatalk

#10 eckdawg5

eckdawg5

    Member

  • Members
  • PipPip
  • 110 posts
  • Twitter:twitter.com/eckdawg5

Posted 01 February 2012 - 02:32 PM

thanks mopar!!!

#11 mopar57

mopar57

    Developer/MOD

  • Superuser
  • 375 posts

Posted 01 February 2012 - 05:57 PM

Ok, it says "Can't find framework resources for package of id: 3. You must install prope framework files, see project website for more info."


Do you have dropbox or anything to post files? If so its easier for me to see what you have instead of random guessing at possible problems :)

Posted Image

Posted Image

Got an idea for a theme?

PM me!

I like mail! :D


#12 Guest_24v_*

Guest_24v_*
  • Guests

Posted 01 February 2012 - 06:02 PM

Do you have dropbox or anything to post files? If so its easier for me to see what you have instead of random guessing at possible problems :)

Tell me what files you want to see and I will get it posted somehow.

#13 mopar57

mopar57

    Developer/MOD

  • Superuser
  • 375 posts

Posted 01 February 2012 - 07:23 PM

The images you are trying to mod..either blur-res or blurphone

Posted Image

Posted Image

Got an idea for a theme?

PM me!

I like mail! :D


#14 Guest_24v_*

Guest_24v_*
  • Guests

Posted 02 February 2012 - 04:07 AM

The images you are trying to mod..either blur-res or blurphone

Here is BlurPhone, blur-res, and moto-res. They are from DT's Abysm rom.

Please Login or Register to see this Hidden Content


Please Login or Register to see this Hidden Content


Please Login or Register to see this Hidden Content



#15 MrFrankRazr

MrFrankRazr

    Dedicated Supporter

  • Dedicated Supporter
  • PipPipPip
  • 669 posts
  • Twitter:@MrFrankReyna
  • Google+:frankreyna
  • LocationSoCal, USA
  • Current Device(s):LG G2 on VZW

Posted 02 February 2012 - 08:10 PM

So, I used the app with the framework-res.apk and then the final file is called signedframework-res.apk. Do I add this file to your update zip or rename it to framework-res.apk first? then flash.

Moved on to the LG G2 on VZW and lovin it!


#16 mopar57

mopar57

    Developer/MOD

  • Superuser
  • 375 posts

Posted 02 February 2012 - 08:55 PM

So, I used the app with the framework-res.apk and then the final file is called signedframework-res.apk. Do I add this file to your update zip or rename it to framework-res.apk first? then flash.


rename to framework-res.apk then add it to the framework folder in the update.zip...then flash away

Posted Image

Posted Image

Got an idea for a theme?

PM me!

I like mail! :D


#17 MrFrankRazr

MrFrankRazr

    Dedicated Supporter

  • Dedicated Supporter
  • PipPipPip
  • 669 posts
  • Twitter:@MrFrankReyna
  • Google+:frankreyna
  • LocationSoCal, USA
  • Current Device(s):LG G2 on VZW

Posted 02 February 2012 - 08:57 PM

rename to framework-res.apk then add it to the framework folder in the update.zip...then flash away

Yep, did that and got failed.
Added file to your zip file, copied to sdcard, booted to recovery/bootstrap...wiped cache/dalvik, then tried to flash your zip....failed/aborted.

Moved on to the LG G2 on VZW and lovin it!


#18 mopar57

mopar57

    Developer/MOD

  • Superuser
  • 375 posts

Posted 02 February 2012 - 08:57 PM

thanks mopar!!!


Your welcome! Enjoy!!

Posted Image

Posted Image

Got an idea for a theme?

PM me!

I like mail! :D


#19 mopar57

mopar57

    Developer/MOD

  • Superuser
  • 375 posts

Posted 02 February 2012 - 08:58 PM

Yep, did that and got failed.
Added file to your zip file, copied to sdcard, booted to recovery/bootstrap...wiped cache/dalvik, then tried to flash your zip....failed/aborted.


Can you post what you got? If everything compile and got signed I dont see why it wouldn't

Posted Image

Posted Image

Got an idea for a theme?

PM me!

I like mail! :D


#20 mopar57

mopar57

    Developer/MOD

  • Superuser
  • 375 posts

Posted 02 February 2012 - 09:01 PM

Here is BlurPhone, blur-res, and moto-res. They are from DT's Abysm rom.

Please Login or Register to see this Hidden Content


Please Login or Register to see this Hidden Content


Please Login or Register to see this Hidden Content



ok, so for these files you have to decompile with moto-res ,framework-res, blur, and systemUI

Posted Image

Posted Image

Got an idea for a theme?

PM me!

I like mail! :D





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users