Remove safetynet black list
This commit is contained in:
parent
c9c0b18f8f
commit
1f109b37b8
|
|
@ -9,7 +9,7 @@ android {
|
|||
buildToolsVersion "29.0.3"
|
||||
defaultConfig {
|
||||
applicationId "org.meowcat.edxposed.manager"
|
||||
minSdkVersion 21
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 27
|
||||
versionCode 45408
|
||||
versionName "4.5.4.4"
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ public class AppHelper {
|
|||
private static final String BLACK_LIST_MODE = "conf/blackwhitelist";
|
||||
|
||||
private static final List<String> FORCE_WHITE_LIST = new ArrayList<>(Collections.singletonList(BuildConfig.APPLICATION_ID));
|
||||
private static final List<String> SAFETYNET_BLACK_LIST = new ArrayList<>(Arrays.asList("com.google.android.gms", "com.google.android.gsf"));
|
||||
static List<String> FORCE_WHITE_LIST_MODULE = new ArrayList<>(FORCE_WHITE_LIST);
|
||||
|
||||
@SuppressWarnings("OctalInteger")
|
||||
|
|
@ -65,12 +64,6 @@ public class AppHelper {
|
|||
}
|
||||
|
||||
private static boolean addWhiteList(String packageName) {
|
||||
if (SAFETYNET_BLACK_LIST.contains(packageName)) {
|
||||
if (XposedApp.getPreferences().getBoolean("pass_safetynet", false)) {
|
||||
removeWhiteList(packageName);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return whiteListFileName(packageName, true);
|
||||
}
|
||||
|
||||
|
|
@ -90,11 +83,6 @@ public class AppHelper {
|
|||
}
|
||||
|
||||
private static boolean removeBlackList(String packageName) {
|
||||
if (SAFETYNET_BLACK_LIST.contains(packageName)) {
|
||||
if (XposedApp.getPreferences().getBoolean("pass_safetynet", false)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return blackListFileName(packageName, false);
|
||||
}
|
||||
|
||||
|
|
@ -116,14 +104,6 @@ public class AppHelper {
|
|||
removeBlackList(pn);
|
||||
}
|
||||
}
|
||||
if (XposedApp.getPreferences().getBoolean("pass_safetynet", false)) {
|
||||
for (String pn : SAFETYNET_BLACK_LIST) {
|
||||
if (!s.contains(pn)) {
|
||||
s.add(pn);
|
||||
addBlackList(pn);
|
||||
}
|
||||
}
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
@ -143,14 +123,6 @@ public class AppHelper {
|
|||
addWhiteList(pn);
|
||||
}
|
||||
}
|
||||
if (XposedApp.getPreferences().getBoolean("pass_safetynet", false)) {
|
||||
for (String pn : SAFETYNET_BLACK_LIST) {
|
||||
if (result.contains(pn)) {
|
||||
result.remove(pn);
|
||||
removeWhiteList(pn);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimaryDark">#dddddd</color>
|
||||
</resources>
|
||||
|
|
@ -232,7 +232,7 @@
|
|||
<string name="meowcat">小喵工作室</string>
|
||||
<string name="white_list_mode_summary">白名单模式: 仅选中的应用加载 EdXposed 模块\n仅当启用应用名单模式时有效</string>
|
||||
<string name="pref_title_black_white_list">应用名单模式</string>
|
||||
<string name="pref_black_white_list_summary">开启后,可在\"应用\"中设置名单\n黑名单模式: 选中的应用不会加载 EdXposed 模块\n注意: 使用应用名单可能会导致某些系统全局模块不能正常工作\n</string>
|
||||
<string name="pref_black_white_list_summary">开启后,可在\"应用\"中设置名单\n黑名单模式: 选中的应用不会加载 EdXposed 模块\n注意: 使用应用名单可能会导致某些系统全局模块不能正常工作</string>
|
||||
<string name="ignore_chinese_summary">从模块列表中隐藏中文模块\n模块仍然可以被搜索到\n启用此选项可能会降低性能</string>
|
||||
<string name="ignore_chinese">忽略中文字符</string>
|
||||
<string name="verified_boot_explanation">引导验证(dm-verity)防止设备在修改系统分区时引导</string>
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@
|
|||
<string name="meowcat">小喵工作室</string>
|
||||
<string name="white_list_mode_summary">白名單模式: 僅選中的應用加載 EdXposed 模塊\n僅當啟用應用名單模式時有效</string>
|
||||
<string name="pref_title_black_white_list">應用名單模式</string>
|
||||
<string name="pref_black_white_list_summary">開啟後,可在\"應用\"中設置名單\n黑名單模式: 選中的應用不會加載 EdXposed 模塊\n注意: 使用應用名單可能會導致某些系統全局模塊不能正常工作\n</string>
|
||||
<string name="pref_black_white_list_summary">開啟後,可在\"應用\"中設置名單\n黑名單模式: 選中的應用不會加載 EdXposed 模塊\n注意: 使用應用名單可能會導致某些系統全局模塊不能正常工作</string>
|
||||
<string name="ignore_chinese_summary">從模塊列表中隱藏中文模塊\n模塊仍然可以被搜索到\n啟用此選項可能會降低性能</string>
|
||||
<string name="ignore_chinese">忽略中文字符</string>
|
||||
<string name="verified_boot_explanation">引導驗證(dm-verity)防止設備在修改系統分區時引導</string>
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@
|
|||
<string name="meowcat">小喵工作室</string>
|
||||
<string name="white_list_mode_summary">白名單模式: 僅選中的應用載入 EdXposed 模組\n僅當啟用應用名單模式時有效</string>
|
||||
<string name="pref_title_black_white_list">應用名單模式</string>
|
||||
<string name="pref_black_white_list_summary">開啟後,可在\"應用\"中設定名單\n黑名單模式: 選中的應用不會載入 EdXposed 模組\n注意: 使用應用名單可能會導致某些系統全域性模組不能正常工作\n</string>
|
||||
<string name="pref_black_white_list_summary">開啟後,可在\"應用\"中設定名單\n黑名單模式: 選中的應用不會載入 EdXposed 模組\n注意: 使用應用名單可能會導致某些系統全域性模組不能正常工作</string>
|
||||
<string name="ignore_chinese_summary">從模組列表中隱藏中文模組\n模組仍然可以被搜尋到\n啟用此選項可能會降低效能</string>
|
||||
<string name="ignore_chinese">忽略中文字元</string>
|
||||
<string name="verified_boot_explanation">引導驗證(dm-verity)防止裝置在修改系統分割槽時引導</string>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<resources>
|
||||
<color name="colorPrimary">#2196f3</color>
|
||||
<color name="colorBackground">#fafafa</color>
|
||||
<color name="colorPrimaryDark">#2196f3</color>
|
||||
<color name="colorPrimaryDark">#dddddd</color>
|
||||
<color name="colorAccent">#448aff</color>
|
||||
<color name="colorActionBar">#F0F0F0</color>
|
||||
<color name="red_500">#F44336</color>
|
||||
|
|
|
|||
|
|
@ -161,13 +161,6 @@
|
|||
android:title="@string/hook_modules"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
android:defaultValue="false"
|
||||
android:key="pass_safetynet"
|
||||
android:summary="@string/pass_safetynet_summary"
|
||||
android:title="@string/pass_safetynet"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<SwitchPreferenceCompat
|
||||
android:defaultValue="false"
|
||||
android:key="disable_verbose_log"
|
||||
|
|
|
|||
Loading…
Reference in New Issue