[Q] XML Theming question - Android Themes

I am working on a theme for my Galaxy Tablet and have run into some problems. I am still new to messing with the android platform, so excuse me if I am asking newbish questions. I have been using 7zip and apkmanager to decompile and compile my xml files. I have been successful in theming except for changing the background for the settings menu...the menu that pulls when you go to settings. I read that I needed to mess with an XML file that was called styles.xml that was inside the settings.apk and within the /res/values/ folder.
The problem is that the values folder is always disappearing...it does not show up using 7zip or winrar. The only time that I can access it is to decompile with apkmanager then it shows up in projects folder. when I make the changes and recompile it goes away.
If someone can point me in the right direction that would be great...Thanks

you cant see those files in 7zip, winrar, etc, but they are in fact there if you decompiled and recompiled the apk successfully.

Thanks for the swift reply...now I just have to figure out why I get decompile errors....
Code:
I: Loading resource table from file: C:\Users\Leroy\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x01080361
W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0106003a
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x01080361
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x01020221
W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x01020221
W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0106003a
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x01020221
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x01020221
W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value=0x0105000b
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0106003a
W: Could not decode attr value, using undecoded value instead: ns=android, name=minHeight, value=0x0105000b
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01080361
at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(Unknown Source)
at brut.androlib.res.data.value.ResReferenceValue.toResXmlFormat(Unknown Source)
at brut.androlib.res.data.value.ResAttr.convertToResXmlFormat(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
I will do some searching...Thanks again

Okies sorry for the bothers, I decompiled as a proprietary rom and used my framework-res and it decompiled with no errors

Related

[Q] Decompiling apk using apktool, weird error

Hey guys..
I am trying to modify DialerTabActivity.apk and Contacts.apk..
When I decompile it using apktool.. it gives me weird error -
Code:
E:\GalaxyS\AppDev\apktool>apktool d -f DialerTabActivity.apk DialerTabActivity
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Rahulrulez\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x02050097
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x0205009a
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
I've installed the proper framework-res.apk but still ti is giving me the same error..
Don't know what's wrong with apktool..
Please help me..
Because it has a twframework-res dependancy
Look for the syntax for depedancies or use apk manager and decompile with option 11
Then drag twframework-res (deodexed) into the window
Fyi : Wrong section

I hope you have a problem solved quickly

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!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[Q] Change statusbar clock color (CyanogenMod 9 - V02)

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

apktool on iCS dosent work

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)

[TUTORIAL][MOD][JB][T/V/TX] How to resize nav bar dpi

GUIDE HOW TO REDUCE/INCREASE NAVIGATION BAR dpi​THIS 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!
Procedure​1. 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!

Categories

Resources