Enable Xposed API call protection by default (#2423)
This commit is contained in:
parent
7112bb5a91
commit
0709f10f59
|
|
@ -209,7 +209,7 @@
|
||||||
<string name="update_channel_bate">Beta</string>
|
<string name="update_channel_bate">Beta</string>
|
||||||
<string name="update_channel_nightly">Nightly build</string>
|
<string name="update_channel_nightly">Nightly build</string>
|
||||||
<string name="settings_xposed_api_call_protection">Xposed API call protection</string>
|
<string name="settings_xposed_api_call_protection">Xposed API call protection</string>
|
||||||
<string name="settings_xposed_api_call_protection_summary">Block dynamically loaded module code to use Xposed API, this may break some modules but benefit security (experimental feature)</string>
|
<string name="settings_xposed_api_call_protection_summary">Block dynamically loaded module code to use Xposed API, this may break some modules but benefit security</string>
|
||||||
|
|
||||||
<!-- Module Repo -->
|
<!-- Module Repo -->
|
||||||
<string name="module_readme">Readme</string>
|
<string name="module_readme">Readme</string>
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ public class ConfigManager {
|
||||||
sqLiteDatabase -> Log.w(TAG, "database corrupted"));
|
sqLiteDatabase -> Log.w(TAG, "database corrupted"));
|
||||||
|
|
||||||
private boolean verboseLog = true;
|
private boolean verboseLog = true;
|
||||||
private boolean dexObfuscate = false;
|
private boolean dexObfuscate = true;
|
||||||
private boolean enableStatusNotification = true;
|
private boolean enableStatusNotification = true;
|
||||||
private Path miscPath = null;
|
private Path miscPath = null;
|
||||||
|
|
||||||
|
|
@ -263,7 +263,7 @@ public class ConfigManager {
|
||||||
verboseLog = bool == null || (boolean) bool;
|
verboseLog = bool == null || (boolean) bool;
|
||||||
|
|
||||||
bool = config.get("enable_dex_obfuscate");
|
bool = config.get("enable_dex_obfuscate");
|
||||||
dexObfuscate = bool != null && (boolean) bool;
|
dexObfuscate = bool == null || (boolean) bool;
|
||||||
|
|
||||||
bool = config.get("enable_auto_add_shortcut");
|
bool = config.get("enable_auto_add_shortcut");
|
||||||
if (bool != null) {
|
if (bool != null) {
|
||||||
|
|
@ -1023,9 +1023,8 @@ public class ConfigManager {
|
||||||
|
|
||||||
// this is for manager and should not use the cache result
|
// this is for manager and should not use the cache result
|
||||||
boolean dexObfuscate() {
|
boolean dexObfuscate() {
|
||||||
Map<String, Object> config = getModulePrefs("lspd", 0, "config");
|
var bool = getModulePrefs("lspd", 0, "config").get("enable_dex_obfuscate");
|
||||||
Object bool = config.get("enable_dex_obfuscate");
|
return bool == null || (boolean) bool;
|
||||||
return bool != null && (boolean) bool;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean enableStatusNotification() {
|
public boolean enableStatusNotification() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue