简体   繁体   中英

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.

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. 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.

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.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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