Akheon23 / marketlicensing

Automatically exported from code.google.com/p/marketlicensing
Apache License 2.0
0 stars 0 forks source link

Does licensing work on AVD Google APIs with Android 2.3? #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create new AVD with target Google APIs API 9
2. sign in with the google account
3. start app with license check that worked on 2.2

What is the expected output? What do you see instead?
Expect valid license check, but what I get is this:

I/LicenseChecker(  787): Binding to licensing service.
W/ActivityManager(   74): Unable to start service Intent { 
act=com.android.vending.licensing.ILicensingService }: not found
E/LicenseChecker(  787): Could not bind to service.

What version of the product are you using? On what operating system?
Android version 2.3 API 9

Please provide any additional information below.
It used to work on 2.2, so I expect it to work without changes on Android 2.3.

Original issue reported on code.google.com by willem.stoker on 19 Dec 2010 at 1:18

GoogleCodeExporter commented 9 years ago
There seems to be a problem with the licensing service and 2.3.  As is, it does 
not seem to work which it did in 2.2.   Also, I found that 2.3 AVD is very slow.

Original comment by bond...@aol.com on 2 Jan 2011 at 11:09

GoogleCodeExporter commented 9 years ago
Doesn't work for me on 2.3 either.

LogCat output:

01-27 00:21:46.455: INFO/LicenseChecker(1067): Binding to licensing service.
01-27 00:21:46.465: WARN/ActivityManager(76): Unable to start service Intent { 
act=com.android.vending.licensing.ILicensingService }: not found
01-27 00:21:46.465: ERROR/LicenseChecker(1067): Could not bind to service.

Original comment by outofcof...@gmail.com on 27 Jan 2011 at 12:28

GoogleCodeExporter commented 9 years ago
More info:

Same code works on version 2.2 of the Google API emulator, but not 2.3 of the 
Google API emulator.

From 2.2:

01-27 01:00:12.979: INFO/LicenseChecker(562): Using cached license response

Original comment by outofcof...@gmail.com on 27 Jan 2011 at 1:02

GoogleCodeExporter commented 9 years ago
Specifically, here's a line from the 2.3 emulator LogCat on APK deployment:

02-05 15:32:52.674: WARN/PackageManager(60): Unknown permission 
com.android.vending.CHECK_LICENSE in package org.smsforward

Subsequently, a check to see if the 'com.android.vending.CHECK_LICENSE' 
permission is granted in my application returns false on 2.3 but true on 2.2.

Original comment by outofcof...@gmail.com on 5 Feb 2011 at 3:39

GoogleCodeExporter commented 9 years ago
I too am getting a steady dontAllow() result when testing with a 2.3 Google API 
AVD. The same code runs properly on a 2.2 Google API AVD. I have them both 
signed into my developer account. 

The thing that first threw me was it returned dontAllow() so fast on the 
initial test, I tried to write my result to a database that hadn't even been 
created yet. Once I got that little issue (mine) resolved, I just cannot get it 
to return a proper response.

Original comment by sidewise...@gmail.com on 10 Feb 2011 at 6:35

GoogleCodeExporter commented 9 years ago
So I went back and checked my error log, and see this. Hopefully it helps some. 

02-10 06:57:44.358: ERROR/LicenseChecker(459): Could not bind to service.
02-10 06:57:51.409: ERROR/ActivityThread(459): Activity 
com.sidewise.whatsfordinner.whatsfordinner has leaked ServiceConnection 
com.android.vending.licensing.LicenseChecker@40524f98 that was originally bound 
here
02-10 06:57:51.409: ERROR/ActivityThread(459): 
android.app.ServiceConnectionLeaked: Activity 
com.sidewise.whatsfordinner.whatsfordinner has leaked ServiceConnection 
com.android.vending.licensing.LicenseChecker@40524f98 that was originally bound 
here
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:938)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:833)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.app.ContextImpl.bindService(ContextImpl.java:864)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.content.ContextWrapper.bindService(ContextWrapper.java:347)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
com.android.vending.licensing.LicenseChecker.checkAccess(LicenseChecker.java:143
)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
com.sidewise.whatsfordinner.whatsfordinner.onCreate(whatsfordinner.java:161)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.app.ActivityThread.access$1500(ActivityThread.java:117)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:928)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.os.Looper.loop(Looper.java:123)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
android.app.ActivityThread.main(ActivityThread.java:3647)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
java.lang.reflect.Method.invokeNative(Native Method)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
java.lang.reflect.Method.invoke(Method.java:507)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-10 06:57:51.409: ERROR/ActivityThread(459):     at 
dalvik.system.NativeStart.main(Native Method)

My line 161 is:
        mChecker.checkAccess(mLicenseCheckerCallback);

I was also scrolling through my info log and this is interesting, just like 
outofcof_ mentions above:
02-10 05:02:11.424: WARN/PackageManager(75): Unknown permission 
com.android.vending.CHECK_LICENSE in package com.sidewise.whatsfordinner

Original comment by sidewise...@gmail.com on 10 Feb 2011 at 7:03

GoogleCodeExporter commented 9 years ago
Same problem here

Original comment by yair.oha...@gmail.com on 3 Mar 2011 at 6:51

GoogleCodeExporter commented 9 years ago
Same problem here, and it's preventing at least one user on a Nexus 1 from 
opening my app.

Can anyone from Google respond?

Original comment by GJTorik...@gmail.com on 11 Mar 2011 at 7:37

GoogleCodeExporter commented 9 years ago
same here. Could it be related to missing previous unbind() call?

Original comment by shineangelic on 21 Mar 2011 at 9:57

GoogleCodeExporter commented 9 years ago
Guys,
any luck ? could anyone verify clients with 2.3 are not getting thrown away ?

Original comment by yair.oha...@gmail.com on 10 Apr 2011 at 7:01

GoogleCodeExporter commented 9 years ago
I can confirm, my nexus one with 2.3.3 works with the licensing fine,
the issue appears to only effect the emulator images. Probably why
there's a lack of input to this issue from Google.

Original comment by rald...@gmail.com on 10 Apr 2011 at 7:26

GoogleCodeExporter commented 9 years ago
Thank you for this.

I would prefer a fix - but it will have to do.

Original comment by yair.oha...@gmail.com on 10 Apr 2011 at 7:31

GoogleCodeExporter commented 9 years ago
That really doesn't help an Agile development team, then does it? Yes we 
provide a mock interface for testing licensing, but no, not really, it doesn't 
work.

Original comment by outofcof...@gmail.com on 16 Apr 2011 at 3:01

GoogleCodeExporter commented 9 years ago
Works fine in all my testing and sales

Original comment by chris.fo...@gmail.com on 12 Oct 2011 at 10:01

GoogleCodeExporter commented 9 years ago
This issue kept opened for 2 years, no one is picking up it or planing a fix ???

Original comment by york.ye....@gmail.com on 25 Nov 2012 at 10:43

GoogleCodeExporter commented 9 years ago
With us now at API Level 17, It's unlikely this this issue will never be 
resolved.

Original comment by rald...@gmail.com on 26 Nov 2012 at 12:03