forked from limpoxe/Android-Plugin-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroidManifest.xml
More file actions
130 lines (117 loc) · 5.05 KB
/
AndroidManifest.xml
File metadata and controls
130 lines (117 loc) · 5.05 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.plugin.core"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="22" />
<application>
<!--
对Receiver的类全名没有要求,可随意指定,框架中是通过action来查询。
-->
<receiver android:name="com.plugin.core.stub.PluginStubReceiver"
android:exported="true">
<intent-filter>
<action
android:name="com.plugin.core.STUB_DEFAULT" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<!--
所有的插件中共有多少个Service, 这里就注册多少个对应的虚拟Service,
这里的虚拟Service并不需要真实存在,
只是占个位置,运行实动态绑定到实际的插件Service
对service的类全名没有要求,可随意指定,框架中是通过action来查询。
-->
<service android:name="com.plugin.core.stub.PluginStubService1">
<intent-filter>
<action
android:name="com.plugin.core.STUB_DEFAULT" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<service android:name="com.plugin.core.stub.PluginStubService2">
<intent-filter>
<action
android:name="com.plugin.core.STUB_DEFAULT" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<service android:name="com.plugin.core.stub.PluginStubService3">
<intent-filter>
<action
android:name="com.plugin.core.STUB_DEFAULT" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<activity
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:name="com.plugin.core.stub.PluginStubActivity0"
android:exported="true">
<intent-filter>
<action
android:name="com.plugin.core.STUB_DEFAULT" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<!--///////////////////////////////////////////////////////////////////-->
<!--///////////////////////////////////////////////////////////////////-->
<!--为了支持非standard的launchMode,
所有的插件中共有多少个非standard模式的Activity,就在这里注册多少个对应的虚拟的Activity(standard的只需要1个),
这些虚拟Activity并不需要真实存在,
(实际情况中注册的虚拟activity个数可以比插件中的非standard的activity个数少。
因为不太可能所有的插件activity都同时被唤起)
对Activity的类全名没有要求,可随意指定,框架中是通过action来查询。
-->
<activity
android:name="com.plugin.core.stub.PluginStubActivity1"
android:exported="true"
android:launchMode="singleTask">
<intent-filter>
<action
android:name="com.plugin.core.STUB_DEFAULT" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.plugin.core.stub.PluginStubActivity2"
android:exported="true"
android:launchMode="singleTask">
<intent-filter>
<action
android:name="com.plugin.core.STUB_DEFAULT" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.plugin.core.stub.PluginStubActivity3"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<action
android:name="com.plugin.core.STUB_DEFAULT" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="com.plugin.core.stub.PluginStubActivity4"
android:exported="true"
android:launchMode="singleInstance">
<intent-filter>
<action
android:name="com.plugin.core.STUB_DEFAULT" />
<category
android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>