HOW TO Decompile/Recompile /edit smali ICS

Search This thread

seanzscreams

Retired Recognized Developer
Jul 27, 2010
3,652
12,723
Atlanta
I promised id make this so here it goes


Download Wanams Apk Manager

http://xdaforums.com/showpost.php?p=23935070&postcount=14

and Win rar


A few notes..
when doing smali edits .. dont do them at the same time as xmls or pngs
Whe doing jar files and classes.dex i use
AutoAPKTool2.0.4
(or just smali baksmali in command
if enough people want this i will include it )


Lets Use a Deodexed ICS SystemUi.apk


Code:
[center]
-Place systemui.apk in   place-apk-here-for-modding

-then run script.bat in apk manager root folder

-now select your project .. (option 22)
and then option 1 for systemui.apk
and hit enter

now press option 9 (decompile)

it should run a few lines then complete...

Now go into the folder titled projects and find your systemui folder

lets  just use one file for example    we will call it default_wallpaper.png

you would place this in res/drawable hdpi/default_wallpaper.png

replacing what is already there

now go back to the script and this time select option 11 (compile)

as long as you didnt mess up any .9pngs or include any extra unidentified pictures it will  compile without errors ( if you encounter errors its something you did check the logs.txt)

so now the program will ask you is this a system file   
say yes

next it will ask you if you want to make a copy of everything in a keep folder
to ensure everything works right.... now there are three options

If you edited pictures  say yes

if you edited xml files   say yes

if you edited smali files say no and skip to finalizing with win rar   down below



so youve said yes bc you only made picture edits 

sp now go into apkmanager  folder called keep 

and navigate back to res/drawable hdpi/default_wallpaper.png and delete it


and also:::::: only if you decided  to edit  any xml files.....

 make sure you delete  resources.src at this point


now go back to your script ... since it should say hit enter to continue..

hit enter  
[/center]




FINALIZING THE FILE WITH WINRAR

Code:
Now navigate back to place apk here for modding

and find unsignedsystemui.apk

double click it and open it with winrar

extract the contents


now navigate to the newly extracted unsignedsystemui folder

highlight everything and right click

say add to archive


rename it SystemUI.apk

set it as a zip (but rename zip extension to apk)

and set it to store

hit ok  and Voila You have a newly edited  and resigned Apk file





[/center]
 
Last edited:

appdroid

Senior Member
Oct 25, 2011
2,565
4,266
Chicago
If You want to change Bat%Icon in status bar! This is how you can do it! Follow the guide step by step and you will be done within minutes!:D

http://xdaforums.com/showthread.php?t=1434061


I didn't wanted to write so here I just got it from xda user so thnx to him.

For only .pngs!

Changing/Replacing the .png file inside .apk

  • Amending normal .png no need to de-compile, just extract the file and modified using any photoshop tools or simply replace the .png
  • Just right click any .apk file and select 7-zip extract to, as seen below:
    7075841387_d143991913_b_d.jpg
  • Now go to the extracted folder and amend / replace any .png file you like to replace. (Remember .9.png file cannot just simply replace, check following post for instruction.)


This is how to work with .9pngs!

Modifying tricky .9.png file.

  • The .9.png cannot just simply amend using any photoshop and put back, because by doing so, either the amend .9.png won't appear or just simply give you FC in your phone when running it.

What to do:
  • De-compile the .apk.
  • Below showing the different between before and after de-compile of .9.png, as you can seen on right image,they is extra 4 black dot + 1 black bar and surrouding with transparent bar, all this area must be keep and not amend during photoshop. The de-compile image will auto increase 1 x pixel + 1 y Pixel.
    6929932892_b26cba2dc3_d.jpg
    6929932912_fd3e348153_d.jpg
  • Just amend without touching those area, save it and then put back to correct folder and compile back.

And This is how u can do XML!

Modifying .xml file

  • After you have de-compile the .apk, now all inside .xml is readable where you can make some changes on the color selection, clock position and etc. by just simply open with notepad and modified.
  • Before de-compile, the .xml look like below which is not readable and understand by human.
    7075904187_a480aae051_b_d.jpg
  • After de-compile, now the .xml is readable and understand by human.
    7077344611_d127492c2d_b_d.jpg
  • Now you can amend what ever you like, Google/Search XDA forum for which .XML to amend.
  • Use this color code checker site for getting your desire color code.
  • After done, don't forget, you must compile back the .xml before it is understandable by Android OS.
  • Screenshot below showing modifying the sub text .xml to ICS blue color.
    6928674204_ab34f945bb_z_d.jpg


    Change all
    Code:
    from android:color="#ffffffff to [B]android:color="#ff3f9bbf[/B]
    at zzz_tw_secondary_text_sub.xml
 
Last edited:
Also have a great setup here. With special tools for frame rrs and systemui


And this for editing colors.xml which makes life so much easier

Color edit tool can be found here http://xdaforums.com/showthread.php?t=1348613


Its for editing colors.xml in decompiled framework-res
Dont have to enter hex. Just click and select color



And an fyi. U also need twframework-res installed to decompile Mms.apk properly.

And if u want to edit .9pngs u need photoshop or paint.net.
Zoom in 800 percent so u can see the 1 pixel border.
Do not touch the border pixels. Use rectangle select.
And cut whats inside the border.
Open new. Paste and do ur changes
Then merge the edited cut layer back inside the border.


Or look up how to use draw9patch. In the sdk tools. But its not nearly as simple.

You will also need notepad ++ to edit xml's and updater scripts. A simple text editor/notepad will corrupt them
 

Attachments

  • 1334421353371.jpg
    1334421353371.jpg
    257.4 KB · Views: 483
  • 1334421337227.jpg
    1334421337227.jpg
    258.2 KB · Views: 466
Last edited:

cdshepherd

Senior Member
May 16, 2011
1,903
1,140
If you can't beat em, join em :)
Silver and Sean, thank you both :thumbup:

Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
 

roughneckboren

Senior Member
Dec 7, 2010
994
592
weatherford oklahoma
I can't decompile systemui....I can decompile framework and twframework but if in try to decompile systemui all I see is a smali folder. I've been trying to use apktool succesfully for three weeks now and no success. I have all the newest sdk items and Java etc.......I want to build custom rooms but its getting frustrating. I've uninstalled sdk and reinstalled everything and still no go. Don't know what I'm doing wrong....:(

Sent from my GT-P7510 using xda premium
 

StolenVW

Senior Member
Mar 20, 2012
707
405
Elizaville
i can decompile and compile systemui without errors i cant deodex it though :( and when changing a few png's and putting the new complied systemui on the phone i lose the notification bar
 

roughneckboren

Senior Member
Dec 7, 2010
994
592
weatherford oklahoma
--------------------------------------------------------------------------
|Sun 04/22/2012 -- 21:11:35.44|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
Could Not Find C:\Users\sean boren\Desktop\ROMMING\Apk_Manager_ICS\place-apk-her
e-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\sean boren\Desktop\ROMMING\Apk_Manager_ICS\place-apk-her
e-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: Unknown opco
de: ff
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:87)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:157)
at org.jf.dexlib.Item.readFrom(Item.java:76)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.dexlib.DexFile.<init>(DexFile.java:267)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Caused by: java.lang.RuntimeException: Unknown opcode: ff
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:51)
... 12 more
Error occured at code address 2184
code_item @0x3bf94

Press any key to continue . . .

or if i try just plain ol apktool...........



C:\Android>apktool if SystemUI.apk
I: Framework installed to: C:\Users\sean boren\apktool\framework\127.apk

C:\Android>apktool d SystemUI.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\sean boren\apktool\framework\1.apk

I: Loaded.
I: Decoding file-resources...
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_btn_default_small_normal.9.
png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_plmn_bg.9.png". Renaming it
to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_quickpanel_title_background
.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_btn_default_small_normal_di
sable.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/tw_status_bar_close_on.9.png".
Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-hdpi/status_bar_close_on.9.png". Re
naming it to *.png.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

C:\Android>

any help?

---------- Post added at 03:22 AM ---------- Previous post was at 03:14 AM ----------

and this is the recompile.......


C:\Android>apktool b SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Android\SystemUI\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\Android\SystemUI\res/layout-sw600dp
invalid resource directory name: C:\Android\SystemUI\res/layout-sw800dp
invalid resource directory name: C:\Android\SystemUI\res/values-sw600dp
invalid resource directory name: C:\Android\SystemUI\res/values-sw600dp-port
invalid resource directory name: C:\Android\SystemUI\res/values-sw720dp
invalid resource directory name: C:\Android\SystemUI\res/values-sw720dp-port
invalid resource directory name: C:\Android\SystemUI\res/values-sw800dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\SEANBO~1\AppData\Local\Tem
p\APKTOOL6504191100815924378.tmp, -I, C:\Users\sean boren\apktool\framework\1.ap
k, -S, C:\Android\SystemUI\res, -M, C:\Android\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\SEANBO~1\AppData\Local\Temp\APKTOOL6504191100815924378.tmp, -I, C:\Users\se
an boren\apktool\framework\1.apk, -S, C:\Android\SystemUI\res, -M, C:\Android\Sy
stemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

C:\Android>
 
Last edited:
Those would be errors from .9pngs what were not edited properly on the decompile. And either same on recompile. Or xml errors.
Do u have the new aapt from the new sdk is also what i would make sure of .

---------- Post added at 01:46 AM ---------- Previous post was at 01:42 AM ----------

Also do apktool b -f SystemUI when u recompile

---------- Post added at 01:47 AM ---------- Previous post was at 01:46 AM ----------

And systemui/res\values doesnt look right

Systemui/res/values

Somethin funy going on with the /\ not a valid directory. / /
 

roughneckboren

Senior Member
Dec 7, 2010
994
592
weatherford oklahoma
Those would be errors from .9pngs what were not edited properly on the decompile. And either same on recompile. Or xml errors.
Do u have the new aapt from the new sdk is also what i would make sure of .

---------- Post added at 01:46 AM ---------- Previous post was at 01:42 AM ----------

Also do apktool b -f SystemUI when u recompile

---------- Post added at 01:47 AM ---------- Previous post was at 01:46 AM ----------

And systemui/res\values doesnt look right

Systemui/res/values

Somethin funy going on with the /\ not a valid directory. / /

I have all the updated stuff and tried wanam's . Like I said I completely uninstalled and reinstalled the sdk and apktool files.
I've tried apktool b SystemUI.API, apktool -f........., but it won't matter if I can't decompile correctly right?
All of this is from the ROM I'm using(appdroids) and I've also tried to do a stock from with the same results.
I've put everything in my C:\ directory like every tutorial I've watched or read said to do. That's why I can't understand what I'm doing wrong.
I also have Ubuntu dual booted on my computer and still can't get it to work. :confused::confused::confused::confused:

I really wanna figure this stuff out because I would love to start a ROM of my own.

Sent from my GT-P7510 using xda premium
 
Last edited:

StolenVW

Senior Member
Mar 20, 2012
707
405
Elizaville
Those would be errors from .9pngs what were not edited properly on the decompile. And either same on recompile. Or xml errors.
Do u have the new aapt from the new sdk is also what i would make sure of .

---------- Post added at 01:46 AM ---------- Previous post was at 01:42 AM ----------

Also do apktool b -f SystemUI when u recompile

---------- Post added at 01:47 AM ---------- Previous post was at 01:46 AM ----------

And systemui/res\values doesnt look right

Systemui/res/values

Somethin funy going on with the /\ not a valid directory. / /

The funny \ in the dir name is from not putting the new aapt into autoapktool dir.... I was getting that on recompile

Sent from my SAMSUNG-SGH-I727 using Tapatalk
 

slambkny

Senior Member
Nov 20, 2010
119
9
Those would be errors from .9pngs what were not edited properly on the decompile. And either same on recompile. Or xml errors.
Do u have the new aapt from the new sdk is also what i would make sure of .

---------- Post added at 01:46 AM ---------- Previous post was at 01:42 AM ----------

Also do apktool b -f SystemUI when u recompile

---------- Post added at 01:47 AM ---------- Previous post was at 01:46 AM ----------

And systemui/res\values doesnt look right

Systemui/res/values

Somethin funy going on with the /\ not a valid directory. / /

Thanks for this. I'm trying to learn. I'm stuck tho. I decompiled my framework-Res.apk I made changes and rran compile script.
Now I have a file called singedframework-Res.apk
Please tell me what to do next so its ready to go back into the phone.Thank You

Sent from my SAMSUNG-SGH-T989 using xda premium
 

m4570d0n

Senior Member
Nov 20, 2011
1,304
1,021
Houston
OnePlus 6T
Thanks for this. I'm trying to learn. I'm stuck tho. I decompiled my framework-Res.apk I made changes and rran compile script.
Now I have a file called singedframework-Res.apk
Please tell me what to do next so its ready to go back into the phone.Thank You

Sent from my SAMSUNG-SGH-T989 using xda premium
pretty sure you don't want to sign system apks. If you're useing the Autoapktool sean posted here, then after you choose option 11 to compile, it will ask you if it is a system app. you say yes. It will ask if you about using other files you did not edit, you say yes. It will generate a folder called "keep." Go to the keep folder and delete every file you edited and leave everything else. If you made any xml edits, then delete resources.arsc too. Then go back to the prompt and hit enter. It will create an unsigned apk.

Now, I dunno if this is necessary if you made sure to set compression level to zero but sean recommended this and it's worked for me. You right click on the new unsigned apk, and extract it with 7zip. Go into the extracted directory. Highlight everything and right-click > Add to Archives. In the winrar window that comes up select zip, change compression method to "Store", remove the "unsigned" part of the file name and change the end of it from zip to apk. Done.
 

PlagueBoy

Senior Member
Nov 1, 2007
74
116
roughneckboren - I was having a similar issue when I was trying to decompile Systemui.apk's from the UCALC4 roms as well. I have no clue if this will help you, but what worked for me was saving the apktool.jar from the folder downloaded from Wanam to another name (I used apktool.jar.bak) and then copied the apktool.jar from apktool 1.4.2 and dropped it into the folder. At that point I was able to decompile the SystemUI.apk and modify it however I wanted. When finished, and before compiling, I just renamed the apktool.jar from 1.4.2 and named the original from Wanam back.

This only happened to me on UCALC4 roms and I haven't had a single issue with the UCLD2 roms that I have edited. Again, I have no clue if this is going to help you but it is what worked for me so I figured there is no harm in at least mentioning it...

Hope you get it figured out, or have already. Good luck! Also, thanks to Sean, Silver and the rest of everyone else here on the forums for getting this information out to everyone!
 
Last edited:

iceofhavik

Senior Member
Mar 31, 2011
92
33
Usa
Hey im actually having this problem here using your manager.

--------------------------------------------------------------------------
|Thu 04/26/2012 -- 10:50:25.59|
--------------------------------------------------------------------------
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
Could Not Find C:\Users\Toria\Documents\Arc\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\Users\Toria\Documents\Arc\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Toria\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010806fe
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108073e
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a010b
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:54)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:56)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)


Im actually trying to edit an xperia arc arconium ics systemui.apk which is deoxed.
 

eaglesuper

Member
Jun 29, 2010
25
0
Hi,
i tried to follow the tutorial ( got an normal SII XD )
But the problem ist ...if i use apktool or apkmanager: I never get a smali folder.
I try to edit camera.apk :((

Pls tell me what i'm doing wrong

Thank you
 

Top Liked Posts

  • There are no posts matching your filters.
  • 15
    I promised id make this so here it goes


    Download Wanams Apk Manager

    http://xdaforums.com/showpost.php?p=23935070&postcount=14

    and Win rar


    A few notes..
    when doing smali edits .. dont do them at the same time as xmls or pngs
    Whe doing jar files and classes.dex i use
    AutoAPKTool2.0.4
    (or just smali baksmali in command
    if enough people want this i will include it )


    Lets Use a Deodexed ICS SystemUi.apk


    Code:
    [center]
    -Place systemui.apk in   place-apk-here-for-modding
    
    -then run script.bat in apk manager root folder
    
    -now select your project .. (option 22)
    and then option 1 for systemui.apk
    and hit enter
    
    now press option 9 (decompile)
    
    it should run a few lines then complete...
    
    Now go into the folder titled projects and find your systemui folder
    
    lets  just use one file for example    we will call it default_wallpaper.png
    
    you would place this in res/drawable hdpi/default_wallpaper.png
    
    replacing what is already there
    
    now go back to the script and this time select option 11 (compile)
    
    as long as you didnt mess up any .9pngs or include any extra unidentified pictures it will  compile without errors ( if you encounter errors its something you did check the logs.txt)
    
    so now the program will ask you is this a system file   
    say yes
    
    next it will ask you if you want to make a copy of everything in a keep folder
    to ensure everything works right.... now there are three options
    
    If you edited pictures  say yes
    
    if you edited xml files   say yes
    
    if you edited smali files say no and skip to finalizing with win rar   down below
    
    
    
    so youve said yes bc you only made picture edits 
    
    sp now go into apkmanager  folder called keep 
    
    and navigate back to res/drawable hdpi/default_wallpaper.png and delete it
    
    
    and also:::::: only if you decided  to edit  any xml files.....
    
     make sure you delete  resources.src at this point
    
    
    now go back to your script ... since it should say hit enter to continue..
    
    hit enter  
    [/center]




    FINALIZING THE FILE WITH WINRAR

    Code:
    Now navigate back to place apk here for modding
    
    and find unsignedsystemui.apk
    
    double click it and open it with winrar
    
    extract the contents
    
    
    now navigate to the newly extracted unsignedsystemui folder
    
    highlight everything and right click
    
    say add to archive
    
    
    rename it SystemUI.apk
    
    set it as a zip (but rename zip extension to apk)
    
    and set it to store
    
    hit ok  and Voila You have a newly edited  and resigned Apk file
    
    
    
    
    
    [/center]
    6
    Also have a great setup here. With special tools for frame rrs and systemui


    And this for editing colors.xml which makes life so much easier

    Color edit tool can be found here http://xdaforums.com/showthread.php?t=1348613


    Its for editing colors.xml in decompiled framework-res
    Dont have to enter hex. Just click and select color



    And an fyi. U also need twframework-res installed to decompile Mms.apk properly.

    And if u want to edit .9pngs u need photoshop or paint.net.
    Zoom in 800 percent so u can see the 1 pixel border.
    Do not touch the border pixels. Use rectangle select.
    And cut whats inside the border.
    Open new. Paste and do ur changes
    Then merge the edited cut layer back inside the border.


    Or look up how to use draw9patch. In the sdk tools. But its not nearly as simple.

    You will also need notepad ++ to edit xml's and updater scripts. A simple text editor/notepad will corrupt them
    3
    If You want to change Bat%Icon in status bar! This is how you can do it! Follow the guide step by step and you will be done within minutes!:D

    http://xdaforums.com/showthread.php?t=1434061


    I didn't wanted to write so here I just got it from xda user so thnx to him.

    For only .pngs!

    Changing/Replacing the .png file inside .apk

    • Amending normal .png no need to de-compile, just extract the file and modified using any photoshop tools or simply replace the .png
    • Just right click any .apk file and select 7-zip extract to, as seen below:
      7075841387_d143991913_b_d.jpg
    • Now go to the extracted folder and amend / replace any .png file you like to replace. (Remember .9.png file cannot just simply replace, check following post for instruction.)


    This is how to work with .9pngs!

    Modifying tricky .9.png file.

    • The .9.png cannot just simply amend using any photoshop and put back, because by doing so, either the amend .9.png won't appear or just simply give you FC in your phone when running it.

    What to do:
    • De-compile the .apk.
    • Below showing the different between before and after de-compile of .9.png, as you can seen on right image,they is extra 4 black dot + 1 black bar and surrouding with transparent bar, all this area must be keep and not amend during photoshop. The de-compile image will auto increase 1 x pixel + 1 y Pixel.
      6929932892_b26cba2dc3_d.jpg
      6929932912_fd3e348153_d.jpg
    • Just amend without touching those area, save it and then put back to correct folder and compile back.

    And This is how u can do XML!

    Modifying .xml file

    • After you have de-compile the .apk, now all inside .xml is readable where you can make some changes on the color selection, clock position and etc. by just simply open with notepad and modified.
    • Before de-compile, the .xml look like below which is not readable and understand by human.
      7075904187_a480aae051_b_d.jpg
    • After de-compile, now the .xml is readable and understand by human.
      7077344611_d127492c2d_b_d.jpg
    • Now you can amend what ever you like, Google/Search XDA forum for which .XML to amend.
    • Use this color code checker site for getting your desire color code.
    • After done, don't forget, you must compile back the .xml before it is understandable by Android OS.
    • Screenshot below showing modifying the sub text .xml to ICS blue color.
      6928674204_ab34f945bb_z_d.jpg


      Change all
      Code:
      from android:color="#ffffffff to [B]android:color="#ff3f9bbf[/B]
      at zzz_tw_secondary_text_sub.xml
    3
    i will share anything ive learned