more detail about adb shell start, stop and reboot

本文介绍了adb工具中start、stop和reboot命令的用途及区别。通过分析设备进程列表,揭示了start如何启动zygote进程及Android框架,stop如何终止由zygote创建的所有进程,以及它们与reboot命令重启Linux内核的区别。在Android框架开发中,start和stop命令特别有用,允许开发者停止当前运行的框架,更新APK并重新启动新框架。
摘要由CSDN通过智能技术生成

Introduction

adb is the sdk tool to manage the state of   emulator or powerd device.   

start & stop are tools under /system/bin (system.img) .   It can be called by "adb shell <command>"

reboot is one parameter supported by adb which can be used directly by "adb reboot"

 

the officially description for start, stop, reboot is

  • start :  Starts (restarts) an emulator/device instance.
  • stop :  Stops execution of an emulator/device instance.  
  • reboot : reboots the devices

What's the difference between them ?  

Let's start from checking the process list of device:

 

from the ps  list , we can draw out the boot proces of android device into 2 period:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值