diff --git a/.idea/compiler.xml b/.idea/compiler.xml index b589d56..e58d3e4 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..0c0c338 --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index a8a2b16..9924903 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,7 @@ + - + diff --git a/app/src/main/kotlin/dev/beefers/vendetta/xposed/Main.kt b/app/src/main/kotlin/dev/beefers/vendetta/xposed/Main.kt index 1709889..f4a3576 100644 --- a/app/src/main/kotlin/dev/beefers/vendetta/xposed/Main.kt +++ b/app/src/main/kotlin/dev/beefers/vendetta/xposed/Main.kt @@ -65,7 +65,6 @@ class Main : IXposedHookZygoteInit, IXposedHookLoadPackage { val loadScriptFromFile = catalystInstance.getDeclaredMethod("jniLoadScriptFromFile", String::class.java, String::class.java, Boolean::class.javaPrimitiveType) // TODO: Loader config - // TODO: It's fast now, but we have the Hindi timestamps issue. Probably requires a JS side fix. val hook = object : XC_MethodHook() { override fun beforeHookedMethod(param: MethodHookParam): Unit = runBlocking { @@ -84,7 +83,6 @@ class Main : IXposedHookZygoteInit, IXposedHookLoadPackage { scope.launch(scope.coroutineContext) { Log.i("Vendetta", "Waiting for HTTP") httpJob.await() - delay(500) // Magic hacky bullshit Log.i("Vendetta", "Executing Vendetta") XposedBridge.invokeOriginalMethod(loadScriptFromFile, param.thisObject, arrayOf(bundle.absolutePath, bundle.absolutePath, param.args[2]))