Commit cc4e32ab authored by Administrator's avatar Administrator

zelda引擎模式下,可通过API清除所有数据

parent 10509498
......@@ -4,6 +4,8 @@ import android.annotation.SuppressLint;
import android.content.Context;
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.scheduler.SchedulerTaskBeanHandler;
......@@ -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/ratel_white_dir/packageName/ <br>
* 如: /sdcard/ratel_white_dir/com.kanxue.container.demoapp <br>
......
......@@ -146,6 +146,11 @@ public interface VirtualEnv {
String originIccSerialNumber();
/**
* 清理用户数据,主要用在zelda模式和startUp模式下。请注意,如果app的sdcard没有隔离,那么这个调用可能无法真正完全清空
*/
void cleanPkgData();
/**
* 序列号为各厂商自定义,正常情况下,在同一个厂商的手机里面是唯一的。所以可以作为唯一的设备信息标记
*
* @return 被替换前的序列号
......
......@@ -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_8 = "1.2.8";
public static final String V_1_3_8 = "1.3.8";
public static final String V_1_3_9 = "1.3.9";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment