1.4.0521 优化开机动画 控制主页控件显示
This commit is contained in:
@@ -737,7 +737,7 @@ public class Utils {
|
||||
}
|
||||
|
||||
//获取App版本号
|
||||
public static synchronized String getAPPVersionName(String pck, Context context) {
|
||||
public static String getAPPVersionName(String pck, Context context) {
|
||||
PackageManager pm = context.getPackageManager();
|
||||
String versionName;
|
||||
try {
|
||||
@@ -1071,7 +1071,7 @@ public class Utils {
|
||||
*
|
||||
* @param context
|
||||
*/
|
||||
synchronized public static void doMasterClear(Context context) {
|
||||
public static void doMasterClear(Context context) {
|
||||
if (BuildConfig.DEBUG) {
|
||||
Toaster.show("收到重置设备推送消息");
|
||||
return;
|
||||
@@ -1104,7 +1104,7 @@ public class Utils {
|
||||
* @param disallowList 允许
|
||||
* @return
|
||||
*/
|
||||
static synchronized public boolean writeDisableUpdateList(Context context, String[] allowList, String[] disallowList) {
|
||||
static public boolean writeDisableUpdateList(Context context, String[] allowList, String[] disallowList) {
|
||||
String now = Settings.System.getString(context.getContentResolver(), CommonConfig.AOLE_ACTION_APP_FORBID);
|
||||
String[] nowList;
|
||||
List<String> allList;
|
||||
@@ -1568,7 +1568,7 @@ public class Utils {
|
||||
* @param mContext
|
||||
* @return
|
||||
*/
|
||||
synchronized private static int getBatteryLevel(Context mContext) {
|
||||
private static int getBatteryLevel(Context mContext) {
|
||||
if (Build.VERSION.SDK_INT >= 21) {
|
||||
return ((BatteryManager) mContext.getSystemService(Context.BATTERY_SERVICE)).getIntProperty(4);
|
||||
} else {
|
||||
@@ -1764,7 +1764,7 @@ public class Utils {
|
||||
*/
|
||||
public static String getCustomVersion() {
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.CubePlatform
|
||||
// || JGYUtils.getInstance().checkAppPlatform() == JGYUtils.CubePlatform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.MTKPlatform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.MTK11Platform
|
||||
|| JGYUtils.getInstance().checkAppPlatform() == JGYUtils.TeclastP20sPlatform
|
||||
@@ -1791,9 +1791,11 @@ public class Utils {
|
||||
public static String getRomVersion() {
|
||||
if (JGYUtils.getInstance().checkAppPlatform() == JGYUtils.ZhanruiPlatform) {
|
||||
return getProperty("ro.build.id", "获取失败");
|
||||
} 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.CubePlatform) {
|
||||
// return Utils.getProperty("ro.build.id", "获取失败");
|
||||
// }
|
||||
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