Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
R
RatelApi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ratel
RatelApi
Commits
72adadc1
Commit
72adadc1
authored
Aug 31, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加脱壳机API
parent
3a6e69a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
RatelToolKit.java
src/main/java/com/virjar/ratel/api/RatelToolKit.java
+1
-0
RatelUnpack.java
src/main/java/com/virjar/ratel/api/RatelUnpack.java
+28
-0
No files found.
src/main/java/com/virjar/ratel/api/RatelToolKit.java
View file @
72adadc1
...
...
@@ -109,6 +109,7 @@ public class RatelToolKit {
*/
public
static
boolean
killAppIfDetectANR
=
false
;
public
static
RatelUnpack
ratelUnpack
=
null
;
/**
* 当前app运行在那个引擎下
...
...
src/main/java/com/virjar/ratel/api/RatelUnpack.java
0 → 100644
View file @
72adadc1
package
com
.
virjar
.
ratel
.
api
;
import
java.io.File
;
import
java.util.List
;
/**
* 脱壳机实现,支持指令抽取和修复、支持多classLoader、支持热加载classdump、
* 不支持vmp、不支持主动调用(可以在业务层模拟主动调用)
*/
public
interface
RatelUnpack
{
/**
* 开启脱壳机,ratel框架将会影响虚拟机代码执行流程。这可能导致框架不稳定,已经影响app执行性能<br>
* 一般情况不建议随时开启脱壳机<br>
* 请注意,脱壳机开启需要在app运行前执行,否则错过dump时间
*
* @param workDir 需要指定一个工作目录,让脱壳机dump相关加密的指令.参数可以为空,为空系统自动分配
*/
void
enableUnPack
(
File
workDir
);
/**
* 根据一个className搜索dex,在存在热修复等场景下可能有多个dex,每个dex使用字节数组传递二进制内容
*
* @param className 一个特定的class
* @return 包含这个class定义的dex文件,可能有多个
*/
List
<
byte
[]>
findDumpedDex
(
String
className
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment