diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json index 4908781..eda4738 100644 --- a/app/release/output-metadata.json +++ b/app/release/output-metadata.json @@ -11,9 +11,9 @@ "type": "SINGLE", "filters": [], "attributes": [], - "versionCode": 2, - "versionName": "1.0.02", - "outputFile": "JtunRouter_v1.0.02.apk" + "versionCode": 3, + "versionName": "1.0.03", + "outputFile": "JtunRouter_v1.0.03.apk" } ], "elementType": "File" diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 291000d..74e5c75 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ = Build.VERSION_CODES.O) { - serial = Build.getSerial() + try { + //不是系统应用会报错 + serial = Build.getSerial() + }catch (_:Exception){ + } if(serial.isEmpty()){ WifiApControl.getInstance().getImei()?.let { serial = it