From: TrillGates Date: Thu, 28 Oct 2021 08:46:08 +0000 (+0800) Subject: 添加了电话权限 X-Git-Url: http://git.snicker.com.cn/sitemap.xml?a=commitdiff_plain;h=c9321db93fbd17b8f65dce391021d2b9dedc0dcc;p=icsos.git 添加了电话权限 --- diff --git a/app/release/ICSOS_V6_2110270942_release.apk b/app/release/ICSOS_V7_2110281634_release.apk similarity index 58% rename from app/release/ICSOS_V6_2110270942_release.apk rename to app/release/ICSOS_V7_2110281634_release.apk index abc3fc1..98e9ad2 100644 Binary files a/app/release/ICSOS_V6_2110270942_release.apk and b/app/release/ICSOS_V7_2110281634_release.apk differ diff --git a/app/release/output-metadata.json b/app/release/output-metadata.json index 3a88a99..38c2e25 100644 --- a/app/release/output-metadata.json +++ b/app/release/output-metadata.json @@ -12,7 +12,7 @@ "filters": [], "versionCode": 1, "versionName": "1.0", - "outputFile": "ICSOS_V6_2110270942_release.apk" + "outputFile": "ICSOS_V7_2110281634_release.apk" } ] } \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c2fee61..463bccc 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -8,6 +8,7 @@ + { - sosTask(); + if (phoneNumList != null && phoneNumList.size() == 0) { + sosTask(); + } }); } }; @@ -304,7 +306,9 @@ public class SOSPresenter { .getMethod("getService", String.class); IBinder binder = (IBinder) method.invoke(null, new Object[]{Context.TELEPHONY_SERVICE}); ITelephony telephony = ITelephony.Stub.asInterface(binder); - telephony.endCall(); + if (telephony != null) { + telephony.endCall(); + } } catch (Exception e) { e.printStackTrace(); } diff --git a/app/version_code.properties b/app/version_code.properties index db72ccb..4948920 100644 --- a/app/version_code.properties +++ b/app/version_code.properties @@ -1,2 +1,2 @@ -#Wed Oct 27 09:42:49 CST 2021 -VERSION_CODE=6 +#Thu Oct 28 16:34:22 CST 2021 +VERSION_CODE=7