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

@@ -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();