1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2015 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17<manifest xmlns:android="http://schemas.android.com/apk/res/android" 18 package="com.example.android.system.runtimepermissions"> 19 20 <!-- BEGIN_INCLUDE(manifest) --> 21 22 <!-- Note that all required permissions are declared here in the Android manifest. 23 On Android M and above, use of these permissions is only requested at run time. --> 24 <uses-permission android:name="android.permission.CAMERA" /> 25 26 <!-- The following permissions are only requested if the device is on M or above. 27 On older platforms these permissions are not requested and will not be available. --> 28 <uses-permission-sdk-23 android:name="android.permission.READ_CONTACTS" /> 29 <uses-permission-sdk-23 android:name="android.permission.WRITE_CONTACTS" /> 30 31 <!-- END_INCLUDE(manifest) --> 32 33 <application 34 android:allowBackup="true" 35 android:icon="@mipmap/ic_launcher" 36 android:label="@string/app_name" 37 android:supportsRtl="true" 38 android:theme="@style/Theme.AppCompat.Light"> 39 <activity 40 android:name=".MainActivity" 41 android:label="@string/app_name"> 42 <intent-filter> 43 <action android:name="android.intent.action.MAIN" /> 44 45 <category android:name="android.intent.category.LAUNCHER" /> 46 </intent-filter> 47 </activity> 48 49 </application> 50 51</manifest> 52