version:2.7

fix:更新桌面唤醒
add:
This commit is contained in:
2022-02-25 14:13:57 +08:00
parent a51b5ff4df
commit 0f081cd8d5
4 changed files with 9 additions and 9 deletions

View File

@@ -341,8 +341,6 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
Observable.create(updateSubscribe)
.throttleFirst(6, TimeUnit.HOURS)
.subscribe(updateObserver);
JGYUtils.getInstance().wakeUpAppstore();
JGYUtils.getInstance().wakeUpDeviceInfo();
startService(new Intent(Launcher.this, MainService.class));
if (DEBUG_STRICT_MODE) {
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
@@ -1222,6 +1220,8 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
mPasswd.getPassword(System.currentTimeMillis());
TimeUtils.getInstance().setAppPackageName(BuildConfig.APPLICATION_ID);
HTTPInterface.sendRunningApp(Launcher.this);
JGYUtils.getInstance().wakeUpAppstore();
JGYUtils.getInstance().wakeUpDeviceInfo();
}
private void removeRecentTask() {

View File

@@ -87,7 +87,8 @@ public class MainService extends Service {
Log.e(TAG, "TimeChangedReceiver:" + "timezone changed");
} else if (Intent.ACTION_TIME_TICK.equals(intent.getAction())) {
Log.e(TAG, "TimeChangedReceiver:" + "time tick");
isScreenshot();
// TODO: 2022/2/23 暂时屏蔽
// isScreenshot();
}
}
}

View File

@@ -192,19 +192,18 @@ public class JGYUtils {
public static final String CLASS_DEVICEINFO = "com.aoleyun.sn.receiver.BootReceiver";
public static final String CLASS_APPSTORE = "com.aoleyun.appstore.receiver.BootReceiver";
public static final String ACTION_DEVICEINFO = "com.aoleyun.sn.intent.action.BOOT_COMPLETED";
public static final String ACTION_APPSTORE = "com.aoleyun.appstore.intent.action.BOOT_COMPLETED";
public static final String BOOT_COMPLETED = "aoleyun.intent.action.BOOT_COMPLETED";
public void wakeUpDeviceInfo() {
//启动设备信息
Intent bootIntent = new Intent(ACTION_DEVICEINFO);
Intent bootIntent = new Intent(BOOT_COMPLETED);
bootIntent.setComponent(new ComponentName(PACKAGE_DEVICEINFO, CLASS_DEVICEINFO));
mContext.sendBroadcast(bootIntent);
}
public void wakeUpAppstore() {
//启动应用市场
Intent bootIntent = new Intent(ACTION_APPSTORE);
Intent bootIntent = new Intent(BOOT_COMPLETED);
bootIntent.setComponent(new ComponentName(PACKAGE_APPSTORE, CLASS_APPSTORE));
mContext.sendBroadcast(bootIntent);
}