-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
57 lines (47 loc) · 2.12 KB
/
plugin.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="org.wzq.android.mdm.pluginmdm"
version="0.0.2">
<name>mdm</name>
<description>cordova plugin mdm</description>
<author>wzq</author>
<keywords>cordova,plugin,mdm</keywords>
<license>Apache 2.0 License</license>
<asset src="www/mdm_test.html" target="mdm_test.html"/>
<asset src="www/mdm_test.js" target="mdm_test.js"/>
<platform name="android">
<!-- plugin config -->
<config-file target="res/xml/config.xml" parent="/*">
<feature name="mdm">
<param name="android-package" value="org.wzq.android.mdm.PluginMdm" />
<param name="onload" value="true" />
</feature>
</config-file>
<!-- java src code -->
<source-file src="src/PluginMdm.java" target-dir="src/org/wzq/android/mdm/"/>
<source-file src="src/MdmExecutor.java" target-dir="src/org/wzq/android/mdm/"/>
<source-file src="src/DeviceAdmin.java" target-dir="src/org/wzq/android/mdm/"/>
<source-file src="src/MdmCmdType.java" target-dir="src/org/wzq/android/mdm/"/>
<source-file src="src/MdmCommand.java" target-dir="src/org/wzq/android/mdm/"/>
<!-- mdm config file -->
<source-file src="res/mdm.xml" target-dir="res/xml/"/>
<!-- manifest config -->
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver
android:name="org.wzq.android.mdm.DeviceAdmin"
android:permission="android.permission.BIND_DEVICE_ADMIN">
<meta-data
android:name="android.app.device_admin"
android:resource="@xml/mdm"/>
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
</intent-filter>
</receiver>
</config-file>
</platform>
<engines>
<engine name="cordova" version=">=3.5.0" platform="android"/>
<engine name="cordova-plugman" version=">=3.5.0" platform="android"/>
</engines>
</plugin>