Skip to content

Commit

Permalink
enhancedMode is disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
coderstory committed Jan 30, 2021
1 parent 3cbdc21 commit 35d9330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/toolkit/coderstory/CorePatchForQ.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {

@Override
public void initZygote(StartupParam startupParam) throws Throwable {
if (prefs.getBoolean("enhancedMode", true)) {
if (prefs.getBoolean("enhancedMode", false)) {
hookAllMethods("android.content.pm.PackageParser", null, "getApkSigningVersion", XC_MethodReplacement.returnConstant(1));
hookAllConstructors("android.util.jar.StrictJarVerifier", new XC_MethodHook() {
@Override
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/toolkit/coderstory/CorePatchForR.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void afterHookedMethod(MethodHookParam methodHookParam) throws Throwable

@Override
public void initZygote(StartupParam startupParam) throws Throwable {
if (prefs.getBoolean("enhancedMode", true)) {
if (prefs.getBoolean("enhancedMode", false)) {
hookAllMethods("android.content.pm.PackageParser", null, "getApkSigningVersion", XC_MethodReplacement.returnConstant(1));
hookAllConstructors("android.util.jar.StrictJarVerifier", new XC_MethodHook() {
@Override
Expand Down

0 comments on commit 35d9330

Please sign in to comment.