/
AndroidManifest.xml
155 lines (139 loc) · 6.49 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="fr.neamar.kiss">
<permission
android:name="com.android.launcher.permission.INSTALL_SHORTCUT"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="normal" />
<permission
android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"
android:permissionGroup="android.permission-group.SYSTEM_TOOLS"
android:protectionLevel="normal" />
<!-- Self explanatory -->
<uses-permission android:name="android.permission.READ_CONTACTS" />
<!-- To call a phone number directly without displaying the dialer -->
<uses-permission android:name="android.permission.CALL_PHONE" />
<!-- To read phone state -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!-- Display notification drawer -->
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
<!-- Ability to uninstall an app from KISS -->
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />
<uses-feature
android:name="android.hardware.bluetooth"
android:required="false" />
<uses-feature
android:name="android.hardware.wifi"
android:required="false" />
<uses-feature
android:name="android.hardware.nfc"
android:required="false" />
<application
android:name=".KissApplication"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppThemeLight"
tools:ignore="GoogleAppIndexingWarning"
android:resizeableActivity="true"
android:fullBackupContent="@xml/backup_descriptor">
<!-- Can be removed once we target SDK 24+ -->
<meta-data
android:name="android.max_aspect"
android:value="3.0" />
<!--
clearTaskOnLaunch: when viewing kiss settings, display the main activity when pressing home https://github.com/Neamar/KISS/issues/117
launchMode=singleTop: call onNewIntent() when pressing home again while already viewing main activity, also redisplay main activity when viewing full-screen contact from picture
windowSoftInputMode: hide keyboard by default
stateNotNeeded: rebuild the whole UI each time onResume() is called
-->
<activity
android:name=".MainActivity"
android:clearTaskOnLaunch="true"
android:excludeFromRecents="true"
android:label="@string/app_name"
android:launchMode="singleTask"
android:screenOrientation="user"
android:stateNotNeeded="true"
android:windowSoftInputMode="stateAlwaysHidden|adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.ASSIST" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.content.pm.action.CONFIRM_PIN_SHORTCUT" />
</intent-filter>
<meta-data
android:name="com.android.systemui.action_assist_icon"
android:resource="@drawable/ic_launcher" />
</activity>
<activity
android:name=".DummyActivity"
android:enabled="false">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name=".SettingsActivity"
android:label="@string/activity_setting"
android:theme="@style/SettingTheme" />
<activity
android:name=".kustomsupport.AutoFinishTransparentActivity"
android:theme="@style/Theme.Transparent" />
<provider
android:name=".kustomsupport.Kustom5SecsProvider"
android:authorities="${applicationId}.kustomsupport.kustom5secsprovider"
android:exported="true"
android:grantUriPermissions="true" />
<receiver
android:name=".broadcast.LocaleChangedReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.LOCALE_CHANGED" />
</intent-filter>
</receiver>
<!-- On incoming calls, add user to history -->
<receiver
android:name=".broadcast.IncomingCallHandler"
android:enabled="false">
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
</receiver>
<!-- Intents received used to install/uninstall shortcuts from other applications -->
<receiver
android:name=".shortcut.InstallShortcutHandler"
android:permission="com.android.launcher.permission.INSTALL_SHORTCUT">
<intent-filter>
<action android:name="com.android.launcher.action.INSTALL_SHORTCUT" />
</intent-filter>
</receiver>
<receiver
android:name=".shortcut.UninstallShortcutHandler"
android:permission="com.android.launcher.permission.UNINSTALL_SHORTCUT">
<intent-filter>
<action android:name="com.android.launcher.action.UNINSTALL_SHORTCUT" />
</intent-filter>
</receiver>
<service android:name=".dataprovider.AppProvider" />
<service android:name=".dataprovider.ContactsProvider" />
<service android:name=".dataprovider.SearchProvider" />
<service android:name=".dataprovider.SettingsProvider" />
<service android:name=".dataprovider.ShortcutsProvider" />
</application>
</manifest>