Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use the paid version of my app as a "key" to the free version?

Tags:

android

key

Let's say for example that I have some Android app that does X. The free version has ads or basic features. I want to have a paid version that removes the ads and adds extra features.

How can I use the paid app as a "license key" to unlock the features in the free app?

So the user would install the free app, then install the paid app to get the extra features, but they would still run the free app (which would now be unlocked). What's the best approach to doing this?

like image 998
Bryan Denny Avatar asked Jun 17 '10 15:06

Bryan Denny


People also ask

How do you change paid apps for free apps?

"Once your app has been offered for Free, the app can't be changed to Paid. If you want to charge for the app, you need to create a new app with a new package name and set a price."

How do I get the app signing key?

Open Play Console and go to the Play App Signing page (Release > Setup > App integrity). Scroll to the “App signing key certificate” section and copy the fingerprints (MD5, SHA-1, and SHA-256) of your app signing certificate.

What is APK signing?

Android requires that all APKs be digitally signed with a certificate before they are installed on a device or updated. When releasing using Android App Bundles, you need to sign your app bundle with an upload key before uploading it to the Play Console, and Play App Signing takes care of the rest.


1 Answers

Use PackageManager to ensure your paid package is installed. AND ensure your free package signature matches installed premium package signature. Otherwise somebody would be able to install unsigned app with package name matching your paid package name and unlock premium this way.

This post can help you to find your signature Detect if app was downloaded from Android Market

like image 54
Fedor Avatar answered Oct 08 '22 22:10

Fedor