简体   繁体   English

如何通过授权安装 android apk

[英]How to install android apk with authorization

I want to install my apk (my own application) to an android device, but this apk should be installed only if user is allowed to install (ie login needed)我想将我的 apk(我自己的应用程序)安装到 android 设备,但只有在允许用户安装(即需要登录)时才应安装此 apk

I know that adb can be used to install an apk but I couldn't find any information about if I can protect adb port by a password.我知道 adb 可用于安装 apk,但我找不到有关是否可以通过密码保护 adb 端口的任何信息。 And, I don't know whether are there other methods or not.而且,我不知道是否还有其他方法。

You can't prevent the installation of an APK on a device.您无法阻止在设备上安装 APK。 However, you can make the app working only on the devices you want, by adding a login form or a check on the unique ID of the device.但是,您可以通过添加登录表单或检查设备的唯一 ID 使该应用程序仅在您想要的设备上运行。

Keep in mind that a third person can bypass this protection by patching the app.请记住,第三方可以通过修补应用程序来绕过此保护。

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

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