Related
Hello all, I have a problem brought me crazy
It's in the program autoapktool
I want to do decompile setting.apk
You do if rframework-res.apk
Thus decompile
Code:
[*] C:\Users\Win7\Desktop\AutoAPKTool2.0.1\_INPUT_APK\Settings.apk
decompiling C:\Users\Win7\Desktop\AutoAPKTool2.0.1\_INPUT_APK\Settings.apk...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\Win7\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x02070015
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000e
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050002
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColorHint, value=0x02050001
I: Decoding values*/* XMLs...
I: Done.
Code:
Can't find framework resources for packaeg of id: 2. You must install proper framework files, see project website for more info .
Please I want the solution very quickly
Where's the developers ???????????????????????
I need help .!!!!!!!!!
UP!!!!!!!!!!!!!!!!!!!!!!!!!
up!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Hi,
I'm trying to change the statusbar clock color of Paul-xxx's rom CyanogenMod 9 - V02. Well I got sucess to edit the PNG files of SystemUI.apk, but when I try to decompile the SystemUI to edit the res\values\styles.xml (according to my search I think this is where I find the value to edit the clock color), i get the following error:
Code:
C:\ics framework>apktool d -f SystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\SV\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x01040405
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302ee
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302fc
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302fc
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302fc
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010302fc
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=opacity, value=0xfffffffd
W: Could not decode attr value, using undecoded value instead: ns=android, name=interpolator, value=0x010c0008
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010804b2
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010804b6
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108051f
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x010e0001
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0101030e
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x010301ea
W: Could not decode attr value, using undecoded value instead: ns=android, name=exitFadeDuration, value=0x010e0001
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010102f0
W: Could not decode attr value, using undecoded value instead: ns=android, name=alpha, value=0x3ecccccd
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x010803f6
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x010803f7
W: Could not decode attr value, using undecoded value instead: ns=android, name=animateLayoutChanges, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=animateLayoutChanges, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=opacity, value=0xfffffffd
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_activated, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=baseline, value=0x00001201
W: Could not decode attr value, using undecoded value instead: ns=android, name=baseline, value=0x00001201
W: Could not decode attr value, using undecoded value instead: ns=android, name=baseline, value=0x00001501
W: Could not decode attr value, using undecoded value instead: ns=android, name=baseline, value=0x00001501
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010804b6
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010804b6
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010804b6
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010301e9
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.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
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)
I just installed the Apktool, so I dont know if this is the apk error or Apktool installation problem, but I followed all the steps of the installation manual (wich is very simple, I really dont think that I miss something).
Someone know how to solve that?
Thanks!
Offtopic:
I just want to share my homescreen :
{
"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"
}
------
EDIT:
Well, I think I found the problem, there was a file in the Documents and Settings folder, wich was problably created by some patcher (ZDune's or AChep's). I deleted it and I was able to decompile.
But now I need your help to figure what is wrong when I try to compile the file:
Code:
C:\ics framework>apktool b -f "C:\ics framework\SystemUI" SystemUI.apk
I: Smaling...
I: Building resources...
invalid resource directory name: C:\ics framework\SystemUI\res/drawable-sw600dp-mdpi
invalid resource directory name: C:\ics framework\SystemUI\res/layout-sw600dp
invalid resource directory name: C:\ics framework\SystemUI\res/values-sw600dp
invalid resource directory name: C:\ics framework\SystemUI\res/values-sw600dp-port
invalid resource directory name: C:\ics framework\SystemUI\res/values-sw720dp
invalid resource directory name: C:\ics framework\SystemUI\res/values-sw720dp-port
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\SV\CONFIG~1\Temp\A
PKTOOL630712022148537687.tmp, -I, C:\Documents and Settings\SV\apktool\framework\1.apk, -S, C:\ics framework\SystemUI\res, -M, C:\ics framework\SystemUI\An
droidManifest.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:\DOCUME~1\SV\CONFIG~1\Temp\APKTOOL630712022148537687.tmp, -I, C:\Documents an
d Settings\SV\apktool\framework\1.apk, -S, C:\ics framework\SystemUI\res, -M, C:\ics framework\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Thanks!!!
Well, I get able to edit the apk. If someone get the same problem, this is what I did.
I installed the apktool v1.4.1, and adb, aapt from latest platform-tools from Android sdk. Then I get able to decompile and recompile the apk, but I cannot sign, so I copied the META-INF folder and AndroidManifest.xml from the original apk and pasted in the new one using winrar. Then pushed it back to the phone with adb.
Thanks and sorry for the bad english.
Offtopic:
My new homescreen, i'm very happy whit it:
Simple question :
It' s minimal widget on your home screen ? (the date)
No, it's ExtDateWidgetXL. Link
If it's any help, when compiling with apktool don't use
Code:
apktool b SystemUI.apk
use
Code:
apktool b SystemUI
Hello, i'm porting the zdunex25's theme in blue for my personnal use (I'll ask zdunex25 for a public release)
I ever edited .png and 9.png
Now, i must edit color.xml file but when i decompil the apk, i've got an error... I can't recompil after...with apkmanager!
I need some help
Here is the theme apk : http://zdunex25.deviantart.com/art/MIUIv4-for-CM10-320827899
try asking koila33 or rellagher in pm
Thanx for the answere!
But someone can try to decompil this apk, and tell me if he got an error with apkamanager? please
For me, apk multi tool is giving such an error. I dont know why it cant decompile it..
Code:
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)
Nie moľna odnale«† c:\APK-Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signed_MIUIv4_CM10_by_ZduneX25.apk.
Nie moľna odnale«† c:\APK-Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsigned_MIUIv4_CM10_by_ZduneX25.apk.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Piotrek\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x0102036c
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x01080623
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x0102036e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x01080623
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x0102036f
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x01080624
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x0102036d
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_below, value=0x0102036d
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x0102036c
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x01080623
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x0102036e
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x01080623
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x0102036f
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x01080624
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x0102036d
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_below, value=0x0102036d
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01050052
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
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.encodeAsResXmlValueExt(ResScalarValue.java:86)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:55)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:56)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:335)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:175)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:113)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
Yes, i have the same error message... I asked Zdunex25 (who created the theme) and he told me that i do it wrong...
But I don't understand how can i get a good decompil... (I asked to the creator of apkmanager)
I need to edit colors.xml to get this result
{
"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"
}
In blue is just beautiful
Set the apk dependecy (choose decompile w/ dependencies) in the apkmanager. You can successfully decompile that way.
tantrums said:
Set the apk dependecy (choose decompile w/ dependencies) in the apkmanager. You can successfully decompile that way.
Click to expand...
Click to collapse
I tested this metheod too, but i have an error again...
APK Manager and APK Mutli Tool uses an older version of apktool. Use the new one and do it manually.
thanks xonar_ your method works!
Theme released!
emixam29 said:
thanks xonar_ your method works!
Theme released!
Click to expand...
Click to collapse
Where?
I can't do a public release now... i must ask zdunex25 before
In the week maybe
Here is a preview version, tell me if something is wrong
emixam29 said:
Here is a preview version, tell me if something is wrong
Click to expand...
Click to collapse
Install OK! but received error when tried to apply theme. This is all performed on CM10 nightly.
ERROR:
"This theme was improperly compiled and cannot be applied. Please report this incident to the theme author"
Apply the stock theme and reboot. Then apply the miui theme it should work.
New version fixed some orange color.
I now work about bubble sms color to get a better version
Looks nice.
Can you check the Music notification cause some letter is White and cant read it
very very good theme
just tried it
Nice theme, but replaces the original orange theme when installing. I'd like to have both available in the theme chooser.
[email protected] said:
Nice theme, but replaces the original orange theme when installing. I'd like to have both available in the theme chooser.
Click to expand...
Click to collapse
i want it also:good::good::good:
btw, blue is better than orange in my opinion
Nice! Needs abit of polishing etc the settings menu dialer.... but overall very nice!
Possibility of a black and blue variant with the notification toggles at the bottom like zdunes " the next level" theme?
jellybeaning......
Have anyone try to decompile some apk from ICS version??
I try and framework-res.apk decompile but SystemUI.apk dosent work,only errors
cojo11 said:
Have anyone try to decompile some apk from ICS version??
I try and framework-res.apk decompile but SystemUI.apk dosent work,only errors
Click to expand...
Click to collapse
You have to install the framework first.
apktool if /system/framework/framework-res.apk
And you should use apktool 1.5.0 (google it).
Sent from my Optimus 2X using xda app-developers app
I know that
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Dokumente und Einstellungen\xxxx>cd c:\apktool
C:\apktool>apktool d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\apktool>apktool d SystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Dokumente und Einstellungen\xxxx\apktool\
framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01c4
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01d6
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
C:\apktool>
Move it to general android section. There's more people to help you..
i wanted to look at the ICS camera.apk to see if i could change the compressionrate for photos and bitrate for video.
yesterday i was trying all the tools available but i did not succeed to decompile the CameraApp.apk.
i deleted the *.* (file name i could not remember) from the apk that give problems while decompile the apk and after build it with 7zip still no succes with decompile.
i tryed all the tools and surfing the WWW for a solution but gave up after a couple of hours.
and yes i have installed the framework-res.apk and copy all necessary files in the right folders etc. etc. and started the programs with admin rights
this is driving me mad.
cojo11 said:
I know that
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Dokumente und Einstellungen\xxxx>cd c:\apktool
C:\apktool>apktool d framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\apktool>apktool d SystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Dokumente und Einstellungen\xxxx\apktool\
framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01cb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01c4
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x020a01d6
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
C:\apktool>
Click to expand...
Click to collapse
tonyp said:
You have to install the framework first.
apktool if /system/framework/framework-res.apk
And you should use apktool 1.5.0 (google it).
Sent from my Optimus 2X using xda app-developers app
Click to expand...
Click to collapse
and lge-res.apk
apktool if /system/framework/framework-res.apk
apktool if /system/framework/lge-res.apk
work with a dedexed rom (not Django)
GUIDE HOW TO REDUCE/INCREASE NAVIGATION BAR dpiTHIS TUTORIAL PROBABLY WILL WORK FOR ALL ANDROID DEVICES RUNNING JB
TOOLS
1. Android Multitool v2.1 from HERE (I use this one which works great and don't need everytime to type the commands)
2. Notepad++ from HERE
3. Winrar or Winzip
WHAT YOU NEED
1. Root permissions
2. Deoxeded rom
3. Framework-res.apk and the SystemUI.apk (extract them from your ROM)
4. Patience and no panic!
Procedure1. Extract Android Multitool v2.1 from the downloaded zip file and place it in Computer-> Local Disk (C: ). Now you will see a folder named AndroidMultitool.
{
"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"
}
2. Put your Framework-res.apk and SystemUI.apk in the folder Files (The one you find on AndroidMultitool).
3. Now open the AndroidMultitool.exe
4. You will see Installing Framework. Now click the ... and go to the file you had previously place framework-res.apk and click install (you have to do this procedure only for the framework-res.apk file and not the SystemUI.apk file).
5. Now you will see that a file named apktool will be created under Start->your computer's name.
6. The next thing to do is open the AndroidApktool.exe and click the ... under the Decompiling option and go to the file you had previously place framework-res.apk and click decompile.
7. Now starts the party. From AndroidApktool file, go to Decompiled_apk and you will find a folder named framework-res. Open it.
8. Go framework-res.apk -> res -> values -> dimens.xml. Now open dimens.xml using Notepad++
9.Now you will see these lines :
<dimen name="navigation_bar_height">48.0dip</dimen>
[*]
[*] <dimen name="navigation_bar_height_landscape">48.0dip</dimen>
[*]
[*] <dimen name="navigation_bar_width">42.0dip</dimen>
10. Now change the dpi values to the one you want. I personally use 36.0dip, but you can use other values if you wish
11. After setting the values you want, on the Notepad++ option, go to:
a)Edit-> EOL Conversion and check the UNIX/OSX Format.
b)Encoding and check "Encode in ANSI".
12. Now save your edited file.
13. Open AndroidMultitool and Under Compiling menu click the ... and navigate to AndroidMultitool-> Decompiled_apk-> framework-res and select the whole folder. Now Click on compile and wait.
14. The next step is to add META-INF and AndroidManifest.xml in your modified apk. To do this, go to decompiled_apk and open framework-res.apk with winrar.
15. Now go to Files and open the original framework-res.apk. Drag n' drop the META-INF folder and the AndroidManifest.xml from the original apk to the modified one.
So now you have edited succesfully your framework-res.apk
Next thing to do is Decompile the SystemUI.apk (Most of custom UI don't have to be edited since they don't have these lines; Correct me if i am wrong)
1. Go to Decompiling menu and click the ... and find the SystemUI.apk
2. Click Decompile and wait some seconds.
3. After decompiling finished, go to Decompiled_apk -> SystemUI
4. SystemUI -> res -> layout -> navigation_bar.xml and open it with Notepad++.
5. Inside the navigation_bar.xml file find the following two lines:
"@drawable/ic_sysbar_back" android:scaleType="center"
"@drawable/ic_sysbar_back_land" android:scaleType="center"
Now, delete the android:scaleType="center" from both lines.
6. Now, as you did for the framework-res.apk, go to:
a)Edit-> EOL Conversion and check the UNIX/OSX Format
b)Encoding and check "Encode in ANSI"
7. Save your file.
8. The next thing to do is Open AndroidMultitool and under Compiling menu click the ... and navigate to AndroidMultitool-> Decompiled_apk-> SystemUI and select the whole folder. Now Click on compile and wait.
9. The next step is to add META-INF and AndroidManifest.xml in your modifies apk. To do this, go to decompiled_apk and open SystemUI.apk with winrar.
10. Now go to Files and open the original SystemUI.apk. Drag n' drop the META-INF folder and the AndroidManifest.xml from the original apk to the modified one.
Now, tranfer the 2 files in your phone. Copy them and go to /system and paste them here.
Now set permissions for both files to rw-r-r.
Cut SystemUI.apk and paste it to /system/app.
Cut framework-res.apk and paste it in system/framework.
Reboot now and enjoy your own resized navbar!
Reserved for more tutorials
Might need this one too
Great tutorial, it's very accurate :good:
i use gravity box to reduce the nav bar ... and it can also change the transparency of the status bar and nav bar.... with many more features
strangerz89 said:
i use gravity box to reduce the nav bar ... and it can also change the transparency of the status bar and nav bar.... with many more features
Click to expand...
Click to collapse
I know bro that there are tools that can do that for you.
But this tutorial is meant for those who want to do it by themselves.
thanks for the easiest tutorial....
my log is not good while decompiling the framework-res.apk.any suggestions ?
LOG:
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
I: Decoding values */* XMLs...
Null
Bro, can I resize it to 0, I don't want the nav bar to be apears, cos' my phone already has the hardkeys, but I want to keep the soft menu key in app.
Thanks!
jaydvn said:
Bro, can I resize it to 0, I don't want the nav bar to be apears, cos' my phone already has the hardkeys, but I want to keep the soft menu key in app.
Thanks!
Click to expand...
Click to collapse
Take a backup and then try to add this line to your build.prop qemu.hw.mainkeys=1 .
Could work this way too. Don't know if you can add as value 0 to be honest bro
Got any idea on how to change the status bar size?
Using the mod with Z1 Taskswitcher but the statusbar seems smaller than stock. :/
Sent from my LT25i using xda app-developers app
DaRk-L0rD said:
Take a backup and then try to add this line to your build.prop qemu.hw.mainkeys=1 .
Could work this way too. Don't know if you can add as value 0 to be honest bro
Click to expand...
Click to collapse
If I add qemu.hw.mainkeys=1 to build.prop then the 3 dots menu key will disapear, but I want to keep it without the navbar, and I can't resize to 0 because I can't recompile framework-res.apk back.
I've installed MIUI v5, and it has soft menu key enable without the navbar. but I want it on stock ROM.
Thanks!