Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I'm working on an email app for Android, and I'd like to install the Gmail apk on my emulator in order to test it.

How can I do that?

I have seen tutorials on how to do it on windows, but I'm working with Linux.

share|improve this question

2 Answers 2

Sync your Google account in emulator, and go to Play Store.

share|improve this answer

Steps:

Go to sdk/platform-tools with the command cd /home/android-sdk/platform-tools you should copy the .apk you want to install in this directory and add the path of it to environment variable in variable PATH "you might need restart"(PATH=$PATH:path to apk)

List the devices with the command ./adb devices

You can install your file with ./adb install .filename.apk Example for step 2 :

./adb devices

List of devices attached
emulator-5554 device

Example for step 3 :

./adb install AndExplorer.apk

1083 KB/s (338651 bytes in 0.305s)
pkg: /data/local/tmp/AndExplorer.apk
Success

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.