Why does this apk only work when installed from the play store? - General Questions and Answers

Hello,
I am playing around with an .apk, an existing program where I have no control over. Planning to try my hand at reverse engineering for fun.
However, I run into the following problem:
When I download the app from the google play store, it works. No issues.
When I download the app from the google play store, then copy the .apk file from the emulator to my pc, and then reïnstall it on the emulator, it does not work and crashes. This is without any edits.
Same goes with an apk downloaded via Raccoon, same app, using the same google account. Download directly on the emulator via play store, it works. Download with raccoon then install the emulator, it doesnt work.
One thing I noticed is that when I install the app from the play store, it is 170MB (using app info).
When I install it from raccoon, or after extracting the apk from the emulator, its only 70MB.
Something else I noticed: When downloading from raccoon, it also downloads 2 config apk's, however, I cannot install those on the emulator...
Any help would be greatly appreciated!

It may be because the apps installed from the Play Store are genuine and reliable.

@PresFox
my guess is you try to install some so-called Split-APK ( read: apps that are distributed as app bundles ). Because Android provides no built-in way to install them from sources other than Google Play Store you have to install them via Google Play Store.

Thanks to @PresFox for the explanation of what's occurring here.
I often install base.apk apps from backups of /data/app done in a recovery shell and find they crash.
Most of the time, this can be rectified by restoring the missing files
from /data/app/com.SOME.APP/oat & lib folders (from recovery adb shell).
Although it works for me, can't say if its 100% reliable.

Related

[Q] How to install the "Play Store App" on CM9

Hi,
I just got CyanogenMod 9 running on my Galaxy S Plus (i9001).
But there is no Play-Sore app on the screen ....
Thanks .....
You have to flash Gapps...its in the CM9 threads. Gapps are all of your google applications. CM can't include them in the ROM due to licensing issues.
How to install the "Play Store App" on CM9
thanks.
I have done so, and installed gapps (more than once).
still no play store app ....
markus.F said:
thanks.
I have done so, and installed gapps (more than once).
still no play store app ....[/
Where you able to sign into your Google account? If you did and still no good then try searching Google and manually pushing the apk with root explorer or a similar app
Sent from my HTC HD2 using Tapatalk 2
Click to expand...
Click to collapse
Can not get Google Play Store to run on CM9
I successfully got CM9 to run,
I installed the associated gapps package, in this package downloaded from xda the app "Google Play Store" was missing ...
I surfed a lot in this space an found
http://forum.xda-developers.com/showthread.php?t=1581082&highlight=play+store+app
I tried to install all 4 version ....
with Root Explorer, checked permissions, rebooted ... and so on.
Every time I start the app it stops immediately ....
I logged in into my gmail account, that did work
Any other Help ? Thanks
Did you download the version of GAPPS made for ICS? (should have -ICS somewhere in the filename)
The gapps site lists dozens of versions, for various phones and roms.
markus.F said:
I successfully got CM9 to run,
I installed the associated gapps package, in this package downloaded from xda the app "Google Play Store" was missing ...
I surfed a lot in this space an found
http://forum.xda-developers.com/showthread.php?t=1581082&highlight=play+store+app
I tried to install all 4 version ....
with Root Explorer, checked permissions, rebooted ... and so on.
Every time I start the app it stops immediately ....
I logged in into my gmail account, that did work
Any other Help ? Thanks
Click to expand...
Click to collapse
Definitely didn't use the right Gapps...Gmail isn't included in the new gapps
Here you go.
http://goo.im/gapps/gapps-ics-20120429-signed.zip
Google play is not included in Android 4 / CM 9.
To install Google play, you need to download the google play apk from http://www.theandroidsoul.com/download-google-play-apk-3-5-19/
Scenario 1: file managers is already installed.
Then transfer the apk to SD card and use the file manager to install google play apk.
Scenario 2: There is no file manager.
Install Android SDK or the ADB driver.
Some link that are useful here
http://forum.xda-developers.com/showthread.php?t=1601159
http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK
Open the ADB shell and type in "adb install <google play apk file name>"

Google Play Store Not Working On Android 4.1.1 (CM10)

First, some quick details about my setup.
CM: 10-20120909-UNOFFICIAL-p500
- Build 5 from http://forum.xda-developers.com/showthread.php?t=1811325
Google Play Store: 3.8.17
---
When trying to run the Google Play Store, I get an "Unfortunately Google Play Store has stopped." error message.
I can temporarily fix this by going to Settings -> Apps -> Google Play Store -> *Clear data*, *Force stop*, *Reboot Phone*, at which point the Google Play store starts fine, with two updates (Android Terminal Emulator / Gmail)
If I try to update either of the apps, or install any new app (Either from Phone market place, or PC market place), I get the "Unfortunately Google Play Store has stopped." error, and am back to Step 1 (With Google Play Store not opening at all)
Any ideas?
I am able to install apps via manually browsing to the actual APK using the Browser, or using ES File Explorer (Which I uploaded to my DropBox, and installed VIA Browser) and navigating to my PC's local share, but having to manually find every APK without going to the Google Play Store is rather a hassle
Reelix said:
First, some quick details about my setup.
CM: 10-20120909-UNOFFICIAL-p500
- Build 5 from http://forum.xda-developers.com/showthread.php?t=1811325
Google Play Store: 3.8.17
---
When trying to run the Google Play Store, I get an "Unfortunately Google Play Store has stopped." error message.
I can temporarily fix this by going to Settings -> Apps -> Google Play Store -> *Clear data*, *Force stop*, *Reboot Phone*, at which point the Google Play store starts fine, with two updates (Android Terminal Emulator / Gmail)
If I try to update either of the apps, or install any new app (Either from Phone market place, or PC market place), I get the "Unfortunately Google Play Store has stopped." error, and am back to Step 1 (With Google Play Store not opening at all)
Any ideas?
I am able to install apps via manually browsing to the actual APK using the Browser, or using ES File Explorer (Which I uploaded to my DropBox, and installed VIA Browser) and navigating to my PC's local share, but having to manually find every APK without going to the Google Play Store is rather a hassle
Click to expand...
Click to collapse
Try reflashing the rom and gaaps, also make sure you are flashing jelly bean gaaps.
Reflash the rom then reboot system then again go into recovery and flash gaaps.
Do a full wipe i.e wipe system, data ,cache, dalvik cache.
hsingh1993 said:
also make sure you are flashing jelly bean gaaps.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1811325
Google Apps (Generic from Goo.im)
OR
Google Apps (For Mini/MDPI Devices)
?
- Edit -
Gah - Stupid XDA forums.
*Successfully makes posts with links*
*Tries to edit post*
"Error: New users aren't allowed to make posts with external links!" <-- Ignoring the fact I just did... ?
*Removes links, and simplifies question*
"Error: New users must wait 5 minutes between posts" <-- It's an edit, not a post >_<
>_>
Reelix said:
First, some quick details about my setup.
CM: 10-20120909-UNOFFICIAL-p500
- Build 5 from http://forum.xda-developers.com/showthread.php?t=1811325
Google Play Store: 3.8.17
---
When trying to run the Google Play Store, I get an "Unfortunately Google Play Store has stopped." error message.
I can temporarily fix this by going to Settings -> Apps -> Google Play Store -> *Clear data*, *Force stop*, *Reboot Phone*, at which point the Google Play store starts fine, with two updates (Android Terminal Emulator / Gmail)
If I try to update either of the apps, or install any new app (Either from Phone market place, or PC market place), I get the "Unfortunately Google Play Store has stopped." error, and am back to Step 1 (With Google Play Store not opening at all)
Any ideas?
I am able to install apps via manually browsing to the actual APK using the Browser, or using ES File Explorer (Which I uploaded to my DropBox, and installed VIA Browser) and navigating to my PC's local share, but having to manually find every APK without going to the Google Play Store is rather a hassle
Click to expand...
Click to collapse
is your playstore a system app or user app? playstore sometimes misbehaves as a user app. You can move the playstore apk to /system/app, rename it as Vending.apk and give 644 permissions. THen reboot your phone. Check if this works.
Warez are non-tolerated on XDA. Do not link or post any warez at anytime on XDA. Doing that can lead to a ban.
Thread cleaned and closed.
YZ.

[Q] Titanium, Detach from market, not stick

Sprint gs5, CM-root, TWRP, SDfix...
I have an app which I do not want updates to...
The developer is making changes to the app to fix issues with other brands/models...
The current version works well on mine and I don't want it to update to a version which might break it for my brand/model...
In the playstore I disabled auto-update, but it still shows up in the manual and group update list...
I went into titanium (pro) and detached it from the market and it showed 'attach to market (forced)'
I checked playstore and it is off my app list...
Several minutes later it re-appeared in playstore and titanium went back to 'detach from market'
So the detach function is not sticking...
Any Ideas?
KaptainRandom said:
Sprint gs5, CM-root, TWRP, SDfix...
I have an app which I do not want updates to...
The developer is making changes to the app to fix issues with other brands/models...
The current version works well on mine and I don't want it to update to a version which might break it for my brand/model...
In the playstore I disabled auto-update, but it still shows up in the manual and group update list...
I went into titanium (pro) and detached it from the market and it showed 'attach to market (forced)'
I checked playstore and it is off my app list...
Several minutes later it re-appeared in playstore and titanium went back to 'detach from market'
So the detach function is not sticking...
Any Ideas?
Click to expand...
Click to collapse
Its been an issue with Titaniium before and appears as it does on your device. Try this:
1) get the Apk you wanna detach (ex using TitaniumBackup) into location you can easily get to (ex. SD card)
2) install ZipSigner from play store
3) re-sign the extracted Apk using ZipSigner and test key
4) uninstall the original app and install the re-signed Apk you made
5) profit
Hi, I realise this is an old post but it's something I've been trying to do for a while too. I've finally accomplished it successfully so I thought I'd share it on in some of the topics.
It works by changing the apk signature so the app typically becomes 'different' to the one on the Google Play Store and therefore doesn't appear in your Google Play Store list. But by doing this, you won't be able to update the app from Play Store.
How to:
Need Root.
First do a TB backup of current apk just to keep it.
With a file explorer, go to root\data\app and copy the app apk that you want to change and paste it somewhere on SD card.
Now uninstall the app
Download and install: ZipSigner by Ken Ellinwood from Play Store.
Open ZipSigner, choose input file and navigate to earlier copied apk
I used key/mode: auto-testkey
Sign the file
The new signed apk will be put in the same directory the original file was.
Now install that signed apk and your're done. Check market.
Worked for me - hope it works for you!
HTC One
RevelationOmega said:
Its been an issue with Titaniium before and appears as it does on your device. Try this:
1) get the Apk you wanna detach (ex using TitaniumBackup) into location you can easily get to (ex. SD card)
2) install ZipSigner from play store
3) re-sign the extracted Apk using ZipSigner and test key
4) uninstall the original app and install the re-signed Apk you made
5) profit
Click to expand...
Click to collapse
Amazing, Thanks for this.

Update and install new latest version of google play store

I have ever problem with download apps because my phone is not available Google play store. However, I found solution to this: way to download Google play again. Perhaps, some of you will see it useful.
If you have available Google play, you can update the latest version. Check your version: Google play=> setting, the build number is your current version.
Next, choose a trusted source of apk files for download Google play store APK (choilieng.com). Remember that if you download poor quality apk, they may have tampered with the apk which is bad news. (Note: download on devices or pc and transfer apk to space you‘ll remember)
Setting security to your app: Enable unknown sourced in the settings to install an apk. If disables, your system will prevent users from installing apps from anywhere aside from Google play store: Enter device setting=> security=>unknown sources => ok
Install the Google play store by using file manager: open file browser, navigate to place you put Google play store apk, click on it => click package Installer=> install.
Finally, keep yourself safe by going back and turn unknown sources off: setting=> security settings, privacy settings or application settings=>uncheck the box.
That is all. If you haven’t done this successful, it is better for you to download apk files and install apps like the step 2. Even if your devices are not available Google play or not, you can still download apk files for many installing apps in the future with more android devices.

[root] Playing around and accidentally uninstalled the play store - how to undo?

So, this is my first time rooting a phone, and once I managed to get it to work, I started playing around to see what capabilities I had now.
In doing this, I uninstalled the play store. I've tried multiple methods to reinstall it, but none have worked so far.
I've tried installing a new play store apk and used systemize to turn it into a system app, but that didn't work (the app crashed on launch)
I've also tried using link2sd but the app wouldn't let me convert to system app.
If anyone else has any tips for me I'd be grateful.
Using a samsung running android 11 - rooted with magisk, recovery method.
Copy it from another device using ApkExport then transfer the installable copy over to the victim device and install.
I haven't tried it with Playstore but it works on other apks even if the donor device is on a different Android OS version.
blackhawk said:
Copy it from another device using ApkExport then transfer the installable copy over to the victim device and install.
I haven't tried it with Playstore but it works on other apks even if the donor device is on a different Android OS version.
Click to expand...
Click to collapse
sadly the only other device i have is a samsung galaxy S2 that is barely functional. I doubt that'll work.
Before you do anything I'd make sure you have a good backup of your device. Copy text messages, contacts, photos, etc all to external storage.
My first thought was just download install APK, but I see you've done that.
Someone else may have a better suggestion, but, if nothing else works, I'd try installing pico GApps to restore Playstore functionality.
https://opengapps.org/
Pico Package​This package is designed for users who want the absolute minimum GApps installation available. In this package you will find the core Google System Base, Google Android Shared Library, Google Play Store, Google Calendar Sync, Dialer Framework and the following Play Store applications:
Click to expand...
Click to collapse
FreSchDude said:
sadly the only other device i have is a samsung galaxy S2 that is barely functional. I doubt that'll work.
Click to expand...
Click to collapse
Try it. It will copied system apks and updates.
I copied apks from a S4 running on Kitkat to my Note 10+. If it loads Playstore will need to update, that may be a problem... or not.
APK Export (Backup & Share) - Apps on Google Play
Manage and extract your apps.
play.google.com
blackhawk said:
Try it. It will copied system apks and updates.
I copied apks from a S4 running on Kitkat to my Note 10+. If it loads Playstore will need to update, that may be a problem... or not.
APK Export (Backup & Share) - Apps on Google Play
Manage and extract your apps.
play.google.com
Click to expand...
Click to collapse
No dice. App crashes on launch.
SMcC2 said:
Before you do anything I'd make sure you have a good backup of your device. Copy text messages, contacts, photos, etc all to external storage.
My first thought was just download install APK, but I see you've done that.
Someone else may have a better suggestion, but, if nothing else works, I'd try installing pico GApps to restore Playstore functionality.
https://opengapps.org/
Click to expand...
Click to collapse
Ill give it a shot, thanks
FreSchDude said:
So, this is my first time rooting a phone, and once I managed to get it to work, I started playing around to see what capabilities I had now.
In doing this, I uninstalled the play store. I've tried multiple methods to reinstall it, but none have worked so far.
I've tried installing a new play store apk and used systemize to turn it into a system app, but that didn't work (the app crashed on launch)
I've also tried using link2sd but the app wouldn't let me convert to system app.
If anyone else has any tips for me I'd be grateful.
Using a samsung running android 11 - rooted with magisk, recovery method.
Click to expand...
Click to collapse
Google Play Store app by type is a normal 3rd-party app. Wondering why you want to convert it to a system app?
jwoegerbauer said:
Google Play Store app by type is a normal 3rd-party app. Wondering why you want to convert it to a system app?
Click to expand...
Click to collapse
it's originally a system app. trying to get mine fixed because no matter what I do the app crashes on launch.
FreSchDude said:
it's originally a system app. trying to get mine fixed because no matter what I do the app crashes on launch.
Click to expand...
Click to collapse
Yeah it's a system app on my Note 10+, can't be uninstalled*.
Normally it doesn't crash although it's common for it to not connect to Playstore. It does that if Google play Services is disable but even then it doesn't crash.
* I think, it has a disable option but to find out if there's an uninstall I would need to revert to the factory load first... which isn't something I want. It appears to be as I originally stated.
blackhawk said:
Yeah it's a system app on my Note 10+, can't be uninstalled*.
Normally it doesn't crash although it's common for it to not connect to Playstore. It does that if Google play Services is disable but even then it doesn't crash.
* I think, it has a disable option but to find out if there's an uninstall I would need to revert to the factory load first... which isn't something I want. It appears to be as I originally stated.
Click to expand...
Click to collapse
there is no uninstall option. I uninstalled it through other means as my phone is rooted. Now I'm having issues re-installing it and getting it to work.
My last 2 cents here:
Per definition only apps that are needed by Android OS to work are called system apps and are stored in /system/apps. Other apps - called 3rd-party apps like Google Play Store - may be stored in /system/priv-apps.
BTW:
If you manually install Google Play Store APK then it installs to /data/app directory - as expected.

Categories

Resources