|
|
@ -875,6 +875,7 @@ public class MpMasterService extends Service {
|
|
|
|
Intent relaunchIntent = new Intent();
|
|
|
|
Intent relaunchIntent = new Intent();
|
|
|
|
|
|
|
|
|
|
|
|
if (Build.TIME < 1744905600000L) {
|
|
|
|
if (Build.TIME < 1744905600000L) {
|
|
|
|
|
|
|
|
// Earlier than 2025-04-18
|
|
|
|
relaunchIntent.putExtra("cmd", "reboot");
|
|
|
|
relaunchIntent.putExtra("cmd", "reboot");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
relaunchIntent.putExtra("cmd", "forceLaunch");
|
|
|
|
relaunchIntent.putExtra("cmd", "forceLaunch");
|
|
|
@ -882,6 +883,7 @@ public class MpMasterService extends Service {
|
|
|
|
relaunchIntent.putExtra("pkname", MicroPhotoContext.PACKAGE_NAME_MPMASTER);
|
|
|
|
relaunchIntent.putExtra("pkname", MicroPhotoContext.PACKAGE_NAME_MPMASTER);
|
|
|
|
relaunchIntent.setAction("com.xy.xsetting.action");
|
|
|
|
relaunchIntent.setAction("com.xy.xsetting.action");
|
|
|
|
relaunchIntent.setPackage("com.android.systemui");
|
|
|
|
relaunchIntent.setPackage("com.android.systemui");
|
|
|
|
|
|
|
|
relaunchIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
|
|
|
|
// getApplicationContext().sendBroadcast(restartIntent);
|
|
|
|
// getApplicationContext().sendBroadcast(restartIntent);
|
|
|
|
|
|
|
|
|
|
|
|
long launchTs = System.currentTimeMillis() + (mHeartbeatDuration + 120) * 1000;
|
|
|
|
long launchTs = System.currentTimeMillis() + (mHeartbeatDuration + 120) * 1000;
|
|
|
|