Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Do not kill me library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Do not kill me library
Commits
a6ca53ff
Commit
a6ca53ff
authored
3 years ago
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Use protected apps intent for protectedAppsNeedsToBeShown().
parent
f13f385a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Use protected apps intent for protectedAppsNeedsToBeShown()
Pipeline
#10636
passed
3 years ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/src/main/java/org/briarproject/android/dontkillmelib/HuaweiUtils.kt
+1
-1
1 addition, 1 deletion
...ava/org/briarproject/android/dontkillmelib/HuaweiUtils.kt
with
1 addition
and
1 deletion
lib/src/main/java/org/briarproject/android/dontkillmelib/HuaweiUtils.kt
+
1
−
1
View file @
a6ca53ff
...
@@ -39,7 +39,7 @@ public object HuaweiUtils {
...
@@ -39,7 +39,7 @@ public object HuaweiUtils {
// "Protected apps" no longer exists on Huawei EMUI 5.0 (Android 7.0)
// "Protected apps" no longer exists on Huawei EMUI 5.0 (Android 7.0)
if
(
SDK_INT
>=
24
)
return
false
if
(
SDK_INT
>=
24
)
return
false
val
pm
=
context
.
packageManager
val
pm
=
context
.
packageManager
val
resolveInfos
=
pm
.
queryIntentActivities
(
huaweiP
owerManager
Intent
,
MATCH_DEFAULT_ONLY
)
val
resolveInfos
=
pm
.
queryIntentActivities
(
huaweiP
rotectedApps
Intent
,
MATCH_DEFAULT_ONLY
)
return
resolveInfos
.
isNotEmpty
()
return
resolveInfos
.
isNotEmpty
()
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment