version:6.3
fix:修复检查应用版本报错,修复cube开发者选项失效 update:更新cube sdk
This commit is contained in:
@@ -453,6 +453,9 @@ public class JGYUtils {
|
||||
}
|
||||
|
||||
private void checkPackageAndVersion(HashSet<String> disallowUpgrade, List<AppListInfo> appListInfos) {
|
||||
if (appListInfos == null || appListInfos.size() == 0) {
|
||||
return;
|
||||
}
|
||||
Log.e(TAG, "checkPackageAndVersion: " + disallowUpgrade);
|
||||
PackageManager pm = mContext.getPackageManager();
|
||||
HashMap<String, AppListInfo> listInfoHashMap = new HashMap<>();
|
||||
@@ -1580,7 +1583,9 @@ public class JGYUtils {
|
||||
Log.e(TAG, "getDeveloper: " + state);
|
||||
if (!BuildConfig.DEBUG) {
|
||||
Settings.System.putInt(crv, CommonConfig.AOLE_ACTION_DEVELOPER_OPTIONS, state);
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform) {
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.CubePlatform
|
||||
) {
|
||||
Settings.Global.putInt(crv, Settings.Global.DEVELOPMENT_SETTINGS_ENABLED, state == 1 ? 0 : 1);
|
||||
Settings.Global.putInt(crv, Settings.Global.ADB_ENABLED, state == 1 ? 0 : 1);
|
||||
}
|
||||
@@ -1778,7 +1783,6 @@ public class JGYUtils {
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
public void removeAllTask() {
|
||||
List<ActivityManager.RecentTaskInfo> list = getRecentTasks(ActivityManager.getMaxRecentTasksStatic(), getCurrentUserId());
|
||||
for (ActivityManager.RecentTaskInfo info : list) {
|
||||
@@ -2031,7 +2035,19 @@ public class JGYUtils {
|
||||
}
|
||||
}
|
||||
|
||||
//设置默认桌面
|
||||
/**
|
||||
* 设置奥乐云桌面为默认
|
||||
*/
|
||||
public void setDefaultDesktop() {
|
||||
setDefaultDesktop(PackageNames.DESKTOP);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 设置默认桌面
|
||||
*
|
||||
* @param pkg
|
||||
*/
|
||||
public void setDefaultDesktop(String pkg) {
|
||||
Log.e(TAG, "setDefaultDesktop: " + pkg);
|
||||
if (TextUtils.isEmpty(pkg)) {
|
||||
|
||||
Reference in New Issue
Block a user