Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions library/src/main/java/icu/nullptr/applistdetector/XposedModules.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import java.util.zip.ZipFile

class XposedModules(context: Context) : IDetector(context) {

Expand All @@ -23,6 +24,16 @@ class XposedModules(context: Context) : IDetector(context) {
val label = pm.getApplicationLabel(aInfo) as String
result = Result.FOUND
set?.add(label to Result.FOUND)
continue
}
kotlin.runCatching {
val apk = ZipFile(aInfo.sourceDir)
if (apk.getEntry("META-INF/xposed/module.prop") != null){
val label = pm.getApplicationLabel(aInfo) as String
result = Result.FOUND
set?.add(label to Result.FOUND)
}
apk.close()
}
}
detail?.addAll(set!!)
Expand Down