version:2.0.5
update: fix:修复桌面可以删除 add:
This commit is contained in:
@@ -41,9 +41,9 @@ android {
|
|||||||
//新平台正式
|
//新平台正式
|
||||||
newly {
|
newly {
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
versionCode 504
|
versionCode 505
|
||||||
//versionCode 1037
|
//versionCode 1037
|
||||||
versionName "2.0.4"
|
versionName "2.0.5"
|
||||||
/*********************************极光推送************************************/
|
/*********************************极光推送************************************/
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
JPUSH_PKGNAME: "com.jiaoguanyi.appstore",
|
JPUSH_PKGNAME: "com.jiaoguanyi.appstore",
|
||||||
|
|||||||
@@ -652,6 +652,9 @@ public class ApkUtils {
|
|||||||
this.add("com.easyclient.activity");//移动课堂
|
this.add("com.easyclient.activity");//移动课堂
|
||||||
this.add("com.jiandan.mobilelesson");//简单课堂
|
this.add("com.jiandan.mobilelesson");//简单课堂
|
||||||
this.add("com.jiaoguanyi.store");//教官壹
|
this.add("com.jiaoguanyi.store");//教官壹
|
||||||
|
}};
|
||||||
|
|
||||||
|
public static List<String> desktopAPP = new ArrayList<String>(){{
|
||||||
this.add("com.uiuios.jgy1");
|
this.add("com.uiuios.jgy1");
|
||||||
this.add("com.uiuios.jgy2");
|
this.add("com.uiuios.jgy2");
|
||||||
}};
|
}};
|
||||||
|
|||||||
@@ -479,7 +479,7 @@ public class JGYUtils {
|
|||||||
jsonObject.put("app_id", app_id);
|
jsonObject.put("app_id", app_id);
|
||||||
int app_version_code = forceDownloadData.getApp_version_code();
|
int app_version_code = forceDownloadData.getApp_version_code();
|
||||||
Log.e("fht ", "packageName=" + app_package + ",URL= " + app_url + ",app_version_code=" + app_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;//为自身的跳过下载
|
continue;//为自身的跳过下载
|
||||||
}
|
}
|
||||||
if (!list.contains(app_package)) {
|
if (!list.contains(app_package)) {
|
||||||
@@ -652,6 +652,9 @@ public class JGYUtils {
|
|||||||
if (ApkUtils.systemapp.contains(packageName)) {
|
if (ApkUtils.systemapp.contains(packageName)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (ApkUtils.desktopAPP.contains(packageName)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (ApkUtils.canremove_systemapp.contains(packageName)) {
|
if (ApkUtils.canremove_systemapp.contains(packageName)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,9 +49,15 @@ public class SaveListUtils {
|
|||||||
Log.e("fht", "addToList:" + list.toString());
|
Log.e("fht", "addToList:" + list.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void setList(List<String> strings) {
|
public static void setList(List<String> strings) {
|
||||||
forceList.clear();
|
forceList.clear();
|
||||||
forceList = strings;
|
forceList = strings;
|
||||||
|
for (String pkg : ApkUtils.desktopAPP) {
|
||||||
|
if (!forceList.contains(pkg)) {
|
||||||
|
forceList.add(pkg);
|
||||||
|
}
|
||||||
|
}
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
String gsonData = gson.toJson(forceList);
|
String gsonData = gson.toJson(forceList);
|
||||||
SPStaticUtils.put(CommonDatas.FORCE_INSTALL, gsonData);
|
SPStaticUtils.put(CommonDatas.FORCE_INSTALL, gsonData);
|
||||||
@@ -80,13 +86,15 @@ public class SaveListUtils {
|
|||||||
|
|
||||||
|
|
||||||
public static void sendForceAPP(Context context) {
|
public static void sendForceAPP(Context context) {
|
||||||
String txt = "";
|
StringBuilder txtBuilder = new StringBuilder();
|
||||||
for (String s : forceList) {
|
for (String s : forceList) {
|
||||||
txt += s + ",";
|
if (txtBuilder.length() > 0) {
|
||||||
|
txtBuilder.append(",");
|
||||||
}
|
}
|
||||||
|
txtBuilder.append(s);
|
||||||
|
}
|
||||||
|
String txt = txtBuilder.toString();
|
||||||
if (txt.length() > 0) {
|
if (txt.length() > 0) {
|
||||||
|
|
||||||
txt = txt.substring(0, txt.length() - 1);
|
|
||||||
boolean qch_force_app = Settings.System.putString(context.getContentResolver(), "qch_force_app", txt);
|
boolean qch_force_app = Settings.System.putString(context.getContentResolver(), "qch_force_app", txt);
|
||||||
Log.e("fht", "qch_force_app:" + qch_force_app + ":" + txt);
|
Log.e("fht", "qch_force_app:" + qch_force_app + ":" + txt);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user