XenonHD Unofficial AOSP-based ROM for Find 7a

XDA Recognized Contributor uppon2 & Team Horizon are bringing the Oppo … more

Sunshine Compatible with HTC One M9

Two Senior Recognized Developers jcase and beaups officially released a new version of Sunshine. … more

CyanogenMod 12.1 for YU Yureka

YU Yureka recently received an official Cyanogen OS 12S update. If you prefer to use a newer revision of … more

Open War for Open Android: Antitrust for Cyanogen?

Android and openness is something we talk about all the time, but the recent … more
Post Reply Subscribe to Thread Email Thread

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

16th April 2015, 07:54 AM |#351  
WhiteNeo's Avatar
Senior Member
Thanks Meter: 2,860
 
1,995 posts
Join Date:Joined: Feb 2013
Donate to Me
Quote:
Originally Posted by Brava27

So I can decompile, I fix some values here and there and when I recompile I get this:

Log For : framework-res.apk

Log Type : Recompiling

Log Recorded At : Thu 16-04-2015 1:33:09.97

Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak

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

W: Could not find sources
C:\Users\BRAVA\Desktop\AdvancedApkTool\3-Out\framework-res.apk\res\drawable-sw360dp-xxxhdpi\ic_knox_badge.PNG: error: File is case-insensitive equivalent to: C:\Users\BRAVA\Desktop\AdvancedApkTool\3-Out\framework-res.apk\res\drawable-xxxhdpi\ic_knox_badge.png
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\BRAVA\AppData\Local\Temp\brut_util_Jar_41 45538247507964460.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-G920W8VLU1AOCG, -F, C:\Users\BRAVA\AppData\Local\Temp\APKTOOL141964724 2275865316.tmp, -x, -0, arsc, -S, C:\Users\BRAVA\Desktop\AdvancedApkTool\3-Out\framework-res.apk\res, -M, C:\Users\BRAVA\Desktop\AdvancedApkTool\3-Out\framework-res.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:442)
at brut.androlib.Androlib.buildResources(Androlib.jav a:379)
at brut.androlib.Androlib.build(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:255)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\BRAVA\AppData\Local\Temp\brut_util_Jar_41 45538247507964460.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-G920W8VLU1AOCG, -F, C:\Users\BRAVA\AppData\Local\Temp\APKTOOL141964724 2275865316.tmp, -x, -0, arsc, -S, C:\Users\BRAVA\Desktop\AdvancedApkTool\3-Out\framework-res.apk\res, -M, C:\Users\BRAVA\Desktop\AdvancedApkTool\3-Out\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:506)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:428)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\BRAVA\AppData\Local\Temp\brut_util_Jar_41 45538247507964460.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0.2-G920W8VLU1AOCG, -F, C:\Users\BRAVA\AppData\Local\Temp\APKTOOL141964724 2275865316.tmp, -x, -0, arsc, -S, C:\Users\BRAVA\Desktop\AdvancedApkTool\3-Out\framework-res.apk\res, -M, C:\Users\BRAVA\Desktop\AdvancedApkTool\3-Out\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.java:500)
... 6 more

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

Any idea why? If I do not edit anything in the apk it will actually recompile, but I want to edit things in the file.
Anyone help me out please?

If you delete the png in sw360dp, your framework should compile fine. Deleting this image probably won't cause issues because it is still included elsewhere.
 
 
16th April 2015, 12:01 PM |#352  
Brava27's Avatar
Senior Member
Flag Toronto
Thanks Meter: 201
 
1,100 posts
Join Date:Joined: Sep 2012
More
Quote:
Originally Posted by WhiteNeo

If you delete the png in sw360dp, your framework should compile fine. Deleting this image probably won't cause issues because it is still included elsewhere.

Appreciate your reply. I'll try this when I get home! Thanks
17th April 2015, 05:24 PM |#353  
giltros1's Avatar
Member
Thanks Meter: 6
 
54 posts
Join Date:Joined: May 2012
More
hi guys i get this error decompile

W: Could not decode attr value, using undecoded value instead: ns=android, name=touchscreenBlocksFocus, value=0xffffffff
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101048f
at brut.androlib.res.data.ResPackage.getResSpec(ResPa ckage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTabl e.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTabl e.java:53)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Re sAttrDecoder.java:36)
at brut.androlib.res.decoder.AXmlResourceParser.getAt tributeValue(AXmlResourceParser.java:369)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelega te.getAttributeValue(XmlPullParserDelegate.java:69 )
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializer Wrapper.writeStartTag(StaticXmlSerializerWrapper.j ava:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializer Wrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.e vent(XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.dec ode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContaine r.decode(ResStreamDecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(Re sFileDecoder.java:114)
at brut.androlib.res.decoder.ResFileDecoder.decode(Re sFileDecoder.java:99)
at brut.androlib.res.AndrolibResources.decode(Androli bResources.java:323)
at brut.androlib.Androlib.decodeResourcesFull(Androli b.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:10 1)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
Yesterday, 06:07 PM |#354  
Vivek_Neel's Avatar
Recognized Contributor / Themer
Flag chennai
Thanks Meter: 21,635
 
8,502 posts
Join Date:Joined: Dec 2012
Donate to Me
More
Quote:
Originally Posted by giltros1

hi guys i get this error decompile

W: Could not decode attr value, using undecoded value instead: ns=android, name=touchscreenBlocksFocus, value=0xffffffff
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0101048f
at brut.androlib.res.data.ResPackage.getResSpec(ResPa ckage.java:59)
at brut.androlib.res.data.ResTable.getResSpec(ResTabl e.java:57)
at brut.androlib.res.data.ResTable.getResSpec(ResTabl e.java:53)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Re sAttrDecoder.java:36)
at brut.androlib.res.decoder.AXmlResourceParser.getAt tributeValue(AXmlResourceParser.java:369)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelega te.getAttributeValue(XmlPullParserDelegate.java:69 )
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializer Wrapper.writeStartTag(StaticXmlSerializerWrapper.j ava:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializer Wrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder$1.e vent(XmlPullStreamDecoder.java:83)
at brut.androlib.res.decoder.XmlPullStreamDecoder.dec ode(XmlPullStreamDecoder.java:141)
at brut.androlib.res.decoder.ResStreamDecoderContaine r.decode(ResStreamDecoderContainer.java:33)
at brut.androlib.res.decoder.ResFileDecoder.decode(Re sFileDecoder.java:114)
at brut.androlib.res.decoder.ResFileDecoder.decode(Re sFileDecoder.java:99)
at brut.androlib.res.AndrolibResources.decode(Androli bResources.java:323)
at brut.androlib.Androlib.decodeResourcesFull(Androli b.java:131)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:10 1)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)

Make sure you install framework first

Sent from my A0001 using Tapatalk 2
Yesterday, 07:34 PM |#355  
giltros1's Avatar
Member
Thanks Meter: 6
 
54 posts
Join Date:Joined: May 2012
More
only apk no framework is ok thanks, with frame no ok
sorry for my english
Last edited by giltros1; Yesterday at 07:36 PM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes