简体   繁体   中英

How to interrupt Android boot sequence to force it boot to Linux kernel only

I am trying to do some low level performance testing related to device processor cores through adb which I feel it is affected by Android background services and system stuff.

As I know that the Android boot sequence stages are as follow:

  1. Execute Boot ROM code.
  2. Execute the boot loader.
  3. Load the Linux kernel.
  4. Launch Zygote, which initializes the Dalvik VM.
  5. System server which loads the Android system.

So my question is how can I interrupt this sequence to force it stop on stage 3 to load Linux kernel. This can help me implement my intermediary performance testings before loading again Android system. Does Fastboot or Clockworkmod recovery can help here and load my device to a kind of Linux kernel?

Any hint will be appreciated. Thanks.

Change init parameter in kernel bootargs to something like init=/bin/sh . Usually it can be done somewhere on step 2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM