dex

Is it possible to decompile an Android .apk file?

99封情书 提交于 2019-11-26 03:06:22
Are the users able to convert the apk file of my application back to the actual code? If they do - is there any way to prevent this? Matthew Flaschen First, an apk file is just a modified jar file. So the real question is can they decompile the dex files inside. The answer is sort of. There are already disassemblers, such as dedexer and smali . You can expect these to only get better, and theoretically it should eventually be possible to decompile to actual Java source (at least sometimes). See the previous question decompiling DEX into Java sourcecode . What you should remember is obfuscation

How to shrink code - 65k method limit in dex

会有一股神秘感。 提交于 2019-11-26 03:04:39
问题 I have a rather large Android app that relies on many library projects. The Android compiler has a limitation of 65536 methods per .dex file and I am surpassing that number. There are basically two paths you can choose (at least that I know of) when you hit the method limit. 1) Shrink your code 2) Build multiple dex files (see this blog post) I looked into both and tried to find out what was causing my method count to go so high. The Google Drive API takes the biggest chunk with the Guava

Is it possible to decompile an Android .apk file?

て烟熏妆下的殇ゞ 提交于 2019-11-26 01:12:45
问题 Are the users able to convert the apk file of my application back to the actual code? If they do - is there any way to prevent this? 回答1: First, an apk file is just a modified jar file. So the real question is can they decompile the dex files inside. The answer is sort of. There are already disassemblers, such as dedexer and smali. You can expect these to only get better, and theoretically it should eventually be possible to decompile to actual Java source (at least sometimes). See the

decompiling DEX into Java sourcecode

痞子三分冷 提交于 2019-11-26 00:18:30
问题 How can one decompile Android DEX (VM bytecode) files into corresponding Java sourcecode? 回答1: It's easy Get these tools: 1) dex2jar to translate dex files to jar files 2) jd-gui to view the java files in the jar The source code is quite readable as dex2jar makes some optimizations. Procedure: And here's the procedure on how to decompile: Step 1: Convert classes.dex in test_apk-debug.apk to test_apk-debug_dex2jar.jar d2j-dex2jar.sh -f -o output_jar.jar apk_to_decompile.apk d2j-dex2jar.sh -f

Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;

天大地大妈咪最大 提交于 2019-11-25 22:57:44
问题 Since updating to ADT 14 I can no longer build my project. It was building fine prior to updating. The error: [2011-10-23 16:23:29 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/myapp/R$array; [2011-10-23 16:23:29 - myProj] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/myapp/R$array; Similar issues have been reported and I have tried the suggestions there including Restarting Eclipse . Cleaning the project and rebuild - Disable

Unable to execute dex: method ID not in [0, 0xffff]: 65536

北城以北 提交于 2019-11-25 22:20:29
问题 I have seen various versions of the dex erros before, but this one is new. clean/restart etc won\'t help. Library projects seems intact and dependency seems to be linked correctly. Unable to execute dex: method ID not in [0, 0xffff]: 65536 Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 or Cannot merge new index 65950 into a non-jumbo instruction or java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not

Unable to merge dex

落爺英雄遲暮 提交于 2019-11-25 21:49:25
问题 I have Android Studio Beta. I created a new project with compile my old modules but when I tried launching the app it did not launch with the message: Error:Execution failed for task \':app:transformDexArchiveWithExternalLibsDexMergerForDebug\'. com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex But I don\'t know how to solve this error. I googled this for hours but with no success. My project gradle: // Top-level build file where you can add configuration options