1.4.1217
bugfixes:优化命名
This commit is contained in:
@@ -1204,8 +1204,8 @@ public class Utils {
|
||||
}
|
||||
}
|
||||
Log.e("ariaDownload", "urlMD5=" + urlMD5);
|
||||
String p = JGYUtils.getInstance().getDownLoadPath();
|
||||
File file = new File(JGYUtils.getInstance().getDownLoadPath() + fileName);
|
||||
String p = JgyUtils.getInstance().getDownLoadPath();
|
||||
File file = new File(JgyUtils.getInstance().getDownLoadPath() + fileName);
|
||||
if (file.exists() && !file.isDirectory()) {
|
||||
String filenameMD5 = getMD5fromFileName(url);
|
||||
String fileMD5 = FileUtils.getFileMD5ToString(file);
|
||||
@@ -1217,7 +1217,7 @@ public class Utils {
|
||||
} else {
|
||||
Aria.download(context)
|
||||
.load(url) //读取下载地址
|
||||
.setFilePath(JGYUtils.getInstance().getDownLoadPath() + fileName)
|
||||
.setFilePath(JgyUtils.getInstance().getDownLoadPath() + fileName)
|
||||
.ignoreFilePathOccupy()
|
||||
.setExtendField(jsonObject.toString())
|
||||
.create(); //启动下载}
|
||||
@@ -1226,7 +1226,7 @@ public class Utils {
|
||||
|
||||
Aria.download(context)
|
||||
.load(url) //读取下载地址
|
||||
.setFilePath(JGYUtils.getInstance().getDownLoadPath() + fileName)
|
||||
.setFilePath(JgyUtils.getInstance().getDownLoadPath() + fileName)
|
||||
.ignoreFilePathOccupy()
|
||||
.setExtendField(jsonObject.toString())
|
||||
.create(); //启动下载}
|
||||
@@ -1801,21 +1801,23 @@ public class Utils {
|
||||
* @return
|
||||
*/
|
||||
public static String getCustomVersion() {
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform
|
||||
// || JGYUtils.getInstance().checkAppPlatform() == JGYUtils.CubePlatform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.MTKPlatform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.MTK11Platform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.TeclastP20sPlatform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.AH6016Platform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZR6016Platform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.HRAD13Platform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.G10PPlatform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.C2Platform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.YXPD1Platform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.G11Platform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.MT8768Platform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.AUDG104Platform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.HL500Platform
|
||||
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.ZhanruiPlatform
|
||||
// || JgyUtils.getInstance().checkAppPlatform() == JgyUtils.CubePlatform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MTKPlatform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MTK11Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.TeclastP20sPlatform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.AH6016Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.ZR6016Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.HRAD13Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.G10PPlatform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.C2Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.YXPD1Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.G11Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MT8768Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.AUDG104Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.HL500Platform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.G11JPlatform
|
||||
|| JgyUtils.getInstance().checkAppPlatform() == JgyUtils.P50Platform
|
||||
) {
|
||||
return Utils.getProperty("ro.build.display.id", "获取失败");
|
||||
} else {
|
||||
@@ -1829,13 +1831,13 @@ public class Utils {
|
||||
* @return
|
||||
*/
|
||||
public static String getRomVersion() {
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform) {
|
||||
if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.ZhanruiPlatform) {
|
||||
return getProperty("ro.build.id", "获取失败");
|
||||
}
|
||||
// else if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.CubePlatform) {
|
||||
// else if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.CubePlatform) {
|
||||
// return Utils.getProperty("ro.build.id", "获取失败");
|
||||
// }
|
||||
else if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.MTKPlatform) {
|
||||
else if (JgyUtils.getInstance().checkAppPlatform() == JgyUtils.MTKPlatform) {
|
||||
return Utils.getProperty("ro.build.id", "获取失败");
|
||||
} else {
|
||||
return getProperty("ro.build.display.id", "获取失败");
|
||||
|
||||
Reference in New Issue
Block a user