`
hooroger
  • 浏览: 12663 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

reboot emulator, broadcast boot complete event

 
阅读更多

You can use the following command from adb:

 

adb shell am activity/service/broadcast -a ACTION -c CATEGORY -n NAME

for example:

 

adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n package_name/class_name

 

Note that class name and package names need to be as defined in the Manifest.

 

This will generate the Intent you want , directed only to the component you want (otherwise you system will go crazy with BOOT_COMPLETED sent...)

 

 

 =================================================================================

To emulate a broadcast action, you can connect via adb to the emulator/device and open a shell:

adb shell

Then, you can broadcast the action you want to test:

am broadcast -a android.intent.action.BOOT_COMPLETED

Please note that, in the latest Android versions, broadcasting the *android.intent.action.BOOT_COMPLETED* action will actually reboot your emulator/device.

分享到:
评论

相关推荐

    开机出现reboot and select proper boot device解决方法.docx

    开机出现reboot and select proper boot device解决方法.docx

    apk文件 reboot(电视直播视频)

    apk文件 reboot(电视直播视频)apk文件 reboot(电视直播视频)apk文件 reboot(电视直播视频)apk文件 reboot(电视直播视频)apk文件 reboot(电视直播视频)apk文件 reboot(电视直播视频)apk文件 reboot(电视...

    Reboot to LibreELEC.apk

    Reboot to LibreELEC.apk About this Apk file Apk version 1.1 Apk size 1.3 MB File name me.thomastv.reboot...Author's Notes Is using a toothpick every time you want to boot to LibreELEC not your thing?

    root-reboot_apk

    安卓机轻松root,reboot

    reboot utility (Windows)

    Windows reboot utility

    多操作系统选择进入工具(Reboot-To)v4.9官方安装版

    如果你也有这样的烦恼,可以试试今天介绍的 Reboot-To 。 如何使用:安装后就可以直接使用了。右键点击托盘图标—— 「Operating Systems」 ——相应的操作系统,然后重启就会直接进入到该操作系统,无需要你在启动...

    Linux命令学习总结:详解reboot命令

    /sbin/reboot [-n] [-w] [-d] [-f] [-i] 或 reboot [-n] [-w] [-d] [-f] [-i] 命令参数: 参数 长参数 描叙 -d 重新启动时不把数据写入记录文件/var/tmp/wtmp -f 强制重新开机,不调用...

    vbs reboot

    远程重启电脑VBS vbs reboot remote

    RK Reboot.apk

    Rockchip方案reboot工具,注意,需要打开Debug模式推送至system/app中才可以使用

    bootstar(带注册机)

    然后点击“Reboot”重新启动计算机,这时Bootstar就把你刚才激活的分区认成C盘,选择正常步骤安装操作系统即可(小提示:以后当某个系统需要重新安装时,还是使用这个方法,激活分区并进行安装。即使启动菜单被破坏...

    纯DOS下面reboot.com重启工具

    把附件中的reboot.com放在dos系统下面就可以实现reboot命令重启了

    AUTO REBOOT FOR UEFI SHELL

    AUTO REBOOT FOR UEFI SHELL APPLICATION

    ch1在vmware上安装reboot

    在vmware上安装reboot. 移植说明

    reboot:ReBoot:一种重构工具,可在Java Spring-Boot应用程序中自动应用最佳实践

    一种重构工具,可在Java / Spring-Boot应用程序中自动应用最佳实践。 重新启动对项目执行以下重构: ReBoot的初始版本是用编写的,请参见分支reboot-v1 。 重构 请求映射 Spring为@RequestMapping提供了HTTP方法...

    linux 自动reboot 工具

    自己写的一个reboot的工具,可以直接运行begin.sh,也可以使用pygtk的界面,调用begin.sh(需要和pygtk的界面放在同一个目录)。有什么问题欢迎指出。rpm打包的spec我也写了,可以使用rpmbuild的命令去打包.因为我...

    android reboot 重启

    android reboot 第一种是调用shell里面的reboot命令。 还有一种是调用系统提供的api

    adb-fastboot刷机工具包

    adb reboot boot loader 重启到fastboot模式 adb reboot recouery 重启到recovery模式 fastboot常用命令: fastboot devices 列出fas tboot设备 fastboot reboot 重启设备 fastboot reboot - boo t 1 oader 重启到...

    Reboot to LibreELEC_reboottolibreelec_reboottolibreelce_rebootto

    重启盒子进入到LibreELEC或EmuELEC的工具。

    Reboot工具代码

    android设备的Reboot工具代码,可以设置重启次数和重启时间.

    iReboot v2.0.zip

    iReboot 是Neosmart技术的简化版本,也是一个有效的重启助手工具,常驻系统任务栏,通过它用户可以选择下次重新启动要进入的系统(前提是你安装了多个操作系统). 这款软件的第一个版本出自2007年8月,之前的版本有一个...

Global site tag (gtag.js) - Google Analytics