Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with Android licensing service

Tags:

android

I implemented Licensing Service in my application using the sample given with licensing module. I am using the standard ServerManagedPolicy. I have not changed anything in the policy and it actually works fine. I have following questions.

  1. Sometimes, this happens randomly though, it says that application is not licensed and asks for buying it and then I try again it works fine. So few times, it will say, app is not licensed. I have seen this both on real phone and emulator. This is a serious concern, because if the user who buys the app later on see the popup that app is not licensed, he is gonna get irritated. May I please know what is wrong with the standard ServerManagedPolicy code.

  2. For a paid app, is the standard ServerManagedPolicy implementation given in the sample code enough, or do you recommend to tweak it and add / modify some checks.

like image 637
user835791 Avatar asked Sep 08 '11 16:09

user835791


People also ask

Why is my play store services not working?

Check that you have a strong Wi-Fi or mobile data connection After you check your internet connection, try your download again. To get more help with connection problems, go to Fix internet connection problems on Android devices.

What is license verification Android?

How does the license verification library work? It manages a connection between your app and the Android Market (now Google Play), and performs a license check with the server to see if the user has a valid license for your app (i.e. it was purchased legitimately through the market).


1 Answers

Implementing Market license checking API is a waist of time from my experience.

My game, Elastic World, got cracked a few hours after being on the market. There's an android application called Lucky Patcher that cracks any APK that uses Market licensing API.

In the implementation of market licensing, I did everything by the book, following all google's recommendations, but Lucky Patcher always cracked the protection. I spent a couple of days on this trying several approaches, different kinds of obfuscation, placing the validation code in other areas of execution, but nothing worked.

like image 130
Pedro Soares Avatar answered Sep 23 '22 02:09

Pedro Soares