On my nougat device, I have downloaded an app from the playstore, which is running great. I then extract the apk from the installed app, and uninstall it and again successfully, with package installer. But the second time on app launch, it crashes. I have analyse both installation with apk analyzer. First one showing com.android.vending as installer and application source as "Google Play". Sideload installation showing com.google.android.packageinstaller and source Unkown.

My first thought is that developer doesn't want users to install the app from unknown sources to avoid MOD app or pirate release, etc., and is checking programatically for these parameter. I have decompiled to java but didn't find any clue where such a condition is begin checked and exception generated.

There is a permission BIND_GET_INSTALL_REFERRER_SERVICE, may be its causing crash. I know how to decompile and some smali editing and already change verifyinstallation method to true in smali but app still crashing.

  • 2
    If it crashes, then the first thing you should look at (and include in any related questions) is the exception/stack trace or any other related error messages from logcat. – JesusFreke May 10 at 22:03
  • You need to post the crash/tombstome/relevant part of the logcat to show what the crash is on. Otherwise no one can help you. – diff Jun 18 at 21:48

I don't think it is related to BIND_GET_INSTALL_REFERRER_SERVICE. That is related to Firebase Analytics, i.e., referrer for analytics purposes.

However, it may be related to Google Play app licensing? See https://developer.android.com/google/play/licensing/overview for more details.

| improve this answer | |
  • Thanks auspicious99. Its not related to licensing because its not paid app. Your link article saying "Google Play considers a user to be licensed if the user is a recorded purchaser of the application". its free with inapp purchase and anyone can install and use it. Installing same apk after successfull installatiin fail to run as expected. I think app has some installation source checking routine and then generating exception. App is play.google.com/store/apps/details?id=com.inscode.autoclicker – kakakhan2016 May 10 at 9:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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