budtmo / docker-android

Android in docker solution with noVNC supported and video recording
Other
9.59k stars 1.27k forks source link

Run arm version of APP #245

Open rasulovk opened 4 years ago

rasulovk commented 4 years ago

🚀 Feature Request

Idea: Add capability to run android arm version of app, like on Genymotion

Problems that want to be solved: Arm based application failed for install on emulator

Note:
If solution already exist please send me how to add this future

solon-neto commented 4 years ago

Try to create an emulator with the new android R, it is able to run arm apps with x86 and x86_64 architectures

rasulovk commented 4 years ago

Hi,

Do you have a working image, I couldn't find in your reposities on docker hub ?

Kamil Rasulov

solon-neto commented 4 years ago

Hi, I believe that the image does not exist yet, since the R version is still in preview mode. But you can build it by running docker build using ANDROID_VERSION and API_LEVEL as R argument from Dokerfile located in docker/Emulator_x86 something like that docker build --build-arg ANDROID_VERSION=R --build-arg PROCESSOR=x86_64 --build-arg SYS_IMG=x86_64 --build-arg API_LEVEL=R --build-arg IMG_TYPE=google_apis -f docker/Emulator_x86 . Or you can build an image with an arm processor by passing the SYS_IMG and PROCESSOR arguments with the respective value (I do not recommend due to efficiency problems)

0jpq0 commented 4 years ago

Hi, I believe that the image does not exist yet, since the R version is still in preview mode. But you can build it by running docker build using ANDROID_VERSION and API_LEVEL as R argument from Dokerfile located in docker/Emulator_x86 something like that docker build --build-arg ANDROID_VERSION=R --build-arg PROCESSOR=x86_64 --build-arg SYS_IMG=x86_64 --build-arg API_LEVEL=R --build-arg IMG_TYPE=google_apis -f docker/Emulator_x86 . Or you can build an image with an arm processor by passing the SYS_IMG and PROCESSOR arguments with the respective value (I do not recommend due to efficiency problems)

docker build --build-arg ANDROID_VERSION=11.0 --build-arg PROCESSOR=x86_64 --build-arg SYS_IMG=x86_64 --build-arg API_LEVEL=30 --build-arg IMG_TYPE=google_apis -f docker/Emulator_x86 . I use this command to build image,it works well.

rasulovk commented 4 years ago

Thank you a lot for help

On Tue, 7 Jul 2020 at 13:09, 0jpq0 notifications@github.com wrote:

Hi, I believe that the image does not exist yet, since the R version is still in preview mode. But you can build it by running docker build using ANDROID_VERSION and API_LEVEL as R argument from Dokerfile located in docker/Emulator_x86 https://github.com/budtmo/docker-android/blob/master/docker/Emulator_x86 something like that docker build --build-arg ANDROID_VERSION=R --build-arg PROCESSOR=x86_64 --build-arg SYS_IMG=x86_64 --build-arg API_LEVEL=R --build-arg IMG_TYPE=google_apis -f docker/Emulator_x86 . Or you can build an image with an arm processor by passing the SYS_IMG and PROCESSOR arguments with the respective value (I do not recommend due to efficiency problems)

docker build --build-arg ANDROID_VERSION=11.0 --build-arg PROCESSOR=x86_64 --build-arg SYS_IMG=x86_64 --build-arg API_LEVEL=30 --build-arg IMG_TYPE=google_apis -f docker/Emulator_x86 . I use this command to build image,it works well.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/budtmo/docker-android/issues/245#issuecomment-654712232, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFTAWWGPGY54KQAVEYKNZDR2LQ3PANCNFSM4NHXDZ6Q .

-- Kamil Rasulov

Eduard-Hasa commented 3 years ago

Hey guys, ive been fighting with this issue for a while and any guidance is greatly appreciated.. I want arm apps to run. tried your command above but getting an error.

I am running it in the terminal of the linux machine I am running docker on.

image

Is there a file or something I have to add somewhere? I have a completely stock docker-android setup. everything default is working fine.

12as2005 commented 2 years ago

you need download dockerfile at docker/Emulator_x86

atigm commented 2 years ago

Hi, I use same command docker build --build-arg ANDROID_VERSION=11.0 --build-arg PROCESSOR=x86_64 --build-arg SYS_IMG=x86_64 --build-arg API_LEVEL=30 --build-arg IMG_TYPE=google_apis -f docker/Emulator_x86 . OS : Ubuntu 20.04 Architecture : arm64

But I have this error :

...
Step 5/34 : RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends     xterm     supervisor     socat     x11vnc     openbox     feh     menu     python-numpy     net-tools     ffmpeg     jq     qemu-kvm     libvirt-bin     ubuntu-vm-builder     bridge-utils  && apt clean all  && rm -rf /var/lib/apt/lists/*
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in c20d5f33a479
exec /bin/sh: exec format error
The command '/bin/sh -c apt-get -qqy update && apt-get -qqy install --no-install-recommends     xterm     supervisor     socat     x11vnc     openbox     feh     menu     python-numpy     net-tools     ffmpeg     jq     qemu-kvm     libvirt-bin     ubuntu-vm-builder     bridge-utils  && apt clean all  && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1

Thank you

tach200 commented 7 months ago

Hello, it looks like docker file Emulator_x86 no longer exists, I tried to build with the file 'emulator' but encountered this error. Any guidance on this would be greatly appreciated

tried to set DOCKER_ANDROID_VERSION to version latest but had no luck

 => ERROR [internal] load metadata for docker.io/budtmo/docker-android:base_                                                                                                                                   0.4s
------
 > [internal] load metadata for docker.io/budtmo/docker-android:base_:
------
emulator:2
--------------------
   1 |     ARG DOCKER_ANDROID_VERSION
   2 | >>> FROM budtmo/docker-android:base_${DOCKER_ANDROID_VERSION}
   3 |
   4 |     #==================
--------------------
ERROR: failed to solve: budtmo/docker-android:base_: docker.io/budtmo/docker-android:base_: not found