Asked  6 Months ago    Answers:  5   Viewed   32 times

How do I send an intent using Android's ADB tools?


adb shell
am start -n

Or you can use this directly:

adb shell am start -n

You can also specify actions to be filter by your intent-filters:

am start -a com.example.ACTION_NAME -n 
Tuesday, June 1, 2021
answered 6 Months ago

As @CommonsWare said The techniques used by NQ Mobile Security have been reported to the Android Security group, and they are working on a fix to stop this behavior from occurring. and have raised a feature request with Google hopefully they may listen to it.

Sunday, July 4, 2021
answered 5 Months ago

Here is sample code how to call another activity using context, set flag as per your requirement:

public void onReceive(Context context, Intent intent) { 

  Intent startActivity = new Intent();  
  startActivity.setClass(context, xxx.class); 
Wednesday, August 4, 2021
answered 4 Months ago

My device with Android 6.0.0, too, failed to connect, but after the official upgrade to 6.0.1, this problem was solved.

Tuesday, August 17, 2021
answered 4 Months ago

To connect Android virtual machine with adb follow these step

  1. On Android home screen, press ALT+F1 (Left alt). This will open a terminal with root access.

  2. Inside the terminal, type dhcpcd eth0. Execute the command twice, if you get an error or no result. This will give you an IP addresss. Now press ALT+F7 for close the terminal.

  3. Verify your IP address using the command ping <your IP Address>

  4. From the android terminal, type adb tcpip 5555. This will restart adb in tcpip mode.

  5. From your main OS terminal, type adb connect <your IP address>

Wednesday, September 8, 2021
Ujjawal Khare
answered 3 Months ago
Only authorized users can answer the question. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :