常见问题

jeb打开稍大一点的apk就会出现 out of memory

在jeb安装目录下使用如下方式修改启动jeb脚本,设置启动的内存

if [ "$1" == "-c" ]; then
  "$JAVA" -Xms8000m -Xmx8000m -XX:PermSize=8000m -XX:MaxPermSize=8000m -XX:MaxNewSize=8000m  -jar "$BASEDIR/bin/app/jeb.jar" "$@"
  exit 0
fi

JEB=$BASEDIR/bin/jeb
if [ -f "$JEB" ]; then
  chmod +x "$JEB"
  # disabling: launcher is not working as expected on Ubuntu
  # reverting to standard Jar launch
  #"$JEB" "$@"
  #exit 0
fi
"$JAVA"  -Xms8000m -Xmx8000m -XX:PermSize=8000m -XX:MaxPermSize=8000m -XX:MaxNewSize=8000m  -jar "$BASEDIR/bin/app/jebc.jar" "$@"
exit 0

jadx 反编译推荐配置

  • 并行线程数设置为1,占用内存虽然会比较大,但是不至于卡死,一般都会编译成功

  • 打开一致性检查,显示不一致的代码

  • 在jadx-gui脚本中配置内存 ,如果使用命令编译需要在jadx脚本中制定 DEFAULT_JVM_OPTS='"-Xms8000M" "-Xmx8g" "-Dawt.useSystemAAFontSettings=lcd" "-Dswing.aatext=true" "-XX:+UseG1GC"'