[core] unshare daemon (#892)

This commit is contained in:
LoveSy 2021-08-13 02:54:32 +08:00 committed by GitHub
parent 95c0f8aafc
commit 9fc385e2bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -136,4 +136,4 @@ if [ ! -z "${MISC_PATH}" ]; then
fi
rm -f "/data/local/tmp/lspd.dex"
"$MODDIR/lspd"
unshare -m sh -c "$MODDIR/lspd &"

View File

@ -21,4 +21,4 @@
MODDIR=${0%/*}
# post-fs-data.sh may be blocked by other modules. retry to start this
"$MODDIR/lspd" --from-service
unshare -m $MODDIR/lspd --from-service

View File

@ -85,8 +85,6 @@ public class ServiceManager {
systemServerService.putBinderForSystemServer();
Process.killProcess(Os.getppid());
DdmHandleAppName.setAppName("lspd", 0);
waitSystemService("package");