allow service to run with screen off

This commit is contained in:
AR2000
2024-02-25 23:38:03 +01:00
parent 78e4a10256
commit 4ea09c5beb
2 changed files with 9 additions and 0 deletions

View File

@@ -37,6 +37,14 @@ android {
isRenderscriptDebuggable = false
signingConfig = signingConfigs.getByName("release")
}
create("private") {
isDebuggable = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
signingConfig = signingConfigs.getByName("debug")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/servicedesc"
android:requireDeviceScreenOn="false"
android:requireDeviceUnlock="false">
<aid-group android:description="@string/aiddescription"
android:category="other">