Install waydroid emulator on debian bookworm.

Requirements

xanmod kernel
kernel parameter:psi=1

firewall:

sudo ufw allow 67
sudo ufw allow 53
sudo ufw default allow FORWARD

Install

sudo apt install curl ca-certificates -y
proxychains4 curl https://repo.waydro.id | sudo bash
sudo apt install waydroid

Init

images url:https://sourceforge.net/projects/waydroid/files/images/

sudo waydroid init -f -i /usr/share/waydroid-extra/images
sudo chmod -R o+r /var/lib/waydroid
sudo chmod -R o+x /var/lib/waydroid

Start

sudo waydroid container start
waydroid session start

Launch

waydroid show-full-ui

ARM translation

url:https://github.com/casualsnek/waydroid_script

apt install python3-pip python3.11-venv lzip

git clone https://github.com/casualsnek/waydroid_script
cd waydroid_script
python3 -m venv venv
venv/bin/pip install -r requirements.txt
sudo venv/bin/python3 main.py

sudo proxychains4 venv/bin/python3 main.py install libhoudini

Reinit

waydroid session stop
sudo waydroid container stop
sudo rm -rf /var/lib/waydroid /home/.waydroid ~/waydroid ~/.share/waydroid ~/.local/share/applications/\*aydroid\* ~/.local/share/waydroid
sudo waydroid init -f -i /usr/share/waydroid-extra/images
waydroid show-full-ui

apps

waydroid app install com.app.apk
waydroid app launch com.app
PS:应用列表
waydroid app list

root shell

sudo waydroid shell

Etc.:

waydroid prop set persist.waydroid.width 0-9999 (int) # Used for user to override desired resolution,leave empty to reset.

waydroid prop set persist.waydroid.height 0-9999 (int) # Used for user to override desired resolution,leave empty to reset.

waydroid prop set persist.waydroid.suspend true/false (bool, default: true on kernel 4.9 and later) # Let the Waydroid container sleep (after the display timeout) when no apps are active.

waydroid prop set persist.waydroid.multi_windows true/false # enable/disable multi windows.
sudo waydroid shell # root shell.

waydroid prop set persist.waydroid.fake_touch (string, 91 character limit) # Comma separated list of package names for which mouse inputs should be interpreted as touch inputs instead. Supports wildcards with . For example, set this to "com.rovio." to match all games by Rovio.

waydroid prop set persist.waydroid.fake_wifi (string, 91 character limit) # Comma separated list of package names for which the system will always appear as if connected to wifi. Supports wildcards with . For example, set this to "com.gameloft." to match all games by Gameloft.

sudo waydroid shell wm set-fix-to-user-rotation enabled 锁定屏幕方向

标签:waydroid, android

你的评论