惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
量子位
G
Google Developers Blog
J
Java Code Geeks
N
Netflix TechBlog - Medium
博客园 - 聂微东
宝玉的分享
宝玉的分享
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
月光博客
月光博客
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
雷峰网
雷峰网
M
MIT News - Artificial intelligence
T
Tailwind CSS Blog
V
Visual Studio Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
T
The Blog of Author Tim Ferriss

博客园 - loz2015

unity 游戏apk 分析 体育apk重打包记录 Tiktok 核心字段 IOS Tiktok(43.6.1)抓包 android java层字符串加密对抗 Android 设置no-proxy抓包处理 IDA dump so vm demo加固分析 Android Lazada抓包 Android 闲鱼抓包 Mirroring360 破解分析 电脑 直接下载cyida deb Alibaba Canal config 漏洞验证 检测magiskhide MAC 下Android ROM 提取文件 IDAPython 插件开发 Android ollvm 集成 某iOS APP反抓包分析 lark反调试 luajava逆向总结 ios app 可执行文件是中文名称如何进行调试
jeb4 增加内存
loz2015 · 2022-08-29 · via 博客园 - loz2015
#!/bin/bash

# Start-up script for JEB (macOS)

# Prefer local JRE
JAVA=bin/runtime/bin/java
if [ ! -f "$JAVA" ]; then

  # Prefer a JDK over a JRE
  if [ -z "$JAVA_HOME" ]; then
    JAVA=`which java`
  else
    JAVA=$JAVA_HOME/bin/java
  fi

  # Note: If the Java path generation does not yield a correct result, manually set
  # the JAVA variable (defined above) to a correct value
  if [ ! -f "$JAVA" ]; then
    echo "JEB requires a Java JRE or JDK version 8 or above."
    echo "It is also recommended to set JAVA_HOME and JRE_HOME environment variables to point to your JDK"
    exit -1
  fi
fi

cd "`dirname "$0"`"
BASEDIR=`pwd -P`
cd - >/dev/null

JVMOPT=
if [ -f "$BASEDIR/jvmopt.txt" ]; then
  JVMOPT=$(<"$BASEDIR/jvmopt.txt")
fi
# Manual override for JVM options: uncomment the following line and adjust if necessary
# JVMOPT="-Xss4M -Xmx8G"

INSTALLER=$BASEDIR/bin/app/jebi.jar
"$JAVA" -jar "$INSTALLER" --di --up --timeout=0 -- "$@"
RETCODE=$?
if [ $RETCODE -lt 0 ]; then
  exit $RETCODE
fi

if [ "$1" == "-c" ]; then
  shift
  "$JAVA" $JVMOPT -Xmx10240m -jar "$BASEDIR/bin/app/jeb.jar" "$@"
  exit 0
fi

if [ "$1" == "-j" ]; then
  shift
else
  JEB=$BASEDIR/bin/jeb.app/Contents/MacOS/jeb
  if [ -f "$JEB" ]; then
    chmod +x "$JEB"
    # DISABLING NATIVE LAUNCHER ON MACOS (April 2, 2019)
    # the native launcher creates problems when spawning processes and attempting to read their output
    # this can lead to difficulties in using Debugger modules, for instance
    # (if things work fine on your system, you may choose to uncomment the lines below)
    #echo "Starting JEB Desktop Client... (logging to bin/jeb.log)"
    #echo "(If it does not start on your system, use the '-j' flag: ./jeb_macos.sh -j)"
    #nohup "$JEB" --cd="$PWD" "$@" </dev/null &>$BASEDIR/bin/jeb.log &
    #exit 0
  fi
fi
"$JAVA" $JVMOPT -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts  -Xmx10240m -jar "$BASEDIR/bin/app/jebc.jar" "$@"
$JAVA  -Xmx4096m -XX:-UseParallelGC -XX:MinHeapFreeRatio=15 -jar $SCRIPTDIR/bin/cl/jeb.jar -c "$@"
exit 0

posted @ 2022-08-29 10:44  loz2015  阅读(357)  评论()    收藏  举报