Thursday, 5 February 2015

How to install apk file in emulator using terminal - Android

12:57:00 Posted by Kumanan
Hi friends,
  This is a simple blog which is very useful those who are testing their android application in emulator. I have mentioned below the steps to install the apk file using terminal in Ubuntu machine.

Step 1:-
Copy your apk file and place it in the folder named platform-tools which is at your android sdk folder.

Step 2:-
Open your teminal navigate to that particular location like (/android-sdks/platform-tools$).

Step 3:-
Type ./adb install filename.apk and press Enter.

If you get Failure [INSTALL_FAILED_ALREADY_EXISTS] error,it means that the apk file is already installed in your emulator.

Please uninstall and try it once again.