We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java
proto
下载某个历史版本贴吧客户端 apk(豌豆荚 apkpure 欢迎补充)并置于path/to/apk下
path/to/apk
下载最新版本dex-tools然后解压并cd进解压路径
cd
修改文件d2j_invoke.bat(win)/d2j-dex2jar.sh(*nix)中的-Xms512m -Xmx2048m为-Xmx3g -Xmx4g(如果您有至少 4G 空闲内存,也可以使用2g, 3g但会更频繁触发 GC 导致使用更多 cpu)
d2j_invoke.bat
d2j-dex2jar.sh
-Xms512m -Xmx2048m
-Xmx3g -Xmx4g
2g, 3g
sed -i -e 's/-Xms512m -Xmx2048m/-Xms3g -Xmx4g/' d2j{-dex2jar.sh,_invoke.bat}
以避免途中发生java.lang.OutOfMemoryError: Java heap space OutOfMemoryError ThexXTURBOXx/dex2jar#13 至少需要设置 2G 左右的-Xmx,cpu 使用稳定单核,就像是在开大型 mcmod 整合包服务端 还建议通过更改文件中使用的java路径以切换至graalvm
java.lang.OutOfMemoryError: Java heap space
-Xmx
执行并等待数十分钟
.\d2j-dex2jar.bat "path\to\apk" -o "path\to\jar"
./d2j-dex2jar.sh "path/to/apk" -o "path/to/jar"
其中path/to/jar为您期望的输出 jar 文件路径
path/to/jar
下载jd-cli https://search.maven.org/artifact/com.github.kwart.jd/jd-cli Missing binary release? intoolswetrust/jd-cli#62 (comment)
执行
java -jar jd-cli-1.2.1.jar -p tbclient -ods classes "path/to/jar"
路径classes/jar文件名/tbclient下便是 repo 的java目录下的所有.class文件
classes/jar文件名/tbclient
.class
使用本 repo 提供的squareWireProtoBufJavaGeneratedClassesDecompiler.php将这些.class java 源码转换为.proto文件
squareWireProtoBufJavaGeneratedClassesDecompiler.php
.proto
php squareWireProtoBufJavaGeneratedClassesDecompiler.php --in="classes/jar文件名/tbclient" --out=proto
The text was updated successfully, but these errors were encountered:
ls -1 | shuf | sed 's/\.apk$//' | parallel -j 63 --eta --progress '../jadx/bin/jadx -ds {}/src -dr {}/res -j 1 --show-bad-code --fs-case-sensitive --comments-level debug --log-level error {}.apk 2>&1 > {}.log'
瓶颈是石头盘 建议直接/dev/shm内存盘
/dev/shm
Sorry, something went wrong.
1.0.0
12.51.7.1
根据starry神 @Starry-OvO 此前于 HuanCheng65/TiebaLite#150 (comment) 的最高指示精神 建议使用jadx而不是缝合dex2jar+jd-cli来进行反编译流程:
jadx
dex2jar
jd-cli
dex
jar
jd
pxb1988
ThexXTURBOXx
intoolswetrust
12.x
--optmize-synchronized
--reuse-reg
No branches or pull requests
下载某个历史版本贴吧客户端 apk(豌豆荚 apkpure 欢迎补充)并置于
path/to/apk
下下载最新版本dex-tools然后解压并
cd
进解压路径修改文件
d2j_invoke.bat
(win)/d2j-dex2jar.sh
(*nix)中的-Xms512m -Xmx2048m
为-Xmx3g -Xmx4g
(如果您有至少 4G 空闲内存,也可以使用2g, 3g
但会更频繁触发 GC 导致使用更多 cpu)sed -i -e 's/-Xms512m -Xmx2048m/-Xms3g -Xmx4g/' d2j{-dex2jar.sh,_invoke.bat}
以避免途中发生
java.lang.OutOfMemoryError: Java heap space
OutOfMemoryError ThexXTURBOXx/dex2jar#13至少需要设置 2G 左右的
-Xmx
,cpu 使用稳定单核,就像是在开大型 mcmod 整合包服务端还建议通过更改文件中使用的
java
路径以切换至graalvm执行并等待数十分钟
其中
path/to/jar
为您期望的输出 jar 文件路径下载jd-cli https://search.maven.org/artifact/com.github.kwart.jd/jd-cli Missing binary release? intoolswetrust/jd-cli#62 (comment)
执行
java -jar jd-cli-1.2.1.jar -p tbclient -ods classes "path/to/jar"
路径
classes/jar文件名/tbclient
下便是 repo 的java
目录下的所有.class
文件使用本 repo 提供的
squareWireProtoBufJavaGeneratedClassesDecompiler.php
将这些.class
java 源码转换为.proto
文件php squareWireProtoBufJavaGeneratedClassesDecompiler.php --in="classes/jar文件名/tbclient" --out=proto
The text was updated successfully, but these errors were encountered: