Browse Source

更新SN获取

dt-9690807782-gp7GC 1 year ago
parent
commit
9f184f0e75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/src/main/java/com/telpo/facenormal/utile/Config.java

+ 1 - 1
app/src/main/java/com/telpo/facenormal/utile/Config.java

@@ -259,7 +259,7 @@ public class Config {
         try {
             Class<?> c =Class.forName("android.os.SystemProperties");
             Method get =c.getMethod("get", String.class);
-            if(Build.VERSION.SDK_INT < 28){//28 is andoird 9.0 24-7.0 22-5.1
+            if(Build.VERSION.SDK_INT <= 28){//28 is andoird 9.0 24-7.0 22-5.1
                 serial = (String)get.invoke(c, "ro.serialno");
             }else{
                 serial = (String)get.invoke(c, "persist.sys.hrSerial");//vendor.gsm.serial