apktool反编译apk出错如下:
Exception in thread "main" org.jf.util.ExceptionWithContext: Encountered small uint that is out of range at offset 0x38
报错的原因是apk中不止smali目录下面的dex文件,其他地方比如assets下面也有, 而assets下面的dex文件不是正常的dex文件,所以反编译就会出错。
解决方法:
添加–only-main-classes参数即可,示例:
apktool.jar d game.apk --only-main-classes