1.4.0318 修复升级后设置默认桌面,对接小程序管控,增加专注模式,接管系统打开app

This commit is contained in:
2024-03-19 09:30:51 +08:00
parent 367c8e333c
commit 124696a9dd
26 changed files with 1299 additions and 491 deletions

View File

@@ -15,10 +15,17 @@ public class AoleyunActivityController extends IActivityController.Stub {
@Override
public boolean activityStarting(Intent intent, String pkg) {
Log.e(TAG, "activityStarting: " + pkg + ", intent= " + intent);
//retrun false;//false 则不会启动,直接返回。
boolean status = JGYUtils.getInstance().isForbid(pkg);
Log.e(TAG, "activityStarting: " + pkg + "start = " + status);
return status;
//false 则不会启动,直接返回。
if (JGYUtils.getInstance().isCloudLessonMod(pkg)) {
if (JGYUtils.getInstance().isForbid(pkg)) {
return true;
} else {
return false;
}
} else {
ToastUtil.show("专注模式只允许使用指定应用");
return false;
}
}
@Override