You've already forked TrickyStore
mirror of
https://github.com/5ec1cff/TrickyStore.git
synced 2025-09-06 06:37:07 +00:00
extract daemon
This commit is contained in:
@@ -76,7 +76,7 @@ androidComponents.onVariants { variant ->
|
|||||||
into(moduleDir)
|
into(moduleDir)
|
||||||
from(rootProject.layout.projectDirectory.file("README.md"))
|
from(rootProject.layout.projectDirectory.file("README.md"))
|
||||||
from(layout.projectDirectory.file("template")) {
|
from(layout.projectDirectory.file("template")) {
|
||||||
exclude("module.prop", "customize.sh", "post-fs-data.sh", "service.sh")
|
exclude("module.prop", "customize.sh", "post-fs-data.sh", "service.sh", "daemon")
|
||||||
filter<FixCrLfFilter>("eol" to FixCrLfFilter.CrLf.newInstance("lf"))
|
filter<FixCrLfFilter>("eol" to FixCrLfFilter.CrLf.newInstance("lf"))
|
||||||
}
|
}
|
||||||
from(layout.projectDirectory.file("template")) {
|
from(layout.projectDirectory.file("template")) {
|
||||||
@@ -89,7 +89,7 @@ androidComponents.onVariants { variant ->
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
from(layout.projectDirectory.file("template")) {
|
from(layout.projectDirectory.file("template")) {
|
||||||
include("customize.sh", "post-fs-data.sh", "service.sh")
|
include("customize.sh", "post-fs-data.sh", "service.sh", "daemon")
|
||||||
val tokens = mapOf(
|
val tokens = mapOf(
|
||||||
"DEBUG" to if (buildTypeLowered == "debug") "true" else "false",
|
"DEBUG" to if (buildTypeLowered == "debug") "true" else "false",
|
||||||
"SONAME" to moduleId,
|
"SONAME" to moduleId,
|
||||||
|
|||||||
@@ -60,14 +60,15 @@ fi
|
|||||||
. "$TMPDIR/verify.sh"
|
. "$TMPDIR/verify.sh"
|
||||||
extract "$ZIPFILE" 'customize.sh' "$TMPDIR/.vunzip"
|
extract "$ZIPFILE" 'customize.sh' "$TMPDIR/.vunzip"
|
||||||
extract "$ZIPFILE" 'verify.sh' "$TMPDIR/.vunzip"
|
extract "$ZIPFILE" 'verify.sh' "$TMPDIR/.vunzip"
|
||||||
extract "$ZIPFILE" 'sepolicy.rule' "$TMPDIR"
|
|
||||||
|
|
||||||
ui_print "- Extracting module files"
|
ui_print "- Extracting module files"
|
||||||
extract "$ZIPFILE" 'module.prop' "$MODPATH"
|
extract "$ZIPFILE" 'module.prop' "$MODPATH"
|
||||||
extract "$ZIPFILE" 'post-fs-data.sh' "$MODPATH"
|
extract "$ZIPFILE" 'post-fs-data.sh' "$MODPATH"
|
||||||
extract "$ZIPFILE" 'service.sh' "$MODPATH"
|
extract "$ZIPFILE" 'service.sh' "$MODPATH"
|
||||||
extract "$ZIPFILE" 'service.apk' "$MODPATH"
|
extract "$ZIPFILE" 'service.apk' "$MODPATH"
|
||||||
mv "$TMPDIR/sepolicy.rule" "$MODPATH"
|
extract "$ZIPFILE" 'sepolicy.rule' "$MODPATH"
|
||||||
|
extract "$ZIPFILE" 'daemon' "$MODPATH"
|
||||||
|
chmod +x "$MODPATH/daemon"
|
||||||
|
|
||||||
mkdir "$MODPATH/zygisk"
|
mkdir "$MODPATH/zygisk"
|
||||||
|
|
||||||
|
|||||||
3
module/template/daemon
Normal file
3
module/template/daemon
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/system/bin/sh
|
||||||
|
|
||||||
|
exec /system/bin/app_process -Djava.class.path=./service.apk / --nice-name=TrickyStore io.github.a13e300.tricky_store.MainKt
|
||||||
@@ -6,7 +6,7 @@ cd $MODDIR
|
|||||||
|
|
||||||
(
|
(
|
||||||
while [ true ]; do
|
while [ true ]; do
|
||||||
/system/bin/app_process -Djava.class.path=./service.apk / --nice-name=TrickyStore io.github.a13e300.tricky_store.MainKt
|
./daemon
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user