Fix bootloop

This commit is contained in:
solohsu 2019-06-06 14:45:51 +08:00
parent fe10afb663
commit 8e3afb0362
3 changed files with 9 additions and 6 deletions

View File

@ -141,9 +141,12 @@ public abstract class BaseRouter implements Router {
public void startWorkAroundHook() {
ClassLoader classLoader = BaseRouter.class.getClassLoader();
if (useXposedApi) {
XposedHelpers.findAndHookMethod(OnePlusWorkAroundHooker.className,
classLoader, OnePlusWorkAroundHooker.methodName,
int.class, String.class, new OneplusWorkaround());
try {
XposedHelpers.findAndHookMethod(OnePlusWorkAroundHooker.className,
classLoader, OnePlusWorkAroundHooker.methodName,
int.class, String.class, new OneplusWorkaround());
} catch (Throwable throwable) {
}
} else {
HookMain.doHookDefault(
BaseRouter.class.getClassLoader(),

View File

@ -3,10 +3,10 @@ import org.gradle.internal.os.OperatingSystem
apply plugin: 'com.android.library'
version "v0.4.3.6_alpha"
version "v0.4.3.7_alpha"
ext {
versionCode = "4360"
versionCode = "4370"
module_name = "EdXposed"
jar_dest_dir = "${projectDir}/template_override/system/framework/"
is_windows = OperatingSystem.current().isWindows()

View File

@ -1,6 +1,6 @@
#!/system/bin/sh
EDXP_VERSION="0.4.3.6_alpha (4360)"
EDXP_VERSION="0.4.3.7_alpha (4370)"
ANDROID_SDK=`getprop ro.build.version.sdk`
BUILD_DESC=`getprop ro.build.description`
PRODUCT=`getprop ro.build.product`