I have added some logging code and found that the raw response from the License Service (i.e. the call back to verifyLicense in LicenseChecker.java) has a responseCode of '0', which means 'licensed'. This is simply not correct. This phone does NOT have a valid account which would generate such a response. Can someone please explain why this is happening. Does this License Service simply not work correctly on a large number of phones? Does using the service have any value at all?
Thanks. On Nov 13, 3:31 am, bagelboy <[email protected]> wrote: > I recently did my own LVL implementation and I can tell you that > tracing these issues down is a real pain. First you need to put loads > of logging into the LVL code to find out what the actual response is, > otherwise you have no visibility, then you have to put logging into > all the code between the response and the allow/dontallow callbacks. > > Basically what I found was the stock code was unworkable in many ways. > I quickly came to the conclusion that I needed to modify it into > something that worked for me. There's a few reasons behind why you > should abandon the stock code: > - if you use the stock implementation then crackers will find it very > easy to circumvent > - as you have found it is very hard to debug. You have to spend so > much time figuring out how it works you may as well roll your own > instead. > - who's to say whether the google responses are what you want? How > many retries do you want before it sends a dontAllow back? Maybe you > want to treat the error responses as a retry. Do you want google to > specify that or yourself? Do you want them to specify the time between > checks? It's better to take control of this process so you know > exactly what is going on and you can manage the user experience. > > In the system I came up with in the end all I use is the response and > none of the extras. What I do with the response is all custom, that > way I can use the market test responses in development without > issues. > > -BB > > On Nov 13, 4:40 am, John Gaby <[email protected]> wrote: > > > I am using pretty much the default Android Market Licensing in my > > application, but find that it is not working correctly on most of the > > devices that I have tested. I have uploaded my app to the Market but > > not published it. If install it on the emulator which does not have > > any Google accounts, then I receive a 'dontAllow' from the check, > > which is correct. > > > If I install it on a Motorola Droid phone (which I have in my > > possession) that has my Market Google account associated with it, then > > it will return 'allow' or 'don't allow' depending on how I set the > > test market. I have also installed it on an HTC Incredible phone, and > > it seems to work there as well. > > > However, I have tested 4 other phones (HTC Hero, HTC Brovo Desire, HTC > > Droid Eris and HTC Nexus One), and on each of these phones, I get an > > 'allow' call from the license check, even though there is no > > authorizing account on the phone. Can someone tell me what is going > > on here? > > > Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

