Hide system in MagiskHide list

This commit is contained in:
vvb2060 2018-10-17 09:09:18 +08:00 committed by John Wu
parent a4f0fbf8b7
commit e1b181ca4e
2 changed files with 1 additions and 2 deletions

View File

@ -41,7 +41,6 @@ public class Const {
/* A list of apps that should not be shown as hide-able */ /* A list of apps that should not be shown as hide-able */
public static final List<String> HIDE_BLACKLIST = Arrays.asList( public static final List<String> HIDE_BLACKLIST = Arrays.asList(
"android",
Data.MM().getPackageName(), Data.MM().getPackageName(),
"com.google.android.gms" "com.google.android.gms"
); );

View File

@ -70,7 +70,7 @@ public class ApplicationAdapter extends RecyclerView.Adapter<ApplicationAdapter.
hideList = Shell.su("magiskhide --ls").exec().getOut(); hideList = Shell.su("magiskhide --ls").exec().getOut();
for (Iterator<ApplicationInfo> i = fullList.iterator(); i.hasNext(); ) { for (Iterator<ApplicationInfo> i = fullList.iterator(); i.hasNext(); ) {
ApplicationInfo info = i.next(); ApplicationInfo info = i.next();
if (Const.HIDE_BLACKLIST.contains(info.packageName) || !info.enabled) { if (Const.HIDE_BLACKLIST.contains(info.packageName) || !info.enabled || info.uid == 1000) {
i.remove(); i.remove();
} }
} }