Skip to content

Commit 108149b

Browse files
authored
Remove WebUI integration (#345)
Having a WebUI simply duplicating the current function of the Action button is unnecessary. Since most users are migrated to root implementations which realize the Action button feature, we revert commit f8409ad to remove the WebUI integration of LSPosed.
1 parent 2293acb commit 108149b

File tree

5 files changed

+1
-87
lines changed

5 files changed

+1
-87
lines changed

.github/workflows/core.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ jobs:
6767
with:
6868
version: 1.12.1
6969

70-
- name: Setup pnpm
71-
uses: pnpm/action-setup@v4
72-
with:
73-
version: latest
74-
7570
- name: Setup ccache
7671
uses: actions/cache@v4
7772
with:

magisk-loader/build.gradle.kts

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -112,46 +112,6 @@ val zipAll = task("zipAll") {
112112
group = "LSPosed"
113113
}
114114

115-
val generateWebRoot = tasks.register<Copy>("generateWebRoot") {
116-
group = "LSPosed"
117-
val webroottmp = File("$projectDir/build/intermediates/generateWebRoot")
118-
val webrootsrc = File(webroottmp, "src")
119-
120-
onlyIf {
121-
val os = org.gradle.internal.os.OperatingSystem.current()
122-
if (os.isWindows) {
123-
exec {
124-
commandLine("cmd", "/c", "where", "pnpm")
125-
isIgnoreExitValue = true
126-
}.exitValue == 0
127-
} else {
128-
exec {
129-
commandLine("which", "pnpm")
130-
isIgnoreExitValue = true
131-
}.exitValue == 0
132-
}
133-
}
134-
135-
doFirst {
136-
webroottmp.mkdirs()
137-
webrootsrc.mkdirs()
138-
}
139-
140-
from("$projectDir/src/webroot")
141-
into(webrootsrc)
142-
143-
doLast {
144-
exec {
145-
workingDir = webroottmp
146-
commandLine("pnpm", "add", "-D", "parcel", "kernelsu")
147-
}
148-
exec {
149-
workingDir = webroottmp
150-
commandLine("./node_modules/.bin/parcel", "build", "src/index.html")
151-
}
152-
}
153-
}
154-
155115
fun afterEval() = android.applicationVariants.forEach { variant ->
156116
val variantCapped = variant.name.replaceFirstChar { it.uppercase() }
157117
val variantLowered = variant.name.lowercase()
@@ -171,8 +131,7 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
171131
"assemble$variantCapped",
172132
":app:package$buildTypeCapped",
173133
":daemon:package$buildTypeCapped",
174-
":dex2oat:externalNativeBuild${buildTypeCapped}",
175-
generateWebRoot
134+
":dex2oat:externalNativeBuild${buildTypeCapped}"
176135
)
177136
into(magiskDir)
178137
from("${rootProject.projectDir}/README.md")
@@ -232,15 +191,6 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
232191
from(dexOutPath)
233192
rename("classes.dex", "lspd.dex")
234193
}
235-
into("webroot") {
236-
if (flavorLowered.startsWith("zygisk")) {
237-
from("$projectDir/build/intermediates/generateWebRoot/dist") {
238-
include("**/*.js")
239-
include("**/*.html")
240-
}
241-
}
242-
}
243-
244194
val injected = objects.newInstance<Injected>(magiskDir.get().asFile.path)
245195
doLast {
246196
injected.factory.fileTree().from(injected.magiskDir).visit {

magisk-loader/magisk_module/customize.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,6 @@ rm -f /data/adb/lspd/manager.apk
8484
extract "$ZIPFILE" 'manager.apk' "$MODPATH"
8585

8686
if [ "$FLAVOR" == "zygisk" ]; then
87-
# extract for KernelSU and APatch
88-
if [ "$KSU" ] || [ "$APATCH" ]; then
89-
# webroot only for zygisk
90-
mkdir -p "$MODPATH/webroot"
91-
extract "$ZIPFILE" "webroot/index.html" "$MODPATH/webroot" true
92-
# evaluate if use awk or tr -s ' ' | cut -d' ' -f5
93-
SRCJS=$(unzip -l "$ZIPFILE" | grep "webroot/generate" | grep -v sha256 | awk '{print $4}')
94-
extract "$ZIPFILE" "$SRCJS" "$MODPATH/webroot" true
95-
fi
96-
9787
mkdir -p "$MODPATH/zygisk"
9888

9989
if [ "$ARCH" = "arm" ] || [ "$ARCH" = "arm64" ]; then

magisk-loader/src/webroot/index.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

magisk-loader/src/webroot/index.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)