not able to deodex framework.odex - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

i get this error when trying to deodex framework.odex (framework,jar) file!
i use smali 1.3.3 and baksmali 1.3.3 jar files to deodex .
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: Index: 582010, Size: 90198
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:77)
at org.jf.dexlib.IndexedSection.getOptionalItemByIndex(IndexedSection.ja
va:64)
at org.jf.dexlib.DebugInfoItem.readItem(DebugInfoItem.java:106)
at org.jf.dexlib.Item.readFrom(Item.java:77)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.baksmali.main.main(main.java:269)
Caused by: java.lang.IndexOutOfBoundsException: Index: 582010, Size: 90198
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:75)
... 7 more
Error occured while retrieving the string_id_item item at index 582010
debug_info_item @0x7b1f6f
can anybody help me???
thanks!

Related

[Q] Unable to decompile framework-res.apk

I am unable to decompile my CM7's framework-res.apk, I tried both APK Manager and apktool but same error is shown, following is the log:
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\apktool>apktool d framework-res.apk
Destination directory (C:\apktool\framework-res) already exists. Use -f switch i
f you want to overwrite it.
C:\apktool>apktool d framework-res.apk -f
I: Loading resource table...
I: Loaded.
Exception in thread "main" brut.androlib.AndrolibException: Could not decode XML
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:53)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
00)
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:128)
at brut.apktool.Main.main(Main.java:65)
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1200(Unknown Source)
at java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
at java.util.zip.ZipFile$1.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.io.DataInputStream.readFully(Unknown Source)
at com.mindprod.ledatastream.LEDataInputStream.readInt(LEDataInputStream
.java:216)
at brut.util.DataInputDelegate.readInt(DataInputDelegate.java:61)
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:46)
at brut.androlib.res.decoder.AXmlResourceParser.doNext(AXmlResourceParse
r.java:799)
at brut.androlib.res.decoder.AXmlResourceParser.next(AXmlResourceParser.
java:98)
at brut.androlib.res.decoder.AXmlResourceParser.nextToken(AXmlResourcePa
rser.java:107)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.nextToken(XmlPul
lParserDelegate.java:105)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:45)
... 7 more
C:\apktool>
Click to expand...
Click to collapse
Guy, use 7zip manager, extract the package, apply the changes, copy all the contents of framework changed in the original framework-res.apk (through 7zip) It's an idea.
Changes in bools.xml requires decompiling I guess.
Bump
Sent from my LG-P500 using xda premium

Cannot sign any apk in Ubuntu..

Hey guys, i just installed Ubuntu in a VirtualBox, everything is great but i cannot figure out why i can't sign any apks.. here is the error that is generated.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/crypto/EncryptedPrivateKeyInfo
at com.android.signapk.SignApk.decryptPrivateKey(SignApk.java:124)
at com.android.signapk.SignApk.readPrivateKey(SignApk.java:154)
at com.android.signapk.SignApk.main(SignApk.java:436)
Caused by: java.lang.ClassNotFoundException: javax.crypto.EncryptedPrivateKeyInfo
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 3 more
I have java version 1.7.0_21 installed.

apktool error help

Hi all i keep getting errors when trying to recompile my SystemUI.apk it decompiles without error
[email protected]:~/Desktop/apktool1.5.2$ apktool b SystenUI
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
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.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:132)
at java.util.zip.ZipFile.<init>(ZipFile.java:169)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
I have googled like mad and says i haven't set the sdk path propperly wich i have or not the framework resources installed which i have im at a loss can ant one help please.

Holobackup - open *.ab file - AES Problem

I did an backup with the latest Version of Holobackup, know I need some files out of the back.
I started to work with abe.jar to open the backup file
Code:
c:\test>java -jar c:/test/abe.jar unpack c:/test/backup.ab c:/test/backup.tar test
Strong AES encryption disabled
Magic: ANDROID BACKUP
Version: 1
Compressed: 1
Algorithm: AES-256
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.security.InvalidKeyException: Illegal key size
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:320)
at org.nick.abe.Main.main(Main.java:58)
... 5 more
Caused by: java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1024)
at javax.crypto.Cipher.implInit(Cipher.java:790)
at javax.crypto.Cipher.chooseProvider(Cipher.java:849)
at javax.crypto.Cipher.init(Cipher.java:1348)
at javax.crypto.Cipher.init(Cipher.java:1282)
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:244)
... 6 more
The password is right ... so what did I do wrong?

[HELP]I cannot decompile Power Amp

Error code
Code:
Decompiling "poweramp.apk",
in workarea "_WorkArea1", using "apktool_1.SlimRoms.KitKat.jar"
With Tickle My Android V9.1.1
(tinyurl.com\ticklemyandroid)
----------------
I: Baksmaling...
unknown opcode encountered - 3f. Treating as nop.
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: Index: 16001, Size: 8944
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:77)
at org.jf.dexlib.Code.InstructionWithReference.lookupReferencedItem(InstructionWithReference
.java:88)
at org.jf.dexlib.Code.InstructionWithReference.<init>(InstructionWithReference.java:57)
at org.jf.dexlib.Code.Format.Instruction21c.<init>(Instruction21c.java:63)
at org.jf.dexlib.Code.Format.Instruction21c.<init>(Instruction21c.java:40)
at org.jf.dexlib.Code.Format.Instruction21c$Factory.makeInstruction(Instruction21c.java:112)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(InstructionIterator.java:82)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:77)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.dexlib.DexFile.<init>(DexFile.java:267)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:45)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:32)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:72)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:89)
at brut.apktool.Main.cmdDecode(Main.java:148)
at brut.apktool.Main.main(Main.java:77)
Caused by: java.lang.IndexOutOfBoundsException: Index: 16001, Size: 8944
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.jf.dexlib.IndexedSection.getItemByIndex(IndexedSection.java:75)
... 18 more
Error occured while retrieving the string_id_item item at index 16001
Error occured at code address 0
code_item @0x772f4
----------------
Decompile Not Successful!
Press any key to continue . . .
i using Tickle My Android And Apk Multi tool

Categories

Resources