bonitadecker77 / apktool

Automatically exported from code.google.com/p/apktool
5 stars 2 forks source link

please help me #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Want to edit systemui , twframework , androidpolicy.jar

What is the expected output? What do you see instead?

When i want decompile systemui

 I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: ?/apktool/framework/1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=icon, value=0x01080631
W: Could not decode attr value, using undecoded value instead: ns=androidprv, 
name=primaryUserOnly, value=0xffffffff
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=label, value=0x01040631
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=theme, value=0x01030315
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=theme, value=0x01030325
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=theme, value=0x01030325
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=theme, value=0x01030325
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=theme, value=0x01030325
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=theme, value=0x01030325
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, 
name=outerRingDrawable, value=0x7f02008a
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, 
name=pointDrawable, value=0x0108039e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, 
name=glowRadius, value=0x01050020
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=drawableTop, value=0x01080751
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=drawable, value=0x01080a06
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=drawable, value=0x01080cc3
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=drawable, value=0x010806cd
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=drawable, value=0x010806d1
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=drawable, value=0x010809ee
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, 
name=outerRingDrawable, value=0x7f02008a
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, 
name=pointDrawable, value=0x0108039e
W: Could not decode attr value, using undecoded value instead: ns=prvandroid, 
name=glowRadius, value=0x01050020
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=0x01080779
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=drawable, value=0x010806d1
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=drawable, value=0x010806d1
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=drawable, value=0x010806d1
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=drawable, value=0x01080cc2
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=drawable, value=0x01080cc2
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 
0x01040720
    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(ResReferenceValue.java:62)
    at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
    at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValueExt(ResScalarValue.java:86)
    at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:55)
    at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlItemValue(ResScalarValue.java:48)
    at brut.androlib.res.data.value.ResArrayValue.getType(ResArrayValue.java:74)
    at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:50)
    at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
    at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
    at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
    at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
    at brut.apktool.Main.cmdDecode(Main.java:146)
    at brut.apktool.Main.main(Main.java:77)

When i want recompile systemui

Exception in thread "main" brut.androlib.AndrolibException: 
brut.directory.PathNotExist: apktool.yml
    at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
    at brut.androlib.Androlib.build(Androlib.java:183)
    at brut.androlib.Androlib.build(Androlib.java:176)
    at brut.apktool.Main.cmdBuild(Main.java:228)
    at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
    at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
    at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
    ... 4 more

What version of the product are you using? On what operating system?

Android JB 4.2.2 samsung galaxy mega 5.8

Please provide any additional information below.

How to fix this ? 

Original issue reported on code.google.com by hoaaamer...@gmail.com on 21 Nov 2013 at 3:03

GoogleCodeExporter commented 8 years ago
I have the same problem when I try recompile each app :( 

Original comment by anitamat...@gmail.com on 22 Nov 2013 at 3:04

GoogleCodeExporter commented 8 years ago
import all the apk files in /system/framework/ as framework and try again.

Original comment by dongfangxunlei@gmail.com on 23 Nov 2013 at 3:20

GoogleCodeExporter commented 8 years ago
How about recompiling the systemui.apk ? When I want to recompile it , it shows 
Exception in thread "main" brut.androlib.AndrolibException: 
brut.directory.PathNotExist: apktool.yml
    at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
    at brut.androlib.Androlib.build(Androlib.java:183)
    at brut.androlib.Androlib.build(Androlib.java:176)
    at brut.apktool.Main.cmdBuild(Main.java:228)
    at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
    at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
    at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
    ... 4 more

Original comment by hoaaamer...@gmail.com on 23 Nov 2013 at 7:18

GoogleCodeExporter commented 8 years ago
"PathNotExist: apktool.yml" means decompile failed.

Original comment by dongfangxunlei@gmail.com on 24 Nov 2013 at 5:21

GoogleCodeExporter commented 8 years ago
So how to fix it ?

Original comment by hoaaamer...@gmail.com on 25 Nov 2013 at 6:47