dx
oman111
这个作者很懒,什么都没留下…
展开
-
Android】【转】Smail的寄存器
原文出自Smali项目的Wiki http://code.google.com/p/smali/wiki/Registers在Dalvik的字节码中,寄存器都是32位的,能够用来储存所有类型的值。对于long和double这样占用64位的类型,使用两个寄存器存放。指定方法的寄存器个数有两种方法来指定某个方法中有多少个可用的寄存器。 .registers指示符指定转载 2014-11-07 11:00:15 · 1145 阅读 · 0 评论 -
用eclipse调试dx,了解DEX文件生成
用eclipse调试dx,了解DEX文件生成 1,用eclipse生成Javaproject2,把dalvik/dx/src代码COPY到project src下3,这个时候是编译不过的,需要在project-> properties -> Java build path 加入ANDROID_ROOT/out/host/linux-x86/framework/dx.jar原创 2014-10-25 16:26:32 · 1580 阅读 · 0 评论 -
dx StringId StringData的生成
String Id的生成 131 sections =new Section[] {132 header,stringIds, typeIds, protoIds, fieldIds, methodIds,133 classDefs, wordData, typeLists, stringData, byteData,原创 2014-10-27 19:11:34 · 550 阅读 · 0 评论 -
dx Classdef的写入
com/android/dx/dex/file/ClassDefItem.java 170 public voidwriteTo(DexFile file, AnnotatedOutput out) {171 boolean annotates= out.annotates();172 TypeIdsSectiontypeIds = file原创 2014-10-30 19:18:52 · 588 阅读 · 0 评论 -
ART模式不支持odex到oat的转换
target/product/runtime_libart.mk 30 31 # We currently don't suport DEX_PREOPT for art 32DEX_PREOPT_DEFAULT := nostripping 33 34include $(SRC_TARGET_DIR)/product/runtime_common.mk原创 2014-11-05 15:07:24 · 3006 阅读 · 0 评论 -
apktool分析odex不能合并原因分析
华为hornor的apach-xml.odex不能合并 错误信息Error occurred while disassembling classLorg.apache.xalan.templates.ElemNumber; - skipping classjava.lang.RuntimeException: Invalid methodindex: 32 atorg.jf.dexlib2.analysis.InlineMethodResolver$InlineMethodRes原创 2014-12-02 16:27:13 · 2267 阅读 · 0 评论 -
怎样使模块不optimize
在Android.mk中加入如下一行:LOCAL_DEX_PREOPT := false原创 2015-07-29 19:36:22 · 416 阅读 · 0 评论