[GUIDE] How to use APKTOOL - Galaxy Y GT-S5360 General

I've seen many users inquiring about how to decompile apps. Although there are many threads on this, still users don't search. So i decided to create this guide as our GT-S5360 forum didn't have one. I learnt this from v6ser's tut about 5-6 months ago, so i would like to thank him before starting this guide. Please PM me guys if I've missed something or written something wrong!
What is decompiling?
Android apps are BASICALLY made up of Java codes and XML files. After compiling the app, these files cannot be viewed. Decompiling is a process which decompiles the binary form of XMLs and .Java files into readable form. The XML files can be retained as it is, but the .java files are converted into smali files, a totally different language.
What is recompiling?
Recompiling is simply a way to convert the XML and smali files back into the binary form and building up of the APK with the changes made. All apps after recompiled have to be signed (except system apps).
Let's start!
Things needed :-
JRE (Java Runtime Environment)
Windows - Download apktool
Download apktool-install-windows
Place both apktool files in C:\Windows\"HERE"
First off, you need to install the framework.
The three apks needed :-
framework-res.apk (location : /system/framework)
SystemUI.apk (location : /system/app)
twframework-res.apk (location : /system/framework)
Go to Command Prompt, and type :-
Code:
apktool if {framework's folder/location}
Example in the image here :-
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Repeat the same step for SystemUI.apk and twframework-res.apk too, besides framework-res.apk
These will be saved here - C:\Users\your_user_name\apktool\"HERE"
Next step, is the decompiling.
Code:
apktool d C:\filename.apk C:\folder_of_the_decompiled_files
Example in the image here :-
Now, you can view the XML and smali files. I would recommend Notepad++ to edit them.
After making your changes, you're gonna need to recompile so that the files are again in the apk form.
Next step, recompiling.
Code:
apktool b C:\folder_of_the_decompiled_files C:\newfilename.apk
(You can use other directories too, I've just used C:\ as an example)
Example in the image here :-
Now, final step is signing the apk file.
Remember don't sign the apk if it's a SYSTEM app, unless you have edited the AndroidManifest.xml.
Signing.
Download the zip file here :- http://www.mediafire.com/?gs6n10oh09c039n
Extract the files in a folder named "SignApk", in any convienient location. (I preferred C:\)
Example of the code in image here :-
That's it! I hope this guide helps a lot of newbies and other users out there!

Reserved. why use it when you have apk manager and VTS?

hell_lock said:
Reserved. why use it when you have apk manager and VTS?
Click to expand...
Click to collapse
I and many other users prefer it a for being simple. Apk manager and others can cause a lot of trouble when you don't have adb, or anything else.

One of the usefullest threads i hope many newbies read this for understand.thumps up and up and up.....
MANY GREEEEETZ!!!

Very nice thread..... Really helpful for all new user........
Sent from my GT-S6102 using Tapatalk 2

Glad you guys liked it.
Sent from my GT-S5360 using Tapatalk 2

Could be useful for newbies, a detailed tutorial is hard to get, good work

Thx a lot for the tutorial mate! It's really helpful!
1 question! : If I want to edit the framework( I get it from another mod, so it's not my stock framework). Do I need to install the framework every time I want to mod a framework that I just get?
Thx a lot man!
I'm a newbieee:fingers-crossed::fingers-crossed::fingers-crossed:

good thread

RivaultUser said:
Thx a lot for the tutorial mate! It's really helpful!
1 question! : If I want to edit the framework( I get it from another mod, so it's not my stock framework). Do I need to install the framework every time I want to mod a framework that I just get?
Thx a lot man!
I'm a newbieee:fingers-crossed::fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
No need...i mod many roms' frameworks but the installed one in apktool is repencis framework....btw, it would be better if you do it...
You can always press the thanks button if you wanna thank me!
Sent from my GT-S5360 using xda premium

anasdcool71 said:
No need...i mod many roms' frameworks but the installed one in apktool is repencis framework....btw, it would be better if you do it...
You can always press the thanks button if you wanna thank me!
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Okay mate, can you help me solve this problem I had?
When I tried to recompile back my mod framework-res.apk I got this message :
C:\APKTOOL>apktool b testframework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building apk file...
What could not find resources means?
Thx for your help!

RivaultUser said:
Okay mate, can you help me solve this problem I had?
When I tried to recompile back my mod framework-res.apk I got this message :
C:\APKTOOL>apktool b testframework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building apk file...
What could not find resources means?
Thx for your help!
Click to expand...
Click to collapse
A framework-res.apk is itself the source of other apks( when you install it - apktool if...). So the message that you got is normal.
Sent from my GT-S5360 using xda premium

You should now make a thread for debugging apktool/apk manager errors
Sent from my GT-S5360 using XDA

anasdcool71 said:
A framework-res.apk is itself the source of other apks( when you install it - apktool if...). So the message that you got is normal.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
I see, sorry for asking a lot of question........
Is this normal? :
ry_27.png
S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_batte
ry_17.png
S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_batte
ry_23.png
........... a lot more
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
This is happened when I try to decompile the framework-res.apk
Thx a lot man!!!!!
I'm a newbieee:fingers-crossed::fingers-crossed::fingers-crossed:

RivaultUser said:
I see, sorry for asking a lot of question........
Is this normal? :
ry_27.png
S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_batte
ry_17.png
S: Could not decode file, replacing by FALSE value: drawable-hdpi/stat_sys_batte
ry_23.png
........... a lot more
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
This is happened when I try to decompile the framework-res.apk
Thx a lot man!!!!!
I'm a newbieee:fingers-crossed::fingers-crossed::fingers-crossed:
Click to expand...
Click to collapse
I never got that kind of message while decompiling. So i really can't tell. But unless you get no problems while recompiling, everything's good.
Sent from my GT-S5360 using xda premium

anasdcool71 said:
I never got that kind of message while decompiling. So i really can't tell. But unless you get no problems while recompiling, everything's good.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
The thing is....... I also got problem in recompiling it :
C:\APKTOOL\framework-res\res\values\public.xml:4159: error: Public symbol drawab
le/stat_sys_signal_1_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4160: error: Public symbol drawab
le/stat_sys_signal_2_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4161: error: Public symbol drawab
le/stat_sys_signal_3_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4162: error: Public symbol drawab
le/stat_sys_signal_4_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4163: error: Public symbol drawab
le/stat_sys_signal_evdo_0 declared here is not defined.
and a lot more.....
And after I checked back the folder that I want to recompile, I dont find any disc folder there............
Any advice??????????
:crying::crying:

RivaultUser said:
The thing is....... I also got problem in recompiling it :
C:\APKTOOL\framework-res\res\values\public.xml:4159: error: Public symbol drawab
le/stat_sys_signal_1_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4160: error: Public symbol drawab
le/stat_sys_signal_2_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4161: error: Public symbol drawab
le/stat_sys_signal_3_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4162: error: Public symbol drawab
le/stat_sys_signal_4_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4163: error: Public symbol drawab
le/stat_sys_signal_evdo_0 declared here is not defined.
and a lot more.....
And after I checked back the folder that I want to recompile, I dont find any disc folder there............
Any advice??????????
:crying::crying:
Click to expand...
Click to collapse
Most probably, the changes that you made are not correct. That's why you got a problem while recompiling.
If you did no changes after decompiling, but still got a problem with recompiling, then try installing the framework-res.apk, SystemUI.apk and twframework-res.apk again and then try.

RivaultUser said:
The thing is....... I also got problem in recompiling it :
C:\APKTOOL\framework-res\res\values\public.xml:4159: error: Public symbol drawab
le/stat_sys_signal_1_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4160: error: Public symbol drawab
le/stat_sys_signal_2_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4161: error: Public symbol drawab
le/stat_sys_signal_3_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4162: error: Public symbol drawab
le/stat_sys_signal_4_cdma declared here is not defined.
C:\APKTOOL\framework-res\res\values\public.xml:4163: error: Public symbol drawab
le/stat_sys_signal_evdo_0 declared here is not defined.
and a lot more.....
And after I checked back the folder that I want to recompile, I dont find any disc folder there............
Any advice??????????
:crying::crying:
Click to expand...
Click to collapse
anasdcool71 said:
Most probably, the changes that you made are not correct. That's why you got a problem while recompiling.
If you did no changes after decompiling, but still got a problem with recompiling, then try installing the framework-res.apk, SystemUI.apk and twframework-res.apk again and then try.
Click to expand...
Click to collapse
I have seen that problem alot of times... post the complete log here... its not a prob in public.xml

hell_lock said:
I have seen that problem alot of times... post the complete log here... its not a prob in public.xml
Click to expand...
Click to collapse
I'll PM you then. It's too much if I post it here

anasdcool71 said:
Most probably, the changes that you made are not correct. That's why you got a problem while recompiling.
If you did no changes after decompiling, but still got a problem with recompiling, then try installing the framework-res.apk, SystemUI.apk and twframework-res.apk again and then try.
Click to expand...
Click to collapse
About that, I shall install the systemUI.apk that I'm running on or the stock one?
I don't find any twframework-res.apk on my system/framework????????

Related

[THEMED APPS] Operation: White on Black - Removing ICS Blue One App at a Time

My Mission: Replace ICS blue with white wherever possible. This includes icons and text.
Thank to:
Nitroz for his awesome Black Exodus theme which is the inspiration for these apps
artvandelay440 because he is awesome!
Most Recent Update: *Feb 19* Figured out my compiling problems, but I now have a new problem installing system apps. Either way, I have modified and posted Calculator.apk. Calendar is being worked on, but there is more ICS blue to remove than I thought.
Themed Apps:
Settings
Mms
Calculator
Calendar (will be posted very soon)
Apps To Be Themed:
Phone
Nova launcher (Including nova settings and app drawer)
Genie Widget (news and weather)
Keyboard
...Possibly more apps (make a request if you want, but no guarantees)
Install Instructions: Simply adb push any apk to /System/app/ (make sure to read any special instructions for specific apps)
APP: Settings.apk
WHAT'S NEW: Changed settings icon from black/ICS blue to all white. Changed icon that appears in app drawer.
PICS: http://i.imgur.com/U7yuo.png
LINK: http://www.mediafire.com/?aq214os8zz98q6c
SPECIAL INSTRUCTIONS: None
APP: Mms.apk (Text Messaging APP)
WHAT'S NEW: 100% White on black, no traces of gray that I can tell. Removed contact pics, removed border around messages, black/white icons, white notification icon. Changed app drawer icon.
PICS: http://imgur.com/a/B3scm
LINK: http://www.mediafire.com/?daaqjim0223ap6s
SPECIAL INSTRUCTIONS: Flash using CWM. Thanks to Nitroz for the script.
APP: Calculator.apk
WHAT'S NEW: 100% White on black. White glow when button is pressed. Pretty sure this is themed completely.
PICS: http://i.imgur.com/QGIAA.png
LINK: http://www.mediafire.com/?x7b46jd70nasde6
SPECIAL INSTRUCTIONS: Just put the apk somewhere on your SD card and install using root explorer or similar program.
ATTN: These apps were themed by pulling them from AOKP M3 and using the M3 framework/systemui. Installing these apps (specifically settings) on any other ROM MAY give you errors, but I'm not sure. Still kind of a noob.
ENJOY THE APPS AND STAY TUNED FOR MORE!
Reserved for future use
Bump for Mms and Settings updates. Pretty sure they are both final, but I will update if/when new versions come out.
pm me your log from the calculator recompile errors, and i'll try to help out.
artvandelay440 said:
pm me your log from the calculator recompile errors, and i'll try to help out.
Click to expand...
Click to collapse
Thank you. I just left the house so I can't post it
When I tried recompiling it threw a "invalid resource directory name" for all the drawable* folders. Man, apkmulti tool really has a problem with images or something. Even though I only modified 2 .PNG files (the same way I modified mms.apk), all the folders that contain PNG threw errors.
number3pencil said:
Thank you. I just left the house so I can't post it
When I tried recompiling it threw a "invalid resource directory name" for all the drawable* folders. Man, apkmulti tool really has a problem with images or something. Even though I only modified 2 .PNG files (the same way I modified mms.apk), all the folders that contain PNG threw errors.
Click to expand...
Click to collapse
I have a suspicion, but I'll wait to check the logs
Sent from my Galaxy Nexus using xda premium
what version of mms.apk is this? Im looking for the 4.0.4 version
GeLopez said:
what version of mms.apk is this? Im looking for the 4.0.4 version
Click to expand...
Click to collapse
4.0.3 If you link me the 4.0.4 one I will theme it (assuming it's any different)
artvandelay440 said:
I have a suspicion, but I'll wait to check the logs
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Give this a look whenever you get a chance. This is from trying to recompile SystemUI.apk, but it gives me the exact same errors as recompiling the calculator. Thanks!
--------------------------------------------------------------------------
|Sat 02/18/2012 -- 11:48:51.70|
--------------------------------------------------------------------------
--2012-02-18 11:48:52-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'
0K 100% 3.66M=0s
2012-02-18 11:48:52 (3.66 MB/s) - `apkver.txt' saved [152/152]
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
The system cannot find the path specified.
The system cannot find the path specified.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Jeff\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\res/drawable-sw600dp-xhdpi
invalid resource directory name: C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\res/layout-sw600dp
invalid resource directory name: C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\res/values-sw600dp
invalid resource directory name: C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\res/values-sw600dp-port
invalid resource directory name: C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\res/values-sw720dp
invalid resource directory name: C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Jeff\AppData\Local\Temp\APKTOOL8670456460024137345.tmp, -I, C:\Users\Jeff\apktool\framework\1.apk, -S, C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\res, -M, C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:\Users\Jeff\AppData\Local\Temp\APKTOOL8670456460024137345.tmp, -I, C:\Users\Jeff\apktool\framework\1.apk, -S, C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\res, -M, C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
lol you're going to kick yourself.
invalid resource directory name: C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\res/drawable-sw600dp-xhdpi
the slash is facing the wrong direction
artvandelay440 said:
lol you're going to kick yourself.
invalid resource directory name: C:\Program Files (x86)\Android\android-sdk\projects\SystemUI.apk\res/drawable-sw600dp-xhdpi
the slash is facing the wrong direction
Click to expand...
Click to collapse
Lol. To be honest I did notice that, but I don't understand why that happens. What's the convention on forward/back slash? Is it window's fault? I obviously never explicitly entered in the wrong slash. Any ideas how that is possible?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Huzzah! I have figured out my compile errors! I had a really outdated version of aapt.exe in my windows directory
I can finally get back to theming!
Expect at least two themed apps tomorrow, probably calculator and calendar. But I have some system.ui mods I want to try out first.
BUMP for Calculator.apk
Calendar coming soon!
number3pencil said:
4.0.3 If you link me the 4.0.4 one I will theme it (assuming it's any different)
Click to expand...
Click to collapse
this is the 4.0.4 version stock (all white)
i dont know if there are differences but at least the version number is higher
Hi ALL,
Im looking for the same black and white MMS apk for my galaxy S2 running 4.0.3 with WanamLite.Stock.IML.74K.XXLPB.
Can any one port an apk for the same.
Thanks!!!!
number3pencil said:
My Mission: Replace ICS blue with white wherever possible. This includes icons and text.
Thank to:
Nitroz for his awesome Black Exodus theme which is the inspiration for these apps
artvandelay440 because he is awesome!
Most Recent Update: *Feb 19* Figured out my compiling problems, but I now have a new problem installing system apps. Either way, I have modified and posted Calculator.apk. Calendar is being worked on, but there is more ICS blue to remove than I thought.
Themed Apps:
Settings
Mms
Calculator
Calendar (will be posted very soon)
Apps To Be Themed:
Phone
Nova launcher (Including nova settings and app drawer)
Genie Widget (news and weather)
Keyboard
...Possibly more apps (make a request if you want, but no guarantees)
Install Instructions: Simply adb push any apk to /System/app/ (make sure to read any special instructions for specific apps)
APP: Settings.apk
WHAT'S NEW: Changed settings icon from black/ICS blue to all white. Changed icon that appears in app drawer.
PICS: http://i.imgur.com/U7yuo.png
LINK: http://www.mediafire.com/?aq214os8zz98q6c
SPECIAL INSTRUCTIONS: None
APP: Mms.apk (Text Messaging APP)
WHAT'S NEW: 100% White on black, no traces of gray that I can tell. Removed contact pics, removed border around messages, black/white icons, white notification icon. Changed app drawer icon.
PICS: http://imgur.com/a/B3scm
LINK: http://www.mediafire.com/?daaqjim0223ap6s
SPECIAL INSTRUCTIONS: Flash using CWM. Thanks to Nitroz for the script.
APP: Calculator.apk
WHAT'S NEW: 100% White on black. White glow when button is pressed. Pretty sure this is themed completely.
PICS: http://i.imgur.com/QGIAA.png
LINK: http://www.mediafire.com/?x7b46jd70nasde6
SPECIAL INSTRUCTIONS: Just put the apk somewhere on your SD card and install using root explorer or similar program.
ATTN: These apps were themed by pulling them from AOKP M3 and using the M3 framework/systemui. Installing these apps (specifically settings) on any other ROM MAY give you errors, but I'm not sure. Still kind of a noob.
ENJOY THE APPS AND STAY TUNED FOR MORE!
Click to expand...
Click to collapse
Can you explain me how did you change the colors? I need it for my rom for galaxy s plus. What files did you mod? Sorry for my bad english :silly:

[SOLVED][THINK TANK][ICS FB17][XML EDITS]Let's "fully" theme FB17!

*Thanks to sleshepic for pointing out this fix!*
Download (apktool.jar modded for ICS):
https://docs.google.com/file/d/0B5fEJ4OaoRriNTk0Y2VkYTMtYWVmMy00ODQyLWI3ZmYtOTUyM2FlYWFiNzg4/edit#
Replace the original one in your ApkTool or APK Manager with the one above
You should be good to go!
Ok now, I know FB17 is far from a production state but simple things need to be changed such as xml edits for CRT, Clock Color, and SystemUI edits.
So far I have tried using both APKTool & APK Multi Tool (APK Manager) and updating the apktool.jar & aapt.exe in all of them with no luck. I have tried these methods on both AOSP ICS ROMS & our FB17 TW Rom so it is not Samsung related.
With APK Manger I am able to edit framework & twframework and recompile but you always end up with this result no matter what you change, big or small.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
With APKTool I can decompile both frameworks but the compile just errors out:
Code:
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Windows\system32>cd C:\apktools
C:\apktools>java -jar apktool.jar b framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
C:\apktools>
So I am at a loss there.
With the SystemUI it is another story, I am unable to get it to decompile at all.
Code:
C:\apktools>java -jar apktool.jar d SystemUI.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init><DexFile.java:377>
at org.jf.dexlib.DexFile.<init><DexFile.java:274>
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>
I am really not sure what any of this means but I followed the instructions to set up for ICS here:
http://forum.xda-developers.com/showthread.php?t=1365810
The thread link above has a ton of information and if the tools would work we could implement this stuff.
* is just a way of number, I didn't put this in the command *
EDIT: (This is my setup for apktool)
Yes this is the process I did.
C:\apktools is where my apktool is
Therefore I placed framework-res.apk, twframework-res.apk, & SystemUI.apk in that folder.
This is what I did:
* java -jar apktool.jar if framework-res.apk
(moved to apktool folder as 1.apk)
* java -jar apktool.jar if twframework-res.apk
(moved to apktool folder as 2.apk)
* java -jar apktool.jar d twframework-res.apk
(extracts it into a folder)
* (deleted apktool.yml and ran this)
java -jar apktool.jar b framework-res.apk
Then I get the error. I get an instant error upon trying to decompile SystemUI.
I have the errors listed in my thread. I also tried the method you stated about:
java -jar apktool.jar b framework-res framework-res2.apk
Click to expand...
Click to collapse
If anyone has gotten this to work or knows a resolution lets get it going so we can all start to Theme this TouchWiz ICS stuff.
Mine........
Mine also
I haven't tried yet but have you updated your sdk then copied over the new aapt? Also have you switched out the user/apktool/ framework/1 with the new framework? Also make twframework 2. Sorry if you have already tried these.
*edit ignore the aapt part ssconcepts has already tried that.
Sent from my SPH-D710 using Tapatalk
Do you get errors on framework recompiling even if you dont edit anything? Framework is recompiling without errors here, a few images def cause issues without any reason i can find every now and then, but on the whole i can get it to recompile without errors...
Sent from my SPH-D710 using xda
dtm_stretch said:
I haven't tried yet but have you updated your sdk then copied over the new aapt? Also have you switched out the user/apktool/ framework/1 with the new framework? Also make twframework 2. Sorry if you have already tried these.
*edit ignore the aapt part ssconcepts has already tried that.
Sent from my SPH-D710 using Tapatalk
Click to expand...
Click to collapse
Yes I did that.
sleshepic said:
Do you get errors on framework recompiling even if you dont edit anything? Framework is recompiling without errors here, a few images def cause issues without any reason i can find every now and then, but on the whole i can get it to recompile without errors...
Sent from my SPH-D710 using xda
Click to expand...
Click to collapse
framework-res.apk & twframework-res.apk both compile without errors as I stated when using APK Manager/APK Multi Tool but It will not compile for me with apktool. Even when it doesn't error, the result is shown in the screenshot above.
This is my apktool setup as based on the link in OP.
* is just a way of number, I didn't put this in the command *
EDIT: (This is my setup for apktool)
Yes this is the process I did.
C:\apktools is where my apktool is
Therefore I placed framework-res.apk, twframework-res.apk, & SystemUI.apk in that folder.
This is what I did:
* java -jar apktool.jar if framework-res.apk
(moved to apktool folder as 1.apk)
* java -jar apktool.jar if twframework-res.apk
(moved to apktool folder as 2.apk)
* java -jar apktool.jar d twframework-res.apk
(extracts it into a folder)
* (deleted apktool.yml and ran this)
java -jar apktool.jar b framework-res.apk
Then I get the error. I get an instant error upon trying to decompile SystemUI.
I have the errors listed in my thread. I also tried the method you stated about:
java -jar apktool.jar b framework-res framework-res2.apk
Click to expand...
Click to collapse
Well I just tried a test, only editing some xml colors [in values/styles, values/color and progress horizontal in drawable]. I'm sure I did the edits right, so I didnt expect the same issues with my settings menu, and status bar(its oversized and knocks other images lower than they should)
I also copied the resources, and drawable xml to an un-modded framework apk. So I suspect the issues we're seeing are in the recompiling of the resources file, even though I didnt get any errors.
Edit: I also noticed that I lose reboot options. Just asks whether I want to shut down yes/no
Same here, I think it is the way our tools are set up. But I did set mine up for ICS and even trying on ICS AOSP files I get same results. I don't see how others are doing it lol.
I got it to compile. I had to change the strings and plurals files
res\values\styles\strings.xml (I had to add)
<string name="mobileap_notification">.</string>
<string name="policylab_allow_htmlemail">.</string>
<string name="wifi_p2p_pbc_go_negotiation_request_message">.</string>
<string name="wifi_p2p_pin_display_message">.</string>
<string name="policydesc_allow_htmlemail">.</string>
<string name="wifi_p2p_pin_go_negotiation_request_message">.</string>
res\values-es\styles\strings.xml (I had to add)
<string name="policydesc_allow_htmlemail">.</string>
and all the plurals.xml files that have
<item quantity="other">%d of %d</item>
need to change to
<item quantity="other">%1$d of %2$d</item>
That is all I needed to do to get it to compile with no errors. I am guessing some things still need work on the decompiling process for ICS stuff.
I have no idea what those strings are suppose to be but putting anything in there will allow it to build
I think ICS is going to seperate the men from the boys when it comes to theming. Thanks to all of the names I see posting here......except isaint.....lololol
Sent from my SPH-D710 using xda premium
rujelus22 said:
I got it to compile. I had to change the strings and plurals files
res\values\styles\strings.xml (I had to add)
<string name="mobileap_notification">.</string>
<string name="policylab_allow_htmlemail">.</string>
<string name="wifi_p2p_pbc_go_negotiation_request_message">.</string>
<string name="wifi_p2p_pin_display_message">.</string>
<string name="policydesc_allow_htmlemail">.</string>
<string name="wifi_p2p_pin_go_negotiation_request_message">.</string>
res\values-es\styles\strings.xml (I had to add)
<string name="policydesc_allow_htmlemail">.</string>
and all the plurals.xml files that have
<item quantity="other">%d of %d</item>
need to change to
<item quantity="other">%1$d of %2$d</item>
That is all I needed to do to get it to compile with no errors. I am guessing some things still need work on the decompiling process for ICS stuff.
I have no idea what those strings are suppose to be but putting anything in there will allow it to build
Click to expand...
Click to collapse
Thanks! unfortunately I haven't been able to decompile the systemui.apk. no matter what method I try I get errors. any tips on decompiling systemui successfully? thx
---------- Post added at 10:00 PM ---------- Previous post was at 09:02 PM ----------
found this!!!
https://docs.google.com/leaf?id=0B5fEJ4OaoRriNTk0Y2VkYTMtYWVmMy00ODQyLWI3ZmYtOTUyM2FlYWFiNzg4&pli=1#
its a modded apktool jar to work with 4.0.3. put it in my apktool folder and presto! decompiled fine now. haven't even tested to see if it recompiles yet, so excited I had to post.
Edit: Apktool itself won't recompile correctly, even without edits. So I transferred the decompiled Systemui folder from Apktool into my Apkmanager "projects" folder(with the systemui.apk in the "modding" folder) and it recompiled without errors. psyched...
rujelus22 said:
I got it to compile. I had to change the strings and plurals files
res\values\styles\strings.xml (I had to add)
<string name="mobileap_notification">.</string>
<string name="policylab_allow_htmlemail">.</string>
<string name="wifi_p2p_pbc_go_negotiation_request_message">.</string>
<string name="wifi_p2p_pin_display_message">.</string>
<string name="policydesc_allow_htmlemail">.</string>
<string name="wifi_p2p_pin_go_negotiation_request_message">.</string>
res\values-es\styles\strings.xml (I had to add)
<string name="policydesc_allow_htmlemail">.</string>
and all the plurals.xml files that have
<item quantity="other">%d of %d</item>
need to change to
<item quantity="other">%1$d of %2$d</item>
That is all I needed to do to get it to compile with no errors. I am guessing some things still need work on the decompiling process for ICS stuff.
I have no idea what those strings are suppose to be but putting anything in there will allow it to build
Click to expand...
Click to collapse
framework or systemui? I can get them to compile just fine, they just don't work right. systemui is the one that doesn't work for me at all.
sleshepic said:
Thanks! unfortunately I haven't been able to decompile the systemui.apk. no matter what method I try I get errors. any tips on decompiling systemui successfully? thx
---------- Post added at 10:00 PM ---------- Previous post was at 09:02 PM ----------
found this!!!
https://docs.google.com/leaf?id=0B5fEJ4OaoRriNTk0Y2VkYTMtYWVmMy00ODQyLWI3ZmYtOTUyM2FlYWFiNzg4&pli=1#
its a modded apktool jar to work with 4.0.3. put it in my apktool folder and presto! decompiled fine now. haven't even tested to see if it recompiles yet, so excited I had to post.
Edit: Apktool itself won't recompile correctly, even without edits. So I transferred the decompiled Systemui folder from Apktool into my Apkmanager "projects" folder(with the systemui.apk in the "modding" folder) and it recompiled without errors. psyched...
Click to expand...
Click to collapse
Very nice find and thanks for sending this to me, I am about to give it a little test run!
sleshepic I can't thank you enough!
Sent from my SPH-D710 using XDA App
The problem with apktool is that it can't decompile the classes.dex, so until it's updated, you can't decompile an apk that includes one. For apks that don't have one(like framework-res.apk), the only way I have found to decompile and compile an apk is to use 1.4.2 and compile with 1.4.3(both with the latest aapt). Techinically if your not going to edit the smali's you can remove the classes.dex from the apk, decompile, mod, compile & then reinsert the classes.dex afterwards
Calkulin said:
The problem with apktool is that it can't decompile the classes.dex, so until it's updated, you can decompile a apk that includes one. For apks that don't have one(like framework-res.apk), the only way I have found to decompile and compile an apk is to use 1.4.2 and compile with 1.4.3(both with the latest aapt). Techinically if your not going to edit the smali's you can remove the classes.dex from the apk, decompile, mod, compile & then reinsert the classes.dex afterwards
Click to expand...
Click to collapse
Good to know, thx Calk!
Sent from my SPH-D710 using xda premium
Can someone post there whole setup for apktool that there using to decompile? I'm able to decompile but when i transfer over the folder to apk manager i get errors. Thanks
What are your errors? Is it something simple like " file has not been extracted yet" or something much longer?
Sent from my SPH-D710 using xda premium
I am using APK Manager 5.0.2, I can try to post it up in a bit, got some homework to do.

How do I add language pack- Miui

Okay so I flashed this Miui Rom http://forum.xda-developers.com/showthread.php?t=2489976
And started thinking if I could get it in Danish.. Found this https://github.com/1982Strand/XML_MIUI-v5_Danish which is supposed to be a Danish language pack for Miui v5. Now my question is, How do I install this? If anyone would help me it would be great thanks!
Sent from my LG-E975 using xda app-developers app
with jBart
http://en.miui.com/thread-6222-1-1.html
but i think you would have the same problem like me. (keyboard forceclose)
and you dont flash the language you edit the rom with this tool....
BRainXstorming said:
with jBart
http://en.miui.com/thread-6222-1-1.html
but i think you would have the same problem like me. (keyboard forceclose)
and you dont flash the language you edit the rom with this tool....
Click to expand...
Click to collapse
Ah thanks. Will the keyboard keep crashing even If its not being used? Otherwise I would just be able to use SwiftKey or?
Sent from my LG-E975 using XDA Premium 4 mobile app
I think only the original keyboard crash...
PS You have to edit a file from jBart To add the danish github source...
Sent from my LG-E975 using xda app-developers app
BRainXstorming said:
I think only the original keyboard crash...
PS You have to edit a file from jBart To add the danish github source...
Sent from my LG-E975 using xda app-developers app
Click to expand...
Click to collapse
Ah is there a guide? Or could u guide me?
Sent from my LG-E975 using XDA Premium 4 mobile app
Yeah but you have to wait until im at home because i have my computer Not here...
Sent from my LG-E975 using xda app-developers app
BRainXstorming said:
Yeah but you have to wait until im at home because i have my computer Not here...
Sent from my LG-E975 using xda app-developers app
Click to expand...
Click to collapse
Ah thanks
Sent from my LG-E975 using XDA Premium 4 mobile app
download jBart https://github.com/BurgerZ/jBART/archive/master.zip
go to the dircectory
jBart-master/data/settings
there is a file called repo.miui.v4.main.conf
open this file with the texteditor and delete all the text
now write
github::1982Strand/XML_MIUI-v5_Danish=Danish Translation Miui V5
Click to expand...
Click to collapse
save and close this file!
open jbart.jar (java must be installed)
search for rom file and choose your miui rom
no choose the danish language and klick on recompile
wait until jBart is finish
your translated miui is in the output directory
BRainXstorming said:
download jBart https://github.com/BurgerZ/jBART/archive/master.zip
go to the dircectory
jBart-master/data/settings
there is a file called repo.miui.v4.main.conf
open this file with the texteditor and delete all the text
now write
save and close this file!
open jbart.jar (java must be installed)
search for rom file and choose your miui rom
no choose the danish language and klick on recompile
wait until jBart is finish
your translated miui is in the output directory
Click to expand...
Click to collapse
Okay so tried, editing the file u told me to, and saved it. Went back to The jBART program, found the Rom file. Then it showed the "Danish...." pack in the Language packs, I pressed recompile, and an error showed. I went into the log and found this "[25.10.2013 20:03:16] I: FREDAG 25.10.2013 20:03:16
[25.10.2013 20:03:16] I: Copyright: 2012-2013, BurgerZ <[email protected]>
[25.10.2013 20:03:16] I: <http://burgerz.pro>
[25.10.2013 20:03:16] I: All Rights Reserved
[25.10.2013 20:03:16] I: *************************
[25.10.2013 20:03:16] I: Welcome to jBART v1.5.2
[25.10.2013 20:03:16] I: *************************
[25.10.2013 20:03:16] I: Initialization.....
[25.10.2013 20:03:16] I: HOME: C:\Users\Bruger\Downloads\jBART-master\jBART-master\
[25.10.2013 20:03:16] I: DATA: C:\Users\Bruger\Downloads\jBART-master\jBART-master\data\
[25.10.2013 20:03:16] I: TOOLS: C:\Users\Bruger\Downloads\jBART-master\jBART-master\data\tools\win\
[25.10.2013 20:03:16] I: SETTINGS: C:\Users\Bruger\Downloads\jBART-master\jBART-master\data\settings\
[25.10.2013 20:03:16] I: PATCHER METHOD CONFIG: C:\Users\Bruger\Downloads\jBART-master\jBART-master\data\patches\method_patches.conf
[25.10.2013 20:03:16] I: PATCHER STRING CONFIG: C:\Users\Bruger\Downloads\jBART-master\jBART-master\data\patches\string_patches.conf
[25.10.2013 20:03:17] I: AAPT: C:\Users\Bruger\Downloads\jBART-master\jBART-master\data\tools\win\aapt.exe
[25.10.2013 20:03:17] I: FRAMEWORKS INTALL DIR: C:\Users\Bruger\Downloads\jBART-master\jBART-master\data\frameworks
[25.10.2013 20:03:17] I: JAVA VM: 1.7.0_45
[25.10.2013 20:03:17] I: Initialization complete
[25.10.2013 20:03:17] I: *************************
[25.10.2013 20:04:38] I: Current file: XML_MIUI-v5_Danish-master.zip
[25.10.2013 20:04:38] I: Extracting ROM file...
[25.10.2013 20:04:38] I: Getting repository: https://codeload.github.com/1982Strand/XML_MIUI-v5_Danish/zip/master
[25.10.2013 20:04:38] W: Repository not found."
Any idea?
github::1982Strand/XML_MIUI-v5_Danish=Danish Translation
Click to expand...
Click to collapse
i put this in the file and tried this... it works correctly
the link in you logfile works too...
maybe github was down try it again...
BRainXstorming said:
i put this in the file and tried this... it works correctly
the link in you logfile works too...
maybe github was down try it again...
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Looks right? I just tried again and still not working..
steffenbakke said:
Looks right? I just tried again and still not working..
Click to expand...
Click to collapse
I think there is a problem with your proxy, or maybe your internet connection is through a proxy
Hi to everyone,
I'm trying a Miui Rom. As for my language Italian, I have to use Jbart, so I tried it but occurs this error: Wrong number of LANG folder (must have one only).
Anyone can help me?
carlusmagnus said:
Hi to everyone,
I'm trying a Miui Rom. As for my language Italian, I have to use Jbart, so I tried it but occurs this error: Wrong number of LANG folder (must have one only).
Anyone can help me?
Click to expand...
Click to collapse
Last time I use jBart 2.0.0a it didn't download translation files from bitbucket repository (Italian language use this server). You need to download file manually from https://bitbucket.org/Mish/miui_v5_italy/downloads. Then extract files in /Italian/* to <jBart-dir>/repositories/translation/. In jBart Setting uncheck redownload repository. Then recompile your rom.
artit said:
Last time I use jBart 2.0.0a it didn't download translation files from bitbucket repository (Italian language use this server). You need to download file manually from https://bitbucket.org/Mish/miui_v5_italy/downloads. Then extract files in /Italian/* to <jBart-dir>/repositories/translation/. In jBart Setting uncheck redownload repository. Then recompile your rom.
Click to expand...
Click to collapse
I have just tried. It's work without error.
thanks very much for your fast reply.
After follow your post, why doesn't translate rom I recompiled? I install it and it's as before, without changes.
carlusmagnus said:
After follow your post, why doesn't translate rom I recompiled? I install it and it's as before, without changes.
Click to expand...
Click to collapse
Make sure that you flash new rom file in <jBart dir>/output/, not your original rom.
artit said:
Make sure that you flash new rom file in <jBart dir>/output/, not your original rom.
Click to expand...
Click to collapse
yes of course. I rebuild two times with jbart and trying the rom in output folder.
carlusmagnus said:
yes of course. I rebuild two times with jbart and trying the rom in output folder.
Click to expand...
Click to collapse
There should be some error in your build. Maybe you should try to uncheck Download main repository in Settings tab. Please make sure your extracted files are still there in <jBart-dir>/repositories/translation/. These dir should look like
<jBart-dir>/repositories/translation/device
<jBart-dir>/repositories/translation/main
<jBart-dir>/repositories/translation/extras
I have tested it and it works on my phone. If it don't work may be you should look into jBart log.

[MOD][GUIDE]Android L Notification View.

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi guys, im back! Today I will share you something, this mod will change your notification item view to Android L-like.
Screenshot:
Click to expand...
Click to collapse
Heres what you need:
framework-res.apk
download external file here
Click to expand...
Click to collapse
Steps:
Decompile your framework-res.apk
eExtract downloaded file to framework-res folder
Add this to ids.xml and public.xml
Code:
zzzz_ucup_icon
And recompile
Click to expand...
Click to collapse
Issues:
Media Scanning notif won't change. Can somebody teach me how?
Click to expand...
Click to collapse
Tips:
jsarunotres said:
to fix that problem. u must decompile MediaProvider.apk of ur rom
Go to res/layout
and open the one n only xml there using any text editor
change the color value from #ffffffff to any color u want like #ff000000 for black text
recompile and push
@ same goes to another things like bluetooth notif, wifi (if necessary) etc etc. u must decompile every app acc.
Click to expand...
Click to collapse
Credits:
Google
Stackoverflow
SpaceCaker
CarlDeanCatabay
PineappleOwl
jsarunotres
Click to expand...
Click to collapse
*note:
If you have any problem, don't send me your files, i won't do that for you. I want people learn from mistakes.
Click to expand...
Click to collapse
Pls make this .png for hdpi
the_vanya1 said:
Pls make this .png for hdpi
Click to expand...
Click to collapse
i think 9 patch pngs are all the same.
sir aulia, i think sir tentenponce is making this. you can ask him, trying now
i got error when recompiling, error at drawable zzz_ucup_circe_image
Mranggapo said:
sir aulia, i think sir tentenponce is making this. you can ask him, trying now
Click to expand...
Click to collapse
So here's mine. Ups spoiler alert!
Mranggapo said:
i got error when recompiling, error at drawable zzz_ucup_circe_image
Click to expand...
Click to collapse
oh wait, i forgot to add that
AuliaYF said:
So here's mine. Ups spoiler alert!
oh wait, i forgot to add that
Click to expand...
Click to collapse
holy floating XD, wait im gonna post mine too
EDIT:
i still have my old background sir, althought the notif place is white and cool
Its cause the media scanning text cant see due white-on-white text Otherwise its awesome
GSculerlor said:
Its cause the media scanning text cant see due white-on-white text Otherwise its awesome
Click to expand...
Click to collapse
well, you don't need to post this. it's already said on #1
AuliaYF said:
So here's mine. Ups spoiler alert!
Click to expand...
Click to collapse
Nice one sir, but can you make a video on the behavior of that? you have nice looks there. Im lazy at pngs xD that circle rectangle was amazing, also my problem was the media scanning, white to white. </3
Here's the link of my video: https://www.youtube.com/watch?v=3hhRGIPo9t0&feature=gp-n-y&google_comment_id=z12hgnvjdu2iefl3q23rtnk53mr2wl0no
your screenshot is very well themed.
Here's mine
tentenponce said:
Nice one sir, but can you make a video on the behavior of that? you have nice looks there. Im lazy at pngs xD that circle rectangle was amazing, also my problem was the media scanning, white to white. </3
Here's the link of my video: https://www.youtube.com/watch?v=3hhRGIPo9t0&feature=gp-n-y&google_comment_id=z12hgnvjdu2iefl3q23rtnk53mr2wl0no
your screenshot is very well themed.
Click to expand...
Click to collapse
maybe this one.
https://www.facebook.com/photo.php?v=871807956182336
white on white fix
to fix that problem. u must decompile MediaProvider.apk of ur rom
Go to res/layout
and open the one n only xml there using any text editor
change the color value from #ffffffff to any color u want like #ff000000 for black text
recompile and push
@ same goes to another things like bluetooth notif, wifi (if necessary) etc etc. u must decompile every app acc.
jsarunotres said:
to fix that problem. u must decompile MediaProvider.apk of ur rom
Go to res/layout
and open the one n only xml there using any text editor
change the color value from #ffffffff to any color u want like #ff000000 for black text
recompile and push
@ same goes to another things like bluetooth notif, wifi (if necessary) etc etc. u must decompile every app acc.
Click to expand...
Click to collapse
thanks for the hint, i think users can handle that using this guide.
jsarunotres said:
to fix that problem. u must decompile MediaProvider.apk of ur rom
Go to res/layout
and open the one n only xml there using any text editor
change the color value from #ffffffff to any color u want like #ff000000 for black text
recompile and push
@ same goes to another things like bluetooth notif, wifi (if necessary) etc etc. u must decompile every app acc.
Click to expand...
Click to collapse
Thanks for the info sir. can I remake this on my future guide? but the credits goes to you sir.
AuliaYF said:
thanks for the hint, i think users can handle that using this guide.
Click to expand...
Click to collapse
ok sir wc
tentenponce said:
Thanks for the info sir. can I remake this on my future guide? but the credits goes to you sir.
Click to expand...
Click to collapse
wc sir
tentenponce said:
Thanks for the info sir. can I remake this on my future guide? but the credits goes to you sir.
Click to expand...
Click to collapse
AuliaYF said:
thanks for the hint, i think users can handle that using this guide.
Click to expand...
Click to collapse
I Dont understand this line, can you please explain me? Please?
Decompile your framework-res.apk
eExtract downloaded file to framework-res folder
Add this to ids.xml and public.xml
Code:
zzzz_ucup_icon
And recompile
Click to expand...
Click to collapse
AuliaYF said:
Hi guys, im back! Today I will share you something, this mod will change your notification item view to Android L-like.
Screenshot:​
Heres what you need:
Steps:
Issues:
Tips:
Credits:
*note:
Click to expand...
Click to collapse
sir AuliaYF i got these errors when i try these guide , i followed the guide , download the zip file , and placed on framework then i added these id on ids <item type="id" name="zzzz_ucup_icon">false</item>
and recompile , these are the errors
res/drawable-ldpi/status_bar_item_background_normal.png:0: error: Resource entry status_bar_item_background_normal is already defined.
res/drawable-ldpi/status_bar_item_background_normal.9.png:0: Originally defined here.
res/drawable-ldpi/status_bar_item_background_pressed.png:0: error: Resource entry status_bar_item_background_pressed is already defined.
res/drawable-ldpi/status_bar_item_background_pressed.9.png:0: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, /data/data/per.pqy.apktool/APKTOOL6205886431053891068.tmp, -x, -0, arsc, -S, /sdcard/apktool/framework-resJC_src/res, -M, /sdcard/apktool/framework-resJC_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
HELP
AuliaYF said:
Hi guys, im back! Today I will share you something, this mod will change your notification item view to Android L-like.
Screenshot:​
Heres what you need:
Steps:
Issues:
Tips:
Credits:
*note:
Click to expand...
Click to collapse
sir aulia Off Topic
do you know where to find this colors ? the black text , pls help me . :laugh:
i cant find it :angel:
carlo_autor said:
...
res/drawable-ldpi/status_bar_item_background_normal.png:0: error: Resource entry status_bar_item_background_normal is already defined.
res/drawable-ldpi/status_bar_item_background_normal.9.png:0: Originally defined here.
res/drawable-ldpi/status_bar_item_background_pressed.png:0: error: Resource entry status_bar_item_background_pressed is already defined.
res/drawable-ldpi/status_bar_item_background_pressed.9.png:0: Originally defined here.
Click to expand...
Click to collapse
where's the 9.png extension?
AuliaYF said:
where's the 9.png extension?
Click to expand...
Click to collapse
sir aulia , im done with that , hehe ive deleted the old pngs without .9 pngs because it is duplicated so i deleted it
sir do know where to find that black text ? thanks in advance

[Guide][HOW TO] Create Xperia 5.0+ themes using Apktool.

Hello Friends,
I want to present a simple guide to create your own themes for Xperia running 5.0+. Lets get started.
Requirements:
Advanced ApkTool v4.1.0 By BDFreak. Click here to download Advanced ApkTool
Java Installed on your computer.
Text Editor (Notepad++ recommended)
Image Editing Software (Photoshop recommended).
Installing Framework files:
Extract Advanced ApkTool.rar. Copy and Paste the contents of Framework.rar (download from below) in “2-In” folder.
Run Advanced ApkTool.exe file and enter 1, to install framework-res and SemcGenericUxpRes.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Note: You need not install the framework files, everytime you decompile or recompile. This should be only done once.
Start working with your themes:
i) Decompiling the theme:
1. Copy Stock_lollipop.apk and paste it in “2-In” folder.
2. Run Advanced ApkTool.exe file and enter 2, to decompile the theme file.
3. Once decompiling is finished, you will find all the files in “3-Out” folder.
4. Now to go to 3-Out > Stock_lollipop.apk > assets folder and copy all four zip files from that folder and paste it in “2-In” folder.
5. Now rename all the zips files from .zip to .apk. Decompile all four .apks.
ii) Modifying the theme images and colors:
Note: Images must be of same resolution.
1. After decompiling, you will see 5 folders.
2. To modify go to res of each folder and change the images you want to modify and for colors open “Colors.xml” and change the colors. (Only change the last six underlined code, for example #ffffffff)
3 To change the name of the theme, go to Stock_lollipop folder > res > values > strings.xml. Open strings.xml and change the title.
4. Once done modifying, the final step is to recompile the theme.
iii) Recompiling the theme:
1. Recompile all four .apks excluding the main theme file (here Stock_lollipop.apk).
2. To recompile, Run Advanced ApkTool.exe file and enter 3. Recompile all four apks one by one (select “Recompile and then sign” option).
3. All the recompile files will be in “4-Done” folder.
4. Now rename all four files back to .zip from .apk
5. Next copy all four zip files and paste it is in assets folder of stock_lollipop.apk folder (which is in 3-Out folder).
6. Now open the AndroidManifest.xml (from Stock_lollipop.apk) with text editor and change the underlined name - "com.session.stocklollipop" everytime you create a new theme. If you are updating the theme, then there is no need to change the underlined name.
7. Finally recompile all stock_lollipop.apk and you are done.
I'm not a developer and do not know coding. Any tips from the developers are welcomed, so that this guide can be improved. I hope new themers will like this guide.
Error is decompiling:
Fix: Download apktool.jar from below and paste it in "1-BDFreak" Folder. If prompted, overwrite the file.
res
i have a problem, decompile file ...
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000012
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000012
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:153)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:134)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:296)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
brianblack said:
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000012
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000012
Exception in thread "main" java.lang.NullPointerException
Click to expand...
Click to collapse
Fix added to OP.
Nice guide
Thanks
Nice tutorial
cool
.... Any version for Mac avaliable?
Thanks!
bBigBrO said:
.... Any version for Mac avaliable?
Thanks!
Click to expand...
Click to collapse
It appears that "advanced apktool" is just a fancy wrapper around apktool.
You can obtain the same results using vanilla apktool and jarsigner:
apktool d to decompile
apktool b to build
jarsigner to sign (unsigned resource APKs will fail)
https://ibotpeaches.github.io/Apktool/
status bar theming?
Is the notification pulldown themeable with this method?
erico458i said:
Is the notification pulldown themeable with this method?
Click to expand...
Click to collapse
no but soon will be possible
Ambor said:
no but soon will be possible
Click to expand...
Click to collapse
When it will be possible? I wait it)
Not very much related to thread:
I have an apk, I am trying to Zip Align it using the tools posted at XDA but whenever I am trying to upload the output zip align file on Play Store, I get the following error:
Upload failed
Your APK cannot be analysed using aapt. Error output:
Failed to run aapt dump badging:
ERROR getting 'android:icon' attribute: attribute is not a string value
Any solution for this error.?
ImAnurag said:
Not very much related to thread:
I have an apk, I am trying to Zip Align it using the tools posted at XDA but whenever I am trying to upload the output zip align file on Play Store, I get the following error:
Upload failed
Your APK cannot be analysed using aapt. Error output:
Failed to run aapt dump badging:
ERROR getting 'android:icon' attribute: attribute is not a string value
Any solution for this error.?
Click to expand...
Click to collapse
I'm sorry, I don't much about this error while uploading it to the playstore. However, mostly it looks like the problem is with the AndroidManifest.xml file.
Have you tried searching it in google?
mindenfrak said:
When it will be possible? I wait it)
Click to expand...
Click to collapse
Guide
http://forum.xda-developers.com/crossdevice-dev/sony/guide-unlock-add-permission-to-sony-t3089885
ImAnurag said:
Not very much related to thread:
I have an apk, I am trying to Zip Align it using the tools posted at XDA but whenever I am trying to upload the output zip align file on Play Store, I get the following error:
Upload failed
Your APK cannot be analysed using aapt. Error output:
Failed to run aapt dump badging:
ERROR getting 'android:icon' attribute: attribute is not a string value
Any solution for this error.?
Click to expand...
Click to collapse
session20 said:
I'm sorry, I don't much about this error while uploading it to the playstore. However, mostly it looks like the problem is with the AndroidManifest.xml file.
Have you tried searching it in google?
Click to expand...
Click to collapse
Hi there
Gentlemen, I am convinced of 99.9999999% I do not have possibilities publication Themes created this method.
The basic principle of publication. YOUR APP MUST BE SIGNED YOUR SIGNATURE.
OTHERWISE WITHIN A FEW DAYS AND SO IS THEME removed from your PLAY STORE
Good just followed his guide
depues apply the theme
stop all apk
any solution
Here comes the solution for all the people experiencing problems like syntax errors when compiling:
The path where the advancd apktool lies must not contain spaces!
Anyway, nice tutorial, exactly what I was looking for! :good:
Best regards,
Dhelonious
I don't know if it's my case only but, following your guide, I decompiled and recompiled the stock lollipop apk without modificating it, and my device was not able to install the apk. Xperia M5 dual E5663, Android 5.1 fyi.
And also, I tried Sony's Theme Creator BETA tool and couldn't get the custom navigation buttons. Anyone got the same problem?

Categories

Resources