version:5.5
fix: update:增加设备信息开机自启应用
This commit is contained in:
@@ -80,8 +80,8 @@ android {
|
|||||||
//酷比魔方
|
//酷比魔方
|
||||||
cube {
|
cube {
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
versionCode 45
|
versionCode 46
|
||||||
versionName "5.4"
|
versionName "5.5"
|
||||||
buildConfigField "String", "platform", '"ZhanRuiCube"'
|
buildConfigField "String", "platform", '"ZhanRuiCube"'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ public class BootManager {
|
|||||||
timeControlUpdate();
|
timeControlUpdate();
|
||||||
JGYUtils.getInstance().onBootSendNetwork();
|
JGYUtils.getInstance().onBootSendNetwork();
|
||||||
JGYUtils.getInstance().onBootSetAppInsideWeb();
|
JGYUtils.getInstance().onBootSetAppInsideWeb();
|
||||||
|
JGYUtils.getInstance().onBootOpenApp();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendLauncherIcon() {
|
private void sendLauncherIcon() {
|
||||||
@@ -30,7 +31,7 @@ public class BootManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void timeControlUpdate(){
|
private void timeControlUpdate() {
|
||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
intent.setAction(MainService.TimeChangedReceiver.ACTION_UPDATE);
|
intent.setAction(MainService.TimeChangedReceiver.ACTION_UPDATE);
|
||||||
mContext.sendBroadcast(intent);
|
mContext.sendBroadcast(intent);
|
||||||
|
|||||||
@@ -439,6 +439,19 @@ public class JGYUtils {
|
|||||||
setAppNetwork(mContext, disallowNetApp);
|
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) {
|
private void checkPackageAndVersion(HashSet<String> disallowUpgrade, List<AppListInfo> appListInfos) {
|
||||||
Log.e(TAG, "checkPackageAndVersion: " + disallowUpgrade);
|
Log.e(TAG, "checkPackageAndVersion: " + disallowUpgrade);
|
||||||
PackageManager pm = mContext.getPackageManager();
|
PackageManager pm = mContext.getPackageManager();
|
||||||
|
|||||||
Reference in New Issue
Block a user