mirror of
https://github.com/jrpie/Launcher.git
synced 2025-06-09 02:40:01 +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
|
@ -1,7 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:accessibilityEventTypes="typeAllMask"
|
||||
android:accessibilityFeedbackType="feedbackAllMask"
|
||||
android:accessibilityFlags="flagDefault"
|
||||
android:description="@string/accessibility_service_description"
|
||||
/>
|
6
app/src/main/res/xml/device_admin_config.xml
Normal file
6
app/src/main/res/xml/device_admin_config.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<device-admin xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<uses-policies>
|
||||
<force-lock />
|
||||
</uses-policies>
|
||||
</device-admin>
|
Loading…
Add table
Add a link
Reference in a new issue