forked from plateaukao/AutoScreenOnOff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AndroidManifest.xml
126 lines (107 loc) · 5.03 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
<?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="com.danielkao.autoscreenonoff"
android:versionCode="33"
android:versionName="2.7" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.VIBRATE"/>
<!-- <uses-permission android:name="android.permission.DISABLE_KEYGUARD"/> -->
<uses-feature android:name="android.hardware.sensor.proximity" android:required="true" />
<uses-permission android:name="android.permission.GET_TASKS" />
<!-- for disabling function when call is ongoing -->
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<!-- for admob
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
-->
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:debuggable="true"
android:theme="@style/AppTheme" >
<activity
android:name=".ui.MainActivity"
android:excludeFromRecents="true"
android:label="@string/app_name" >
</activity>
<activity
android:name=".ui.AutoScreenOnOffPreferenceActivity"
android:label="@string/setting_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- admob
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
-->
<receiver
android:name=".receiver.TurnOffReceiver"
android:label="@string/app_name"
android:permission="android.permission.BIND_DEVICE_ADMIN" >
<meta-data
android:name="android.app.device_admin"
android:resource="@xml/deviceinfo" />
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
<action android:name="android.app.action.DEVICE_ADMIN_DISABLED" />
</intent-filter>
</receiver>
<receiver android:name=".receiver.ChargingStatusChangeReceiver" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
</intent-filter>
</receiver>
<receiver android:name=".receiver.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
</intent-filter>
</receiver>
<service
android:name=".service.SensorMonitorService"
android:enabled="true"
android:exported="true" >
<intent-filter>
<action android:name="com.danielkao.autoscreenonoff.serviceaction" />
</intent-filter>
</service>
<receiver android:name=".provider.ToggleAutoScreenOnOffAppWidgetProvider"
android:configure="com.danielkao.autoscreenonoff.ScreenOffWidgetConfigure"
>
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="com.danielkao.autoscreenonoff.updatewidget" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/toggleonoff_appwidget_info" />
</receiver>
<receiver android:name=".provider.ScreenOffAppWidgetProvider" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="com.danielkao.autoscreenonoff.updatewidget" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/screenoff_appwidget_info" />
</receiver>
<receiver
android:name=".receiver.AppReplaceReceiver"
android:label="app_replace">
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
</application>
</manifest>