Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions host/src/pack/dpkg/opt/cfc/mwc/bin/lg_launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,25 @@ then
echo "Close previous opened app: $previous_app"
/opt/cfc/mwc/bin/resume_civ.sh
adb -s vsock:3:5555 shell am force-stop $previous_app
adb -s vsock:3:5555 shell am kill $previous_app
else
echo "Open same app, do nothing."
fi
fi

if [ "$1" = "com.xes.jazhanghui.activity" ];
then
xersi_proc_num=`adb -s vsock:3:5555 shell ps -A | grep "com.xes.jazhanghui.activity" | awk -F ' ' {'print $2'} | wc -l`
if [ $xersi_proc_num -eq 1 ];
then
xersicore_pid=`adb -s vsock:3:5555 shell ps -A | grep "com.xes.jazhanghui.activity:core" | awk -F ' ' {'print $2'} `
if [ $xersicore_pid -ge 0 ];
then
adb -s vsock:3:5555 shell kill -9 $xersicore_pid
fi
fi
fi

# Balloon Guest memory to 2048MB if no mwc_launcher live
if [ ! -z ${ENABLE_CIV_BALLOON} ]; then
if [ -z $(pidof mwc_launcher) ]; then
Expand Down