GithubHelp home page GithubHelp logo

devicefarmer / docker-adb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sorccu/docker-adb

22.0 22.0 10.0 131 KB

Dockerfile and instructions for ADB.

License: Other

Shell 30.13% Dockerfile 69.87%
hacktoberfest

docker-adb's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar fgrehm avatar francesco149 avatar koral-- avatar sorccu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-adb's Issues

glibc compat not working

There appears to be an issue with the glibc compatibility package such that the musl libraries are being linked when running the binaries under platform-tools. For example, when trying to start the adb server using the first command from README.md (and dropping the -d), I get the following:

[stf]$ docker run --privileged -v /dev/bus/usb:/dev/bus/usb --name adbd devicefarmer/adb
Error relocating /lib/ld-linux-x86-64.so.2: unsupported relocation type 37
Error relocating /opt/platform-tools/adb: __memcpy_chk: symbol not found
Error relocating /opt/platform-tools/adb: __memset_chk: symbol not found
Error relocating /opt/platform-tools/adb: __vfprintf_chk: symbol not found
Error relocating /opt/platform-tools/adb: __syslog_chk: symbol not found
Error relocating /opt/platform-tools/adb: __fdelt_chk: symbol not found
Error relocating /opt/platform-tools/adb: __snprintf_chk: symbol not found
Error relocating /opt/platform-tools/adb: __vsnprintf_chk: symbol not found
Error relocating /opt/platform-tools/adb: __isnan: symbol not found
Error relocating /opt/platform-tools/adb: __isnanf: symbol not found
Error relocating /opt/platform-tools/adb: __fprintf_chk: symbol not found
Error relocating /opt/platform-tools/adb: __sprintf_chk: symbol not found
Error relocating /opt/platform-tools/adb: __strdup: symbol not found
Error relocating /opt/platform-tools/adb: __asprintf_chk: symbol not found
Error relocating /opt/platform-tools/adb: __memmove_chk: symbol not found
Error relocating /opt/platform-tools/adb: __vasprintf_chk: symbol not found
Error relocating /opt/platform-tools/adb: strtoll_l: symbol not found
Error relocating /opt/platform-tools/adb: strtoull_l: symbol not found

I can avoid this by manually specifying the GNU libc linker like so:

[stf]$ docker run --privileged -v /dev/bus/usb --name adbd devicefarmer/adb /usr/glibc-compat/bin/ld.so /opt/platform-tools/adb -a -P 5037 server nodaemon
adb I 11-29 14:22:39     7     7 auth.cpp:417] adb_auth_init...
adb I 11-29 14:22:39     7     7 auth.cpp:152] loaded new key from '/root/.android/adbkey' with fingerprint 9BB6C5623F63CB10053006DE7335A39BE64999A41891CDE4A8B03F39BD3F9135
adb I 11-29 14:22:39     7     7 auth.cpp:392] adb_auth_inotify_init...

I'm not sure if this is an issue with docker-adb or perhaps the Alpine package provided by sgerrand, but in any case, the issue is causing the latest image available on Dockerhub to not work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.