作者: javacomhk 時間: 2022-4-16 05:52 標題: 如何在 Intel MacBook Pro/Air 的 Ubuntu 安裝 Waydroid 並運行 Android App
本帖最後由 javacomhk 於 2022-4-17 22:48 編輯
安裝 Ubuntu USB Bootable 手指 https://www.hkepc.com/forum/viewthread.php?fid=24&tid=2659065
(1) Ubuntu 系統安裝 Waydroid
進入 Ubuntu 系統後開 terminal 打指令
- sudo apt update
- sudo apt install python3-pip lxc curl wget -y
- sudo pip install pyclip
- export DISTRO="focal" && sudo curl https://repo.waydro.id/waydroid.gpg --output /usr/share/keyrings/waydroid.gpg && echo "deb [signed-by=/usr/share/keyrings/waydroid.gpg] https://repo.waydro.id/ $DISTRO main" > ~/waydroid.list && sudo mv ~/waydroid.list /etc/apt/sources.list.d/waydroid.list && sudo apt update
- sudo apt install dkms -y
- # if old Linux Kernel get this https://github.com/anbox/anbox-modules
- # With Linux Kernel 5.17 (that is >=5.7), download and build Linux modules from here https://github.com/choff/anbox-modules
- wget https://github.com/choff/anbox-modules/archive/refs/heads/master.zip
- unzip master.zip
- cd anbox-modules-master/
- sudo ./INSTALL.sh
- # check Linux kernel modules installed anbox-ashmem & anbox-binder
- dkms status
- # install waydroid
- sudo apt install waydroid -y
- #檢查和修改 /etc/resolv.conf 為
- nameserver 8.8.8.8
- nameserver 8.8.4.4
- #檢查和修改 /etc/gbinder.d/anbox.conf 為
- [Protocol]
- /dev/binder = aidl2
- /dev/vndbinder = aidl2
- /dev/hwbinder = hidl
- [ServiceManager]
- /dev/binder = aidl2
- /dev/vndbinder = aidl2
- /dev/hwbinder = hidl
[attach]2315778[/attach]
(2) 登出 Ubuntu (PC鍵: control-alt-delete / Mac鍵: control-option-fn-delete)
在右下角選擇 Ubuntu on Wayland 後再登入
[attach]2315900[/attach]
(3) 啟動 Waydroid
- # 需要下載 752.66 MB 的 image
- sudo waydroid init
- sudo systemctl start waydroid-container
- waydroid session start
- waydroid app install 港人話電視_v103-GooglePlay_apkpure.com.apk

(5) Waydroid 有沒有 App Store?
可以下載及安裝 F-Droid 或從 apkpure 或 apkmirror 網址下載 x86_64 的 apk 檔案後安裝。
最新測試可用作 sideload 的 apk 檔案
SmartTubeNext STubeNext_ststable_v14.36_r.apk
港人話電視v101-GooglePlay.apk
港人話電視_v103-GooglePlay_apkpure.com.apk
Google Gboard x86_64
(6) 解決 Waydroid 的顏色不正確的問題
Settings App -> Accessibility -> Color inversion (on)
[attach]2315716[/attach]
(7) Intel MacBook Pro/Air 可以行 macOS,可以行 X86_64 Windows OS Boot Camp,又可以行 Ubuntu Linux,又可以好似Chrome OS 咁裝 PWA,依家仲可以 sideload Android apk 檔案。仲有乜野 development tools 裝唔到呢?
作者: chue 時間: 2022-4-16 13:02
等樓主報告一下後續
