Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
fix bypass signature
Browse files Browse the repository at this point in the history
  • Loading branch information
b14aa178 committed May 1, 2021
1 parent 9373508 commit 50ab11a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.os.Build;
import android.os.IBinder;
import android.os.Parcel;
import android.util.Log;

import org.lsposed.lspatch.loader.util.FileUtils;
import org.lsposed.lspatch.loader.util.XLog;
Expand Down Expand Up @@ -64,6 +65,8 @@ static public boolean isIsolated() {
}

static {
cacheSigbypassLv = -1;

if (isIsolated()) {
XLog.d(TAG, "skip isolated process");
}
Expand Down Expand Up @@ -236,7 +239,7 @@ private static void doHook() throws IllegalAccessException, ClassNotFoundExcepti
}
}

private static int cacheSigbypassLv = -1;
private static int cacheSigbypassLv;

private static int fetchSigbypassLv() {
if (cacheSigbypassLv != -1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ protected void attachBaseContext(Context base) {

if (realLSPApplication != null) {
try {
realLSPApplication.getClass().getDeclaredMethod("attachBaseContext", Context.class).invoke(realLSPApplication, base);
Method method = realLSPApplication.getClass().getDeclaredMethod("attachBaseContext", Context.class);
method.setAccessible(true);
method.invoke(realLSPApplication, base);
}
catch (Exception e) {
throw new IllegalStateException("wtf", e);
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Apr 08 14:13:08 CST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
2 changes: 1 addition & 1 deletion mmp
Submodule mmp updated from 41668c to 64e744

0 comments on commit 50ab11a

Please sign in to comment.