远程登陆的时候,需要重启Linux,由于linux是装在容器里的,reboot等各种命令无法使用,网上查找总结了一下命令:
重启linux deploy
unchroot linuxdeploy stop
重启手机
unchroot am start -a android.intent.action.REBOOT
关机
unchroot am start -a android.intent.action.ACTION_REQUEST_SHUTDOWN
本文介绍了在容器环境下重启Linux的方法,包括使用特定命令重启Linux部署环境及模拟手机重启操作。
远程登陆的时候,需要重启Linux,由于linux是装在容器里的,reboot等各种命令无法使用,网上查找总结了一下命令:
重启linux deploy
unchroot linuxdeploy stop
重启手机
unchroot am start -a android.intent.action.REBOOT
关机
unchroot am start -a android.intent.action.ACTION_REQUEST_SHUTDOWN