Android: How to get a list of all available intent filters?

后端 未结 11 1598
野趣味
野趣味 2020-11-29 02:48

I have search Android docs and for some insane reason I am not able to find the list of all available intent filters.

I am finding an intent filter, which would do s

11条回答
  •  粉色の甜心
    2020-11-29 03:24

    Expanding on Tom Fraser's answer, the best way is by using dumpsys with a grep and sort.

    dumpsys activity broadcasts |grep -iE ".+\.[0-9A-Z_\-]+:$" |sort
    

    The grep expression makes sure to only catch lines ending in the intent like format of ...blahblah.SOME_INTENT:. It may not catch all, but it's a good start.

提交回复
热议问题