version:1.7.9

date:2021-11-01 14:02:44
fix:修复唤醒
add:
This commit is contained in:
2021-11-01 14:04:00 +08:00
parent e1c6d69428
commit c04d66726b
24 changed files with 658 additions and 246 deletions

View File

@@ -2,6 +2,7 @@ package com.info.sn.receiver;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
@@ -73,7 +74,21 @@ public class APKinstallReceiver extends BroadcastReceiver {
}
Log.e(TAG, "sendAppInfo: " + state + packageName);
newAppListener.setNewAppListener(packageName);
//启动应用市场
if ("com.jgyapp.market".equals(packageName)) {
Intent bootIntent = new Intent(BootReceiver.BOOT_COMPLETED);
bootIntent.setComponent(new ComponentName("com.jgyapp.market", "com.jgyapp.market.receiver.BootReceiver"));
context.sendBroadcast(bootIntent);
} else if ("com.uiuios.updatetools".equals(packageName)) {
//启动升级组件
Intent bootIntent = new Intent(BootReceiver.BOOT_COMPLETED);
bootIntent.setComponent(new ComponentName("com.uiuios.updatetools", "com.uiuios.updatetools.receiver.BootReceiver"));
context.sendBroadcast(bootIntent);
}
Intent bootIntent = new Intent(BootReceiver.BOOT_COMPLETED);
bootIntent.setComponent(new ComponentName("com.appstore.uiui", "com.appstore.uiui.receiver.BootReceiver"));
context.sendBroadcast(bootIntent);
newAppListener.setNewAppListener(packageName);
}
private void cleanLauncher3Cache() {
@@ -104,6 +119,7 @@ public class APKinstallReceiver extends BroadcastReceiver {
HTTPInterface.getAPPinfo(mContext);
HTTPInterface.getForceInstall(mContext);
HTTPInterface.getAllappPackage(mContext);
HTTPInterface.getAppInside(mContext);
}
@Override