为了保护APKAPK

2023-09-04 23:18:49 作者:男神回归 {exo}

我已经开发了一个应用程序,并建立了apk.Now我想避免,如果我已经安装了的apk我的设备上应用程序的盗版手段,如果我试图在另一台设备上安装相同的apk那么它不应该是得到安装在另一台设备。有没有办法做到这一点?

I have developed one application and created the apk.Now I want to avoid the piracy of that application means if I have installed the apk on my device and if i am trying to install same apk on another device then it should not be get installed on another device. Is there any way to do it ?

推荐答案

以及你所追求的是个性化的APK,拿什么为每个你必须建立一次APK,并在你需要把逻辑的APK可以是设备只安装一个设备上;因此,要做到这一点,你可以在APK给出一个数字,安装之后就可以调用Web服务来存储这个数字在云数据库。

well what you are looking for is personalized APK, means for each device you have to build once APK and in that you need to put logic that the APK can be installed on only one device; So to do that you can give one NUMBER in APK and after installation you can call a webservice to store that NUMBER in cloud database.

每次安装之后,你需要做两件事情...

After every installation you need to do two things...

使用web服务perticular号已在clooud存储,如果是,则设置一个标志,绝不允许用户再次看到应用程序的数据查询数据库...

Query database using Webservice that perticular number is already store on clooud if yes then set a flag which never allow user to see the application data again...

如果现在发现商店的服务器。

If now found store that on server.

这仅仅是逻辑的你需要思考为什么您需要独特的APK每个设备?

您可以使用GetDeviceId()返回唯一的设备ID,例如IMEI为GSM和MEID的CDMA手机。返回NULL,如果设备ID是不具备的。

If you want to do without Webservice and cloud DB you can use GetDeviceId() it returns the unique device ID, for example, the IMEI for GSM and the MEID for CDMA phones. Return null if device ID is not available.

因此​​,在您的APK,你需要检查,如果XYZ == GetDeviceId()的结果,那么允许用户访问这些应用程序;别人写的消息,你是不是授权查看此。

So in your APK you need to check IF XYZ == GetDeviceId() Result then allow user to access the APPS; else write message that you are not authorise to view this.

为此,您需要查询的用户对他们的DeviceID后建APK()

For this you need to build APK after inquiring your USER about their DeviceID()