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
cc4e32ab
Commit
cc4e32ab
authored
Mar 27, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zelda引擎模式下,可通过API清除所有数据
parent
10509498
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
RatelToolKit.java
src/main/java/com/virjar/ratel/api/RatelToolKit.java
+8
-0
VirtualEnv.java
src/main/java/com/virjar/ratel/api/VirtualEnv.java
+5
-0
RatelEngineHistory.java
...in/java/com/virjar/ratel/api/hint/RatelEngineHistory.java
+1
-0
No files found.
src/main/java/com/virjar/ratel/api/RatelToolKit.java
View file @
cc4e32ab
...
@@ -4,6 +4,8 @@ import android.annotation.SuppressLint;
...
@@ -4,6 +4,8 @@ import android.annotation.SuppressLint;
import
android.content.Context
;
import
android.content.Context
;
import
com.virjar.ratel.api.hint.PostInited
;
import
com.virjar.ratel.api.hint.PostInited
;
import
com.virjar.ratel.api.hint.RatelEngineHistory
;
import
com.virjar.ratel.api.hint.RatelEngineVersion
;
import
com.virjar.ratel.api.providers.ContentProviderFakeRegister
;
import
com.virjar.ratel.api.providers.ContentProviderFakeRegister
;
import
com.virjar.ratel.api.scheduler.SchedulerTaskBeanHandler
;
import
com.virjar.ratel.api.scheduler.SchedulerTaskBeanHandler
;
...
@@ -109,6 +111,12 @@ public class RatelToolKit {
...
@@ -109,6 +111,12 @@ public class RatelToolKit {
/**
/**
* 当前app运行在那个引擎下
*/
@RatelEngineVersion
(
RatelEngineHistory
.
V_1_3_9
)
public
static
RatelEngine
ratelEngine
=
RatelEngine
.
APPEND_DEX
;
/**
* 虚拟化环境下,sdcard将会被隔离,导致无法往sdcard写入数据。但是如果ratel模块期望通过sdcard和其他app交换数据,那么需要通过一个sdcard白名单进行放行<br>
* 虚拟化环境下,sdcard将会被隔离,导致无法往sdcard写入数据。但是如果ratel模块期望通过sdcard和其他app交换数据,那么需要通过一个sdcard白名单进行放行<br>
* 该路径规则为: /sdcard/ratel_white_dir/packageName/ <br>
* 该路径规则为: /sdcard/ratel_white_dir/packageName/ <br>
* 如: /sdcard/ratel_white_dir/com.kanxue.container.demoapp <br>
* 如: /sdcard/ratel_white_dir/com.kanxue.container.demoapp <br>
...
...
src/main/java/com/virjar/ratel/api/VirtualEnv.java
View file @
cc4e32ab
...
@@ -146,6 +146,11 @@ public interface VirtualEnv {
...
@@ -146,6 +146,11 @@ public interface VirtualEnv {
String
originIccSerialNumber
();
String
originIccSerialNumber
();
/**
/**
* 清理用户数据,主要用在zelda模式和startUp模式下。请注意,如果app的sdcard没有隔离,那么这个调用可能无法真正完全清空
*/
void
cleanPkgData
();
/**
* 序列号为各厂商自定义,正常情况下,在同一个厂商的手机里面是唯一的。所以可以作为唯一的设备信息标记
* 序列号为各厂商自定义,正常情况下,在同一个厂商的手机里面是唯一的。所以可以作为唯一的设备信息标记
*
*
* @return 被替换前的序列号
* @return 被替换前的序列号
...
...
src/main/java/com/virjar/ratel/api/hint/RatelEngineHistory.java
View file @
cc4e32ab
...
@@ -6,4 +6,5 @@ public class RatelEngineHistory {
...
@@ -6,4 +6,5 @@ public class RatelEngineHistory {
public
static
final
String
V_1_2_7
=
"1.2.7"
;
public
static
final
String
V_1_2_7
=
"1.2.7"
;
public
static
final
String
V_1_2_8
=
"1.2.8"
;
public
static
final
String
V_1_2_8
=
"1.2.8"
;
public
static
final
String
V_1_3_8
=
"1.3.8"
;
public
static
final
String
V_1_3_8
=
"1.3.8"
;
public
static
final
String
V_1_3_9
=
"1.3.9"
;
}
}
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