File tree 2 files changed +15
-11
lines changed 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -261,9 +261,11 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
261
261
rename(" classes.dex" , " lspd.dex" )
262
262
}
263
263
into(" webroot" ) {
264
- from(" $projectDir /build/intermediates/generateWebRoot/dist" ) {
265
- include(" **/*.js" )
266
- include(" **/*.html" )
264
+ if (flavorLowered == " zygisk" ) {
265
+ from(" $projectDir /build/intermediates/generateWebRoot/dist" ) {
266
+ include(" **/*.js" )
267
+ include(" **/*.html" )
268
+ }
267
269
}
268
270
}
269
271
Original file line number Diff line number Diff line change @@ -92,15 +92,17 @@ mkdir '/data/adb/lspd'
92
92
extract " $ZIPFILE " ' cli' ' /data/adb/lspd/bin'
93
93
94
94
if [ " $FLAVOR " == " zygisk" ]; then
95
- mkdir -p " $MODPATH /zygisk"
96
-
97
- # webroot only for zygisk
98
- mkdir -p " $MODPATH /webroot"
99
- extract " $ZIPFILE " " webroot/index.html" " $MODPATH /webroot" true
100
- # evaluate if use awk or tr -s ' ' | cut -d' ' -f5
101
- SRCJS=$( unzip -l " $ZIPFILE " | grep " webroot/src" | grep -v sha256 | awk ' {print $4}' )
102
- extract " $ZIPFILE " " $SRCJS " " $MODPATH /webroot" true
95
+ # extract only if KernelSU
96
+ if [ " $KSU " ]; then
97
+ # webroot only for zygisk
98
+ mkdir -p " $MODPATH /webroot"
99
+ extract " $ZIPFILE " " webroot/index.html" " $MODPATH /webroot" true
100
+ # evaluate if use awk or tr -s ' ' | cut -d' ' -f5
101
+ SRCJS=$( unzip -l " $ZIPFILE " | grep " webroot/src" | grep -v sha256 | awk ' {print $4}' )
102
+ extract " $ZIPFILE " " $SRCJS " " $MODPATH /webroot" true
103
+ fi
103
104
105
+ mkdir -p " $MODPATH /zygisk"
104
106
if [ " $ARCH " = " arm" ] || [ " $ARCH " = " arm64" ]; then
105
107
extract " $ZIPFILE " " lib/armeabi-v7a/liblspd.so" " $MODPATH /zygisk" true
106
108
mv " $MODPATH /zygisk/liblspd.so" " $MODPATH /zygisk/armeabi-v7a.so"
You can’t perform that action at this time.
0 commit comments