Install 3th party app on android emulator - android

I'm trying to get Salesforce installed on a Android emulator.
But it seems Google Play has been removed from any and all official emulators.
Does anyone know how i can get Salesforce or any other 3rd party app on an Android emulator?

You can use adb for it.
adb install <path/to/apk>
https://developer.android.com/studio/command-line/adb.html#move

There are a bunch of sites that collect APKs and provide them to the world directly. Going for a quick Google surf saying "Salesforce apk latest" will give you a bunch of results. There will probably be a bunch of ads. When you finally download an APK, use the stuff #Lyra provided: Run adb install <apk file location>. And that's it. You're done!

Related

Install an app from Google Play on Emulator

Is it possible to install Google Play app (such as for example Twitter) on Emulator? I tried to do it using browser in emulator, but it says "No devices".
P.S. I don't have apk, I want to install app from Google Play.
P.S.S I have only emulator, no real device
This question is edited. This answer for those who have google play account.
If you want to download .apk files directly from Google Play. Check this. Apk downloader is a chrome extension which u can use to direct download .apk from google play on computer. After downloading that .apk
Start your emulator.
Start command prompt, and change your directory to the platform-tools folder of SDK directory.
Paste the APK file in the 'android-sdk\tools' or 'platform-tools' folder.
Then type the following command.
adb install yourapp.apk
Approach 2 - Download Genymotion and use drag-drop approach on its emulator.
Update - Now you can drag drop .apk on your Andorid emulator.
As mentioned by Gautam Jain as a comment under the first top suggestion discussion, the easiest way to download any app from Google PlayStore is to use: apk.tools
Once you have the .apk package you can simply drag&drop into your already running emulator.
I ended up using the Genymotion emulator. It allows to install apps from the store without a problem and it's really quick in comparison with standard emulator.
You can install the app on another device via the Play Store, then use a backup app to save the apk file to the SD card, move it from there to the emulator.
To install an apk in the emulator use something like
adb install <path>/Twitter.apk
If you follow this steps you will get there: http://www.android.pk/blog/general/how-to-install-apk-files-on-android-emulator/

android market app is not available list of default applications

I am trying to run android on emulator. I could not find "android market" app in the default app list of the emulator. I tried to download that from google play but it requires you to have "google play app" in the default list, which is also not available in my emulator. Then I tried to search for downloading the apk file for "android market" on net, so that I could install it. But I could not find some reliable source for downloading that.
If you could suggest me some good way of installing this app, I would be really thankful to you. Please also tell me some good download link for downloading android apps.
First of all you need to know that .apk files can't be downloaded from google play. Those files are always installed directly to the supportive device. Secondly Emulator can't have play store app.
So, If you want to install the .apk files on emulator, first download .apk from torrent(famous .apk files are available there) then use adb tool to push .apk file on emulator. just google "how to install apk on emulator" you will find many option use adb push to emulator.
May this helps you, Enjoy android on Emulator. :)

App installed from google play then new version reinstalled locally causes UnsatisfiedLinkError

We have an app on google play, and we are about to publish update, but testing update on JB device resulted in UnsatisfiedLinkError when calling System.loadLibrary("ourlib") in our code. ourlib is library compiled by us using NDK. This error shows only on 4.1 devices.
I suspect that it has something to do with new security on JB, app was first installed with Google Play with lets say version 1, and then reinstalled with version 2 using adb or from device using apk.
I could not find anything related to that on google, what could be the problem?
this problem
http://code.google.com/p/android/issues/detail?id=35962
looks similar but it appears that it was an error in google play actually.
Does that mean that you are trying to use standard/system library? Maybe the version of the library that you are trying to load does NOT contain particular functionality that you intend to use. Check android docs when the functionality became or stopped being available.
The solution is to use:
$ adb install -r -l my.apk
this makes apk to be reinstalled with use of forward-lock (aka. copy protection), I supose that because apk was upladed to google play with copy protection enabled then also forward-lock option in adb had to be added. I know JB introduced some changes with forward lock so this might be the case. I dont know internals of what really caused this problem, but above seems to work.

Can you run Android Market from a virtual device?

Can you run the Android market app from a virtual device or in the emulator?
The market is only allowed to run on devices that google licenced it to.
You could use a application backup tool to get the apk from your phone and then try to install this apk on an emulator. This violates the copyright from google that means copying the market apk is likely to be illegal, and it does not work because the market uses a shared library that is not present on the emulator.
Yes, you can run it.
This link helped me:
http://blog.varunkumar.me/2010/11/how-to-install-android-market-in-google.html
EDIT: this could possibly be violating user licences.
Extra input required about licences
Not with AVD. But you can install android on a pc (http://www.android-x86.org/download) using vmware, virtualbox, .... Then can log in with your Google account and install apps from Play Store.
You can use Genymotion for this purpose as I explained here. You'll be able to use it as a normal device, installing apps from the store under your Google account.
If you want to know which apps are avaible on Android Market you can use AndroidPIT.

How to install Android Market App on the emulator?

I am not able to access android market through emulator.
I got Android Market to work on Emulator for Platform 2.3 using OS 10.6.6:
First download and setup emulator on your mac.
Launch emulator and create an AVD. I created one called vd1.
Close vd1.
Launch Terminal in Utilities and enable the Finder to show hidden system files and folders by executing following commands:
lsy$ defaults write com.apple.finder AppleShowAllFiles TRUE
lsy$ killall Finder
Download system.img
http://www.mediafire.com/?s8eeph3r71ho1lz
Copy system.img to two locations:
[username]\.android\avd\[vd1]\
[username]\android\platforms\android-9\images\
Launch emulator from Terminal
lsy$ cd android\tools
lsy$ ./emulator -avd [vd1] -partition-size 100
Android Market is not available through the emulator for similar reasons it is not available through the developer phone. Allowing people to buy applications with an unlocked phone (or the emulator) would make it easier for those paid apps to be redistributed as freee apps.
Will's right. But also see this if it helps: http://forum.openhandsetdevelopers.com/running-android-market-on-emulator-no-download-issue-t82.html
Check out this link.
http://tech-droid.blogspot.com/2009/11/android-market-on-emulator.html
You get a full featured market on your emulator. I don't know if it's
legal(allowed by Google), but the image file, that this post mentions,
is a link to HTC's download page.
I am able to access all the market apps now, right from the emulator,
the paid ones, and the copy-protected ones also.
Cheers.
Dexter.
The emulator does not have the Android Market. The Android Market is only available for devices whose manufacturers have licensed the Android Market from Google.
Android Studio from version 2.3.2 has Google Play System Images.
You are able to create the simulator with the Play Store (old name: Android Market App).
You can use this test framework : android-test-billing to test the In-App billing on the emulator.
This library was used in the project Horer - horaires de RER.
I have did it in my 1.6 emulator it worked fine , Try this,
Download system.img from following link
http://www.4shared.com/get/x6pZm3-W/system.html
Go to avd folder. It will be in your c drive probably
( example C:\Documents and Settings\Vadivelan.android\avd\market.avd)
Paste the download file
Now launch the emulator
Market is ready
But am not sure it will work in 2.2 emulator, because the given system.img file is specific to 1.6. For 2.2 download the 2.2 system.img (but i doubt it works, as per my information it gives error)
Regards,
Vadivelan
just find the same app from a trusted website that allows you to download the .apk file to launch the app without using the play store. You wont be able to find all apps, but most of them should be relatively easy to find and download without using the play store.

Categories

Resources