version:2.7
fix:更新桌面唤醒 add:
This commit is contained in:
@@ -66,8 +66,8 @@ android {
|
||||
defaultConfig {
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 28
|
||||
versionCode 16
|
||||
versionName "2.5"
|
||||
versionCode 18
|
||||
versionName "2.7"
|
||||
ndk {
|
||||
//选择要添加的对应 cpu 类型的 .so 库。
|
||||
abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user