mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 01:39:22 +02:00
Adjust name of the adb dummy App
This commit is contained in:
parent
bf016a88bd
commit
35d4e359e5
4 changed files with 7 additions and 3 deletions
|
@ -17,7 +17,9 @@ package io.timelimit.android.integration.platform.android
|
|||
|
||||
import android.app.admin.DevicePolicyManager
|
||||
import android.content.ComponentName
|
||||
import android.content.Context
|
||||
import android.os.UserManager
|
||||
import io.timelimit.android.R
|
||||
import io.timelimit.android.integration.platform.PlatformFeature
|
||||
|
||||
object AndroidFeatures {
|
||||
|
@ -30,12 +32,12 @@ object AndroidFeatures {
|
|||
return true
|
||||
}
|
||||
|
||||
fun getFeaturesAssumingDeviceOwnerGranted(): List<PlatformFeature> {
|
||||
fun getFeaturesAssumingDeviceOwnerGranted(context: Context): List<PlatformFeature> {
|
||||
val result = mutableListOf<PlatformFeature>()
|
||||
|
||||
result.add(PlatformFeature(
|
||||
id = FEATURE_ADB,
|
||||
title = "ADB"
|
||||
title = context.getString(R.string.dummy_app_feature_adb)
|
||||
))
|
||||
|
||||
return result
|
||||
|
|
|
@ -521,7 +521,7 @@ class AndroidIntegration(context: Context): PlatformIntegration(maximumProtectio
|
|||
Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP &&
|
||||
policyManager.isDeviceOwnerApp(context.packageName) &&
|
||||
(!BuildConfig.storeCompilant)
|
||||
) AndroidFeatures.getFeaturesAssumingDeviceOwnerGranted()
|
||||
) AndroidFeatures.getFeaturesAssumingDeviceOwnerGranted(context)
|
||||
else emptyList()
|
||||
}
|
||||
|
||||
|
|
|
@ -1600,4 +1600,5 @@
|
|||
<string name="task_review_last_grant">Diese Aufgabe wurde zuletzt bestätigt am %s</string>
|
||||
|
||||
<string name="dummy_app_unassigned_system_image_app">nicht zugeordnete Apps von der Systempartition</string>
|
||||
<string name="dummy_app_feature_adb">Entwickleroptionen</string>
|
||||
</resources>
|
||||
|
|
|
@ -1654,4 +1654,5 @@
|
|||
<string name="task_review_last_grant">This task was confirmed last time at %s</string>
|
||||
|
||||
<string name="dummy_app_unassigned_system_image_app">not assigned Apps from the system image</string>
|
||||
<string name="dummy_app_feature_adb">Developer Options</string>
|
||||
</resources>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue