Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android License App Checker - restrict API access #47

Open
simone opened this issue Nov 7, 2019 · 2 comments
Open

Android License App Checker - restrict API access #47

simone opened this issue Nov 7, 2019 · 2 comments

Comments

@simone
Copy link

simone commented Nov 7, 2019

Io order to restrict the API access only to our android app, we should implement the server side license verification. The process is described here:
https://developer.android.com/google/play/licensing/server-side-verification

Investigate also the Protect against security threats with SafetyNet
https://developer.android.com/training/safetynet/index.html

The task has 2 phases:

  1. Fetch the License information from the Google Store (if the user has effectively downloaded our app from the store by the mobile app.
  2. implement a simple backend (Kotlin or Java) call to verify the license on the google store.

Open questions:
Can a third-party app asks to the store the license information of our app?
Can we detect server site that the license sent by the "app" (of a fake app) is strictly connected to the device that is sending the request?

Here the Android Play Library to use:
https://github.com/google/play-licensing/tree/master/lvl_library/src/main/java/com/google/android/vending/licensing

Note:
The Native API call should be integrated with flutter
https://flutter.dev/docs/development/platform-integration/platform-channels

@bhack
Copy link
Contributor

bhack commented Nov 29, 2019

g123k/flutter_safetynet_attestation#1

@bhack
Copy link
Contributor

bhack commented Nov 29, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants