Merge pull request #772 from grote/769-tiktok
Also show TikTok in Backup status
This commit is contained in:
commit
4bad79a924
1 changed files with 5 additions and 1 deletions
|
@ -232,7 +232,11 @@ internal class PackageService(
|
||||||
|
|
||||||
internal fun PackageInfo.isUserVisible(context: Context): Boolean {
|
internal fun PackageInfo.isUserVisible(context: Context): Boolean {
|
||||||
if (packageName == MAGIC_PACKAGE_MANAGER || applicationInfo == null) return false
|
if (packageName == MAGIC_PACKAGE_MANAGER || applicationInfo == null) return false
|
||||||
return !isNotUpdatedSystemApp() && instrumentation == null && packageName != context.packageName
|
val isInstrumentationApp = instrumentation.let { i ->
|
||||||
|
// TikTok for example ships instrumentation, so do more checks. See #769
|
||||||
|
!i.isNullOrEmpty() && packageName.endsWith(".test") && i[0].splitNames.isEmpty()
|
||||||
|
}
|
||||||
|
return !isNotUpdatedSystemApp() && !isInstrumentationApp && packageName != context.packageName
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun PackageInfo.isSystemApp(): Boolean {
|
internal fun PackageInfo.isSystemApp(): Boolean {
|
||||||
|
|
Loading…
Reference in a new issue