如何重新启动模拟器进入恢复模式

发布于 2024-10-27 00:16:17 字数 29 浏览 1 评论 0原文

有什么办法可以将模拟器重新启动到恢复模式吗?

is there any way to reboot the emulator into recovery mode??

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

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

发布评论

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

评论(1

浪漫之都 2024-11-03 00:16:17
  • Android 模拟器不支持恢复模式,仅支持正常启动模式
  • Android 模拟器接受 Android 映像(包括内核和 ramdisk 映像)作为其命令行界面上的独立映像。它们不会像现实世界中那样编译为一个大映像,其中所有 Android 分区都存储到同一手机存储中
  • Android 模拟器的内核是 Android 内核的自定义构建,称为金鱼内核,可以与虚拟平台通信由 Google 工程师开发,名为“goldfish”,该内核的预构建可以在 $sdk/system-images/android-22/default/armeabi-v7a/kernel-qemu 下找到
    请注意,您不能仅用金鱼仁以外的仁来代替它。不过,goldfish 内核源代码可以在 @ gooogle repo 找到,并且可以轻松编译并替换为 Android SDK 附带的默认源代码。
  • 如果您需要使用另一个 Linux 内核运行 android 模拟器,那么您必须移植此内核到高尔夫虚拟硬件(这不是一个直接的过程)。我以前做过,如果需要的话我可以详细说明如何做。
  • 为了在恢复模式下启动 android 模拟器,您需要付出额外的努力,将名为“u-boot”的工具(即真实手机中使用的众所周知且广泛使用的第二阶段引导加载程序)移植到金色虚拟板能够在 Android 模拟器上运行。几年前我就这么做了,这是一个非常令人兴奋的过程。如果您有兴趣的话,我可以为您提供大量信息。
  • Android emulator does not support recovery mode, just normal boot mode
  • Android emulator accepts Android images -including kernel and ramdisk images - as standalone images on it's command line interface. They are not compiled to one big image as in a real world scenario where all Android partitions are stored to the same phone storage
  • The kernel of Android emulator is a custom build of a android kernel, it's called goldfish kernel which can communicate with the virtual platform developed by Google engineers named as "goldfish", a pre-built of this kernel can be found under $sdk/system-images/android-22/default/armeabi-v7a/kernel-qemu
    Please note you can not just replace it by kernels other than goldfish kernels. However, goldfish kernel source code can be found @ gooogle repo and can be easily compiled and replaced by the default one that comes with the Android SDK
  • In case you need to run the android emulator with another Linux kernel, then you have to port this kernel to the golfish virtual hardware (which is not a straight-forward process). I did it before and I can elaborate more on how to do it if needed.
  • In order to boot the android emulator in the recovery mode, you need to do an extra effort of porting a tool called "u-boot" (i.e. a well-known and widely used 2nd stage boot-loader used in real phones) to the goldish virtual board to be able to run it on top of android emulator. I did that a couple of years ago and it was very mind-blowing process. I can provide you with tremendous information if you are interested in doing so.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文