koto's Site 🤪 About me Search Post Tags Archives Friendly sites Switch theme Settings

在 Manjaro 中安装 Anbox, 启用 GApps 和 houdini (ARM 支援)

在 Manjaro 中安装 Anbox, 启用 GApps 和 houdini (ARM 支援)

2022-12-21 09:47+0800 About 2 mins

 Tagged with:

0. 遇到問題

我在我的 Manjaro Laptop 上安装了 Anbox 之后, 遇到了几个问题, 本文记录我解决这些问题的操作.

  1. 啓動不了 ( [launch.cpp:71@launch_session_manager_dbus] Failed to start session manager instance via dbus ).
  2. 無法安裝純 ARM 的應用程式 ( [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113], 需要使用 houdini ).

1. 解決問題

1.1. 配置 Anbox (參考)

1.1.1. Mounting binderfs

sudo mkdir /dev/binderfs
sudo mount -t binder binder /dev/binderfs

1.1.2. Mounting binderfs while boot

sudo echo "binder                       /dev/binderfs binder   nofail  0      0" >> /etc/fstab

1.1.3. Enable network & anbox-session-manager

sudo systemctl enable --now systemd-networkd.service
systemctl --user enable --now anbox-session-manager.service

1.1.4 .彙總

啓動 Anbox , 問題應該已經得到解決. 如果還是不行就祭出重啓大法吧(目移)

所以我們得到

sudo mkdir /dev/binderfs
sudo mount -t binder binder /dev/binderfs
sudo echo "binder                       /dev/binderfs binder   nofail  0      0" >> /etc/fstab
sudo systemctl enable --now systemd-networkd.service
systemctl --user enable --now anbox-session-manager.service

然後關閉 Anbox, 進行 houdini 的安裝.

1.2. 啓用 ARM 支援 (安裝 houdini)

感謝 GitHub 上 geeks-r-us 開發的 anbox-playstore-installer 項目!

wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-houdini-only.sh
sudo chmod +x ./install-houdini-only.sh
sudo ./install-houdini-only.sh

1.3. 安裝 GApps

同上, 感謝 GitHub 上由 geeks-r-us 開發的 anbox-playstore-installer 項目!

wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh
sudo chmod +x install-playstore.sh
sudo ./install-playstore.sh