Skip to content

Commit

Permalink
1.增加了个CI编译,没啥用
Browse files Browse the repository at this point in the history
  • Loading branch information
nining377 committed Nov 3, 2021
1 parent 4f671bb commit 2ade91a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 58 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ jobs:
with:
java-version: 1.8

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: chmod +x gradlew &&./gradlew assembleDebug

- name: Upload APK
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v2
with:
name: app
name: app-debug
path: app/build/outputs/apk/debug/debug.apk
47 changes: 0 additions & 47 deletions .github/workflows/main.yml

This file was deleted.

3 changes: 0 additions & 3 deletions hotxposed/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 29
versionCode 1
versionName "1.0"

}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Created on 2018/3/30.
*/
public class HotXposed {
public static void hook(Class clazz, XC_LoadPackage.LoadPackageParam lpparam)
public static void hook(Class<?> clazz, XC_LoadPackage.LoadPackageParam lpparam)
throws Exception {
String packageName = clazz.getName().replace("." + clazz.getSimpleName(), "");
File apkFile = getApkFile(packageName, lpparam);
Expand All @@ -30,7 +30,7 @@ public static void hook(Class clazz, XC_LoadPackage.LoadPackageParam lpparam)
filterNotify(lpparam);

PathClassLoader classLoader = new PathClassLoader(apkFile.getAbsolutePath(), lpparam.getClass().getClassLoader());
Class cls = classLoader.loadClass(clazz.getName());
Class<?> cls = classLoader.loadClass(clazz.getName());
if (cls != null) {
Method method = cls.getDeclaredMethod("dispatch", XC_LoadPackage.LoadPackageParam.class);
method.setAccessible(true);
Expand All @@ -44,7 +44,7 @@ private static void filterNotify(XC_LoadPackage.LoadPackageParam lpparam)
XposedHelpers.findAndHookMethod(lpparam.classLoader.loadClass("de.robv.android.xposed.installer.util.NotificationUtil"),
"showModulesUpdatedNotification", new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
protected void beforeHookedMethod(MethodHookParam param) {
param.setResult(new Object());
}

Expand Down

0 comments on commit 2ade91a

Please sign in to comment.