如何向 Samsung Galaxy Tab 10.1 批量安装软件
我们公司购买了 50 台三星 Galaxy Tab 供公司使用。 在将它们交付给用户之前,我们必须在其中安装一些公司标记的程序。
我们认为最简单的方法是通过 ADB,但它需要启用 USB 调试。有没有比在每台设备上逐个启用它更好、更快的方法呢?是否可以在连接 USB 电缆时使用某些程序或代码段从 PC 启用 USB 调试? 理想的解决方案是我们通过 USB 将多个设备连接到一台 PC,并运行安装脚本来启用 USB 调试、运行安装、禁用 USB 调试并最终关闭设备。你会怎么做?
兄弟, 图佩
our company bought 50 Samsung Galaxy Tabs for corporate use.
Before these can be delivered to users we must install some company labeled programs in to them.
We thought the easiest way to do this would be through ADB but it needs the USB debugging to be enabled. Is there a better and faster way to do it than enable it on each device one by one? Is it possible to enable USB debugging from PC using some program or piece of code while connected with USB cable?
The ideal solution would be that we connect multiple devices via USB to one PC and run installation script that enables USB debugging, runs installations, disables USB debugging and finally shuts down the devices. How would you do this?
Br,
Tupe
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
让几个人在每台设备上并行启用它。
幸运的是,没有,因为这将是一个安全漏洞。
根据您的计划,Windows 恶意软件可以检测到 Android 设备已插入并在该设备上安装 Android 恶意软件。毕竟,如果您的“安装脚本”可以做到这一点,那么恶意软件也可以。
将 APK 托管在内部 Web 服务器上,为其生成一个短 URL,选中设备上的“允许非市场安装”,然后在设备上的浏览器中启动该 URL。这假设您计划更新应用程序(例如,错误修复),并且您不打算为每个更新执行整个 USB 电缆流程。在这种情况下,您需要为 APK 文件配置 Web 服务器,并选中“允许非市场安装”复选框,因此您也可以将其作为初始设备设置的一部分。
Have several people enable it on each device one by one in parallel.
Fortunately, no, as that would be a security hole.
Under your plan, a piece of Windows malware could detect that an Android device is plugged in and install Android malware on that device. After all, if your "installation script" can do it, so can the malware.
Host the APK on an internal Web server, generate a short URL to it, check the "allow non-Market installs" on the device, and fire up that URL in the browser on the device. This presumes that you plan on updating the app (e.g., bug fixes) and that you aren't planning on going through your whole USB cable process for each of those updates. In that case, you need to get the Web server configured for APK files and have the "allow non-Market installs" checkbox checked anyway, so you may as well do that as part of the initial device setup.
但愿不会。如果可能的话,您插入设备的任何硬件都可以对其执行一些非常讨厌的操作,而您没有任何机会进行干预。
我已经完成了一些类似的大型安装。我还没有找到一种技术可以解决一切。
我建议将您的 apk 文件在线托管在某个地方,并为其创建一个缩短的(易于输入)url。
然后在设备上打开浏览器并输入 url。这将下载您的 apk,当您单击通知中的下载完成时,它将开始安装。
注意:您必须在设置中打开“允许未知安装”。我认为最快的方法就是下载并按 apk,这将弹出一个对话框,其中有一个按钮,您可以按此按钮进入正确的设置页面以打开此功能。但坏消息是,打开它后,安装不会自动恢复。因此,您要么必须使用文件资源管理器找到该 apk,要么返回浏览器并下载它的新副本。我猜后者可能会更快,尽管更混乱。
Hopefully not. If this were possible any piece of hardware that you plugged your device into could do some very nasty things to it without any chance for you to intervene.
I've done some large installs like that. I've not found one technique to be the end all be all.
I would suggest host your apk file online somewhere make a shortened (easy to type) url to it.
Then on the devices open up browser and type the url. That will download your apk, when you click the download complete in the notifications it will start the install.
Note: You will have to turn on "Allow install from unknown" in settings. The fastest way I think is just do the download and press the apk, this will throw up a dialog that has a button you can press to take you right to the correct settings page to turn this on. But bad news is that after you turn it on the install won't resume automatically. So you either have to find the apk with file explorer, or go back to browser and download a new copy of it. I would guess the latter might be quicker, albeit messier.