简体   繁体   English

如何防止使用其他应用程序提取应用程序的APK?

[英]How can I prevent from extracting APK of my application using other application?

I am developing a non-free android application. 我正在开发一个非免费的android应用程序。 How can I prevent others from sharing apk to other users, like if I am using share-it or Xender we can share a apk which is installed in our application to others. 如何防止他人与其他用户共享apk,例如,如果我使用share-it或Xender,我们可以将应用程序中安装的apk与其他人共享。 Is there any way to prevent our application from sharing the apk? 有什么办法可以防止我们的应用程序共享apk?

Please add your thoughts. 请添加您的想法。

You cannot prevent it from being downloaded or shared. 您不能阻止其下载或共享。 It's a problem each app faces, even well-known apps apk are available easily over internet, all you need is to search for it :) 这是每个应用程序都面临的问题,即使著名的应用程序apk也可以通过Internet轻松获得,您所需要做的就是搜索它:

What you can do is restrict User to use it, if he has not purchased it. 您可以做的是限制用户使用它(如果他尚未购买)。 Assuming this app will be on Google Play, & what you need is Play Billing Library 假设此应用将在Google Play上运行, 那么您需要的是 Play Billing Library

Using this you can identify user has rights to use this app or not. 使用此工具,您可以确定用户是否有权使用此应用。 if the user has not purchased it, he will not be able to use your app. 如果用户尚未购买,则将无法使用您的应用。

If this app is not going to be on Google Play store, you can see respective app store billing library. 如果此应用程序不会在Google Play商店中发布,则可以查看相应的应用程序商店帐单库。

Set allowBackup="false" to your application in your androidmanifest file. 在您的androidmanifest文件中将allowBackup =“ false”设置为您的应用程序。

Read more about flags - https://developer.android.com/guide/topics/manifest/application-element.html 了解有关标志的更多信息-https: //developer.android.com/guide/topics/manifest/application-element.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM