sorccu / docker-adb

Dockerfile and instructions for ADB.
Other
200 stars 74 forks source link

docker-adb for STF as device provider on Odroid XU4 #11

Open deg0nz opened 6 years ago

deg0nz commented 6 years ago

Hey, @sorccu I am trying to get stf running as a device provider on an Odroid XU4 running Arch Linux for a day now and couldn't get this working... You said, that your XU4 is running smoothely here, so I assume you got your ADB container working on your XU4, but how did you handle this?

When I start your container, I get the error standard_init_linux.go:195: exec user process caused "exec format error". Did you stumble upon this error before?

Research on the net shows, that it's either a architecture error or encoding... But I couldn't figure out what the actual problem is here...

I also tried building the container on the machine, but this didn't work either. When I start this, the 'adb' command throws the error from above...

Do you have any hints on that?

sorccu commented 6 years ago

I would suggest using whatever is easiest with your distro. There’s no official build for arm and most package managers have an ancient version. The one on Alpine Linux is what I’ve used in the past but it is also relatively out of date. Arch Linux also has an out of date package but they’ve worked well enough.

You could also try qemu.

deg0nz commented 6 years ago

Alright, thanks fo the quick answer! I found the android-tools package on arch. I couldn't connect to the device yet, but it appears via lsusb... but this is another problem.

I would like to try to port your container to ARM somehow... do you have any hints for me on that?

It seems to me, that the android toolchain your container is downloading from google, is kinda generic, do you think it would suffice, if we replace the glibc stuff of the container to compiled binaries for ARM? Or should the whole toolchain be rebuild for ARM in that case?

sorccu commented 6 years ago

You'd need to change everything and use qemu to run the binary, or use an unofficial outdated build.

deg0nz commented 6 years ago

Okay, just to give you an update on this...

I managed to build a Docker container on basis of Archlinux and then installing android-tools in it, which currently support Android 8.1.0 for ARM. It's by far not as small as your container, but it seems to work and I'll pay the price of wasting disk space...

If this issue is solved by this from your point of view, we can close the issue now.