Remove com.google.android.gms from default list

It seems that even adding this to the list doesn't 100% works on all
devices out there, and some even reported crashes on several Google
services. Disable it for now and do further investigations in the future.
This commit is contained in:
topjohnwu 2019-03-27 21:33:04 -04:00
parent 10f50e2401
commit d08b1a6639
2 changed files with 3 additions and 5 deletions

View File

@ -30,7 +30,6 @@ import com.topjohnwu.magisk.utils.Utils;
import com.topjohnwu.superuser.Shell;
import com.topjohnwu.superuser.internal.UiThreadHandler;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
@ -38,6 +37,7 @@ import java.util.Set;
import butterknife.BindView;
import java9.util.Comparators;
import java9.util.Lists;
import java9.util.Objects;
import java9.util.Sets;
import java9.util.stream.Collectors;
@ -52,7 +52,7 @@ public class ApplicationAdapter extends SectionedAdapter
private static boolean old_hide = false;
/* A list of apps that should not be shown as hide-able */
private static final List<String> HIDE_BLACKLIST = Arrays.asList(
private static final List<String> HIDE_BLACKLIST = Lists.of(
App.self.getPackageName(),
"android",
"com.android.chrome",
@ -62,8 +62,7 @@ public class ApplicationAdapter extends SectionedAdapter
"com.android.webview",
"com.google.android.webview"
);
private static final List<String> DEFAULT_HIDELIST = Arrays.asList(
GMS_PACKAGE,
private static final List<String> DEFAULT_HIDELIST = Lists.of(
SAFETYNET_PROCESS
);

View File

@ -232,7 +232,6 @@ bool init_list() {
// Add SafetyNet by default
rm_list(SAFETYNET_COMPONENT);
rm_list(SAFETYNET_PROCESS);
init_list(SAFETYNET_PKG, SAFETYNET_PKG);
init_list(SAFETYNET_PKG, SAFETYNET_PROCESS);
init_list(MICROG_SAFETYNET, SAFETYNET_PROCESS);