version: cude 5.9 mtk 3.4

fix:优化百度地图位置乱码
update:增加手动爱华解锁判断
This commit is contained in:
2022-07-05 20:24:57 +08:00
parent 6ab5e00948
commit 5b49f1370f
8 changed files with 57 additions and 20 deletions

View File

@@ -1328,7 +1328,7 @@ public class JGYUtils {
if (locked == 1) {
return;
}
int aihuaUnlock = Settings.Global.getInt(mContext.getContentResolver(), CommonConfig.AIHUA_UNLOCK, 0);
int aihuaUnlock = Settings.System.getInt(mContext.getContentResolver(), CommonConfig.AIHUA_UNLOCK, 0);
if (aihuaUnlock == 1) {
return;
}
@@ -2300,6 +2300,10 @@ public class JGYUtils {
return Build.HARDWARE;
}
public boolean isAihuaFramwwork() {
return (Utils.getProperty("ro.build.display.id", "获取失败").contains("_aihua"));
}
public static boolean isAihuaDevice() {
return getHardware().startsWith(MTK_HARDWARE) && Build.BRAND.startsWith(AIHUA_BRAND);
}