Skip to content

Instantly share code, notes, and snippets.

View hub2git's full-sized avatar

hub2git

View GitHub Profile
@hub2git
hub2git / container.log
Created May 4, 2017 17:29
/var/snap/anbox/common/logs/container.log
lxc 20170504061941.861 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type u nsid 0 hostid 100000 range 999
lxc 20170504061941.861 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type g nsid 0 hostid 100000 range 999
lxc 20170504061941.861 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type u nsid 1000 hostid 1000 range 1
lxc 20170504061941.861 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type g nsid 1000 hostid 1000 range 1
lxc 20170504061941.861 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type u nsid 1001 hostid 101001 range 64535
lxc 20170504061941.861 INFO lxc_confile - confile.c:config_idmap:1531 - read uid map: type g nsid 1001 hostid 101001 range 64535
lxc 20170504061941.862 DEBUG lxc_monitor - monitor.c:lxc_monitord_spawn:309 - Going to wait for pid 9401.
lxc 20170504061941.863 DEBUG lxc_monitor
ps axu | grep anbox
root 1469 0.0 0.3 366644 12632 ? Ssl 08:45 0:00 /snap/anbox/16/usr/bin/anbox container-manager --data-path=/var/snap/anbox/common/ --android-image=/snap/anbox/16/android.img
dnsmasq 1923 0.0 0.0 49984 408 ? S 08:45 0:00 dnsmasq -u dnsmasq --strict-order --bind-interfaces --pid-file=/run/anbox/dnsmasq.pid --dhcp-no-override --except-interface=lo --interface=anboxbr0 --dhcp-leasefile=/var/lib/anbox/dnsmasq.anboxbr0.leases --dhcp-authoritative --listen-address 10.0.6.1 --dhcp-range 10.0.6.2,10.0.6.254 --dhcp-lease-max=252 --dhcp-range=fd9d:e4dc:4e00:9e98::1,ra-stateless,ra-names --listen-address fd9d:e4dc:4e00:9e98::1
me 2324 0.4 1.2 682484 48672 ? Ssl 08:45 0:22 /snap/anbox/16/usr/bin/anbox session-manager
me 6657 0.0 0.0 14224 1012 pts/1 S+ 10:13 0:00 grep --color=auto anbox
adb kill-server ; adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
$ anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
[WW 2017-05-04 06:32:27] [launch.cpp:115@operator()] Stop waiting as we're already waiting for too long. Something is wrong
[WW 2017-05-04 06:32:27] [launch.cpp:116@operator()] with your setup and the container may have failed to boot.
ps ax | grep anbox
1463 ? Ssl 0:00 /snap/anbox/16/usr/bin/anbox container-manager --data-path=/var/snap/anbox/common/ --android-image=/snap/anbox/16/android.img
1823 ? S 0:00 dnsmasq -u dnsmasq --strict-order --bind-interfaces --pid-file=/run/anbox/dnsmasq.pid --dhcp-no-override --except-interface=lo --interface=anboxbr0 --dhcp-leasefile=/var/lib/anbox/dnsmasq.anboxbr0.leases --dhcp-authoritative --listen-address 10.0.6.1 --dhcp-range 10.0.6.2,10.0.6.254 --dhcp-lease-max=252 --dhcp-range=fd9d:e4dc:4e00:9e98::1,ra-stateless,ra-names --listen-address fd9d:e4dc:4e00:9e98::1
2325 ? Ssl 0:02 /snap/anbox/16/usr/bin/anbox session-manager
4086 pts/6 S+ 0:00 grep --color=auto anbox
@hub2git
hub2git / installer.sh
Created April 16, 2017 00:42
from "/snap/anbox-installer/10/installer.sh"
#!/bin/bash
echo "Android in a Box - Installer"
echo
echo
echo "IMPORTANT: THIS IS ALPHA LEVEL SOFTWARE. EXPECT INSTABILITY AND"
echo " BUGS !!!!!"
echo
echo "IMPORTANT: ALSO PLEASE BE AWARE THAT WE DON'T PROVIDE FULL"
echo " CONFINEMENT FOR THE SNAP YET !!!!"
<_that> looks like the envsetup step is missing on https://github.com/anbox/anbox/blob/master/docs/build-android.md
<_that> needs to be done before lunch, details on https://source.android.com/source/building
* cagedwisdom (~X@203-206-66-84.dyn.iinet.net.au) has joined
<anonymousey> _that: shall i file an "issue" (bug) on github?
<anonymousey> actually, i'll let you do that. since i don't know what you're talking about. (Coz I'm a big noob. ) :)
<_that> well, i know how to build android :)
<anonymousey> _that: you do?
<anonymousey> are you a dev?
<anonymousey> do you develop apps?
<anonymousey> or are you on the AOSP team?
repo init -u https://github.com/anbox/platform_manifests.git -b anbox
gpg: keyring `/home/me/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/home/me/.repoconfig/gnupg/pubring.gpg' created
gpg: /home/me/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported
gpg: key 692B382C: public key "Conley Owens <cco3@android.com>" imported
gpg: Total number processed: 2
gpg: imported: 2 (RSA: 1)
Get https://gerrit.googlesource.com/git-repo/clone.bundle
$ adb
Android Debug Bridge version 1.0.32
Revision debian
-a - directs adb to listen on all interfaces for a connection
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <specific device> - directs command to the device or emulator with the given