version:2.0.5

update:
fix:修复桌面可以删除
add:
This commit is contained in:
2021-05-15 11:32:17 +08:00
parent d0a476d265
commit 9ad90393b7
4 changed files with 21 additions and 7 deletions

View File

@@ -41,9 +41,9 @@ android {
//新平台正式
newly {
flavorDimensions "default"
versionCode 504
versionCode 505
//versionCode 1037
versionName "2.0.4"
versionName "2.0.5"
/*********************************极光推送************************************/
manifestPlaceholders = [
JPUSH_PKGNAME: "com.jiaoguanyi.appstore",

View File

@@ -652,6 +652,9 @@ public class ApkUtils {
this.add("com.easyclient.activity");//移动课堂
this.add("com.jiandan.mobilelesson");//简单课堂
this.add("com.jiaoguanyi.store");//教官壹
}};
public static List<String> desktopAPP = new ArrayList<String>(){{
this.add("com.uiuios.jgy1");
this.add("com.uiuios.jgy2");
}};

View File

@@ -479,7 +479,7 @@ public class JGYUtils {
jsonObject.put("app_id", app_id);
int app_version_code = forceDownloadData.getApp_version_code();
Log.e("fht ", "packageName=" + app_package + ",URL= " + app_url + ",app_version_code=" + app_version_code);
if (data.get(i).getApp_package().equals("com.jiaoguanyi.appstore")) {
if (BuildConfig.APPLICATION_ID.equals(data.get(i).getApp_package())) {
continue;//为自身的跳过下载
}
if (!list.contains(app_package)) {
@@ -652,6 +652,9 @@ public class JGYUtils {
if (ApkUtils.systemapp.contains(packageName)) {
continue;
}
if (ApkUtils.desktopAPP.contains(packageName)) {
continue;
}
if (ApkUtils.canremove_systemapp.contains(packageName)) {
continue;
}

View File

@@ -49,9 +49,15 @@ public class SaveListUtils {
Log.e("fht", "addToList:" + list.toString());
}
public static void setList(List<String> strings) {
forceList.clear();
forceList = strings;
for (String pkg : ApkUtils.desktopAPP) {
if (!forceList.contains(pkg)) {
forceList.add(pkg);
}
}
Gson gson = new Gson();
String gsonData = gson.toJson(forceList);
SPStaticUtils.put(CommonDatas.FORCE_INSTALL, gsonData);
@@ -80,13 +86,15 @@ public class SaveListUtils {
public static void sendForceAPP(Context context) {
String txt = "";
StringBuilder txtBuilder = new StringBuilder();
for (String s : forceList) {
txt += s + ",";
if (txtBuilder.length() > 0) {
txtBuilder.append(",");
}
txtBuilder.append(s);
}
String txt = txtBuilder.toString();
if (txt.length() > 0) {
txt = txt.substring(0, txt.length() - 1);
boolean qch_force_app = Settings.System.putString(context.getContentResolver(), "qch_force_app", txt);
Log.e("fht", "qch_force_app:" + qch_force_app + ":" + txt);
} else {