1<manifest xmlns:android="http://schemas.android.com/apk/res/android" 2 package="com.android.camera" 3 android:versionCode="1" 4 android:versionName="1" 5 > 6 7 <original-package android:name="com.android.camera" /> 8 9 <uses-permission android:name="android.permission.CAMERA" /> 10 <uses-feature android:name="android.hardware.camera" /> 11 <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" /> 12 13 <uses-permission android:name="android.permission.RECORD_AUDIO" /> 14 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> 15 <uses-permission android:name="android.permission.WAKE_LOCK" /> 16 <uses-permission android:name="android.permission.SET_WALLPAPER" /> 17 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 18 <uses-permission android:name="android.permission.READ_SMS" /> 19 20 <application android:icon="@mipmap/ic_launcher_camera" 21 android:name="com.android.camera.CameraAppImpl" 22 android:label="@string/camera_label" 23 android:theme="@style/ThemeCamera" 24 android:hardwareAccelerated="true"> 25 <uses-library android:name="com.google.android.media.effects" android:required="false" /> 26 <receiver android:name="com.android.camera.CameraButtonIntentReceiver" 27 android:exported="true"> 28 <intent-filter> 29 <action android:name="android.intent.action.CAMERA_BUTTON"/> 30 </intent-filter> 31 </receiver> 32 <activity android:name="com.android.camera.Camera" 33 android:configChanges="orientation|screenSize|keyboardHidden" 34 android:clearTaskOnLaunch="true" 35 android:exported="true" 36 android:windowSoftInputMode="stateAlwaysHidden|adjustPan"> 37 <intent-filter> 38 <action android:name="android.intent.action.MAIN" /> 39 <category android:name="android.intent.category.DEFAULT" /> 40 <category android:name="android.intent.category.LAUNCHER" /> 41 </intent-filter> 42 <intent-filter> 43 <action android:name="android.media.action.IMAGE_CAPTURE" /> 44 <category android:name="android.intent.category.DEFAULT" /> 45 </intent-filter> 46 <intent-filter> 47 <action android:name="android.media.action.STILL_IMAGE_CAMERA" /> 48 <category android:name="android.intent.category.DEFAULT" /> 49 </intent-filter> 50 </activity> 51 <activity android:name="com.android.camera.VideoCamera" 52 android:label="@string/video_camera_label" 53 android:configChanges="orientation|screenSize|keyboardHidden" 54 android:icon="@mipmap/ic_launcher_video_camera" 55 android:clearTaskOnLaunch="true" 56 android:exported="true" 57 android:windowSoftInputMode="stateAlwaysHidden|adjustPan"> 58 <intent-filter> 59 <action android:name="android.media.action.VIDEO_CAMERA" /> 60 <category android:name="android.intent.category.DEFAULT" /> 61 </intent-filter> 62 <intent-filter> 63 <action android:name="android.media.action.VIDEO_CAPTURE" /> 64 <category android:name="android.intent.category.DEFAULT" /> 65 </intent-filter> 66 </activity> 67 <!-- Suppose users enter panorama from launcher, turn off the screen, 68 turn on the screen, and enter the camera from the lock screen. 69 They can switch to panorama from there. Use singleTask so there 70 will be only one panorama activity. --> 71 <activity android:name="com.android.camera.panorama.PanoramaActivity" 72 android:label="@string/pano_dialog_title" 73 android:configChanges="orientation|screenSize|keyboardHidden" 74 android:clearTaskOnLaunch="true" 75 android:windowSoftInputMode="stateAlwaysHidden|adjustPan" 76 android:launchMode="singleTask"> 77 </activity> 78 </application> 79</manifest> 80 81