hey,
i need help!
i used this code for extracting the framework-res.apk to edit the .xml...
Code:
java -jar apktool.jar d framework-res out\framework-res.apk
-----
xml's edited (battery)
-----
the i have to use this code
Code:
java -jar apktool.jar b framework-res out\framework-res.apk
but then this happens:
Code:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.
C:\Users\Jürgen>cd /apktool
C:\apktool>java -jar apktool.jar b framework-res out\framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Unknown Source)
... 5 more
C:\apktool>
The exception is PathNotExist. Does the C:\apktool\framework-res folder exist?
Yes it does
Sent from my X10i using XDA App
Are you on the same computer and in the same folder as you were when you decompiled?
Can you decompile again successfully?
_calum_ said:
Are you on the same computer and in the same folder as you were when you decompiled?
Can you decompile again successfully?
Click to expand...
Click to collapse
Yes and no
The apktool.yml was not there... i put it in and
It worked for the first time but then... error, error, error, error...
Sent from my X10i using XDA App
PoTi_96 said:
Yes and no
The apktool.yml was not there... i put it in and
It worked for the first time but then... error, error, error, error...
Click to expand...
Click to collapse
The only files in my folder are apktool.jar and aapt.exe. Is java set up properly?
What errors are you getting when you try to decompile again? The same one you posted before?
_calum_ said:
The only files in my folder are apktool.jar and aapt.exe. Is java set up properly?
What errors are you getting when you try to decompile again? The same one you posted before?
Click to expand...
Click to collapse
don't know how, but i got it working 0o
btw.. thanks!
Alternatively, you could use MrRusch's 2.1 unmodified apart from the SCB framework-res.apk, and just change the images.
Hi guys i was trying to recompile Framework.jar and im getting this, i searched and didn't find that much on it.
[email protected]:~/apktool$ ./apktool b -f -d out
I: Smaling...
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: method index is too large.
at org.jf.dexlib.Util.ExceptionWithContext.withContex t(ExceptionWithContext.java:54)
at org.jf.dexlib.Item.addExceptionContext(Item.java:1 77)
at org.jf.dexlib.Item.writeTo(Item.java:120)
at org.jf.dexlib.Section.writeTo(Section.java:119)
at org.jf.dexlib.DexFile.writeTo(DexFile.java:716)
at brut.androlib.src.DexFileBuilder.getAsByteArray(De xFileBuilder.java:75)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBu ilder.java:58)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:52)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder. java:37)
at brut.androlib.Androlib.buildSourcesSmali(Androlib. java:257)
at brut.androlib.Androlib.buildSources(Androlib.java: 214)
at brut.androlib.Androlib.build(Androlib.java:205)
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: java.lang.RuntimeException: method index is too large.
at org.jf.dexlib.Code.Format.Instruction35c.writeInst ruction(Instruction35c.java:102)
at org.jf.dexlib.Code.Instruction.write(Instruction.j ava:57)
at org.jf.dexlib.CodeItem.writeItem(CodeItem.java:258 )
at org.jf.dexlib.Item.writeTo(Item.java:117)
... 12 more
code_item @0x1c4fc0 (Lcom/meizu/widget/RoundCornerContactBadge$BorderType;->values()[Lcom/meizu/widget/RoundCornerContactBadge$BorderType
Click to expand...
Click to collapse
How can i fix this?
I wanna ask how to decompile LINE app.. There are lots of outdated steps which i had followed and not working.
I installed framework-res from my zenfone 5
I tried to decompile line apk and it returns:
Code:
D:\Louis' Backup\Project\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse>apktool d -f linemod.apk lin
emod
I: Baksmaling...
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
Please, help me with decompiling line
i cant decompile "Whatsapp.apk"
Always showing this error " could not decode arsc file"
how to solve this problem pls help me
E:\AndroidMultitool\Program_Files>apktool.bat d WhatsApp.apk
I: Using Apktool 2.0.0-Beta9 on WhatsApp.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:54)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:604)
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:49)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:93)
at brut.apktool.Main.cmdDecode(Main.java:169)
at brut.apktool.Main.main(Main.java:85)
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:43)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:95
)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 7 more
When I tried decompiling a new folder is created and when I opened there I can see hundreds of "SMAIL" file ,I can't find Resource file and any XML file here !!(I need AndroidManifest.xml
Code:---
D:\apkfolder>apktool d -f music.apk newfolder
I: Baksmaling...
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
vvnithin said:
When I tried decompiling a new folder is created and when I opened there I can see hundreds of "SMAIL" file ,I can't find Resource file and any XML file here !!(I need AndroidManifest.xml
Code:---
D:\apkfolder>apktool d -f music.apk newfolder
I: Baksmaling...
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
Hi and welcome to XDA.
I don't know which apktool you're using but you can try asking your query here [UTIL][Dec 31 2015] Apktool v2.0.3 - a tool for reverse engineering apk files Experts there may be able to help you.
Good luck