blob: 6632fc0f4d33479e641f7d92bfc9646ccfebe893 [file] [log] [blame]
Scott Main50e990c2012-06-21 17:14:39 -07001page.title=Application Licensing
2@jd:body
3
4
5<p>Google Play offers a licensing service that lets you enforce licensing policies for
6applications that you publish on Google Play. With Google Play Licensing, your application can
7query Google Play at run time to obtain the licensing status for the current user, then allow or
8disallow further use as appropriate. </p>
9
10<p>Using the service, you can apply a flexible licensing policy on an application-by-application
11basis&mdash;each application can enforce licensing in the way most appropriate for it. If necessary,
12an application can apply custom constraints based on the licensing status obtained from Google Play.
13For example, an application can check the licensing status and then apply custom constraints
14that allow the user to run it unlicensed for a specific validity period. An application can also
15restrict use of the application to a specific device, in addition to any other constraints. </p>
16
17<p>The licensing service is a secure means of controlling access to your applications. When an
18application checks the licensing status, the Google Play server signs the licensing status
qudduscce4027b2013-03-29 15:32:38 -070019response using a key pair that is uniquely associated with the application. Your application
Scott Main50e990c2012-06-21 17:14:39 -070020stores the public key in its compiled <code>.apk</code> file and uses it to verify the licensing
21status response.</p>
22
23<p>Any application that you publish through Google Play can use the Google Play Licensing
24service. No special account or registration is needed. Additionally, because the service uses no
25dedicated framework APIs, you can add licensing to any application that uses a minimum API level of
263 or higher.</p>
27
28<p class="note"><strong>Note:</strong> The Google Play Licensing service is primarily intended
29for paid applications that wish to verify that the current user did in fact pay for the application
30on Google Play. However, any application (including free apps) may use the licensing service
31to initiate the download of an APK expansion file. In which case, the request that your application
32sends to the licensing service is not to check whether the user paid for the app, but to request the
33URL of the expansion files. For information about downloading expansion files for your application,
Dirk Dougherty2b286bb2012-11-29 17:25:09 -080034read the guide to <a href="{@docRoot}google/play/expansion-files.html">APK Expansion Files</a>.</p>
Scott Main50e990c2012-06-21 17:14:39 -070035
36
37<p>To learn more about Google Play's application licensing service and start integrating it into
38your applications, read the following documents:</p>
39
40<dl>
Dirk Dougherty2b286bb2012-11-29 17:25:09 -080041 <dt><strong><a href="{@docRoot}google/play/licensing/overview.html">Licensing
Scott Main50e990c2012-06-21 17:14:39 -070042Overview</a></strong></dt>
43 <dd>Describes how the service works and what a typical licensing implementation looks
44like.</dd>
Dirk Dougherty2b286bb2012-11-29 17:25:09 -080045 <dt><strong><a href="{@docRoot}google/play/licensing/setting-up.html">Setting Up for
Scott Main50e990c2012-06-21 17:14:39 -070046Licensing</a></strong></dt>
47 <dd>Explains how to set up your Google Play account, development environment, and
48testing environment in order to add licensing to your app.</dd>
Dirk Dougherty2b286bb2012-11-29 17:25:09 -080049 <dt><strong><a href="{@docRoot}google/play/licensing/adding-licensing.html">Adding
Scott Main50e990c2012-06-21 17:14:39 -070050Licensing to Your App</a></strong></dt>
51 <dd>Provides a step-by-step guide to add licensing verification to your application.</dd>
Dirk Dougherty2b286bb2012-11-29 17:25:09 -080052 <dt><strong><a href="{@docRoot}google/play/licensing/licensing-reference.html">Licensing
Scott Main50e990c2012-06-21 17:14:39 -070053Reference</a></strong></dt>
54 <dd>Provides detailed information about the licensing library's classes and the service response
55codes.</dd>
56</dl>
57
58
59
60
61