Just done this test myself and get the same result as you. That is a
new google account that has not bought the application is getting the
ALLOW response.

Test details:
* I did a set tests on the emulator with my market account and got the
expected results ie. the test responses from the market profile.
* I then created a new Google account and tested the Strict Policy.
The check returned ALLOW - this was NOT expected.

Test Implementation Details:

Application:
* LVL Test - skeleton test app with 2 buttons for one for [Server] and
the other for [Strict] policy check.
* Nothing subclassed or overridden, just using the classes from the
library.

Market:
* Test application LVL Test uploaded to the market and saved but NOT
published.
* Test response set to "Respond Normally"

Emulator:
* Android 2.2 with google APIs
* Started emulator with wipe user data and then added my test google
account.
* From Eclipse deployed my LVL Test application to the emulator.
* Ran a strict policy check - Result was ALLOW.

Can anyone give my any insights?

start implementation details
----------------------------------------------

my activity:

public class LvlTestActivity
        extends         Activity
        implements      OnClickListener,
                                LicenseCheckerCallback

in onCreate(...):

  deviceId =
Settings.Secure.getString(getApplicationContext().getContentResolver(),
Settings.Secure.ANDROID_ID);
  obfuscator = new AESObfuscator(SALT, getPackageName(), deviceId);
  serverManagedPolicy = new
ServerManagedPolicy(getApplicationContext(), obfuscator);
  strictPolicy = new StrictPolicy();


in onClick(...):

  case R.id.strict_polity_button:
  {
    policyCheckResultTextView.setText("start StrictPolicy check");
    licenseChecker = new LicenseChecker(this, strictPolicy,
PUBLIC_KEY);
    licenseChecker.checkAccess(this);
    break;
  }


public void allow()
{
  displayResult("Licence check = ALLOW");
}

public void applicationError(ApplicationErrorCode errorCode)
{
  displayResult("Licence check = APPLICATION_ERROR, code=" +
errorCode);
}

public void dontAllow()
{
  displayResult("Licence check = DONT_ALLOW");
}


end implementation details
----------------------------------------------



On Aug 1, 8:12 pm, sblantipodi <[email protected]> wrote:
> have you tryed using a non authorized gmail account from emulator?
> it returns always licensed... have you noticed the same?
>
> On Aug 1, 7:05 pm, a1 <[email protected]> wrote:
>
> > Hi everybody,
>
> > I've just pushed emergency fix after last update which disabled LVL
> > check, 3h after update I received about 5 emails and 4 1* comments due
> > to licence verification failure on legit copies of my game.
>
> > I've used slightly modified ServerManagedPolicy (with minimum cache
> > time set to 1 week and 10 retries / 1 week grace period), main problem
> > was that I do not force grace period and retries during first check,
> > that was probably reason for bogus verification failures, anyway
> > bottom line is that after testing LVL live, I do not plan to use it
> > again, there are too many potential problem for legit customers.
>
> > --
> > Bart Janusz (Beepstreet/Hyperbees)

-- 
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

Reply via email to