Check permissions before using associated APIs
Also, use sdkVersion=MNC. This way missing runtime permissions will
throw SecurityExceptions. This will make it easier to catch any
unchecked usage of permissions.
Bug: 21791169
Change-Id: I6118cc42e3aa6505b47df9470672f722600eca31
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 4bee141..1a33284 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -18,10 +18,9 @@
package="com.android.contacts"
android:sharedUserId="android.uid.shared">
+ <uses-sdk android:minSdkVersion="MNC" android:targetSdkVersion="MNC" />
<original-package android:name="com.android.contacts" />
- <!-- Whenever a permission is added here, it should also be added to
- RequestPermissionsActivity so it can be requested at runtime. -->
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />