mirror of
https://github.com/jrpie/Launcher.git
synced 2025-04-19 02:10:54 +02:00
lock screen: use device admin instead of accessibility service
This commit is contained in:
parent
3c73a7f49d
commit
3423534085
7 changed files with 80 additions and 96 deletions
|
@ -52,17 +52,18 @@
|
|||
<category android:name="android.intent.category.DEFAULT"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<service android:name=".actions.LauncherAccessibilityService"
|
||||
android:exported="true"
|
||||
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
|
||||
android:label="@string/app_name">
|
||||
<intent-filter>
|
||||
<action android:name="android.accessibilityservice.AccessibilityService" />
|
||||
</intent-filter>
|
||||
<meta-data
|
||||
android:name="android.accessibilityservice"
|
||||
android:resource="@xml/accessibility_service_config" />
|
||||
</service>
|
||||
</application>
|
||||
|
||||
<receiver android:name=".actions.LauncherDeviceAdmin"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:description="@string/device_admin_description"
|
||||
android:permission="android.permission.BIND_DEVICE_ADMIN">
|
||||
|
||||
<meta-data android:name="android.app.device_admin"
|
||||
android:resource="@xml/device_admin_config" />
|
||||
<intent-filter>
|
||||
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
</application>
|
||||
</manifest>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue