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

View File

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