Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,351 Members 39,414 Now Online
XDA Developers Android and Mobile Development Forum

GUIDE Modify apks

Tip us?
 
MysticKing32
Old
#1  
MysticKing32's Avatar
Senior Member - OP
Thanks Meter 532
Posts: 1,489
Join Date: Dec 2011
Default GUIDE Modify apks

Hi. I just wanted to write a guide on modifying apks. You probably have seen my rom in the ported section.

(I'll make the guide look better when I get home)

Well lets get started.

1.
First. An introduction to what an apk is. An apk is (believe it or not) a zip of files.

2.
So how do you go about editing a zip? I suggest using 7z on your computer or root explorer on your phone.

Second: there are a lot of apks you can edit but for this guide I'll be using the systemui.apk that you find in any rom in the system/app folder.
3.
Ok. So assuming you start with the system ui apk your going to need to extract the apk with 7z on your computer. (or root explorer on your phone. Es file should work also)

4.
Now you should have a new folder where you chose to extract your apk. Open that folder. Your going to see a bunch of files. What your probably going to be interested in is the res folder. Go into that folder and find the drawable hdpi folder. Open it.
Your going to see a lot of icons. Here is where you can change things like wifi icons. You can add 4g icons and so much more. Even edit what your contacts look like.

5.
This is an important step. Make sure your using the system ui apk from the rom your currently on or make sure its compatible with yoir rom.
Ok so now we get to the things like icon changes. Download a theme you've been dying for but couldn't get because it was either for another rom or phone. And the only thing you wanted was a few things from the theme.
Now extract that zip. Then extract the systemui.apk again from the zip you want your icons to look like. MAKE SURE YOU RENAME THE THE SYSTEM UI TO SOMETHING DIFFERENT SO YOU DON'T MIX THEM UP.

6.
So now that you got the system ui apk with whatever you want to use all you need to do is go into the drawable hdpi of the one with the icons you want in it. Copy them and bring them to your roms stock system ui and replace them.

7.
Thats about it. Now zip your roms stock system ui back up and change the ending to .apk. Then put it in system/apps and replace it. Reboot. And boom. Your modded apk is ready.

Hit thanks if I helped.

Mystic's Glory (Thanks Incloud Design)
The Following User Says Thank You to MysticKing32 For This Useful Post: [ Click to Expand ]
 
howtomen
Old
#2  
howtomen's Avatar
Senior Member
Thanks Meter 1221
Posts: 1,992
Join Date: Jan 2011
Location: Brea CA

 
DONATE TO ME
for step three rename the. apk to .zip its easier
Check out My Android YouTube Channel!

Quote:
I'll answer any question, just ask nicely.
N5 running whatever i want
 
shoman94
Old
(Last edited by shoman94; 13th April 2012 at 11:35 PM.)
#3  
shoman94's Avatar
Recognized Contributor
Thanks Meter 12168
Posts: 8,420
Join Date: Mar 2009
Location: Maine

 
DONATE TO ME
This can only be used for replacing regular images in the APK. There are many images that are .9 images which require decompiling.
There are MANY guides across xda that go into detail and show you the proper way to modify APK's..... There is much more then images.

This one is even in this forum: http://forum.xda-developers.com/show....php?t=1388459
IRC: freenode|#shostock


Asus Transformer Prime[32gb]
CROMBi-kk-4.4.2

Asus Transformer[16gb]
KatKiss-4.4.2
The Following User Says Thank You to shoman94 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes