Compare commits

...

2 Commits

Author SHA1 Message Date
Matthew bbcd2691ed 增加flag 5 days ago
Matthew c65ffab9dd 加注释 5 days ago

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

Loading…
Cancel
Save