限制共享安卓应用的apk[英] Restricting the sharing of android application apk

本文是小编为大家收集整理的关于限制共享安卓应用的apk的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我是新的Android.我有一个应用程序来制作我必须在我必须将应用程序的.apk文件限制到用户分享到另一个手机的Android手机持有者.

如果我在我自己的网站中保留我的.apk文件,那么我希望用户可以从我的网站下载.apk无法与其他人分享相同的.apk.我想将APK的共享限制为多个手机.每次用户想要安装应用程序时,如果从播放或通过我的网站,则必须安装.APK共享无法安装.

我也想问我们是否可以区分应用程序是否从播放中分发和安装或安装.

所以请你告诉我一些方法吗?

提前感谢

推荐答案

1)如果它们在存储中具有APK,您无法阻止用户转发APK,您可以做的是在安装应用程序后删除它(您应该通过一些API搜索它,如果找到删除它) ,限制: - APK可以在安装前共享.

并且市场中存在工具/应用程序,这些工具/应用程序在索赔将已安装的应用程序转换为APK,然后可以转发到其他设备.

在前进锁定的类似问题

2)虽然您无法阻止用户转发您的 APK ,但如果他们从其他来源收到此应用程序,则可以停止其他用户使用它,然后是您的 Web ,正如我自己之前做过的那样,通过客户端服务器通信在基于移动式 imei 上在服务器上生成一个密钥,因此该应用程序将被激活为特定移动基于 imei 编号.因此,如果其他用户尝试使用它,您可以检查此 imei 是否注册,并相应地采取行动.

其他推荐答案

除非用户使用USB电缆/astro文件管理器,如实用程序,在rooted手机上,他不会能够提取APK输出并传输到另一个电话.和知道如何root设备的用户百分比非常低.所以不应该出现这个问题.

即使假设用户可以非常容易地提取APK(哪个常设用户不会能够),问题稍微向下拍摄,以在每个APK上生成唯一标识符串,然后将其打包在该APK内.现在,当它在另一个设备上提取和安装时,应用程序可以在显示"无复制"消息后检查该标识符并关闭.

请注意,标识符应将其绑定到唯一的字符串,例如设备imsi号码,或电话号码,或两者的组合.当复制APK时,此字符串需要写入传输的文件,我将在APK中的资产文件夹中推荐一个属性文件.希望这有助于

其他推荐答案

如果某种方式我们设法将应用程序数据文件夹与该应用程序的那个apk.file附加,那么我们的问题将轻松纠正.就像您将应用程序的文件夹发送到某人,然后应用程序将自动将数据加载到其他用户.如果他不能分开这两件事(apk.应用程序和数据文件夹的文件). 希望它能帮助你......和我也......

本文地址:https://www.itbaoku.cn/post/1937905.html

问题描述

I am new to android. I have a application to make where in i have to restrict the application's .apk file getting shared by the user to the other phone android phone holders.

Its like if i keep my .apk file in my own website then i want that the user can download the .apk from my website the cannot share the same .apk with some other person. I want to restrict the sharing of the apk to multiple phones. Everytime a user wants to install the app he/she has to install if from the play or through my website but the .apk shared cannot to installed.

Also i wanted to ask if we can distinguish whether the app is distributed and installed or installed from the play.

So can you please tell me some way out for doing this?

Thanks in advance

推荐答案

1) You can not stop users to forward your apk if they have apk in storage, what you can do is to delete it after your app installed(you should search it via some api and if found delete it), Limitation :- apk can be shared before installing.

and there are tools/apps exist in market which claim to convert installed app into apk, and then it can be forwarded to other device.

Similar question on Forward locking of apk

2) Though you can not stop user to forwarding of your apk, But can stop other user to use it, if they receive this app from other sources then your web, as I myself did it earlier, by client server communication where a key is getting generated on Server based on mobile IMEI, so this app is going to be activated for particular mobile based on IMEI number. hence if other users try to use it you can check if this IMEI is register or not, and take action accordingly.

其他推荐答案

Unless a user uses a USB cable/Astro file manager like utility, on a ROOTED phone, he wont be able to extract the apk out and transfer to another phone. And the percentage of users knowing how to root a device is very low. So this issue should not arise.

Even if it is assumed a user can very easily extract an apk (which a general user wont be able to), the problem whittles down to generating a unique identifier string on each apk, and then packing it within this apk. Now when it is extracted and installed on another device the app can check with identifier and close after displaying a "no-copying" message.

Note that the identifier should be tied to a unique string, say the device IMSI number, or phone number, or a combination of both. And this string needs to be written to a file that is transferred over when apk is copied, I would recommend a properties file in assets folder within the apk for this. Hope this helps

其他推荐答案

if somehow we manage to attach the app data folder with that APK.file of that app, then our problem will rectified easily. like if you send the folder of the app to someone then app will automatically loads your data to the other user. if he can't separate that two things (apk. file of APP and data folder of the APP). Hope it will help you...and me too..