Adjust name of the adb dummy App

This commit is contained in:
Jonas Lochmann 2022-03-21 01:00:00 +01:00
parent bf016a88bd
commit 35d4e359e5
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36
4 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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()
}

View file

@ -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>

View file

@ -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>