[app] Get installed modules from binder
This commit is contained in:
parent
f8013f208c
commit
d2386cde57
|
|
@ -85,9 +85,9 @@ public final class ModuleUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, InstalledModule> modules = new HashMap<>();
|
Map<String, InstalledModule> modules = new HashMap<>();
|
||||||
for (PackageInfo pkg : pm.getInstalledPackages(PackageManager.GET_META_DATA)) {
|
for (PackageInfo pkg : ConfigManager.getInstalledPackagesFromAllUsers(PackageManager.GET_META_DATA)) {
|
||||||
ApplicationInfo app = pkg.applicationInfo;
|
ApplicationInfo app = pkg.applicationInfo;
|
||||||
if (!app.enabled)
|
if (!app.enabled || app.uid / 100000 != 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (app.metaData != null && app.metaData.containsKey("xposedmodule")) {
|
if (app.metaData != null && app.metaData.containsKey("xposedmodule")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue