Last active
June 2, 2017 05:35
-
-
Save filmaj/7090008 to your computer and use it in GitHub Desktop.
adb output w/ ADB_TRACE=all on an ubuntu host (where it works) compared to inside an LXC on the same host (where it doesn't work)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@precise64:~$ adb devices | |
system/core/adb/adb.c::main():Handling commandline() | |
system/core/adb/adb_client.c::adb_query():adb_query: host:devices | |
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version | |
system/core/adb/transport.c::writex():writex: fd=3 len=4: 30303063 000c | |
system/core/adb/transport.c::writex():writex: fd=3 len=12: 686f73743a76657273696f6e host:version | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4 | |
4f4b4159 OKAY | |
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 3 | |
system/core/adb/adb_client.c::adb_connect():adb_connect: service host:devices | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4 | |
30303034 0004 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4 | |
30303166 001f | |
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:devices | |
system/core/adb/transport.c::writex():writex: fd=3 len=4: 30303063 000c | |
system/core/adb/transport.c::writex():writex: fd=3 len=12: 686f73743a64657669636573 host:devices | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4 | |
4f4b4159 OKAY | |
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 3 | |
system/core/adb/adb_client.c::adb_connect():adb_connect: return fd 3 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4 | |
30303138 0018 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=24 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=24 got=24 | |
30346662396364383938353833366461 04fb9cd8985836da | |
List of devices attached | |
04fb9cd8985836da device | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@precise64:~# cat /var/lib/lxc/p1/config | |
lxc.network.type=veth | |
lxc.network.link=lxcbr0 | |
lxc.network.flags=up | |
lxc.network.hwaddr = 00:16:3e:23:2a:15 | |
lxc.utsname = p1 | |
lxc.devttydir = lxc | |
lxc.tty = 4 | |
lxc.pts = 1024 | |
lxc.rootfs = /var/lib/lxc/p1/rootfs | |
lxc.mount = /var/lib/lxc/p1/fstab | |
lxc.arch = amd64 | |
lxc.cap.drop = sys_module mac_admin | |
lxc.pivotdir = lxc_putold | |
# uncomment the next line to run the container unconfined: | |
#lxc.aa_profile = unconfined | |
#lxc.cgroup.devices.deny = a | |
lxc.cgroup.devices.allow = a | |
# Allow any mknod (but not using the node) | |
# lxc.cgroup.devices.allow = c *:* m | |
# lxc.cgroup.devices.allow = b *:* m | |
# /dev/null and zero | |
# lxc.cgroup.devices.allow = c 1:3 rwm | |
# lxc.cgroup.devices.allow = c 1:5 rwm | |
# consoles | |
# lxc.cgroup.devices.allow = c 5:1 rwm | |
# lxc.cgroup.devices.allow = c 5:0 rwm | |
##lxc.cgroup.devices.allow = c 4:0 rwm | |
##lxc.cgroup.devices.allow = c 4:1 rwm | |
# /dev/{,u}random | |
#lxc.cgroup.devices.allow = c 1:9 rwm | |
#lxc.cgroup.devices.allow = c 1:8 rwm | |
#lxc.cgroup.devices.allow = c 136:* rwm | |
#lxc.cgroup.devices.allow = c 5:2 rwm | |
# rtc | |
#lxc.cgroup.devices.allow = c 254:0 rwm | |
#fuse | |
#lxc.cgroup.devices.allow = c 10:229 rwm | |
#tun | |
#lxc.cgroup.devices.allow = c 10:200 rwm | |
#full | |
#lxc.cgroup.devices.allow = c 1:7 rwm | |
#hpet | |
#lxc.cgroup.devices.allow = c 10:228 rwm | |
#kvm | |
#lxc.cgroup.devices.allow = c 10:232 rwm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@p1:~$ adb devices | |
system/core/adb/adb.c::main():Handling commandline() | |
system/core/adb/adb_client.c::adb_query():adb_query: host:devices | |
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version | |
system/core/adb/transport.c::writex():writex: fd=3 len=4: 30303063 000c | |
system/core/adb/transport.c::writex():writex: fd=3 len=12: 686f73743a76657273696f6e host:version | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4 | |
4f4b4159 OKAY | |
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 3 | |
system/core/adb/adb_client.c::adb_connect():adb_connect: service host:devices | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4 | |
30303034 0004 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4 | |
30303166 001f | |
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:devices | |
system/core/adb/transport.c::writex():writex: fd=3 len=4: 30303063 000c | |
system/core/adb/transport.c::writex():writex: fd=3 len=12: 686f73743a64657669636573 host:devices | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4 | |
4f4b4159 OKAY | |
system/core/adb/adb_client.c::_adb_connect():_adb_connect: return fd 3 | |
system/core/adb/adb_client.c::adb_connect():adb_connect: return fd 3 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=4 got=4 | |
30303030 0000 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=0 | |
system/core/adb/transport.c::readx():readx: fd=3 wanted=0 got=0 | |
List of devices attached | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How did you fix it?