如何在设备上安装未签名的 android 应用程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1763249/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 03:36:57  来源:igfitidea点击:

how to install unsigned android application on the device?

androidtestinginstallation

提问by Niko Gamulin

Currently a team of developers is working on Android application and during the development process testers already have to test the current state and report issues.

目前,一个开发团队正在开发 Android 应用程序,在开发过程中,测试人员必须测试当前状态并报告问题。

So far I have simply installed the application by connecting the tester's device on my pc and hit run in the IDE. This way we waste a lot of time if an application has to be installed on multiple devices multiple times daily.

到目前为止,我只是通过在我的电脑上连接测试仪的设备并在 IDE 中点击运行来安装应用程序。如果每天必须在多个设备上多次安装应用程序,我们就会浪费大量时间。

What I would like is to send the testing team the .apk file and let them install and run the application by themselves.

我想要的是将 .apk 文件发送给测试团队,让他们自己安装和运行应用程序。

Does anyone know what's the best way to do it?

有谁知道最好的方法是什么?

Thank you!

谢谢!

采纳答案by jishi

You can allow untrusted applications in the settings.

您可以在设置中允许不受信任的应用程序。

Settings / Applications / Unknown sources

设置/应用程序/未知来源

with that setting on, you can just point your phone to the url of an .apk and install it IIRC.

启用该设置后,您只需将手机指向 .apk 的 url 并安装它 IIRC。

It is also possible to install apks using debug mode and adb-commands over USB-cable.

也可以通过 USB 电缆使用调试模式和 adb 命令安装 apk。

回答by BeMeCollective

Here is what I do for that, simple: Build in debug mode, no need to sign with a special key. Mail them the application by regular email to their computers. Then have them connect their USB cables (comes with the phone) and copy to sd card. Access the sd card from the within the phone using any available file browser, and they can install it from the SD card. Regards

这就是我为此所做的,很简单:在调试模式下构建,无需使用特殊密钥进行签名。通过常规电子邮件将应用程序邮寄给他们的计算机。然后让他们连接 USB 电缆(随手机提供)并复制到 SD 卡。使用任何可用的文件浏览器从手机内部访问 SD 卡,他们可以从 SD 卡安装它。问候

回答by mudit

There is also software called Installapk that allows you to install APKs on your device very easily, though it is only available for Microsoft Windows, and is currently in beta.

还有一种叫做 Installapk 的软件,它可以让您非常轻松地在您的设备上安装 APK,尽管它仅适用于 Microsoft Windows,并且目前处于测试阶段。

Installapk

安装包