[core] unshare daemon (#892)
This commit is contained in:
parent
95c0f8aafc
commit
9fc385e2bd
|
|
@ -136,4 +136,4 @@ if [ ! -z "${MISC_PATH}" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -f "/data/local/tmp/lspd.dex"
|
rm -f "/data/local/tmp/lspd.dex"
|
||||||
"$MODDIR/lspd"
|
unshare -m sh -c "$MODDIR/lspd &"
|
||||||
|
|
|
||||||
|
|
@ -21,4 +21,4 @@
|
||||||
|
|
||||||
MODDIR=${0%/*}
|
MODDIR=${0%/*}
|
||||||
# post-fs-data.sh may be blocked by other modules. retry to start this
|
# post-fs-data.sh may be blocked by other modules. retry to start this
|
||||||
"$MODDIR/lspd" --from-service
|
unshare -m $MODDIR/lspd --from-service
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,6 @@ public class ServiceManager {
|
||||||
|
|
||||||
systemServerService.putBinderForSystemServer();
|
systemServerService.putBinderForSystemServer();
|
||||||
|
|
||||||
Process.killProcess(Os.getppid());
|
|
||||||
|
|
||||||
DdmHandleAppName.setAppName("lspd", 0);
|
DdmHandleAppName.setAppName("lspd", 0);
|
||||||
|
|
||||||
waitSystemService("package");
|
waitSystemService("package");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue