申请许可和Android的唯一的ID [英] Application Licensing and android unique id

查看:145
本文介绍了申请许可和Android的唯一的ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将出版的付费应用程序到Android Market。该应用程序使用拉特(申请许可)。为了验证许可我必须提供设备的唯一ID。现在的问题是,一些Android设备(由于已知的问题)具有相同的独一无二的ID,打电话时:

I am about to publish the paid app to the android market. The app uses LVL (Application Licensing). In order to validate the licence I have to provide the device's unique id. The problem is that some android devices (due to known issue) have the same 'unique' ids, when calling:

Secure.getString(getContentResolver(), Secure.ANDROID_ID);

我还可以使用TelephonyManager类,但该应用程序还针对平板电脑设备,所以我不能依靠这一点。

I could also use TelephonyManager class but the app also targets the tablet devices so I can not rely on that.

如果你们的人已经用单板层积材,请让我知道创建LicenseChecker()对象时,你所获得的devices'id如何做。我只是想知道会发生什么,如果两个用户使用相同的设备ID会尝试购买的应用程序。

If anyone of you guys has used LVL please let me know how did you obtained the devices'id when creating LicenseChecker() object. I am just trying to understand what could happen if two users with the same device id would try to buy the app.

推荐答案

两个设备使用相同的ID只给应用程序免费向其他设备然而拉特仍与谷歌ID的工作。由于LVL使用谷歌的认证提供了极为罕见的,你会不会看到有人用相同的ID和相同谷歌ID购买了相同的应用程序。特别是因为他们已经拥有它!

Two devices with the same id would just give the app for free to the other device however the LVL still works with Google IDs. Since the LVL uses Google's authentication its extremely rare that you would ever see someone with the same ID and the same Google ID buy the same app. Especially since they already own it!

如果没有帮助试试如下:

If that does not help try below:

http://developer.android.com/guide/publishing/licensing.html 规定:

声明一个变量来保存设备标识符,并为它所需的任何方式的值。例如,示例应用程序包括在拉特查询为android.Settings.Secure.ANDROID_ID,这是唯一的每个设备的系统设置

declare a variable to hold a device identifier and generate a value for it in any way needed. For example, the sample application included in the LVL queries the system settings for the android.Settings.Secure.ANDROID_ID, which is unique to each device.

需要注意的是,这取决于你使用的API,应用程序可能需要请求更多的权限,以获得设备特定的信息。例如,查询TelephonyManager获取设备IMEI或相关数据,应用程序也将需要请求android.permission.READ_PHONE_STATE允许在其清单。

Note that, depending on the APIs you use, your application might need to request additional permissions in order to acquire device-specific information. For example, to query the TelephonyManager to obtain the device IMEI or related data, the application will also need to request the android.permission.READ_PHONE_STATE permission in its manifest.

在申请新的权限获取设备特定信息在你的混淆使用的唯一目的,考虑如何这样做可能会影响你的应用程序或其Android电子市场(过滤,因为有些权限可能会导致SDK构建工具添加关联)。

Before requesting new permissions for the sole purpose of acquiring device-specific information for use in your Obfuscator, consider how doing so might affect your application or its filtering on Android Market (since some permissions can cause the SDK build tools to add the associated ).

这篇关于申请许可和Android的唯一的ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆