简体   繁体   English

使用密码保护APK安装

[英]Protect apk installation with password

我正在制作一个android应用程序。要使用我的应用程序,用户必须首先在Web服务器上创建一个帐户,然后在该Web服务器上创建Account时将向他/她提供用户ID和密码。我从Google Play或SD卡获得的apk,将要求他/她提供该Web服务器提供的用户名和密码。如果他/她输入正确的用户名和密码,则仅允许我安装apk在用户的android设备上,否则我的apk将不会安装在他/她的android设备上。怎么可能?任何帮助将不胜感激。

I am not sure you can accomplish exactly what you want. 我不确定您能完全完成您想要的。 I have never heard anything about a protected password .apk. 我从未听说过有关受保护的密码.apk的任何信息。

A possible workaround would be to not upload your app to google play store, making the only possible way to download it through your server. 可能的解决方法是不将您的应用上传到Google Play商店,这是通过服务器下载应用的唯一可能方法。 There you can postergate the download of the app behing the user registration. 在那里,您可以按用户注册后门下载应用程序。

In addition, you can also implement some code in your android app to ask for some credentials in the first launch (obtained in the registration process), and if thery are not provided, the app doen't let the user have access to its services. 此外,您还可以在android应用中实现一些代码,以便在首次启动时要求一些凭据(在注册过程中获得),并且如果未提供thery,则该应用不会让用户访问其服务。

There are multiple combinations. 有多种组合。

Hope it helps! 希望能帮助到你!

You usually don't protect the installation process, but the sign in instead. 通常,您不保护安装过程,而是登录。 When user starts an app, he'll be prompted to enter credentials. 用户启动应用程序时,将提示他输入凭据。 What you describe doesn't make any sense. 您描述的内容没有任何意义。 Just take a look at other apps(Whatsapp, Facebook, Gmail etc.) 只需看看其他应用(Whatsapp,Facebook,Gmail等)

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

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