version:5.5
fix: update:增加设备信息开机自启应用
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user