Package: anbox Version: 0.0~git20190124-1 Severity: minor File: /usr/share/doc/anbox/README.Debian
早安。 Here is a new version for you: --- /usr/share/doc/anbox/README.Debian 2019-03-02 00:03:49.000000000 +0800 +++ /home/jidanni/anbox/README.Debian 2019-06-08 12:28:14.384032562 +0800 @@ -5,10 +5,11 @@ In order to run Android system inside container, you need two kernel modules: ashmem_linux and binder_linux. Since Debian kernel 4.17, these -two modules are enabled. You can find theme at, -/lib/modules/`uname -r`/kernel/drivers/android/binder_linux.ko and -/lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko. -. +two modules are enabled. To check if they are installed, use + +$ ls /lib/modules/`uname -r`/kernel/drivers/android/binder_linux.ko +$ ls /lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko + If your kernel doesn't have these two modules, you can follow upstream instructions to install them with DKMS. Please see <https://github.com/anbox/anbox-modules/>. @@ -16,11 +17,43 @@ You also need to download the Android image to /var/lib/anbox/android.img The pre-build image can be found at <https://build.anbox.io/android-images>. . -Then start the anbox-container-manager.service and the -anbox-session-manager.service, anbox-session-manager.service is a systemd -user service. +Then do + +# systemctl start anbox-container-manager.service +$ anbox session-manager& + +At this point we don't see anything launch, but don't worrk, we see many +Android processes are actually running: +$ ps aux|grep android|wc -l +18 + . -Android application can be started from desktop menu. +Android application can also perhaps be started from desktop menu. + +Never mind that still we don't see any window. Now let's install an .apk! + +$ adb install ~/Downloads/tbus.com_2019-05-11.apk +Success + +Now do + +$ sed -n 's!^Exec=/usr/bin/!!p' ~/.local/share/applications/anbox/*.desktop + +which tells us we should do + +$ anbox launch --action=android.intent.action.MAIN --package=tbus.com --component=tbus.com.MainActivity + +And indeed, for the very first time, a window pops up on our screen! The app is running! + +Sure, we never saw the "Anbox Application Manager" window that others see, +https://user-images.githubusercontent.com/15462036/46653420-0ea5ca00-cbb7-11e8-9a57-30c3517724ac.png +but at least we got an app running! + +To stop anbox do + +# systemctl stop anbox-container-manager.service +(As https://github.com/anbox/anbox/issues/933#issuecomment-429603143 + method doesn't work.) * Debug