1.4.0705 优化后台,增加全局黑名单
This commit is contained in:
@@ -297,12 +297,13 @@ public class GuardService extends Service {
|
||||
/*在8.0以上 除了开机广播其他广播基本上没有用
|
||||
*当静默安装升级时,app不会被唤醒,只有通过显示广播唤醒
|
||||
* */
|
||||
Intent intent1 = new Intent(BootReceiver.BOOT_COMPLETED);
|
||||
intent1.setComponent(new ComponentName(PackageNames.APPSTORE, PackageNames.APP_STORE_BOOTRECEIVER));
|
||||
// 携带数据
|
||||
//intent1.putExtra("test", "我是来测 A 应用的Android 8.0 系统静态广播的测试数据");
|
||||
// 启动发送广播
|
||||
sendBroadcast(intent1);
|
||||
// Intent intent1 = new Intent(BootReceiver.BOOT_COMPLETED);
|
||||
// intent1.setComponent(new ComponentName(PackageNames.APPSTORE, PackageNames.APP_STORE_BOOTRECEIVER));
|
||||
// // 携带数据
|
||||
// //intent1.putExtra("test", "我是来测 A 应用的Android 8.0 系统静态广播的测试数据");
|
||||
// // 启动发送广播
|
||||
// sendBroadcast(intent1);
|
||||
|
||||
JGYUtils.startServices(GuardService.this);
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform) {
|
||||
int setting_statusbar = Settings.System.getInt(context.getContentResolver(), CommonConfig.AOLE_ACTION_HIDE_STATUS_BAR, 0);
|
||||
@@ -330,7 +331,7 @@ public class GuardService extends Service {
|
||||
long time = System.currentTimeMillis();
|
||||
getLockState("1", String.valueOf(time));
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
JGYUtils.getInstance().wakeUpAoleyunAPP();
|
||||
// JGYUtils.getInstance().wakeUpAoleyunAPP();
|
||||
JGYUtils.getInstance().deleteScreenshots();
|
||||
}
|
||||
// sendScreenStatus(2);
|
||||
|
||||
Reference in New Issue
Block a user