version:zhanrui 6.4.1
fix: update:更换图标,修改主页
81
build.gradle
@@ -66,13 +66,13 @@ android {
|
|||||||
minSdkVersion 26
|
minSdkVersion 26
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
|
|
||||||
//// //MTK
|
// //MTK
|
||||||
// versionCode 48
|
// versionCode 49
|
||||||
// versionName "2.3.8"
|
// versionName "2.3.9"
|
||||||
|
|
||||||
//cube
|
//cube
|
||||||
versionCode 80
|
versionCode 81
|
||||||
versionName "6.4.0"
|
versionName "6.4.1"
|
||||||
|
|
||||||
ndk {
|
ndk {
|
||||||
//选择要添加的对应 cpu 类型的 .so 库。
|
//选择要添加的对应 cpu 类型的 .so 库。
|
||||||
@@ -109,6 +109,15 @@ android {
|
|||||||
v2SigningEnabled false
|
v2SigningEnabled false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zhanRui12 {
|
||||||
|
storeFile file("src/doc/zhanrui12.jks")
|
||||||
|
storePassword "123456"
|
||||||
|
keyAlias "zhanrui12"
|
||||||
|
keyPassword "123456"
|
||||||
|
v1SigningEnabled true
|
||||||
|
v2SigningEnabled true
|
||||||
|
}
|
||||||
|
|
||||||
mtk {
|
mtk {
|
||||||
storeFile file("src/doc/xueshibaoos.jks")
|
storeFile file("src/doc/xueshibaoos.jks")
|
||||||
storePassword "123456"
|
storePassword "123456"
|
||||||
@@ -125,9 +134,41 @@ android {
|
|||||||
keyPassword "123456"
|
keyPassword "123456"
|
||||||
v2SigningEnabled false
|
v2SigningEnabled false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zhanruiG10Z{
|
||||||
|
storeFile file("src/doc/zhanruiG10Z.keystore")
|
||||||
|
storePassword "123456"
|
||||||
|
keyAlias "zhanruiG10Z"
|
||||||
|
keyPassword "123456"
|
||||||
|
v1SigningEnabled true
|
||||||
|
v2SigningEnabled true
|
||||||
|
}
|
||||||
|
|
||||||
|
G10P {
|
||||||
|
storeFile file("src/doc/G10PMTK11.jks")
|
||||||
|
storePassword "123456"
|
||||||
|
keyAlias "G10PMTK11"
|
||||||
|
keyPassword "123456"
|
||||||
|
v1SigningEnabled true
|
||||||
|
v2SigningEnabled true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
G10PDebug.initWith(debug)
|
||||||
|
G10PDebug {
|
||||||
|
buildConfigField "String", "platform", '"MTK11"'
|
||||||
|
versionNameSuffix "-debug"
|
||||||
|
debuggable true
|
||||||
|
signingConfig signingConfigs.G10P
|
||||||
|
}
|
||||||
|
|
||||||
|
G10PRelease.initWith(release)
|
||||||
|
G10PRelease {
|
||||||
|
buildConfigField "String", "platform", '"MTK11"'
|
||||||
|
signingConfig signingConfigs.G10P
|
||||||
|
}
|
||||||
|
|
||||||
zhanRuiDebug.initWith(debug)
|
zhanRuiDebug.initWith(debug)
|
||||||
zhanRuiDebug {
|
zhanRuiDebug {
|
||||||
versionNameSuffix "-debug"
|
versionNameSuffix "-debug"
|
||||||
@@ -151,6 +192,20 @@ android {
|
|||||||
signingConfig signingConfigs.zhanRuiUserdebug
|
signingConfig signingConfigs.zhanRuiUserdebug
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zhanRui12Debug.initWith(debug)
|
||||||
|
zhanRui12Debug {
|
||||||
|
versionNameSuffix "-debug"
|
||||||
|
buildConfigField "String", "platform", '"AH6016"'
|
||||||
|
debuggable true
|
||||||
|
signingConfig signingConfigs.zhanRui12
|
||||||
|
}
|
||||||
|
|
||||||
|
zhanRui12Release.initWith(release)
|
||||||
|
zhanRui12Release {
|
||||||
|
buildConfigField "String", "platform", '"AH6016"'
|
||||||
|
signingConfig signingConfigs.zhanRui12
|
||||||
|
}
|
||||||
|
|
||||||
TeclastP20SDebug.initWith(debug)
|
TeclastP20SDebug.initWith(debug)
|
||||||
TeclastP20SDebug {
|
TeclastP20SDebug {
|
||||||
debuggable true
|
debuggable true
|
||||||
@@ -165,6 +220,20 @@ android {
|
|||||||
signingConfig signingConfigs.TeclastP20S
|
signingConfig signingConfigs.TeclastP20S
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zhanruiG10ZDebug.initWith(debug)
|
||||||
|
zhanruiG10ZDebug {
|
||||||
|
buildConfigField "String", "platform", '"ZR6016"'
|
||||||
|
versionNameSuffix "-debug"
|
||||||
|
debuggable true
|
||||||
|
signingConfig signingConfigs.zhanruiG10Z
|
||||||
|
}
|
||||||
|
|
||||||
|
zhanruiG10ZRelease.initWith(release)
|
||||||
|
zhanruiG10ZRelease {
|
||||||
|
buildConfigField "String", "platform", '"ZR6016"'
|
||||||
|
signingConfig signingConfigs.zhanruiG10Z
|
||||||
|
}
|
||||||
|
|
||||||
debug {
|
debug {
|
||||||
buildConfigField "String", "platform", '"MTK"'
|
buildConfigField "String", "platform", '"MTK"'
|
||||||
debuggable true
|
debuggable true
|
||||||
@@ -200,7 +269,7 @@ android {
|
|||||||
variant.outputs.each { output ->
|
variant.outputs.each { output ->
|
||||||
def outputFile = ""
|
def outputFile = ""
|
||||||
if (outputFile != null) {
|
if (outputFile != null) {
|
||||||
def fileName = "${appName()}-${variant.versionCode}-V${variant.versionName}-${releaseTime()}-${productFlavors[0].name}.apk"
|
def fileName = "${appName()}-${variant.versionCode}-V${variant.versionName}-${releaseTime()}-${productFlavors[0].name}-${buildType.name}.apk"
|
||||||
output.outputFileName = fileName
|
output.outputFileName = fileName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,12 +13,18 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
G10PDebug {}
|
||||||
|
G10PRelease {}
|
||||||
zhanRuiDebug {}
|
zhanRuiDebug {}
|
||||||
zhanRuiRelease {}
|
zhanRuiRelease {}
|
||||||
|
zhanRui12Debug {}
|
||||||
|
zhanRui12Release {}
|
||||||
alldocubeDebug {}
|
alldocubeDebug {}
|
||||||
alldocubeDebugReleas {}
|
alldocubeDebugReleas {}
|
||||||
TeclastP20SDebug {}
|
TeclastP20SDebug {}
|
||||||
TeclastP20SRelease {}
|
TeclastP20SRelease {}
|
||||||
|
zhanruiG10ZDebug {}
|
||||||
|
zhanruiG10ZRelease {}
|
||||||
debug {}
|
debug {}
|
||||||
release {}
|
release {}
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 8.9 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 9.1 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 9.6 KiB |
@@ -62,10 +62,18 @@
|
|||||||
<!-- <favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MUSIC;end" />-->
|
<!-- <favorite launcher:uri="#Intent;action=android.intent.action.MAIN;category=android.intent.category.APP_MUSIC;end" />-->
|
||||||
<!-- </resolve>-->
|
<!-- </resolve>-->
|
||||||
|
|
||||||
|
<!-- <favorite-->
|
||||||
|
<!-- launcher:container="-101"-->
|
||||||
|
<!-- launcher:className="com.aoleyun.browser.activity.main.MainActivity"-->
|
||||||
|
<!-- launcher:packageName="com.aoleyun.browser"-->
|
||||||
|
<!-- launcher:screen="2"-->
|
||||||
|
<!-- launcher:x="2"-->
|
||||||
|
<!-- launcher:y="0" />-->
|
||||||
|
|
||||||
<favorite
|
<favorite
|
||||||
launcher:container="-101"
|
launcher:container="-101"
|
||||||
launcher:className="com.aoleyun.browser.activity.main.MainActivity"
|
launcher:className="com.aoleyun.info.activity.main.MainActivity"
|
||||||
launcher:packageName="com.aoleyun.browser"
|
launcher:packageName="com.aoleyun.info"
|
||||||
launcher:screen="2"
|
launcher:screen="2"
|
||||||
launcher:x="2"
|
launcher:x="2"
|
||||||
launcher:y="0" />
|
launcher:y="0" />
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ import com.alibaba.sdk.android.push.CloudPushService;
|
|||||||
import com.alibaba.sdk.android.push.CommonCallback;
|
import com.alibaba.sdk.android.push.CommonCallback;
|
||||||
import com.alibaba.sdk.android.push.noonesdk.PushServiceFactory;
|
import com.alibaba.sdk.android.push.noonesdk.PushServiceFactory;
|
||||||
import com.aoleyun.os.DropTarget.DragObject;
|
import com.aoleyun.os.DropTarget.DragObject;
|
||||||
import com.aoleyun.os.uiuiutils.APKUtils;
|
import com.aoleyun.os.uiuiutils.ApkUtils;
|
||||||
import com.aoleyun.os.uiuiutils.Utils;
|
import com.aoleyun.os.uiuiutils.Utils;
|
||||||
import com.aoleyun.os.accessibility.LauncherAccessibilityDelegate;
|
import com.aoleyun.os.accessibility.LauncherAccessibilityDelegate;
|
||||||
import com.aoleyun.os.allapps.AllAppsContainerView;
|
import com.aoleyun.os.allapps.AllAppsContainerView;
|
||||||
@@ -1178,7 +1178,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
|||||||
|
|
||||||
private void sendAppUsageRecord(String packageName) {
|
private void sendAppUsageRecord(String packageName) {
|
||||||
Log.e("sendAppUsageRecord", "packageName: " + packageName);
|
Log.e("sendAppUsageRecord", "packageName: " + packageName);
|
||||||
String app_name = APKUtils.getAppNameByPackage(Launcher.this, packageName);
|
String app_name = ApkUtils.getAppNameByPackage(Launcher.this, packageName);
|
||||||
long openTime = TimeUtils.getInstance().getStartTime() / 1000;
|
long openTime = TimeUtils.getInstance().getStartTime() / 1000;
|
||||||
long closeTime = TimeUtils.getInstance().getEndTime() / 1000;
|
long closeTime = TimeUtils.getInstance().getEndTime() / 1000;
|
||||||
NetInterfaceManager.getInstance()
|
NetInterfaceManager.getInstance()
|
||||||
@@ -1281,7 +1281,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
|||||||
/*打开霸屏应用*/
|
/*打开霸屏应用*/
|
||||||
String always_top_packagename = Settings.System.getString(getContentResolver(), "always_top_packagename");
|
String always_top_packagename = Settings.System.getString(getContentResolver(), "always_top_packagename");
|
||||||
if (!TextUtils.isEmpty(always_top_packagename)) {
|
if (!TextUtils.isEmpty(always_top_packagename)) {
|
||||||
APKUtils.openPackage(Launcher.this, always_top_packagename);
|
ApkUtils.openPackage(Launcher.this, always_top_packagename);
|
||||||
}
|
}
|
||||||
mUpdate.checkUpdate(System.currentTimeMillis());
|
mUpdate.checkUpdate(System.currentTimeMillis());
|
||||||
mPasswd.getPassword(System.currentTimeMillis());
|
mPasswd.getPassword(System.currentTimeMillis());
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import android.util.Log;
|
|||||||
|
|
||||||
import com.aoleyun.os.network.bean.AppPasswdBean;
|
import com.aoleyun.os.network.bean.AppPasswdBean;
|
||||||
import com.aoleyun.os.network.bean.BaseResponse;
|
import com.aoleyun.os.network.bean.BaseResponse;
|
||||||
import com.aoleyun.os.uiuiutils.APKUtils;
|
import com.aoleyun.os.uiuiutils.ApkUtils;
|
||||||
import com.aoleyun.os.uiuiutils.TimeUtils;
|
import com.aoleyun.os.uiuiutils.TimeUtils;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
@@ -71,9 +71,9 @@ public class HTTPInterface {
|
|||||||
long time = TimeUtils.getInstance().getStartTime();
|
long time = TimeUtils.getInstance().getStartTime();
|
||||||
JsonObject jsonObject = new JsonObject();
|
JsonObject jsonObject = new JsonObject();
|
||||||
jsonObject.addProperty("app_package", packageName);
|
jsonObject.addProperty("app_package", packageName);
|
||||||
jsonObject.addProperty("version_name", APKUtils.getAPPVersionName(context, packageName));
|
jsonObject.addProperty("version_name", ApkUtils.getAPPVersionName(context, packageName));
|
||||||
jsonObject.addProperty("run_time", time / 1000);
|
jsonObject.addProperty("run_time", time / 1000);
|
||||||
jsonObject.addProperty("app_name", APKUtils.getAppNameByPackage(context, packageName));
|
jsonObject.addProperty("app_name", ApkUtils.getAppNameByPackage(context, packageName));
|
||||||
jsonObject.addProperty("status", 1);
|
jsonObject.addProperty("status", 1);
|
||||||
String jsonString = jsonObject.toString();
|
String jsonString = jsonObject.toString();
|
||||||
NetInterfaceManager.getInstance().getRunningAppObservable(jsonString)
|
NetInterfaceManager.getInstance().getRunningAppObservable(jsonString)
|
||||||
|
|||||||
@@ -191,6 +191,16 @@ public class NetInterfaceManager {
|
|||||||
set.add(JGYUtils.MTKTag);
|
set.add(JGYUtils.MTKTag);
|
||||||
} else if (platform == JGYUtils.ZhanruiPlatform) {
|
} else if (platform == JGYUtils.ZhanruiPlatform) {
|
||||||
set.add(JGYUtils.ZhanruiTag);
|
set.add(JGYUtils.ZhanruiTag);
|
||||||
|
} else if (platform == JGYUtils.CubePlatform) {
|
||||||
|
set.add(JGYUtils.CubeTag);
|
||||||
|
} else if (platform == JGYUtils.MTK11Platform) {
|
||||||
|
set.add(JGYUtils.MTK11Tag);
|
||||||
|
} else if (platform == JGYUtils.TeclastP20sPlatform) {
|
||||||
|
set.add(JGYUtils.TeclastP20sTag);
|
||||||
|
} else if (platform == JGYUtils.AH6016Platform) {
|
||||||
|
set.add(JGYUtils.AH6016Tag);
|
||||||
|
}else if (platform == JGYUtils.ZR6016Platform) {
|
||||||
|
set.add(JGYUtils.ZR6016Tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import android.util.Log;
|
|||||||
import com.aoleyun.os.BuildConfig;
|
import com.aoleyun.os.BuildConfig;
|
||||||
import com.aoleyun.os.network.NetInterfaceManager;
|
import com.aoleyun.os.network.NetInterfaceManager;
|
||||||
import com.aoleyun.os.network.bean.BaseResponse;
|
import com.aoleyun.os.network.bean.BaseResponse;
|
||||||
import com.aoleyun.os.uiuiutils.APKUtils;
|
import com.aoleyun.os.uiuiutils.ApkUtils;
|
||||||
import com.aoleyun.os.uiuiutils.CmdUtil;
|
import com.aoleyun.os.uiuiutils.CmdUtil;
|
||||||
import com.aoleyun.os.uiuiutils.ForegroundAppUtil;
|
import com.aoleyun.os.uiuiutils.ForegroundAppUtil;
|
||||||
import com.aoleyun.os.uiuiutils.TimeUtils;
|
import com.aoleyun.os.uiuiutils.TimeUtils;
|
||||||
@@ -227,7 +227,7 @@ public class MainService extends Service {
|
|||||||
|
|
||||||
@Download.onTaskComplete
|
@Download.onTaskComplete
|
||||||
void taskComplete(DownloadTask task) {
|
void taskComplete(DownloadTask task) {
|
||||||
APKUtils.installApp(MainService.this, task.getFilePath());
|
ApkUtils.installApp(MainService.this, task.getFilePath());
|
||||||
Aria.download(this).load(task.getDownloadEntity().getId()).cancel();
|
Aria.download(this).load(task.getDownloadEntity().getId()).cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import java.io.InputStreamReader;
|
|||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class APKUtils {
|
public class ApkUtils {
|
||||||
public static boolean openPackage(Context context, String packageName) {
|
public static boolean openPackage(Context context, String packageName) {
|
||||||
Context pkgContext = getPackageContext(context, packageName);
|
Context pkgContext = getPackageContext(context, packageName);
|
||||||
Intent intent = getAppOpenIntentByPackageName(context, packageName);
|
Intent intent = getAppOpenIntentByPackageName(context, packageName);
|
||||||
@@ -31,16 +31,22 @@ public class JGYUtils {
|
|||||||
|
|
||||||
public static final int UnknowPlatform = 0;
|
public static final int UnknowPlatform = 0;
|
||||||
public static final int MTKPlatform = 1;
|
public static final int MTKPlatform = 1;
|
||||||
// TODO: 2022/4/23 标签替换未完成
|
|
||||||
public static final int CubePlatform = 2;
|
public static final int CubePlatform = 2;
|
||||||
public static final int ZhanruiPlatform = 3;
|
public static final int ZhanruiPlatform = 3;
|
||||||
|
public static final int MTK11Platform = 5;
|
||||||
|
public static final int TeclastP20sPlatform = 6;
|
||||||
|
public static final int AH6016Platform = 9;
|
||||||
|
public static final int ZR6016Platform = 10;
|
||||||
|
|
||||||
|
|
||||||
public static final String Other = "其他";
|
public static final String Other = "其他";
|
||||||
public static final String MTKTag = "MTK";
|
public static final String MTKTag = "MTK";
|
||||||
// TODO: 2022/4/23 标签替换未完成
|
|
||||||
public static final String CubeTag = "展锐cube";
|
public static final String CubeTag = "展锐cube";
|
||||||
public static final String ZhanruiTag = "展锐";
|
public static final String ZhanruiTag = "展锐";
|
||||||
|
public static final String MTK11Tag = "MTK11";
|
||||||
|
public static final String TeclastP20sTag = "P20S";
|
||||||
|
public static final String AH6016Tag = "AH6016";
|
||||||
|
public static final String ZR6016Tag = "ZR6016";
|
||||||
|
|
||||||
|
|
||||||
private JGYUtils(Context context) {
|
private JGYUtils(Context context) {
|
||||||
@@ -64,18 +70,6 @@ public class JGYUtils {
|
|||||||
return sInstance;
|
return sInstance;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int checkSNPlatform(String sn) {
|
|
||||||
String secondChars = sn.substring(1, 2);
|
|
||||||
if ("N".equalsIgnoreCase(secondChars)) {//MTK平台
|
|
||||||
return MTKPlatform;
|
|
||||||
} else if ("R".equalsIgnoreCase(secondChars)) {//展锐平台
|
|
||||||
return ZhanruiPlatform;
|
|
||||||
} else {
|
|
||||||
Log.e(TAG, "checkSNPlatform: " + "sn: " + sn + "没有对应平台");
|
|
||||||
return UnknowPlatform;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int checkAppPlatform() {
|
public int checkAppPlatform() {
|
||||||
String platform = BuildConfig.platform;
|
String platform = BuildConfig.platform;
|
||||||
if ("MTK".equalsIgnoreCase(platform)) {
|
if ("MTK".equalsIgnoreCase(platform)) {
|
||||||
@@ -87,21 +81,24 @@ public class JGYUtils {
|
|||||||
} else if ("ZhanRuiCube".equalsIgnoreCase(platform)) {
|
} else if ("ZhanRuiCube".equalsIgnoreCase(platform)) {
|
||||||
Log.i(TAG, "checkAppPlatform: " + "酷比平台");
|
Log.i(TAG, "checkAppPlatform: " + "酷比平台");
|
||||||
return CubePlatform;
|
return CubePlatform;
|
||||||
|
} else if ("MTK11".equalsIgnoreCase(platform)) {
|
||||||
|
Log.i(TAG, "checkAppPlatform: " + "MTK11");
|
||||||
|
return MTK11Platform;
|
||||||
|
} else if (TeclastP20sTag.equalsIgnoreCase(platform)) {
|
||||||
|
Log.i(TAG, "checkAppPlatform: " + "P20S");
|
||||||
|
return TeclastP20sPlatform;
|
||||||
|
} else if (AH6016Tag.equalsIgnoreCase(platform)) {
|
||||||
|
Log.i(TAG, "checkAppPlatform: " + "AH6016Tag");
|
||||||
|
return AH6016Platform;
|
||||||
|
} else if (ZR6016Tag.equalsIgnoreCase(platform)) {
|
||||||
|
Log.i(TAG, "checkAppPlatform: " + "ZR6016");
|
||||||
|
return ZR6016Platform;
|
||||||
} else {
|
} else {
|
||||||
Log.i(TAG, "checkAppPlatform: " + "没有数据");
|
Log.i(TAG, "checkAppPlatform: " + "没有数据");
|
||||||
return UnknowPlatform;
|
return UnknowPlatform;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSamePlatform(String platform) {
|
|
||||||
String AppPlatform = BuildConfig.platform;
|
|
||||||
if ("ZhanRui".equals(AppPlatform)) {
|
|
||||||
return ZhanruiTag.equals(platform);
|
|
||||||
} else {
|
|
||||||
return AppPlatform.equals(platform);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public interface GetAppPlatformCallback {
|
public interface GetAppPlatformCallback {
|
||||||
void AppPlatform(int platform);
|
void AppPlatform(int platform);
|
||||||
}
|
}
|
||||||
@@ -114,24 +111,19 @@ public class JGYUtils {
|
|||||||
getAppPlatformCallback.AppPlatform(ZhanruiPlatform);
|
getAppPlatformCallback.AppPlatform(ZhanruiPlatform);
|
||||||
} else if ("ZhanRuiCube".equalsIgnoreCase(platform)) {
|
} else if ("ZhanRuiCube".equalsIgnoreCase(platform)) {
|
||||||
getAppPlatformCallback.AppPlatform(CubePlatform);
|
getAppPlatformCallback.AppPlatform(CubePlatform);
|
||||||
|
} else if (MTK11Tag.equalsIgnoreCase(platform)) {
|
||||||
|
getAppPlatformCallback.AppPlatform(MTK11Platform);
|
||||||
|
} else if (TeclastP20sTag.equalsIgnoreCase(platform)) {
|
||||||
|
getAppPlatformCallback.AppPlatform(TeclastP20sPlatform);
|
||||||
|
} else if (AH6016Tag.equalsIgnoreCase(platform)) {
|
||||||
|
getAppPlatformCallback.AppPlatform(AH6016Platform);
|
||||||
|
} else if (ZR6016Tag.equalsIgnoreCase(platform)) {
|
||||||
|
getAppPlatformCallback.AppPlatform(ZR6016Platform);
|
||||||
} else {
|
} else {
|
||||||
getAppPlatformCallback.AppPlatform(UnknowPlatform);
|
getAppPlatformCallback.AppPlatform(UnknowPlatform);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getAppPlatform() {
|
|
||||||
String platform = BuildConfig.platform;
|
|
||||||
if ("MTK".equalsIgnoreCase(platform)) {
|
|
||||||
return MTKTag;
|
|
||||||
} else if ("ZhanRui".equalsIgnoreCase(platform)) {
|
|
||||||
return ZhanruiTag;
|
|
||||||
} else if ("ZhanRuiCube".equalsIgnoreCase(platform)) {
|
|
||||||
return CubeTag;
|
|
||||||
} else {
|
|
||||||
return Other;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean isOfficialVersion() {
|
public static boolean isOfficialVersion() {
|
||||||
String channelValue = JGYUtils.getInstance().getStringMetaData();
|
String channelValue = JGYUtils.getInstance().getStringMetaData();
|
||||||
return "official".equals(channelValue);
|
return "official".equals(channelValue);
|
||||||
|
|||||||