anbox 不支持,大佬有想法支持下?
Tofloor
poster avatar
sjtlqy
deepin
2017-11-21 23:39
Author
➜  ~ snap run anbox-installer
Anbox (Android in a Box) - Installer


IMPORTANT: THIS IS ALPHA LEVEL SOFTWARE. EXPECT INSTABILITY AND
           BUGS !!!!!

IMPORTANT: ALSO PLEASE BE AWARE THAT WE DON'T PROVIDE FULL
           CONFINEMENT FOR THE SNAP YET !!!!


PLEASE NOTE: This script will require root access on your system
to install all necessary things. It will prompt you to enter your
password when required.


ERROR: You are running the installer on an unsupported distribution.
       At the moment we only support the following distributions:

Ubuntu, LinuxMint, neon, elementary

If your distribution is in the list but you still see this message, open
an issue here: https://github.com/anbox/anbox-installer


Reply Favorite View the author
All Replies
avatar
duanyao
deepin
2017-11-22 00:27
#1
本帖最后由 duanyao 于 2018-1-25 14:11 编辑

1. 修改 /etc/lsb-release
【 这一步其实不必要,是用来测试 anbox-installer  的,但事实证明 anbox-installer 还有许多坑,不如不用 】
  DISTRIB_ID=Deepin 改为
  DISTRIB_ID=Ubuntu

2.  修改 /etc/apt/sources.list
增加两行:
deb http://ppa.launchpad.net/morphis/anbox-support/ubuntu trusty main
deb-src http://ppa.launchpad.net/morphis/anbox-support/ubuntu trusty main

参考:https://launchpad.net/~morphis/+archive/ubuntu/anbox-support

3. 添加 apt key
保存 http://keyserver.ubuntu.com:1137 ... =0x21C6044A875B67B7 的内容为 anbox-key.txt ,就是这一段:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.6
Comment: Hostname: keyserver.ubuntu.com

mI0ETyMQqAEEAKGKrQUWJQgqkRiurpqlGSO5TP69cvC9cf7lPUU3pzljfxTLXsmHjZprLXF2
Ezz4xBDnaoJ1P3NAn3WN4zfD0fGDQsODiPso9TzJci9Im5k50DMLG5IuI5hZwn8vq3n55kRJ
j6mtiOdsZiDwAHkjmaaHJd/v6LX+UppCIj1f19fLABEBAAG0GUxhdW5jaHBhZCBQUEEgZm9y
IG1vcnBoaXOIuAQTAQIAIgUCTyMQqAIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQ
IcYESodbZ7cmPAP/Wmhu+So5JugT0gxpSX/9XwxA2dG7SafgNCOzSLrjj5Rykt94AeaeyypC
Pgpfur94oMa30F4YHUtzWUKgVTwc66nvJDqOTw7EtFDwY9LDTaweSFtQP6RMkOcPuJdeQPVM
iOMAnMDNupzgw7GfN/k/u83JN60MWri8Mys6o/jsCbs=
=9HVd
-----END PGP PUBLIC KEY BLOCK-----

然后执行 sudo apt-key add anbox-key.txt

3. 安装 anbox 的deb包
sudo apt update
sudo apt install linux-headers-deepin-amd64 anbox-modules-dkms anbox-common

sudo modprobe binder_linux
sudo modprobe ashmem_linux

4. 安装 anbox 的本体
sudo snap install --edge --devmode anbox
更新 anbox:
sudo snap refresh --edge --devmode anbox

Reply View the author
Comments
399913628
2017-11-22 01:22
点赞!是系统识别哪里少了deepin,介绍就可以了吧?
avatar
sjtlqy
deepin
2017-11-23 18:11
#2
可以的,双击6666
Reply View the author
avatar
a946488029
deepin
2017-11-24 03:36
#3
安装了也没用,因为稳定性差,还不支持ARM架构应用。
Reply View the author
avatar
sjtlqy
deepin
2017-11-25 21:36
#4
https://bbs.deepin.org/post/148706
安装了也没用,因为稳定性差,还不支持ARM架构应用。

其实很现实的问题, 我想在Linux 测试Android apk, 虽然我是写server的,但是api是给Android使用的,想方便测试
Reply View the author