ADB Shell AM Command

Source: Internet
Author: User

The ADB Shell AM command is available on the cmd command line via commands to start activity,boradcast,service, etc., and can be referenced in the following attachments.

For example, in the CMD serial port we send the broadcast, the broadcast action is "com.cmcc.media.bufferring", and with key is "url", value is "http://www.baidu.com" data to the broadcast receiver, as follows
Am Broadcast-a "com.cmcc.media.bufferring"--es "url" "http://www.baidu.com"

For example, we use the following command in the APK:
Final String broadcastcmdstr = "* * * * *";
Runtime.getruntime (). exec (BROADCASTCMDSTR);
But the APK will error:
The APK is sent when it cannot be sent successfully, as long as the APK to send broadcast increases
Android.permission.INTERACT_ACROSS_USERS and android.permission.INTERACT_ACROSS_USERS_FULL permissions.
The receiving end does not need to process


Reference:
ANDROID_ADB Shell AM/PM Use
Http://blog.sina.com.cn/s/blog_51335a0001017ux5.html

How Android apps can monitor their implementation of whether they are uninstalled or uninstalled (second edition)
Http://www.cnblogs.com/zealotrouge/p/3159772.html

Android Console Command am Introduction
http://blog.csdn.net/hudashi/article/details/7782938

ANDROID:ADB Shell am command line send Activity/service/broadcast
http://blog.csdn.net/annkie/article/details/7896559

ADB Shell AM Command

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.