version:1.6.0226
bugfixes: add:增加g128t平台,修复开发者问题
This commit is contained in:
@@ -165,6 +165,7 @@ public class JgyUtils {
|
||||
public static final int seewoPlatform = 25;
|
||||
public static final int U1302Platform = 26;
|
||||
public static final int MT6765Platform = 28;
|
||||
public static final int G128TPlatform = 29;
|
||||
|
||||
|
||||
public static final String Other = "其他";
|
||||
@@ -189,6 +190,7 @@ public class JgyUtils {
|
||||
public static final String seewoTag = "seewo";
|
||||
public static final String allwinner_U1302 = "QZA15";
|
||||
public static final String MT6765_TAG = "MT6765";
|
||||
public static final String G128T_TAG = "G128T";
|
||||
|
||||
|
||||
private CacheHelper cacheHelper;
|
||||
@@ -337,6 +339,9 @@ public class JgyUtils {
|
||||
} else if (MT6765_TAG.equalsIgnoreCase(platform)) {
|
||||
Log.i(TAG, "checkAppPlatform: " + "MT6765");
|
||||
return MT6765Platform;
|
||||
} else if (G128T_TAG.equalsIgnoreCase(platform)) {
|
||||
Log.i(TAG, "checkAppPlatform: " + "G128T");
|
||||
return G128TPlatform;
|
||||
} else {
|
||||
Log.i(TAG, "checkAppPlatform: " + "没有数据");
|
||||
return UnknowPlatform;
|
||||
@@ -401,6 +406,8 @@ public class JgyUtils {
|
||||
getAppPlatformCallback.AppPlatform(U1302Platform);
|
||||
} else if (MT6765_TAG.equalsIgnoreCase(platform)) {
|
||||
getAppPlatformCallback.AppPlatform(MT6765Platform);
|
||||
} else if (G128T_TAG.equalsIgnoreCase(platform)) {
|
||||
getAppPlatformCallback.AppPlatform(G128TPlatform);
|
||||
} else {
|
||||
getAppPlatformCallback.AppPlatform(UnknowPlatform);
|
||||
}
|
||||
@@ -1015,18 +1022,22 @@ public class JgyUtils {
|
||||
}
|
||||
|
||||
public void writeDeselectIDtoSystem(List<AppID> appIDList) {
|
||||
if (!"Ebox201".equals(Build.MODEL)&&!"Ebox201W".equals(Build.MODEL)){
|
||||
Log.e(TAG, "writeDeselectIDtoSystem: not match Ebox201 or Ebox201W" );
|
||||
if (!"Ebox201".equals(Build.MODEL) && !"Ebox201W".equals(Build.MODEL)) {
|
||||
Log.e(TAG, "writeDeselectIDtoSystem: not match Ebox201 or Ebox201W");
|
||||
return;
|
||||
}
|
||||
if (appIDList == null || appIDList.isEmpty()) {
|
||||
try {
|
||||
Settings.System.putString(crv, CommonConfig.APP_VIEW_CLICK_DISABLED, null);
|
||||
// TODO: 2024/9/11 修复1.4.0907版本数据为空系统报错
|
||||
CmdUtil.Result result = CmdUtil.execute(" settings delete system app_view_click_disabled");
|
||||
Log.e(TAG, "writeDeselectIDtoSystem: " + result);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
if ("G10".equals(Build.MODEL) || "D1".equals(Build.MODEL)) {
|
||||
Settings.System.putString(mContext.getContentResolver(), CommonConfig.APP_VIEW_CLICK_DISABLED, "com.arivoc.wordhd:2131624676,2131624689;com.ttstd.utils:12345");
|
||||
} else {
|
||||
try {
|
||||
Settings.System.putString(crv, CommonConfig.APP_VIEW_CLICK_DISABLED, null);
|
||||
// TODO: 2024/9/11 修复1.4.0907版本数据为空系统报错
|
||||
CmdUtil.Result result = CmdUtil.execute(" settings delete system app_view_click_disabled");
|
||||
Log.e(TAG, "writeDeselectIDtoSystem: " + result);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
String s = appIDList.stream().map(new Function<AppID, String>() {
|
||||
@@ -1468,6 +1479,9 @@ public class JgyUtils {
|
||||
pkgSet.addAll(ApkUtils.desktopAPP);
|
||||
pkgSet.addAll(ApkUtils.aoleyunAPP);
|
||||
pkgSet.addAll(ApkUtils.mJxwApp);
|
||||
if (G128T_TAG.equals(BuildConfig.platform)) {
|
||||
pkgSet.add("com.dmjc.xinhuo");
|
||||
}
|
||||
if ("K101".equals(Build.MODEL) || "AS001".equals(Build.MODEL)) {
|
||||
pkgSet.addAll(ApkUtils.aihuaApp);
|
||||
pkgSet.addAll(aihuaAppList);
|
||||
@@ -1581,7 +1595,7 @@ public class JgyUtils {
|
||||
jsonObject.addProperty("app_id", app_id);
|
||||
jsonObject.addProperty("MD5", app_md5);
|
||||
long app_version_code = forceDownloadData.getApp_version_code();
|
||||
Log.e("fht ", "packageName=" + app_package + ",URL= " + app_url + ",app_version_code=" + app_version_code);
|
||||
Log.e("forceDownload", "packageName=" + app_package + ",URL= " + app_url + ",app_version_code=" + app_version_code);
|
||||
if (BuildConfig.APPLICATION_ID.equals(data.get(i).getApp_package())) {
|
||||
continue;//为自身的跳过下载
|
||||
}
|
||||
@@ -2115,7 +2129,9 @@ public class JgyUtils {
|
||||
Log.e(TAG, "setDeveloperOptions: oldStatu = " + oldStatu + " no changed");
|
||||
}
|
||||
|
||||
if (MT8768Tag.equalsIgnoreCase(BuildConfig.platform)) {
|
||||
if (MT8768Tag.equalsIgnoreCase(BuildConfig.platform)
|
||||
|| G128T_TAG.equalsIgnoreCase(BuildConfig.platform)
|
||||
) {
|
||||
Settings.System.putInt(crv, CommonConfig.AOLE_ACTION_DEVELOPER_OPTIONS, state);
|
||||
} else {
|
||||
//这个需要反着来
|
||||
|
||||
Reference in New Issue
Block a user