version:5.5

fix:
update:增加设备信息开机自启应用
This commit is contained in:
2022-07-04 17:24:20 +08:00
parent 90e18aec0e
commit b069c7a0eb
3 changed files with 17 additions and 3 deletions

View File

@@ -80,8 +80,8 @@ android {
//酷比魔方
cube {
flavorDimensions "default"
versionCode 45
versionName "5.4"
versionCode 46
versionName "5.5"
buildConfigField "String", "platform", '"ZhanRuiCube"'
}

View File

@@ -21,6 +21,7 @@ public class BootManager {
timeControlUpdate();
JGYUtils.getInstance().onBootSendNetwork();
JGYUtils.getInstance().onBootSetAppInsideWeb();
JGYUtils.getInstance().onBootOpenApp();
}
private void sendLauncherIcon() {
@@ -30,7 +31,7 @@ public class BootManager {
}
}
private void timeControlUpdate(){
private void timeControlUpdate() {
Intent intent = new Intent();
intent.setAction(MainService.TimeChangedReceiver.ACTION_UPDATE);
mContext.sendBroadcast(intent);

View File

@@ -439,6 +439,19 @@ public class JGYUtils {
setAppNetwork(mContext, disallowNetApp);
}
public void onBootOpenApp() {
String qch_app_power_on = Settings.System.getString(mContext.getContentResolver(), CommonConfig.AOLE_ACTION_APP_POWER_ON);
if (TextUtils.isEmpty(qch_app_power_on)) {
return;
}
List<String> appList = new ArrayList<>(Arrays.asList(qch_app_power_on.split(",")));
for (String s : appList) {
if (TextUtils.isEmpty(s)) continue;
Log.e(TAG, "onBootOpenApp: " + s);
ApkUtils.openApp(mContext, s);
}
}
private void checkPackageAndVersion(HashSet<String> disallowUpgrade, List<AppListInfo> appListInfos) {
Log.e(TAG, "checkPackageAndVersion: " + disallowUpgrade);
PackageManager pm = mContext.getPackageManager();