This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 用命令行调用android虚拟机里so库文件JNI接口 | |
| 可用于破解用native代码签名接口调用的手机应用, 而无需反编译so代码 | |
| 参考: https://davanum.wordpress.com/2007/12/04/command-line-java-on-dalvikvm/ | |
| 1.com/app/safe目录下放JNI声明文件sign.java(对应于从要破解的手机应用apk内lib文件夹内复制出的sign.so文件): | |
| package com.app.safe; | |
| public class sign | |
| { | |
| static |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * helper class to check the operating system this Java VM runs in | |
| * http://stackoverflow.com/questions/228477/how-do-i-programmatically-determine-operating-system-in-java | |
| * compare to http://svn.terracotta.org/svn/tc/dso/tags/2.6.4/code/base/common/src/com/tc/util/runtime/Os.java | |
| * http://www.docjar.com/html/api/org/apache/commons/lang/SystemUtils.java.html | |
| */ | |
| public final class OsCheck { | |
| /** | |
| * types of Operating Systems | |
| */ |