docker-android icon indicating copy to clipboard operation
docker-android copied to clipboard

[Documentation] How to install app via .apk file

Open bughaver opened this issue 5 years ago • 7 comments

💬 Questions and Help

Please make sure that it is an issue / a feature request. If it is a question / help wanted, please visit our group chat. Thank you!

How to install app via .apk file

bughaver avatar Jul 11 '20 01:07 bughaver

You can use Android Debug Bridge CLI to push your apk inside your device, and install it from your local machine

adb -P 5037 [ -s %UDID_IF_MULTIPLE_DEVICE% ] push /path/to/local.apk /data/local/tmp/downloaded.apk
adb -P 5037 [ -s %UDID_IF_MULTIPLE_DEVICE% ] shell pm install -r /data/local/tmp/downloaded.apk

arthuRHD avatar Jul 29 '20 09:07 arthuRHD

@arthuRHD - imagine I have CICD pipeline:

  1. in some repo apk app is release
  2. trigger is started which should completely rebuild emulator with this new app installed and automatically started on docker start so its immediatelly available on web screen.

Can I pack emulater with this apk, install and start it on docker-andorid redeploy on kubernetes cluster?

I am new to android emulators, so thx for patience. 👍

archenroot avatar Sep 26 '20 10:09 archenroot

refer to https://github.com/budtmo/docker-android/issues/180

install in this way? adb connect 34.68.174.199:5555 adb -e install /SuperSU_v2.79.apk

gainskills avatar Feb 03 '21 08:02 gainskills

refer to #180

install in this way? adb connect 34.68.174.199:5555 adb -e install /SuperSU_v2.79.apk

I installed an apk using this command inside the container.

androidusr@15be855c644c:~$ adb -e install /tmp/test.apk 
Performing Streamed Install
Success

But I cannot find it on the emulator UI.

cuttingedge1109 avatar May 20 '23 15:05 cuttingedge1109