从市场安装 Android 应用程序与通过网络下载或 adb 进行侧面加载有何不同?

发布于 2024-11-02 17:36:23 字数 368 浏览 4 评论 0原文

我知道在 root 手机上安装 Android 应用程序有四种方法:

  1. 通过 Android 市场安装
  2. 在“设置”->“应用程序”中启用“未知来源”并从网络下载 .apk
  3. 在“设置”->“应用程序”中启用“USB 调试” -> 开发和 adb 安装
  4. 在“设置”->“应用程序”->“开发”和 adb 推送到 /data/app 或 /system/app 中启用“USB 调试”

这些选项之间的主要区别是什么?如果我删除 Market/Vending 和 PackageInstaller 应用程序,我仍然可以从 adb 旁加载吗?出于此问题的目的,假设我的手机上没有市场应用程序。

I know of four ways to install an Android application on a rooted phone:

  1. Install via the Android market
  2. Enable 'Unknown sources' in Settings->Applications and download an .apk from the web
  3. Enable 'USB debugging' in Settings->Applications->Development and adb install
  4. Enable 'USB debugging' in Settings->Applications->Development and adb push to /data/app or /system/app

What are the major differences between these options? If I delete Market/Vending and PackageInstaller apps, will I still be able to sideload from adb? For the purposes of this question assume I have no Market apps on the phone.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

来世叙缘 2024-11-09 17:36:23

安装的主要区别在于升级路径。市场安装的应用程序在有更新时通知您(通过市场)。手动安装的应用程序 (2-4) 取决于应用程序来通知您任何给定应用程序可能支持或不支持哪些应用程序,或者您始终可以手动检查应用程序的源以查看是否有可用的更新。我相信通过 adb Push 安装的应用程序需要重新启动才能正确注册为已安装。

如果您决定删除 MarketUpdater.apk,我相信唯一的问题将是前面提到的先前市场安装的应用程序的自动更新通知。如果您想删除市场应用程序本身而不是更新程序,Vending.apk 就是您所寻找的。

我不会删除 PackageInstaller。它用于安装(和注册)应用程序,无论安装方法如何。有一次,我不小心用不兼容的 busybox 替代品替换了 PackageInstaller 使用的命令行工具。当我尝试手动安装应用程序时,PackageInstaller 会呕吐。我修复了命令行工具程序,但重点是在手动安装过程中使用了 PackageInstaller。

The primary differences in the install are the upgrade paths. Market installed apps notify you when there is an update (via the market). Manually installed apps (2-4) depend on the app to notify you which may or may not be supported in any given app, or you can always manually check the source of the app to see if there are available updates. I believe apps installed via adb push need a reboot in order for them to be properly registered as installed.

If you decide to delete MarketUpdater.apk, I believe the only issue will be auto-update notifications of previously market installed apps as previously mentioned. If you want to delete the Market App itself, vs the updater, Vending.apk is what you are looking for.

I would not remove the PackageInstaller. Its used to install (and register) apps regardless of install method. At one point I had accidentally replaced a commandline tool PackageInstaller uses with an incompatible busybox alternative. When I tried to manually install apps, PackageInstaller would barf. I fixed the commandline tool program, but the point is that PackageInstaller was used during manual installs.

节枝 2024-11-09 17:36:23
  • 称为云到设备消息传递 (c2dm) 的 Google 推送通知要求设备上存在 Market 应用程序,以便无论应用程序是否通过 Market 安装都可以正常工作。

  • 另请看一下这个问题

  • The google push notification called as Cloud to device messaging(c2dm) requires the Market app to be present on the device in order to work whether or not applications are installed via the Market.

  • Also do take a look at this question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文