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?
Related
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!
So Im porting miui v5 and has a liitle problem with apktool. It cant compile framework.jar. I need answer fast because bootable version is almost done.
[email protected]:/home/ja/patchrom/live# make fullota
>>> build out/framework.jar...
/home/ja/patchrom/tools/add_miui_smail.sh >/dev/null out/framework_miui out/framework
/home/ja/patchrom/tools/apktool --quiet b out/framework out/framework.jar
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 @0x1b0f20 (Lcom/google/android/util/AbstractMessageParser$Token$Type;->values()[Lcom/google/android/util/AbstractMessageParser$Token$Type
make: *** [out/framework.jar] Błąd 1
And as you probably see working on ubuntu 12.04
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.
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
I did a full backup using adb of my device before I began flashing ROMs this weekend, and now I am at a point where I want to reinstall some applications. I am trying to restore Crimecity, but I am receiving an error when I try to pack the game. I'm fairly new at all of this, so I don't even know where to begin to troubleshoot. Any help would be appreciated!
Blev:Android ablevins$ java -jar abe.jar pack crimecity.tar crimecity.ab crimecity
Strong AES encryption allowed
key bytes: 46F0C66079B12475BFECB838B003A3A98277AF856FF5D5E0F7E5A2325FE0D65B
salt bytes: 6EB663AED5E069DA4AE5B0174AE9B87FBDCDAB83357204503B8C2595A93EF6C81292FAA3F4751B13B32839CAD9D7BA8DCC57951B684C06C17C4CC3517B8654AF
MK as string: [F??`y?$u???8????w??o??????2_??[]
Key format: RAW
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NoSuchMethodError: java.util.zip.DeflaterOutputStream.<init>(Ljava/io/OutputStream;Ljava/util/zip/Deflater;Z)V
at org.nick.abe.AndroidBackup.packTar(AndroidBackup.java:390)
at org.nick.abe.Main.main(Main.java:67)
... 5 more
Blev:Android ablevins$ java -jar abe.jar pack crimecity.tar crimecity.ab
Strong AES encryption allowed
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NoSuchMethodError: java.util.zip.DeflaterOutputStream.<init>(Ljava/io/OutputStream;Ljava/util/zip/Deflater;Z)V
at org.nick.abe.AndroidBackup.packTar(AndroidBackup.java:390)
at org.nick.abe.Main.main(Main.java:67)
... 5 more
Blev:Android ablevins$