-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
95 lines (85 loc) · 3.6 KB
/
AndroidManifest.xml
File metadata and controls
95 lines (85 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myservice"
android:versionCode="1"
android:versionName="1.0"
>
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.RAISED_THREAD_PRIORITY"/>
<uses-permission android:name="android.permission.VIBRATE" />
<!-- 往sdcard中写入数据的权限 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" >
</uses-permission>
<!-- 在sdcard中创建/删除文件的权限 -->
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<permission android:protectionLevel="normal" android:name="oem.permission.SENDMAIL"></permission>
<application
android:persistent="true"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.myservice.MainActivity"
android:label="@string/app_name" >
<intent-filter android:priority="1000">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:exported="true"
android:name="com.example.service.MyService"
android:permission="oem.permission.SENDMAIL"
>
<intent-filter android:priority="1000" >
<action android:name="com.example.myservice"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<service
android:exported="true"
android:name="com.example.service.NewService"
android:process=":new"
>
<intent-filter android:priority="1000" >
<action android:name="com.example.NewService"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<receiver
android:enabled="true"
android:exported="true"
android:name="com.example.broadcast.BootBroadcast"
>
<intent-filter
android:priority="1000">
<!-- <action android:name="android.intent.action.USER_PRESENT"/>
<action android:name="com.example.broad.action"/> -->
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</receiver>
<receiver
android:enabled="true"
android:exported="true"
android:name="com.example.broadcast.AlarmReceiver"
>
<intent-filter >
<action android:name="com.example.alarm.action"/>
</intent-filter>
</receiver>
<receiver
android:enabled="true"
android:exported="true"
android:name="com.example.broadcast.ScreenStatusReceiver">
<intent-filter >
<action android:name="android.intent.action.USER_PRESENT"/>
<action android:name="android.intent.action.PACKAGE_RESTARTED" />
</intent-filter>
</receiver>
</application>
</manifest>