Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to reboot the emulator into recovery mode

Tags:

android

reboot

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

like image 214
Preetam Avatar asked Mar 26 '11 13:03

Preetam


People also ask

How do I fix my emulator not working?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.


1 Answers

  • 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.
like image 189
Rida Shamasneh Avatar answered Oct 19 '22 06:10

Rida Shamasneh