Flash Player on Android Emulator - android

I need to test my Android app for playing flash objects in the WebView.
At first I didn't need to test it on the emulator since I have an actual device (Android 2.3.7) but since users have been reporting issues about the app on Android 4.0 (Ice Cream Sandwich), I want to test it now in the emulator.
First I tried to install the Android Market using
adb install androidmarket.apk
After installing it, it just closes when I open it so I downloaded the Flash Player apk and installed it the same way.
adb install flashplayer.apk
So I tried the app but still no flash is playing.
Then I read somewhere that I should be installing the Adobe AIR instead. I installed the apk using the same approach
adb install adobeair.apk
Tried the app again but still the same. Just the blue box with a question mark appears.
Any idea how to test Flash videos on the Android emulator?
EDIT:
I've also tried
adb -e install -r adobeair.apk
with the same result.

First I tried to install the Android Market
The Android Market/Google Play client is not licensed for distribution and use this way. You cannot obtain a legal download of this APK from Google.
so I downloaded the Flash Player apk
Please point to where you can get an authorized download of this APK from an official Adobe Web site.
Then I read somewhere that I should be installing the Adobe AIR instead. I installed the apk using the same approach
Please point to where you can get an authorized download of this APK from an official Adobe Web site.
Any idea how to test Flash videos on the Android emulator?
Even if there were legal downloads of the required APKs (and I am not aware that there are), Flash/AIR depend heavily on hardware acceleration and cannot work in today's emulator.

Just a several days before, on the site:
http://download.macromedia.com/pub/flashplayer/installers/archive/android/
You could have found many APK packages with various versions of FlashPlayer for Android. They even have been successfully installing on the emulator - although I actually DONT KNOW if they work properly (I had no point in running anything..).
As of today (=2012.11.18) they site is almost down, but you can still downlaod the packages, for example:
http://download.macromedia.com/pub/flashplayer/installers/archive/android/11.1.115.27/install_flash_player_ics.apk
edit: I've just found the proper site:
http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html
edit2: nope, it installs but does not seem to work. I've just tested http://www.adobe.com/swf/software/flash/about/flashAbout_info_small.swf on emulator and empty black page showed up.

You can download the APK you need for all flash versions for Android 2.x and 3.x, even for Android 4.0 at the following location:
Archived Flash Player versions
Just scroll down a little bit

Related

Google Play Services on Genymotion emulator with Android 7

I have purchased Genymotion with the goal to have a simulation with Android 7.0 and Google Play.
Android 7.0 runs fine on Genymotion, but I am not able to install Google Play on it.
Google Play works fine for Android 6.0 and below - I was able to find the sources (Flashes) that must be installed additionally for using Google Play in Genymotion.
Does someone know how to install Google Play on an Android 7.0 Device with Genymotion?
Updated answer
Since Genymotion 2.10, you are able to install Google Play Services within ease without dealing with zip files. You now have a 1-click installer (called "Open GApps" widget).
Here are few notes to consider:
The 1-click installer is available for every device running Android 4.4 or more (whether new or already created), as long as Genymotion 2.10 is installed.
The Open GApps widget installs the smallest variant (i.e. pico) as it fits most development and testing needs.
That means you only get Google Play Store and Google Play Services and nothing else.
If you need access to further Google apps, you can either visit the Play Store and download them from there or you can install another variant of Open GApps from their website, as describe in my original answer.
How to use the widget and install Open GApps
Just open your Genymotion device.
You will see a gray Open GApps logo on the right bar, alongside with all the other settings:
When you click on that logo, Genymotion will start downloading Open GApps to your device:
Then, you will need to restart your device and you're all set:
Original answer
In order to install Google Play and use it on Genymotion, you will need to find a zip file of the pre-built Google Apps packages to onto the emulator.
As mentioned in the comments to your question, Genymotion's ROM is compiled to x86 to match the most popular computer's CPU architecture.
However, most of the pre-built Google Apps packages available are using ARM architecture, which is popular among phones.
Some of the comments mentioned the need for installing an ARM Translation which will let those ARM apps to run on the x86 virtual device, but it might be difficult to find the right translation file for Android Nougat and anyway that it not necessary at all.
You are able to go to the open GApps site and install the needed pre-built Google Apps packages that you desire.
Make sure to choose Platform: x86 and the proper Android version.
In order to install it on Genymotion just drag and drop the zip file into the emulator and you will be prompted with the following message which lets you know that the file can be flashed to the device:
Click OK and it will flash the file.
When the process is done you will be prompted with the following message:
All you need to do is to restart the device emulator and you will have Google Play on your Android Nougat emulator.
Enjoy.
Since Genymotion 2.10, Gapps can be installed automatically from within Genymotion!
Top right of the Genymotion emulator window, you will find a 'Gapps' button: click on it and Genymotion will do the rest: downloading the correct GApps bundle and install it in your Android image!
Once installed, just restart this emulator: the Gapps button now have a green check mark on it and the Open Gapps (Pico) bundle has been installed for the specific version of Android you are running :-)
Works for Android 4.4 onwards.
Read more at
https://www.genymotion.com/blog/2-10-open-gapps-widget/
UPDATED ANSWER
As #pascal pointing out (kudos to #pascal), since Genymotion 2.10 Google Play Service and Play Store can be automatically installed.
Here is the news from Genymotion 2.10 – Seamlessly install Google Play Services and Play Store:
Genymotion 2.10 is out! And it comes with a 1-click installer for Google Apps
Simply download and install Genymotion 2.10 and a new “Open GApps” widget will be available in your toolbar. Click it and it’ll do the rest!
Now you can have your applications relying on Google Play Services and Google Play Store working perfectly fine. No more fumbling around with random zip files and tutorials found there and there!
OLD ANSWER
Quoting myself from https://stackoverflow.com/a/40712778/4758255:
There is official FAQ for using Google Play in How do I install Google Play Services?, here the FAQ text:
For intellectual property reasons, Google Play Services are not
included by default in Genymotion virtual devices. However, if you
really need them, you can use the packages provided by OpenGapps.
Simply follow these steps:
Visit opengapps.org
Select x86 as platform
Choose the Android version corresponding to your virtual device
Select nano as variant
Download the zip file
Drag & Drop the zip installer in new Genymotion virtual device (2.7.2 and above only)
Follow the pop-up instructions
Please note Genymobile Inc. and Genymotion assume no liability
whatsoever resulting from the download, install and use of Google Play
Services within your virtual devices. You are solely responsible for
the use and assume all liability related thereto. Moreover, we
disclaim any warranties of any kind for a particular purpose regarding
the compatibility of the OpenGapps packages with any version of
Genymotion.

Unable to install Ionic package built apk on Android 6.0 (Marshmallow) from Google Chrome

I have had a problem on Android Marshmallow (6.0) installing an apk from Google Chrome on the device. I have a Lollipop device (5~) that allows install, however the Marshmallow device just states "Cannot open file". I have no problem using Appgyver's supersonic package tool but with Ionic Package it won't allow me to install from an apk.
I've done some research and found that by using an alternative browser on the device such as firefox or by using a third party file manager I am able to install the apk. The article below suggests Google Chrome is now locking out app installs not on the play store but I'm doubtful of this theory due to being able to install other apk's ok.
Frostwire Article for workaround
This has been a common workaround used by other reports of a similar issue online and does work for my case. Unfortunately this is an effort required by the customer that is damaging to the ease of access to the application.
It seems to be an issue exclusive to Android 6.0 (not exclusively Ionic package built apk's). This being said as I am able to build an apk and install from Chrome using Appgyvers 'Supersonic' services using the same device so I'm lead to believe there is indeed a solution to the problem.
Be aware that I am using Ionic package to build a "release" version and customers cannot have "developer mode" turned on. As well as this I have "allow untrusted sources option" engaged.
Does anyone have any insight on this problem?
So I discovered the problem. It appears firefox and older versions of Chrome are far less picky with Content-Type headers on file downloads for apk's. The App was being downloaded with the content-type head of application/octet-stream. Firefox (Android 6) and Chrome (Android 5.1) took no notice of this when trying to figure out the file type and were happy enough installing.
However Chrome on Android 6.0 requires a content type of application/vnd.android.package-archive for it to discern the type of file it has downloaded.
Anyway I made that change on the download and it now works!

How to install app in playstore without Google playstore in android emulator

I had installed AndroVM to use Android apps in computer. But when it comes to games like shadow fight even with OpenGL support enabled, AndroVM couldn't run many games such as Hill Climb racing, Gunship battle etc. Hence I tried Genymotion. When I installed Genymotion, it automatically detected AndroVM installed in Virtual Box. And I could only run Hill climb racing and rest of them didn't work. So I finally installed Android SDK and followed all instructions to add packages(Tools, extras and System Images). Even if I have installed Google play services and Google repository, I couldn't find Google playstore in the android emulator. Even this post suggests how to install Google playstore in emulator,it also have discussions about piracy and legal issues(in comments) and the apk's (GoogleLoginService.apk , GoogleServicesFramework.apk , Phonesky.apk) are not official packages. Hence
Can any one suggest how can I install apps inside emulator without using Google playstore, and
Why can't I find playstore even after I install Google play services and repository.
These are the packages I've installed (Sorry I don't have enough reputation to upload image). And I'm using Ubuntu 14.04
you can't directly install apps using what google provided to you to install playstore app in emulator.
there are some 'hack' (not really) for this, but even you follow the steps, you can't install paid app in emulator also,
I believe it is kind of difficulty made by google to prevent people to use pc to run android apps easily.
below is a detail steps how to install apps in emulator
http://blog.apkudo.com/2012/08/08/run-google-play-on-an-emulator-and-pretend-to-be-any-device/
another more up-to-date steps.
http://www.flinkd.org/2013/12/installing-google-play-on-the-android-emulator-api-18/
before all these, you should download the same version as your emulator of package from
http(s)://goo.im/gapps/
happy 'hacking'.
i have found the best emulator to be is bluestacks. It runs flawlessly in my less powered old laptop which has 2GB RAM. It is core2duo engine and has 10 years old graphics card. It does make lot of noice when i run bluestacks and gets heated. Bluestacks is the best emulator. All apps run easily in bluestacks. I have tried all emulators. None of them works in my machine except bluestacks. Youwave which is light weight app but asks for money.

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.

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