Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions host/src/pack/dpkg/etc/rc.civ
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ then
mkdir -p $HOME/Android/Download -m 0777
fi

if [ ! -d $HOME/桌面/拓展应用文件夹/微信图片 ]
if [ ! -L $HOME/桌面/拓展应用文件夹/微信图片 ]
then
mkdir -p $HOME/桌面/拓展应用文件夹
ln -s $HOME/Android/Pictures/WeiXin/ $HOME/桌面/拓展应用文件夹/微信图片
fi

if [ ! -d $HOME/桌面/拓展应用文件夹/微信下载 ]
if [ ! -L $HOME/桌面/拓展应用文件夹/微信下载 ]
then
mkdir -p $HOME/桌面/拓展应用文件夹
ln -s $HOME/Android/Download/WeiXin/ $HOME/桌面/拓展应用文件夹/微信下载
Expand Down
2 changes: 1 addition & 1 deletion host/src/pack/dpkg/etc/rc.civ.post
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function is_civ_ready() {
timeout 1 adb connect vsock:3:5555 && break
done

for i in {0..9}; do
for i in {0..19}; do
if [ "$(adb -s vsock:3:5555 shell getprop sys.boot_completed)" == "1" ] ; then
return 0
break
Expand Down
9 changes: 9 additions & 0 deletions host/src/pack/dpkg/opt/cfc/mwc/bin/resume_civ.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,14 @@ function resume_civ()
return -1
}

function toggle_status()
{
echo "Send QMP: toggle_instance_status, value=1"
local out
echo "{ \"execute\": \"toggle_instance_status\", \"arguments\": { \"value\": 1 } }" >&4
read -u 5 -t 1 -r out && echo "OUTPUT: $out"
}

connect_qmp || exit -1
resume_civ || exit -1
toggle_status