Android - 以编程方式绕过来自第三方来源的企业应用程序的安装权限
Android - Bypassing install permission programmatically for enterprise apps from third-party sources
几年前,Android 允许您设置权限,允许您从 Google 自己的应用商店 Google Play 以外的第三方位置安装应用。最终他们弃用了该权限,只允许硬件制造商设置该权限。从那以后我就没有检查过是否仍然如此。
不过我想知道的是,如果一家公司想要将 APK 文件安装到他们自己的设备上但不在 Google Play 中托管 APK 文件,我将如何处理这种情况。他们将如何提供?
Android 确实允许用户将并非来自 Google Play 的 APK 文件安装到他们的设备上,尽管必须启用该功能。能否以编程方式启用该功能?
我能想到的安装公司应用程序的解决方案是将安装程序上传到 Google 由公司专门开发并仅供公司使用的安装程序应用程序,即使每个人都可以使用在 Google 播放。员工会像安装 Google Play 中的任何应用程序一样安装此应用程序。当此安装程序运行时,它会提示输入 username/password。身份验证后,该应用程序将从自己的服务器检索公司的应用程序并安装它们。
这是企业目前正在使用的解决方案还是 Jelly Bean / KitKat / Lollipop 中内置了一些东西 提供配置?
编辑:
Google 在他们的 Android 网站上声明:
The application is installed on users' devices. Android does not
currently have an automated provisioning solution. Some of the ways a
sysadmin might distribute the application to users are as follows:
Google Play. Enabling installation from another store. Distributing
the application through other means, such as email or websites.
http://developer.android.com/guide/topics/admin/device-admin.html
除了这些建议之外,他们没有提供任何其他建议。这些解决方案在许多组织中是不可接受的。
The solution that I can think of to installing company apps is to upload an installer app to Google Play that has been developed specifically by the company and used only for the company, even if it's available to everyone in Google Play.
我很确定只有 Play 商店应用程序具有 authority/permissions 以编程方式安装应用程序。这些权限对第三方应用程序不可用。使用以下选项之一并让 OS 处理安装过程会容易得多。
对于企业应用,APK 文件可以是
- 托管在 public URL 上。下载后,它会自动安装在用户的 phone.
上
- 作为电子邮件附件发送。同样,下载后,它会自动安装在用户的 phone.
上
在这两种情况下,系统都会询问用户是否愿意安装来自第三方来源的 APK。
此外,无法以编程方式更改安装第三方应用程序的权限。该选择必须由用户做出,并且当用户以上述两种方式访问 APK 文件时,他们将面临该选择。
还有还有一个选择——使用GooglePlay的私人频道:
1. Distribute Android apps in your organization.
2. Use a Private Channel to distribute apps in your organization.
3. Deploy app through Google Play Store in a private channel without Google Apps?.
几年前,Android 允许您设置权限,允许您从 Google 自己的应用商店 Google Play 以外的第三方位置安装应用。最终他们弃用了该权限,只允许硬件制造商设置该权限。从那以后我就没有检查过是否仍然如此。
不过我想知道的是,如果一家公司想要将 APK 文件安装到他们自己的设备上但不在 Google Play 中托管 APK 文件,我将如何处理这种情况。他们将如何提供?
Android 确实允许用户将并非来自 Google Play 的 APK 文件安装到他们的设备上,尽管必须启用该功能。能否以编程方式启用该功能?
我能想到的安装公司应用程序的解决方案是将安装程序上传到 Google 由公司专门开发并仅供公司使用的安装程序应用程序,即使每个人都可以使用在 Google 播放。员工会像安装 Google Play 中的任何应用程序一样安装此应用程序。当此安装程序运行时,它会提示输入 username/password。身份验证后,该应用程序将从自己的服务器检索公司的应用程序并安装它们。
这是企业目前正在使用的解决方案还是 Jelly Bean / KitKat / Lollipop 中内置了一些东西 提供配置?
编辑:
Google 在他们的 Android 网站上声明:
The application is installed on users' devices. Android does not currently have an automated provisioning solution. Some of the ways a sysadmin might distribute the application to users are as follows: Google Play. Enabling installation from another store. Distributing the application through other means, such as email or websites.
http://developer.android.com/guide/topics/admin/device-admin.html
除了这些建议之外,他们没有提供任何其他建议。这些解决方案在许多组织中是不可接受的。
The solution that I can think of to installing company apps is to upload an installer app to Google Play that has been developed specifically by the company and used only for the company, even if it's available to everyone in Google Play.
我很确定只有 Play 商店应用程序具有 authority/permissions 以编程方式安装应用程序。这些权限对第三方应用程序不可用。使用以下选项之一并让 OS 处理安装过程会容易得多。
对于企业应用,APK 文件可以是
- 托管在 public URL 上。下载后,它会自动安装在用户的 phone. 上
- 作为电子邮件附件发送。同样,下载后,它会自动安装在用户的 phone. 上
在这两种情况下,系统都会询问用户是否愿意安装来自第三方来源的 APK。
此外,无法以编程方式更改安装第三方应用程序的权限。该选择必须由用户做出,并且当用户以上述两种方式访问 APK 文件时,他们将面临该选择。
还有还有一个选择——使用GooglePlay的私人频道:
1. Distribute Android apps in your organization.
2. Use a Private Channel to distribute apps in your organization.
3. Deploy app through Google Play Store in a private channel without Google Apps?.