Why does it take so long to install the application on the Android emulator via ADB?

I am developing an application with Ionic. I created and signed my application to run it on an emulator. Installing the application through adb takes a lot of time. The recorded application is 28.6 MB, but it takes 7 minutes to install.

In my AVD runs "Android 5.1.1 - API Level 22" on the "CPU / ABI" Intel Atom (x86_64). The device has 2 GB of RAM with a bunch of 32 MB VM. It has 1 GB of internal memory and 1 GB of SD card memory. The screen resolution of the device is 450x800 (the device is a Nexus 4 clone with a resized screen, so it does not need to be scaled to fit on my screen). "Use the main GPU" is enabled, and I also have HAXM, and it claims to be working fine.

I tried to start the emulator with -netdelay 0 , -netfast and various other flags in various combinations that I lost.

I tried just setting up a dumb web server to download the APK to the device and installing it that way, and it works, but I want to automate this task.

To be clear, the emulator itself is excellent, it is nice and smooth, it just runs adb install whatever.apk , which is incredibly slow.

Is there a way to improve the transfer speed through adb install ?

+5
source share

Source: https://habr.com/ru/post/1233719/


All Articles