Files
tldr/pages.zh/linux/waydroid.md

36 lines
790 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# waydroid
> 一种基于容器的方法,在像 Ubuntu 这样的常规 Linux 系统上启动完整的 Android 系统。
> 更多信息:<https://docs.waydro.id>。
- 启动 Waydroid
`waydroid`
- 初始化 Waydroid首次运行或重新安装 Android 后需要):
`sudo waydroid init`
- 从文件安装新的 Android 应用:
`waydroid app install {{path/to/file.apk}}`
- 通过包名启动 Android 应用:
`waydroid app launch {{com.example.app}}`
- 启动或停止 Waydroid 会话:
`waydroid session {{start|stop}}`
- 管理 Waydroid 容器:
`sudo waydroid container {{start|stop|restart|freeze|unfreeze}}`
- 打开 Waydroid shell
`sudo waydroid shell`
- 调整 Waydroid 窗口尺寸:
`waydroid prop set persist.waydroid.{{width|height}} {{number}}`