Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Tool]Advanced ApkTool v4.1.0[Windows][02/12/2014]

OP BDFreak

13th December 2014, 12:39 AM   |  #251  
secretmyth's Avatar
Member
Flag Iasi
Thanks Meter: 12
 
35 posts
Join Date:Joined: Sep 2012
More
HTML Code:
------------------------------------------------------ 

W: Could not decode attr value, using undecoded value instead: ns=android, name=layoutDirection, value=0x00000003
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=touchscreenBlocksFocus, value=0xffffffff
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=state_accelerated, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=android, name=paddingMode, value=0x00000001
W: Could not decode attr value, using undecoded value instead: ns=android, name=state_accelerated, value=0x00000000
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030253
	at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
	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.encodeAsResXmlAttr(ResScalarValue.java:45)
	at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:49)
	at brut.androlib.res.data.value.ResBagValue.serializeToResValuesXml(ResBagValue.java:41)
	at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:565)
	at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:328)
	at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:131)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:101)
	at brut.apktool.Main.cmdDecode(Main.java:165)
	at brut.apktool.Main.main(Main.java:81)

------------------------------------------------------
I got this error while decompile.
14th December 2014, 12:37 PM   |  #252  
lemach's Avatar
Senior Member
Thanks Meter: 62
 
230 posts
Join Date:Joined: Feb 2012
Thanks for this tool.

Recompile and sign option do not work properly, only recompile, when signing say that command is not valid...

anyone else?
15th December 2014, 02:38 AM   |  #253  
deuce_biggins's Avatar
Senior Member
Flag Detroit
Thanks Meter: 1,670
 
786 posts
Join Date:Joined: Mar 2014
Donate to Me
More
Quote:
Originally Posted by lemach

Thanks for this tool.

Recompile and sign option do not work properly, only recompile, when signing say that command is not valid...

anyone else?

Works properly on my end
The Following 2 Users Say Thank You to deuce_biggins For This Useful Post: [ View ]
Yesterday, 03:43 PM   |  #254  
axxx007xxxz's Avatar
Senior Member
Flag World
Thanks Meter: 61
 
544 posts
Join Date:Joined: Jul 2014
More
I get this error when I try to decompile, log:
Code:
 Log For : SystemUI_43daniel.apk 

 Log Type : Decompiling 

 Log Recorded At : 19 2014-12- 15:35:47,96 

 Log Recorded By : Advanced ApkTool v4.0.0 By BDFreak 

------------------------------------------------------ 

W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRingDrawable, value=0x7f020041
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x010802f5
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x0105001e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f060000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=handleDrawable, value=0x7f020040
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0b0025
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0a0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0b0023
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=prvandroid, name=outerRingDrawable, value=0x7f020041
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x010802f5
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x0105001e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f060000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=handleDrawable, value=0x7f020040
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0b0025
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0a0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0b0023
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=prvandroid, name=outerRingDrawable, value=0x7f020041
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x010802f5
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x0105001e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f060000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=handleDrawable, value=0x7f020040
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0b0025
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0a0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0b0023
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=prvandroid, name=outerRingDrawable, value=0x7f020041
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x010802f5
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x0105001e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f060000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=handleDrawable, value=0x7f020040
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0b0025
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0a0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0b0023
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: 0x01010457
	at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
	at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
	at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
	at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:36)
	at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:369)
	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$1.event(XmlPullStreamDecoder.java:83)
	at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
	at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)
	at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
	at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
	at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:322)
	at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
	at brut.apktool.Main.cmdDecode(Main.java:170)
	at brut.apktool.Main.main(Main.java:86)

------------------------------------------------------
Why?

Thanks in advance!
Yesterday, 09:01 PM   |  #255  
Senior Member
Thanks Meter: 839
 
374 posts
Join Date:Joined: Jul 2009
Donate to Me
More
Version 4.1.0 is broken. I cannot recompile my project properly anymore.
I have this line in "colors.xml":
Code:
<color name="semc_theme_accent_color">@com.sonyericsson.uxp:color/semc_theme_accent_color</color><!--Settings-->
(This value is fetched from framework file 2.apk)
While using my modified Keyguard.apk, I get this error:
Code:
12-19 21:23:51.152  5736  5736 E AndroidRuntime: Process: com.android.systemui, PID: 5736
12-19 21:23:51.152  5736  5736 E AndroidRuntime: android.content.res.Resources$NotFoundException: Resource ID #0x7f06000e type #0x7 is not valid
12-19 21:23:51.152  5736  5736 E AndroidRuntime: 	at android.content.res.Resources.getColor(Resources.java)
...
Also, after recompiling, I can't decompile my project again.
Back to 3.0.0 then...
Last edited by IaguCool; Yesterday at 09:05 PM.
Yesterday, 10:01 PM   |  #256  
deuce_biggins's Avatar
Senior Member
Flag Detroit
Thanks Meter: 1,670
 
786 posts
Join Date:Joined: Mar 2014
Donate to Me
More
Quote:
Originally Posted by axxx007xxxz

I get this error when I try to decompile, log:

Code:
 Log For : SystemUI_43daniel.apk 

 Log Type : Decompiling 

 Log Recorded At : 19 2014-12- 15:35:47,96 

 Log Recorded By : Advanced ApkTool v4.0.0 By BDFreak 

------------------------------------------------------ 

W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRingDrawable, value=0x7f020041
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x010802f5
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x0105001e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f060000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=handleDrawable, value=0x7f020040
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0b0025
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0a0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0b0023
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=prvandroid, name=outerRingDrawable, value=0x7f020041
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x010802f5
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x0105001e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f060000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=handleDrawable, value=0x7f020040
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0b0025
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0a0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0b0023
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=prvandroid, name=outerRingDrawable, value=0x7f020041
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x010802f5
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x0105001e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f060000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=handleDrawable, value=0x7f020040
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0b0025
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0a0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0b0023
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=prvandroid, name=outerRingDrawable, value=0x7f020041
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=pointDrawable, value=0x010802f5
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=glowRadius, value=0x0105001e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=targetDrawables, value=0x7f060000
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=handleDrawable, value=0x7f020040
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=outerRadius, value=0x7f0b0025
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=vibrationDuration, value=0x7f0a0002
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, name=snapMargin, value=0x7f0b0023
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: 0x01010457
	at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:59)
	at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
	at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
	at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:36)
	at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:369)
	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$1.event(XmlPullStreamDecoder.java:83)
	at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:141)
	at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)
	at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
	at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
	at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:322)
	at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:123)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
	at brut.apktool.Main.cmdDecode(Main.java:170)
	at brut.apktool.Main.main(Main.java:86)

------------------------------------------------------
Why?

Thanks in advance!

Do you have the correct framework installed? I see "Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01010457". Usually 0x01xxxxxx numbers are coming from framework

Quote:
Originally Posted by IaguCool

Version 4.1.0 is broken. I cannot recompile my project properly anymore.
I have this line in "colors.xml":

Code:
<color name="semc_theme_accent_color">@com.sonyericsson.uxp:color/semc_theme_accent_color</color><!--Settings-->
(This value is fetched from framework file 2.apk)
While using my modified Keyguard.apk, I get this error:
Code:
12-19 21:23:51.152  5736  5736 E AndroidRuntime: Process: com.android.systemui, PID: 5736
12-19 21:23:51.152  5736  5736 E AndroidRuntime: android.content.res.Resources$NotFoundException: Resource ID #0x7f06000e type #0x7 is not valid
12-19 21:23:51.152  5736  5736 E AndroidRuntime: 	at android.content.res.Resources.getColor(Resources.java)
...
Also, after recompiling, I can't decompile my project again.
Back to 3.0.0 then...

4.1 is not broken, BDFreak does not change coding for APKTool...using standard RC3. He makes the process a lot smoother and adds many options for us as users...not to mention a great GUI. When are you getting the Keyguard error?
The Following 2 Users Say Thank You to deuce_biggins For This Useful Post: [ View ]
Yesterday, 11:20 PM   |  #257  
Senior Member
Thanks Meter: 839
 
374 posts
Join Date:Joined: Jul 2009
Donate to Me
More
Quote:
Originally Posted by deuce_biggins

4.1 is not broken, BDFreak does not change coding for APKTool...using standard RC3. He makes the process a lot smoother and adds many options for us as users...not to mention a great GUI. When are you getting the Keyguard error?

Let me rephrase that: Something within AAT 4.1 is misbehaving.
Explaining you the whole process will be pointless, so I'll just say this: the fact that recompiling with 3.0.0 works as expected while with 4.1.0 I get this error (within the OS, after pushing the modified file to system/priv-app) just proves something is wrong with 4.1.0. Also, once I compile with 4.1.0 I cannot decompile it with this version. (With 3.0.0 I can compile and decompile as many times as I want and always getting the same proper output)
It's a modified Keyguard.apk from KitKat 4.4.4 by the way.

---------- Post added 20th December 2014 at 12:04 AM ---------- Previous post was 19th December 2014 at 11:45 PM ----------

I can confirm that this error happens in 4.1.0 only.
Both 3.0.0 and 4.0.0 gave an output APK of 4,387,271 bytes (works perfectly, can be decompiled again),
While 4.1.0 gave an output APK of 4,393,377 bytes (works improperly and cannot be decompiled).

---------- Post added at 12:12 AM ---------- Previous post was at 12:04 AM ----------

Comparing "build" folders for both 4.0.0 and 4.1.0:


---------- Post added at 12:20 AM ---------- Previous post was at 12:12 AM ----------

I confirmed that the problem is 100% within "apktool.jar". I moved only the "apktool.jar" from 4.0.0 (RC2) and replaced the one in 4.1.0 (RC3) and that made 4.1.0 function correctly.
Also the sizes of the "apktool.jar" files are highly suspicious. RC2 is 8.12MB while RC3 is 5.97MB... 2.3MBs of code removed?
Last edited by IaguCool; Yesterday at 11:28 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes