Android Oreo prevent installing directly from source - android

I have implemented app update which sideload apk from my server. It will download and popup for install after download completed.
On Oreo, it just stop after download.
After some digging, I also found that the apk also can't be installed directly from Google Drive.
Both apks are fine if I download it first to local storage, and installed successfully.
I have read many suggestion to enable 'unknown source' to drive and the result still the same.

Related

Unity Build and Run aab file - nothing happens

I am using unity addressables for on-demand packs and also using google instant play plugin to build an instant app. I am using the unity's Build Settings -> Build and Run with my device connected. I have developer debugging enabled and the device is connected via usb. The aab file is built and saved on my local machine and when the build completes, nothing happens on the device. Shouldn't the game just start on the phone? When I search the phone, the app is also not anywhere to be found.
Any solutions?
So here is more of a workaround for this problem. The real solution needs to come I believe from either Unity or Google teams.
FIX:
Go to File -> Build settings -> player settings
Change the Company Name: com.yourname.currentname (to something else). Let's say: com.yourname.currentname2. And do the same for the packagename under "Other Settings".
Build and Run (having the device connected via USB and USB debugging enabled)
It should work. If still doesn't, make sure you uninstall your game (assuming you had it installed before on the device). If not installed, install it from the google play store or from an older apk, open the app info and clear all cache and data. Then uninstall it. Try the above steps for the fix.
On my side, I already had a published google play store app and now building an instant app for the same build. I uploaded a few instant app versions on the play store and installed them on the device. At that point I am not sure how google play handles the different versions (installed and instant one) and something terribly gets messed up. Is it caching some files somewhere? So aiming at a clean state is the key.

Google Maps not installing?

I have Jellybean 4.2.2 on my phone. (I haven't rooted my device)
I recently updated Google Maps but it wasn't working. So I uninstalled it and tried to do a new install. Every time I try to install it from Play Store, an error message is displayed saying the process could not be completed and the installation cancels after every 65% completion.
I even tried installing it on my phone via the .apk file but to no use. An error message was displayed saying package could not be parsed.
Please help me out, I have searched many forums but couldn't find a suitable solution to my problem.
Thanks in advance.
While downloading from play store make sure you have a good speed internet connection.
You may get the Error "There is a Problem Parsing the Package" Due to following Reasons:
The Downloaded .apk file is Currupted or not fully downloaded
You might have turned off “Allow installation of apps from Unknown Sources”
If the App is not Compatible with the Hardware or the Version of OS you are using.
You may be able to fix the problem trying any of the steps described below:
1. Allowing Installation from Unknown Sources:
- Go to your Device Setting Menu
- Scroll down and Click on Applications
- Now Check the Box of Unknown Sources to allow installation of non Market Applications
After Completing the Above Simple steps you may now try and install the app.
2.Inspect Your APK File:
If the Above Fix do not work then you may inspect the apk file. Check that the file is Fully downloaded and is not Corrupted.
If you have downloaded the apk file from any other place rather then Google play store then Make sure you download it from Google play store this time and try to install it.
3.App is not Compatible with your Device or OS:
If you are still not able to Get rid of the error then it clearly indicates that the file that you have downloaded is not Compatible with your Device hardware or Operating System.

Phonegap app can't install from Google play

When I install my apk directly on my device it will install and run.
When I download it from Google Play it will result in:
Unknown Error code during application install: "-24"
Even on devices the app hasn't been installed before.
Go to your /data/data/ folder and search for your com.foobar.myapp
Delete it, install the application again. It may work, but the causes or this error code are multiple.

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. :)

Categories

Resources