1
- <?xml version =" 1.0" encoding =" utf-8" ?>
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ Copyright 2014 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
+
2
18
<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3
- xmlns : tools =" http://schemas.android.com/tools"
4
- package =" com.youbanganda"
5
- >
6
- <!-- android:sharedUserId="android.uid.system"-->
7
- <uses-permission android : name =" android.permission.INSTALL_PACKAGES"
8
- tools : ignore =" ProtectedPermissions" />
9
- <uses-permission android : name =" android.permission.SHUTDOWN"
10
- tools : ignore =" ProtectedPermissions" />
11
- <!-- Required -->
12
- <permission
13
- android : name =" com.youbanganda.permission.JPUSH_MESSAGE"
14
- android : protectionLevel =" signature" />
15
- <!-- Required -->
16
- <uses-permission android : name =" com.youbanganda.permission.JPUSH_MESSAGE" />
17
- <uses-permission android : name =" android.permission.RECEIVE_USER_PRESENT" />
18
- <!-- 用于开启 debug 版本的应用在6.0 系统上 层叠窗口权限 -->
19
- <uses-permission android : name =" android.permission.INTERNET" />
20
- <uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
21
- <uses-permission android : name =" android.permission.ACCESS_WIFI_STATE" />
22
- <uses-permission android : name =" android.permission.WRITE_SETTINGS" />
23
- <uses-permission android : name =" android.permission.WAKE_LOCK" />
24
- <uses-permission android : name =" android.permission.RECEIVE_BOOT_COMPLETED" />
25
- <uses-permission android : name =" android.permission.WRITE_SETTINGS" />
26
- <!-- 写系统权限 -->
27
- <uses-permission android : name =" android.permission.WRITE_SECURE_SETTINGS"
28
- tools : ignore =" ProtectedPermissions" />
29
- <uses-permission android : name =" android.permission.MASTER_CLEAR"
30
- tools : ignore =" ProtectedPermissions" />
31
- <!-- 恢复出厂设置权限 -->
32
- <uses-permission android : name =" com.android.launcher.permission.READ_SETTINGS" />
33
- <uses-permission android : name =" android.permission.REORDER_TASKS" />
34
- <uses-permission android : name =" android.permission.CHANGE_CONFIGURATION" />
35
- <!-- 语言设置权限 -->
36
- <uses-permission android : name =" android.permission.SEND_SMS" />
37
- <!-- 发送短信权限 -->
38
- <uses-permission android : name =" android.permission.RECEIVE_SMS" />
39
- <!-- 接收短信权限 -->
40
- <uses-permission android : name =" android.permission.READ_SMS" />
41
- <!-- 接收短信权限 -->
42
- <uses-permission android : name =" android.permission.WRITE_SMS" />
43
- <!-- 接收短信权限 -->
44
- <uses-permission android : name =" android.permission.CALL_PHONE" />
45
- <!-- 拨打电话的权限 -->
46
- <uses-permission android : name =" android.permission.ACCESS_NETWORK_STATE" />
47
- <!-- 取得网络状态的权限 -->
48
- <uses-permission android : name =" android.permission.CHANGE_NETWORK_STATE" />
49
- <!-- 取得GSM信号强度权限 -->
50
- <uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
51
- <!-- 使用GPS权限 -->
52
- <uses-permission android : name =" android.permission.READ_PHONE_STATE" />
53
- <!-- 读取本机号码和IMEI权限 -->
54
- <uses-permission android : name =" android.permission.CHANGE_WIFI_STATE" />
55
- <!-- 设置WIFI热点的权限 -->
56
- <uses-permission android : name =" android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
57
- <!-- 发送GPS冷启命令的权限 -->
58
- <uses-permission android : name =" android.permission.GET_TASKS" />
59
- <!-- 获取当前活动的activity -->
19
+ package =" com.tfcamerademo" >
20
+
60
21
<uses-permission android : name =" android.permission.CAMERA" />
61
- <!-- 访问照像机的权限 -->
62
- <uses-permission android : name =" android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
63
- <!-- 允许挂载和移除文件系统可移动存储器 -->
64
22
<uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
65
- <!-- 允许写扩展存储器 -->
66
- <uses-permission android : name =" android.permission.RECEIVE_MMS" />
67
- <!-- 接收彩信权限 -->
68
- <uses-permission android : name =" android.permission.MODIFY_AUDIO_SETTINGS" />
69
- <uses-permission android : name =" android.permission.SET_TIME_ZONE" />
70
- <!-- 允许设置系统时区 -->
71
- <uses-permission android : name =" android.permission.PROCESS_OUTGOING_CALLS" />
72
- <uses-permission android : name =" android.permission.VIBRATE" />
73
- <uses-permission android : name =" android.permission.RECORD_AUDIO" />
74
- <!-- 录制视频/音频权限 -->
23
+ <uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
24
+
25
+ <uses-feature android : name =" android.hardware.camera" />
26
+ <uses-feature android : name =" android.hardware.camera.autofocus" />
75
27
76
- <uses-permission android : name =" android.permission.REBOOT"
77
- tools : ignore =" ProtectedPermissions" />
78
- <uses-permission android : name =" android.permission.SYSTEM_ALERT_WINDOW" />
79
- <uses-permission android : name =" android.permission.WRITE_MEDIA_STORAGE"
80
- tools : ignore =" ProtectedPermissions" />
81
- <uses-permission android : name =" android.permission.DELETE_CACHE_FILES"
82
- tools : ignore =" ProtectedPermissions" />
83
- <uses-permission android : name =" android.permission.ACCESS_CACHE_FILESYSTEM"
84
- tools : ignore =" ProtectedPermissions" />
85
- <uses-permission android : name =" android.permission.BLUETOOTH_ADMIN" />
28
+ <uses-sdk android : minSdkVersion =" 21" />
86
29
87
- <application
88
- android : allowBackup =" true"
89
- android : icon =" @mipmap/ic_launcher"
30
+ <application android : allowBackup =" true"
90
31
android : label =" @string/app_name"
91
- android : persistent =" true"
92
- android : supportsRtl =" true"
93
- android : theme =" @android:style/Theme.Light.NoTitleBar"
94
- android : largeHeap =" true"
95
- tools : node =" replace" >
96
- <activity android : name =" .MainActivity" >
32
+ android : icon =" @drawable/tile"
33
+ android : theme =" @style/MaterialTheme" >
34
+
35
+ <activity android : name =" com.tfcamerademo.CameraActivity"
36
+ android : label =" @string/app_name" >
97
37
<intent-filter >
98
38
<action android : name =" android.intent.action.MAIN" />
99
-
100
39
<category android : name =" android.intent.category.LAUNCHER" />
101
40
</intent-filter >
102
41
</activity >
103
42
</application >
104
43
105
- </manifest >
44
+ </manifest >
0 commit comments