From 51dc0617e17c8c8ad58f9414c12f9fed8d9c37f7 Mon Sep 17 00:00:00 2001 From: darken Date: Wed, 6 Nov 2024 15:22:53 +0100 Subject: [PATCH] CorpseFinder: Scan `Android/data` if Shizuku is available ADB level privileges are enough to scan `Android/data`, root isn't necessary. --- .../sdmse/corpsefinder/core/filter/PublicDataCorpseFilter.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/darken/sdmse/corpsefinder/core/filter/PublicDataCorpseFilter.kt b/app/src/main/java/eu/darken/sdmse/corpsefinder/core/filter/PublicDataCorpseFilter.kt index cb065e9f0..d6f45f809 100644 --- a/app/src/main/java/eu/darken/sdmse/corpsefinder/core/filter/PublicDataCorpseFilter.kt +++ b/app/src/main/java/eu/darken/sdmse/corpsefinder/core/filter/PublicDataCorpseFilter.kt @@ -45,8 +45,8 @@ class PublicDataCorpseFilter @Inject constructor( val gateway = gatewaySwitch.getGateway(APath.PathType.LOCAL) as LocalGateway - if (hasApiLevel(33) && !gateway.hasRoot()) { - log(TAG) { "LocalGateway has no root, skipping public data on Android 13" } + if (hasApiLevel(33) && !gateway.hasRoot() && !gateway.hasShizuku()) { + log(TAG) { "LocalGateway has no root/adb, skipping public data on Android 13+" } return emptySet() }