[英]How to restrict my android app to get published other than google play store?
Is there any way android provides to restrict my custom application to get it published other than Google play store? 除了Google Play商店以外,android有什么方法可以限制我的自定义应用程序以使其发布? And this app will not be a paid app so I can't use LVL feature and as per below discussion, we can't publish free app with licensing check: 而且该应用程序将不是付费应用程序,因此我不能使用LVL功能,并且按照以下讨论,我们无法发布带有许可检查的免费应用程序:
LVL behavior on client side license validity check for free apps 免费应用程序在客户端许可证有效性检查上的LVL行为
So, not able to find any ways to restrict it to publish my free app to other stores :(. 因此,无法找到任何方法来限制它将我的免费应用发布到其他商店:(。
Why I want to restrict it to publish it to other stores: 为什么要限制它以将其发布到其他商店:
Because any hackers can download your app from google play store and inject malware in it and publish infected app to other stores. 因为任何黑客都可以从Google Play商店下载您的应用并将其注入恶意软件,然后将受感染的应用发布到其他商店。
Please provide me the guidelines to achieve it. 请为我提供实现它的准则。
It doesn't matter. 没关系 If you're worried about someone injecting malware into your APK just think- they can just as easily lie, say that they're your app, and upload pure malware. 如果您担心有人向您的APK中注入恶意软件,请以为他们可以撒谎,说他们是您的应用,然后上传纯恶意软件。 They don't actually need to be your app. 他们实际上并不需要成为您的应用。
Beat them to it. 击败他们。 Publish your app on the alternative app stores so that when they try to upload the package name is already taken by your original, clean version. 在替代应用商店上发布您的应用,这样,当他们尝试上载软件包名称时,原始的原始版本已经使用了该软件包的名称。
Here's an idea. 这是个主意。 Get the installer from here when your app opens and check if it is from Google Play by comparing it to com.android.vending
. 当您的应用打开时,从此处获取安装程序,并将其与com.android.vending
进行比较,以检查其是否来自Google Play。 If it is not, block any use of the app. 如果不是,请阻止对该应用程序的任何使用。
But of course hackers can still download your app, remove this kind of security and upload it to other stores. 但是,当然,黑客仍然可以下载您的应用,删除这种安全性并将其上传到其他商店。 But I guess this can give you an idea? 但是我想这可以给你一个主意吗? Also Gabe Sechan's answer is possible too. Gabe Sechan的答案也是可能的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.