How do you themers decompile SystemUI.apk? - Verizon Droid Charge

I'm working on a theme and I'm trying to customize the notification area font colors, but I'm unable to decompile SystemUI.apk!
I get the following error:
Code:
[[email protected] Downloads]$ ./apktool d SystemUI.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /home/kyle/apktool/framework/1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3
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.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
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.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
This happens in both vanilla apktool and in APK Manager.

I'm in no way a themer, but my guess is you have to decompile with dependencies - most likely twframework.apk and framework-res.apk. I'm pretty sure this is an option in apk manager. That being said, I of course could be completely wrong on all of this.

dwitherell said:
I'm in no way a themer, but my guess is you have to decompile with dependencies - most likely twframework.apk and framework-res.apk. I'm pretty sure this is an option in apk manager. That being said, I of course could be completely wrong on all of this.
Click to expand...
Click to collapse
I decompiled with framework-res and it worked, thanks a lot!
Now to go hunting for what I want to change

I know you got it to work but for future reference place the apktool jar and framework-res.apk in your C:Windows folder. Then open up command prompt, cd to the windows directory and type:
apktool if framework-res.apk
This will install the framework into an apktool folder for future projects. You should also repeat the process with twframework-res.apk in the rare case you work with a froyo ROM.

shobon said:
I'm working on a theme and I'm trying to customize the notification area font colors, but I'm unable to decompile SystemUI.apk!
I get the following error:
Code:
[[email protected] Downloads]$ ./apktool d SystemUI.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /home/kyle/apktool/framework/1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3
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.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
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.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
This happens in both vanilla apktool and in APK Manager.
Click to expand...
Click to collapse
The .xml's you seek are not in the systemUI. They are in the FRAMEWORK.RES if I remember right.
Try FRAMEWORK-RES/DECOMPILED DIR/LAYOUT/STATUSBAR_LATEST_EVENT_CONTENT and there might be one more. Its been awhile....
Sent from my SCH-I510 using XDA App

Related

[MOD] Battery Bar for All ROMs - Updated 31/3/12

MOD Version
App Version Here - http://forum.xda-developers.com/showthread.php?t=1568318
Howdy All,
Few people have been asking me how i got the Miui Battery Bar into my ROM on the x10! short answer is i didn't i wrote my own battery bar! and here is how you can use it!
Features
Hide / Show
Selectable Colors
Static Color
Auto-Magicaly Color (Low Med Reg Charge)
Auto Detection of screen Width ( Bar works in Portrait and Landscape Mode )
Selectable Height
Charge Animation options.
Screen Shots
{
"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"
}
Change Log
Code:
[B]Options App[/B]
v2.0
added height options.
v3.0
added new color dialogs.
v4.0
fixed default color of med level to be non-transparent.
Code:
[B]Battery Bar[/B]
v2
added height options and fixed default colors.
How To!
Ok so there are 2 files attached
First is a Zip with the files needed to add to the SystemUI.apk (THIS IS NOT FLASHABLE)
Second is an the Settings app for the Battery Bar.
Step 1
decompile your SystemUI.apk
i use Apk Manager
Click to expand...
Click to collapse
Step 2
Navigate to smali\com\android\systemui\statusbar\ Folder
Place the 3 Smali Files from the zip here
BatteryBar.smali
BatteryBar$1.smali
BatteryBar$SettingsObserver.smali
Click to expand...
Click to collapse
Step 3
You need to Navigate to the res\layouts\ Folder
open your statusbar.xml
Click to expand...
Click to collapse
Step 4
Underneath the line with
Code:
com.android.systemui.statusbar.DateView
add this
*** CHANGED ON v3 ***
Code:
<com.android.systemui.statusbar.BatteryBar android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="wrap_content" [B][COLOR="Red"]android:layout_height="wrap_content"[/COLOR][/B] />
it should be right at the bottom above the
Code:
i have added my statusbar.xml for reference if yours is in a different order no big deal just put it last and above this line
Code:
</com.android.systemui.statusbar.StatusBarView>
Click to expand...
Click to collapse
Step 5
Recompile the apk however you normaly would (there are so many ways i wont cover this here)
then push it to your phone and reboot.
If you don't know how or are having issues this is how I do it!
Notes:
a. i have a file on my desctop that i edit this is a copy of the file pulled from my phone.
Steps:
1. after all mods are done open up apk manager
2. type 22 hit enter and pick the file you were editing ( SystemUI.apk )
3. type 11 hit enter and the app will recompile.
- 4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or <- ) is awesome for this )
5. Navigate to the projects folder of APK Manager and then navigate to the app you edited (SystemUI.apk)
6. Navigate to the /build/apk folder ( snap this to the other side of your screen ) ( Note that the build/apk folder has the same structure as the apk file open in winnra / 7zip )
7. for THIS MOD only! you will need these files simply drag the 2 files listed below into the same folder location in the open apk in winnra / 7zip
- /res/layouts/status_bar.xml
- /classes.dex
8. Push the apk that you draged the files into to your phone with adb like this
adb push [where ever your apk is]/SystemUI.apk system/app/SystemUI.apk
adb shell chmod 0644 system/app/SystemUI.apk
9. whilst you have adb up reboot
adb reboot
+ 4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or
- 10. Proceed to next step
Click to expand...
Click to collapse
-
Step 6
Once your status bar is back and running (you will have no battery bar yet)
Simply install "BatteryBarSettings.apk" then open the app and pick your settings!
Click to expand...
Click to collapse
Thats it ( I think )!
all i ask is you don't modify the about section of the app if you choose to use it! and give credits where credits due. feel free to change my dodgy icon and if anyone has a better one i will also put the sources for the settings app up on my git when i get git back up ( and when i tidy up and add comments ) and running in the next few days so that those of you running on source versions can cook it in from scratch. ( i don't think i need to explain how to do that if you are compiling sources i think you'll know what to do )
Vissit My Git to have a Look
with some help i can probably port this to older android versions (<2.3) as needed but i dont have access to a rom to test it on currently. so if you can help me there let me know
Hope you found this helpfull! Let me know if this is not clear enough!
Q&A
Q: I am getting a FC on this or that, can you help me!
A: NO. We can't help you. Because what you just said means nothing to us.
We want to help you SO much, but in order to do that you need to report the bug properly.
We took care of that too, see here:
http://forum.xda-developers.com/showthread.php?t=1292625
Click to expand...
Click to collapse
Q:OMG YOU STOLE MY WORK! YOU [email protected]#$!% etc etc etc
A: I kindly ask you that if you have an issue with anything above to PM me so i can sort it out politely. There is no need to flame in the thread.
Click to expand...
Click to collapse
Pvy
Credits
Color Picker
http://forum.xda-developers.com/showthread.php?p=10739805#post10739805
Thanks to Devmil
​
[APP] or [MOD] Battery Bar for All ROMs - Updated 16/1/12
Hiding the battery Icons on your beloved ROM's
tested on 2.3.* ROMS (Stock ROMS, AOSP, CM, MIUI) may sork on others aswell but 2.2 and below have a different process.
for anyone who understands this stuff a bit this code here is what i edited for our TEAM ROM. this is hiding with an option from an app that sets a "global" setting.
look in the statusbarpolicy.smali
i commented the part with "hide battery icon";
For everyone else what you will need to do is,
1. Decompile your SystemUI.apk
2. Open /smali/com/android/systemui/statusbar/StatusBarPolicy.smali
3. Find the UpdateBattery function.
this can be a long way down.
just do a search for "battery" and you will find it eventually.
Option A - Lock out the battery icon forever!
basicaly to perma hide the icon add this to the start of the update battery function after the bit that looks like this.
Code:
Code:
.locals 12
.parameter "intent"
.prologue
add this!
Code:
Code:
iget-object v1, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mService:Landroid/app/StatusBarManager;
const-string v2, "battery"
const v0, 0x0
invoke-virtual {v1, v2, v0}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
return-void
then recompile and push back to phone.
If you don't know how or are having issues this is how I do it!
Notes:
a. i have a file on my desctop that i edit this is a copy of the file pulled from my phone.
Steps:
1. after all mods are done open up apk manager
2. type 22 hit enter and pick the file you were editing ( SystemUI.apk )
3. type 11 hit enter and the app will recompile.
4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or <- ) is awesome for this )
5. Navigate to the projects folder of APK Manager and then navigate to the app you edited (SystemUI.apk)
6. Navigate to the /build/apk folder ( snap this to the other side of your screen ) ( Note that the build/apk folder has the same structure as the apk file open in winnra / 7zip )
7. for THIS MOD only! you will need these files simply drag the 2 files listed below into the same folder location in the open apk in winnra / 7zip
- /classes.dex
8. Push the apk that you draged the files into to your phone with adb like this
adb push [where ever your apk is]/SystemUI.apk system/app/SystemUI.apk
adb shell chmod 0644 system/app/SystemUI.apk
9. whilst you have adb up reboot
adb reboot
Click to expand...
Click to collapse
that will perma hide the battery icon
Option B - Make it optional! ( my preferred way of doing things )
basically the same process but with different code and an app to set the settings.
i will add this soon and i will put the option to toggle into the BatteryBar settings app.
Aaron.
hi there ; tried it on a SGS2 with the latest CM nightly and then with CheckROM 3.1.1 -- didn't work. no serious hang nor crash, just...nothing happens (I've done the decompiling and recompiling with APKTool)
Worked perfect, Thanks.
Sent from my HTC Wildfire using xda premium
Mjergen said:
hi there ; tried it on a SGS2 with the latest CM nightly and then with CheckROM 3.1.1 -- didn't work. no serious hang nor crash, just...nothing happens (I've done the decompiling and recompiling with APKTool)
Click to expand...
Click to collapse
It has to be enabled from the app. Did you turn it on?
Pvy
Sent from my TEAM powered x10
pvyParts said:
It has to be enabled from the app. Did you turn it on?
Click to expand...
Click to collapse
sure, I installed the app and when first running the app, the "activate" box was already ticked. un-ticking and ticking it again did not help either :-l
Mjergen said:
sure, I installed the app and when first running the app, the "activate" box was already ticked. un-ticking and ticking it again did not help either :-l
Click to expand...
Click to collapse
Doesn't cm have it'd own bar? could be fighting.
Any chance of sending me your systemui and maybe grabbing some logs at boot and when you change the settings.
Pvy
Sent from my TEAM powered x10
pvyParts said:
Doesn't cm have it'd own bar? could be fighting.
Click to expand...
Click to collapse
well I thought it had it, hence me flashing it, but apparently not. either that or it's really really ... really well hidden. neither the latest SGS2 nightly (116), nor the stable rls (7.1) seem to have the top bar. i flashed the stable CM 7.1 yesterday evening and didn't apply your mod to the stable version just yet. gonna try that today and keep you posted (i'm in Czech, GMT+1, if you're australian, we might have quite the time difference here ).
what I'll do is i'll send you the unaltered systemui from the stable CM7.1 AND the same systemui with your mod, if that's okay with you ?
what is your method of choice for decompiling and recompiling, btw ?
pvyParts said:
Any chance of sending me your systemui and maybe grabbing some logs at boot and when you change the settings.
Click to expand...
Click to collapse
sure thing, i'll do as I said hereabove. also, which logs, pre- or post-mod ?
Hey there. First, thank you so much for this.
I apologize for the noob question, but I've never decompiled an apk before, but I'm eager to learn.
I used apkTool to unpack SystemUI.apk, and then added the files per your instructions, and then repacked. I then pushed SystemUI.apk to /system/app and rebooted. Upon reboot the status bar didn't work at all. When I looked at the apk itself it says "Parse error: There is a problem parsing the package."
I'm assuming I've not recompiled properly. I've attached the apkTool version I used. Perhaps I've some made obvious error? Any help you could provide would be much appreciated! I'll try again and see what happens in the meantime.
Mjergen said:
well I thought it had it, hence me flashing it, but apparently not. either that or it's really really ... really well hidden. neither the latest SGS2 nightly (116), nor the stable rls (7.1) seem to have the top bar. i flashed the stable CM 7.1 yesterday evening and didn't apply your mod to the stable version just yet. gonna try that today and keep you posted (i'm in Czech, GMT+1, if you're australian, we might have quite the time difference here ).
what I'll do is i'll send you the unaltered systemui from the stable CM7.1 AND the same systemui with your mod, if that's okay with you ?
what is your method of choice for decompiling and recompiling, btw ?
sure thing, i'll do as I said hereabove. also, which logs, pre- or post-mod ?
Click to expand...
Click to collapse
Ditamae said:
Hey there. First, thank you so much for this.
I apologize for the noob question, but I've never decompiled an apk before, but I'm eager to learn.
I used apkTool to unpack SystemUI.apk, and then added the files per your instructions, and then repacked. I then pushed SystemUI.apk to /system/app and rebooted. Upon reboot the status bar didn't work at all. When I looked at the apk itself it says "Parse error: There is a problem parsing the package."
I'm assuming I've not recompiled properly. I've attached the apkTool version I used. Perhaps I've some made obvious error? Any help you could provide would be much appreciated! I'll try again and see what happens in the meantime.
Click to expand...
Click to collapse
I use APK Manager v5
then drag/ drop updated files into the apks. to replace the old ones.
i cant find a decent guide atm but i know there is one.
Pvy
pvyParts said:
i cant find a decent guide atm but i know there is one.Pvy
Click to expand...
Click to collapse
I used & followed this tuto : http://youtu.be/YgWd0jsDtH0
if I used the plain SystemUI from APKTool\SystemUI\dist , I get neverending FC. upon reboot, the status bar is simply gone and even the launcher's "Notifications" soft menu option doesn't make it appear. gotta reflash the ROM to set things straight & get the statusbar back.
if I copy/paste "resources.arsc" from APKTool\SystemUI\build\apk into the fresh SystemUI I obtain in APKTool\SystemUI\dist, there are no FC and the status bar shows, but your top bar mod isn't present, not even when repeatedly checking/unchecking/rechecking "show battery bar" in your app.
it doesn't take a rocket scientist to understand & follow your tutorial, so I believe that my problem comes from somewhere in the recompiling process...
at work now, whenever I have 10min, I'll upload my systemUI apks
Mjergen said:
I used & followed this tuto : http://youtu.be/YgWd0jsDtH0
if I used the plain SystemUI from APKTool\SystemUI\dist , I get neverending FC. upon reboot, the status bar is simply gone and even the launcher's "Notifications" soft menu option doesn't make it appear. gotta reflash the ROM to set things straight & get the statusbar back.
if I copy/paste "resources.arsc" from APKTool\SystemUI\build\apk into the fresh SystemUI I obtain in APKTool\SystemUI\dist, there are no FC and the status bar shows, but your top bar mod isn't present, not even when repeatedly checking/unchecking/rechecking "show battery bar" in your app.
it doesn't take a rocket scientist to understand & follow your tutorial, so I believe that my problem comes from somewhere in the recompiling process...
at work now, whenever I have 10min, I'll upload my systemUI apks
Click to expand...
Click to collapse
OK my gimme 5 i'll edit the op with my full decompile/compile process
EDIT*** all done. hope it is enough... i really had to think on how to word it all LOL!
also the file in apktool/[apk name]/dist
has no signatures and will not run (from memory)
Pvy.
well, so far...no good. i followed your tuto using APK Manager 4.9, I got numerous errors when decompiling. log coming up in next post.
---------- Post added at 01:27 PM ---------- Previous post was at 01:26 PM ----------
Part 1
Code:
--------------------------------------------------------------------------
|p* 02.12.2011 -- 12:16:52,24|
--------------------------------------------------------------------------
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)
adb nenˇ n*zvem vnitýnˇho ani vnŘjçˇho pýˇkazu,
spustiteln‚ho programu nebo d*vkov‚ho souboru.
Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk.
Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk.
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x0000000a
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=minSdkVersion, value=0x0000000a
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=targetSdkVersion, value=0x0000000a
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f090000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x7f020009
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=allowClearUserData, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=persistent, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=excludeFromRecents, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=finishOnCloseSystemDialogs, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x010e0001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=fromXDelta, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=toXDelta, value=0x00000101
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=oneshot, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x00000320
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f02009c
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x000004b0
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f02009d
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_window_focused, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020002
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_window_focused, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020003
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_pressed, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020005
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_focused, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020006
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_enabled, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020002
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_focused, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020004
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f020003
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x00004102
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b002e
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0108008c
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingRight, value=0x00000602
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=focusable, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=clickable, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0x00004002
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x7f020008
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000011
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x00001201
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000003
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x00001301
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=text, value=0x7f090006
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x00001201
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000003
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0002
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x00001301
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000a00
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b0003
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingTop, value=0x00000a00
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000f00
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x7f020000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x010e0001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=fromXDelta, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=toXDelta, value=0xffffff01
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=oneshot, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x000001f4
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x7f02008a
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=duration, value=0x000001f4
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x010802d9
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=focusable, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=descendantFocusability, value=0x00000001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000001
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b001d
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x7f0200bf
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingTop, value=0x00000301
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingRight, value=0x00000301
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000501
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b001e
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=gravity, value=0x00000010
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=orientation, value=0x00000000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f0b001f
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x01010040
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x7f060000
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_gravity, value=0x00000010
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingLeft, value=0x00000401
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingBottom, value=0x00000101
pt 2 of the log is basically repeating the pt1 above with different "name=" values
it goes on like that for a while and then at the very end of the log :
Code:
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01030065 style/TextAppearance.StatusBar.Title, config=[DEFAULT]
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadFrameworkPkg(Unknown Source)
at brut.androlib.res.data.ResTable.getPackage(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.ResStyleValue.serializeToXml(Unknown Source)
at brut.androlib.res.AndrolibResources.generateValuesFile(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 tried reducing memory size (option 20) or running the .bat as Admin (Win 7 x64) but the same error kept coming back in the log. and before you ask, I do have ADB installed but APK Manager doesn't find it.
i'll try flashing a stock SGS2 ROM or a non-CM ROM, who knows, maybe it's CM's SystemUI's fault...i'll also try doing the procedure on a more powerful PC than the curent one I got at work
APK Manager relies on apktool and it seems you haven't installed the appropriate framework. Check here for more details.
iridaki said:
it seems you haven't installed the appropriate framework.
Click to expand...
Click to collapse
that makes perfect sense, efharisto good sir
I'm somewhat of an advanced-noob person -- I don't have problems fiddling with files and recovering from my mistakes, but when something's implicit (as pulling the framework files), that's when my brain starts to FC
--- EDIT ---
alright, it decompiled ! now it seems the problem lies in the recompiling :
Code:
|p* 02.12.2011 -- 13:07:11,05|
--------------------------------------------------------------------------
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)
adb nenˇ n*zvem vnitýnˇho ani vnŘjçˇho pýˇkazu,
spustiteln‚ho programu nebo d*vkov‚ho souboru.
Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk.
Nelze najˇt M:\FICHIERS RECUS\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk.
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\PROMOTHERM\apktool\framework\1.apk
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
W/ResourceType( 5884): Unable to get buffer of resource asset file
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:4: error: Error: No resource found that matches the given name: attr 'android:textAppearance'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:6: error: Error: No resource found that matches the given name: attr 'android:textColor'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:textStyle'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Large'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:9: error: Error: No resource found that matches the given name: attr 'android:textColor'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:11: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Button'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:14: error: Error: No resource found that matches the given name: attr 'android:background'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:13: error: Error: No resource found that matches the given name: attr 'android:textColor'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:12: error: Error: No resource found that matches the given name: attr 'android:textSize'.
M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res\values\styles.xml:16: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\PROMOT~1\AppData\Local\Temp\APKTOOL1867850949983348058.tmp, -I, C:\Users\PROMOTHERM\apktool\framework\1.apk, -S, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\PROMOT~1\AppData\Local\Temp\APKTOOL1867850949983348058.tmp, -I, C:\Users\PROMOTHERM\apktool\framework\1.apk, -S, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\res, -M, M:\FICHIERS RECUS\apk_manager_4.9\other\..\projects\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
i pulled framework-res.apk from the phone, copied it to C:\Users\(username)\apktool\framework and renamed it 1.apk since it's the filename apktool is looking for, and i got the above log when recompiling
any ideas before i go jump off a cliff... ?
Mjergen said:
that makes perfect sense, efharisto good sir
I'm somewhat of an advanced-noob person -- I don't have problems fiddling with files and recovering from my mistakes, but when something's implicit (as pulling the framework files), that's when my brain starts to FC
Click to expand...
Click to collapse
Trust me, pulling the framework is as harmless as it gets!
Pushing a modified one is somewhat a risk, but if you have working adb and/or recovery, you should have nothing to worry about.
Good luck!
PS: I am more of a madam, than a sir!
Mjergen said:
i pulled framework-res.apk from the phone, copied it to C:\Users\(username)\apktool\framework and renamed it 1.apk since it's the filename apktool is looking for, and i got the above log when recompiling
any ideas before i go jump off a cliff... ?
Click to expand...
Click to collapse
You certainly did not install the framework by renaming it to 1.apk.
The link I posted nowhere does it mention this is what you should do.
Code:
apktool if framework-res.apk
iridaki said:
Trust me, pulling the framework is as harmless as it gets!
Pushing a modified one is somewhat a risk, but if you have working adb and/or recovery, you should have nothing to worry about.
Good luck!
Click to expand...
Click to collapse
actually, for 95% of what I do, I only need CWM recovery and samsung's download mode, sooo...
iridaki said:
PS: I am more of a madam, than a sir!
Click to expand...
Click to collapse
my apologies, I couldn't have guessed !
iridaki said:
You certainly did not install the framework by renaming it to 1.apk.
The link I posted nowhere does it mention this is what you should do.
Click to expand...
Click to collapse
yup, I'll re-do it all this afternoon and take my time. now I'm trying to install Pvy's MOD at work, when I have 5 free minutes between two tasks...
so... i solved this the lazy way
I actually found a package that's flashable in recovery that did the trick ! it was lying around on a Polish Samsung forum (link : http://s5830.pl/thread-242.html). it is intended only for CyanogenMod and apparently the Galaxy Ace, but it works perfect on the latest CM 7.1 and a Galaxy S2 !
link to the mod flashable, in CWM recovery : http://db.tt/79ytqshA
maybe some of you brainiacs could make a universal, flashable zip ? all credit goes to Konsky from http://s5830.pl (and to Lady Luck for not [email protected]µ*& up my phone...)
anyway, BIG thanks to Pvy and the rest of you guys for the immediate follow-up customer care and i'm bookmarking this thread nonetheless for when I'll change my SGS2 - hopefully by then I'll be experienced enough not to fumble over de/re-compiling
Looks good and works without Problems in my X10mini with GingerDX v17 and naa Kernel06.
Good job, a little nice Customisation

[SOLVED] [Q][HELP] Decompiling Settings.apk

Hello all succesful app tweakers
I tried to tweak 9-lockscreenmod-compatible Settings.apk but I have this problem when decompiling it:
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\George\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=
textColor, value=0x02050000
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColorHint, value=0x02050001
W: Cant find 9patch chunk in file: "drawable-mdpi/appwidget_bg.9.png". Renaming
it to *.png.
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
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.
However, I already installed framework from XXJPU and this Settings.apk is from XXJPU, and still can't decompile.
If you can help me, please, please let me know what to do to decompile it properly or what framework I need to install. Thank you :good:
Someone must know this... This error is really annoying...
Sent from my GT-I5800 using xda app-developers app
SOLVED.
With the help of Jason-EX I succesfully decompiled it.
SOLUTION: install both framework-res.apk and twframework-res.apk (apktool if) and then decompile Settings.apk.
Thanks Jason!

Could not decode attr value. Xperia J

Hi, while trying to leap decompilation me this error, please help.
Code:
Microsoft Windows [Wersja 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Wszelkie prawa zastrzeżone.
J:\Users\Wszyscy123>apktool d D:\SystemUI.apk
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: J:\Users\Wszyscy123\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
label, value=0x01040c7e
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080740
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x01080700
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010a010b
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValueExt(Re
sScalarValue.java:86)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResSc
alarValue.java:55)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:61)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:432)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:241
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
Thanks for your help

[Q] cant finf systemui.odex

PLZ help me someone... I want to edit systemui... For that i need systemui.odex.... but i cant find systemui.odex in System/app.. And Not in my phone... Can anyone say how to get Systemui.odex.. My phone is samsung s duos 2 .. and running in lollipop xtreme v2 rom... help me plz
yasikst said:
PLZ help me someone... I want to edit systemui... For that i need systemui.odex.... but i cant find systemui.odex in System/app.. And Not in my phone... Can anyone say how to get Systemui.odex.. My phone is samsung s duos 2 .. and running in lollipop xtreme v2 rom... help me plz
Click to expand...
Click to collapse
Most custom ROMs are deodexed. So they don't have .odex files
Only stock ROM has .odex files.
So you can directly proceed to edit SystemUI.apk, using APKTool
GokulNC said:
Most custom ROMs are deodexed. So they don't have .odex files
Only stock ROM has .odex files.
So you can directly proceed to edit SystemUI.apk, using APKTool
Click to expand...
Click to collapse
Error sir... only half files decompiling
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108105e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f080000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0e0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0d0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0e002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108105e
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108105f
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f080000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0e0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0d0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0e002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a0088
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:58)
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:60)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:57)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:65)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:564)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:319)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:116)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:106)
at brut.apktool.Main.cmdDecode(Main.java:166)
at brut.apktool.Main.main(Main.java:85)
I: Using Apktool 2.0.0-Beta7 on System UI_4.2.2-S7582DDUANJ1_17.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: ?/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
This error .. help me sir
yasikst said:
Error sir... only half files decompiling
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108105e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f080000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0e0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0d0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0e002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108105e
W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108105f
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f080000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0e0030
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0d0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0e002e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=feedbackCount, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=alwaysTrackFinger, value=0xffffffff
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a0088
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:58)
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:60)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:57)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:65)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:564)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:319)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:116)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:106)
at brut.apktool.Main.cmdDecode(Main.java:166)
at brut.apktool.Main.main(Main.java:85)
I: Using Apktool 2.0.0-Beta7 on System UI_4.2.2-S7582DDUANJ1_17.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: ?/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
This error .. help me sir
Click to expand...
Click to collapse
Did you install framework apk properly?
GokulNC said:
Did you install framework apk properly?
Click to expand...
Click to collapse
I dont know.. sir i applyed framwork.. but i dont know i properly applyed... Can u say how install framework..
yasikst said:
I dont know.. sir i applyed framwork.. but i dont know i properly applyed... Can u say how install framework..
Click to expand...
Click to collapse
Code:
apktool if framework-res.apk
Make sure if you have only framework-res.apk in /system/framework
If there are some other apks inside it, install them too similarly
GokulNC said:
Code:
apktool if framework-res.apk
Make sure if you have only framework-res.apk in /system/framework
If there are some other apks inside it, install them too similarly
Click to expand...
Click to collapse
I done sir ..... but same problem .. plz help me sir
yasikst said:
I done sir ..... but same problem .. plz help me sir
Click to expand...
Click to collapse
Maybe you have to install other APKs which are specific to your device manufacturer model.
For example, HTC phones will require com.htc.resources.apk
Some ROMs need twframework-res.apk
It's you who should find it
I can't help
GokulNC said:
Maybe you have to install other APKs which are specific to your device manufacturer model.
For example, HTC phones will require com.htc.resources.apk
Some ROMs need twframework-res.apk
It's you who should find it
I can't help
Click to expand...
Click to collapse
Ok sir... Sir can u suggest the Best Rom for S duos 2 (GT S7582)
yasikst said:
Ok sir... Sir can u suggest the Best Rom for S duos 2 (GT S7582)
Click to expand...
Click to collapse
Check here: http://forum.xda-developers.com/t/s7582
You can see many ROMs there. Choose anything that you like
GokulNC said:
Check here: http://forum.xda-developers.com/t/s7582
You can see many ROMs there. Choose anything that you like
Click to expand...
Click to collapse
Ok sir .. thnk u

Decompiling

Hi guys
having a bad time trying to decompile apks's on my s7
whatever process i use it always returns with an error, i used to decompile my s6 on lollipop and ics without much issues.
is there a specific way or guide i should be follow in order to be able to decompile / recompile on s7/marshy.
thanks!
virtyx said:
Hi guys
having a bad time trying to decompile apks's on my s7
whatever process i use it always returns with an error, i used to decompile my s6 on lollipop and ics without much issues.
is there a specific way or guide i should be follow in order to be able to decompile / recompile on s7/marshy.
thanks!
Click to expand...
Click to collapse
are you using apktool ?
forum.xda-developers.com/showthread.php?t=1755243
_NakedTruth_ said:
are you using apktool ?
forum.xda-developers.com/showthread.php?t=1755243
Click to expand...
Click to collapse
yes, keeps returning with an error.
virtyx said:
yes, keeps returning with an error.
Click to expand...
Click to collapse
fantastic ... "returns a error" ... really admirable.
are you nuts? do you want support by telling ONLY "returns a error" ?
i have to apologize as i've left my crystal ball at home.
cheers.
_NakedTruth_ said:
fantastic ... "returns a error" ... really admirable.
are you nuts? do you want support by telling ONLY "returns a error" ?
i have to apologize as i've left my crystal ball at home.
cheers.
Click to expand...
Click to collapse
no need to be snide.
im not behind my pc at the moment, but it begins decompiling then stops with red writing stating that there was an error, and gives a code 0
virtyx said:
no need to be snide.
im not behind my pc at the moment, but it begins decompiling then stops with red writing stating that there was an error, and gives a code 0
Click to expand...
Click to collapse
dude ... red ?
apktool is a java binary that should be executed from the command prompt or linux terminal.
Code:
C:\>java - jar apktool_version.jar d framework-res.apk
i really don't have a clue from where "red" came in.
whenever you need, be detailed as possible on what you are exactly doing and post the complete information it gives you and then a real support may start.
cheers.
_NakedTruth_ said:
dude ... red ?
apktool is a java binary that should be executed from the command prompt or linux terminal.
Code:
C:\>java - jar apktool_version.jar d framework-res.apk
i really don't have a clue from where "red" came in.
whenever you need, be detailed as possible on what you are exactly doing and post the complete information it gives you and then a real support may start.
cheers.
Click to expand...
Click to collapse
Sorry i wasnt more clear in my OP
i was using the multitool with the GUI instead of apk via command prompt, i always used this method without fail.
when i use the apk tool i get the following:
C:\apktool>java -jar apktool.jar d framework-res.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:469)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:174)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
2)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 8 more
not sure the version of apktool you have. afaik, the arsc decode error you are having is history already.
what do you get with ?
Code:
C:\>java -jar apktool_version.jar --version
if different from 2.1.1 then
download >> https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.1.1.jar
rename to apktool.jar and replace yours
retry
follow http://forum.xda-developers.com/showthread.php?t=1755243
virtyx said:
Sorry i wasnt more clear in my OP
i was using the multitool with the GUI instead of apk via command prompt, i always used this method without fail.
when i use the apk tool i get the following:
C:\apktool>java -jar apktool.jar d framework-res.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:469)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:174)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
2)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 8 more
Click to expand...
Click to collapse
_NakedTruth_ said:
not sure the version of apktool you have. afaik, the arsc decode error you are having is history already.
what do you get with ?
Code:
C:\>java -jar apktool_version.jar --version
if different from 2.1.1 then
download >> https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.1.1.jar
rename to apktool.jar and replace yours
retry
follow http://forum.xda-developers.com/showthread.php?t=1755243
Click to expand...
Click to collapse
ok
framework-res.apk decompiles ok
but this is what i get when i try to decompile systemui.apk
c:\apktool>java -jar apktool2.1.1.jar d systemui.apk
I: Using Apktool 2.1.1 on systemui.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\yasknz\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x01060195
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x0106019a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x0106018d
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x0106018d
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x01060195
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x0106019a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textSize, value=0x010502e0
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x010601a1
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_width, value=0x010502e1
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x010502e2
W: Could not decode attr value, using undecoded value instead: ns=android, name=
src, value=0x0108092b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
interpolator, value=0x010c003f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x01060195
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x0106019a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x0106019a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x01060194
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x010807eb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x01060195
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x0106019a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x0106019a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
backgroundTint, value=0x01060195
W: Could not decode attr value, using undecoded value instead: ns=android, name=
tint, value=0x01060194
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080a62
W: Could not decode attr value, using undecoded value instead: ns=android, name=
interpolator, value=0x010c003c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
interpolator, value=0x010c003c
W: Could not decode attr value, using undecoded value instead: ns=android, name=
src, value=0x0108092b
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040bae
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040bac
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040bad
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040baf
W: Could not decode attr value, using undecoded value instead: ns=android, name=
interpolator, value=0x010c003f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
interpolator, value=0x010c003f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x010807eb
W: Could not decode attr value, using undecoded value instead: ns=android, name=
interpolator, value=0x010c003f
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040bae
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040bac
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040bad
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040baf
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textSize, value=0x010502e0
W: Could not decode attr value, using undecoded value instead: ns=android, name=
textColor, value=0x010601a1
W: Could not decode attr value, using undecoded value instead: ns=android, name=
layout_width, value=0x010502e1
W: Could not decode attr value, using undecoded value instead: ns=android, name=
minHeight, value=0x010502e2
W: Could not decode attr value, using undecoded value instead: ns=android, name=
color, value=0x01060196
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080a62
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010a0092
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:66)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:62)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:57)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:47)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResSc
alarValue.java:58)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:72)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:513)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:264
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:128)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:108)
at brut.apktool.Main.cmdDecode(Main.java:163)
at brut.apktool.Main.main(Main.java:81)
virtyx said:
ok
framework-res.apk decompiles ok
Click to expand...
Click to collapse
Have you extracted the twframework-res.apk file as well
You need to then run both commands to set the resource tables, have you done apktool if framework-res.apk and apktool if twframework-res.apk
Using apktool 2.1.1 you should get the below when it decompiles correctly
C:\Samsung S7\APKs>apktool d SystemUI.apk
I: Using Apktool 2.1.1 on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
C:\Samsung S7\APKs>

Categories

Resources