Skip to content

Commit 61bdf50

Browse files
committed
[skip ci] improvement for development and fix another issue of agp 8.3
1 parent 7a37364 commit 61bdf50

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

magisk-loader/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ val pushDaemonNative = task<Exec>("pushDaemonNative") {
310310
}
311311
outputStream.toString().trim()
312312
}
313-
workingDir(project(":daemon").layout.buildDirectory.dir("intermediates/stripped_native_libs/debug/out/lib/$abi"))
313+
workingDir(project(":daemon").layout.buildDirectory.dir("intermediates/stripped_native_libs/debug/stripDebugDebugSymbols/out/lib/$abi"))
314314
}
315315
commandLine(adb, "push", "libdaemon.so", "/data/local/tmp/libdaemon.so")
316316
}
@@ -338,6 +338,11 @@ val pushApk = task<Exec>("pushApk") {
338338
commandLine(adb, "shell", "su", "-c", "rm", "-f", tmpApk)
339339
}
340340
}
341+
doLast {
342+
exec {
343+
commandLine(adb, "shell", "su", "-c", "mv", tmpApk, "/data/adb/modules/zygisk_lsposed/")
344+
}
345+
}
341346
workingDir(project(":app").layout.buildDirectory.dir("outputs/apk/debug"))
342347
commandLine(adb, "push", "app-debug.apk", tmpApk)
343348
}

0 commit comments

Comments
 (0)