forked from mcr/Android-HelloWorldService
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathAndroidManifest.xml
36 lines (32 loc) · 1.73 KB
/
AndroidManifest.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
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.credil.helloworldservice"
android:versionCode="1"
android:versionName="1.0">
<!-- Define a permission for people to access the native service this should normally
happen in a different place. all Binder interface are to be considered public so you always
need to take security into account -->
<permission android:name="org.credil.helloworldservice.permissions.CALL_HELLOTHERE"
android:permissionGroup="android.permission-group.HARDWARE_CONTROLS"
android:protectionLevel="dangerous"
android:label="@string/permlab_callHelloTherePermission"
android:description="@string/permdesc_callHelloTherePermission" />
<!-- use this permission in the packages -->
<uses-permission android:name="org.credil.helloworldservice.permissions.CALL_HELLOTHERE" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".HelloWorldActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Really just a wrapper Service that listens to the IHelloWorld action intent-->
<service android:name=".HelloWorldService">
<intent-filter>
<!-- That the intent name is equal the "descriptor" name is a pure coincidence -->
<action android:name="org.credil.helloworldservice.IHelloWorld" />
</intent-filter>
</service>
</application>
</manifest>