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 <intent-filter> 28 <action android:name="android.intent.action.CAMERA_BUTTON"/> 29 </intent-filter> 30 </receiver> 31 <activity android:name="com.android.camera.Camera" 32 android:configChanges="orientation|screenSize|keyboardHidden" 33 android:clearTaskOnLaunch="true" 34 android:windowSoftInputMode="stateAlwaysHidden|adjustPan"> 35 <intent-filter> 36 <action android:name="android.intent.action.MAIN" /> 37 <category android:name="android.intent.category.DEFAULT" /> 38 <category android:name="android.intent.category.LAUNCHER" /> 39 </intent-filter> 40 <intent-filter> 41 <action android:name="android.media.action.IMAGE_CAPTURE" /> 42 <category android:name="android.intent.category.DEFAULT" /> 43 </intent-filter> 44 <intent-filter> 45 <action android:name="android.media.action.STILL_IMAGE_CAMERA" /> 46 <category android:name="android.intent.category.DEFAULT" /> 47 </intent-filter> 48 </activity> 49 <activity android:name="com.android.camera.VideoCamera" 50 android:label="@string/video_camera_label" 51 android:configChanges="orientation|screenSize|keyboardHidden" 52 android:icon="@mipmap/ic_launcher_video_camera" 53 android:clearTaskOnLaunch="true" 54 android:windowSoftInputMode="stateAlwaysHidden|adjustPan"> 55 <intent-filter> 56 <action android:name="android.media.action.VIDEO_CAMERA" /> 57 <category android:name="android.intent.category.DEFAULT" /> 58 </intent-filter> 59 <intent-filter> 60 <action android:name="android.media.action.VIDEO_CAPTURE" /> 61 <category android:name="android.intent.category.DEFAULT" /> 62 </intent-filter> 63 </activity> 64 <!-- Suppose users enter panorama from launcher, turn off the screen, 65 turn on the screen, and enter the camera from the lock screen. 66 They can switch to panorama from there. Use singleTask so there 67 will be only one panorama activity. --> 68 <activity android:name="com.android.camera.panorama.PanoramaActivity" 69 android:label="@string/pano_dialog_title" 70 android:configChanges="orientation|screenSize|keyboardHidden" 71 android:clearTaskOnLaunch="true" 72 android:windowSoftInputMode="stateAlwaysHidden|adjustPan" 73 android:launchMode="singleTask"> 74 </activity> 75 </application> 76</manifest> 77 78