Android 列出视图中的所有应用程序

Android 列出视图中的所有应用程序,android,android-uiautomator,Android,Android Uiautomator,我正试图通过uiAutomator禁用设置->数据使用中显示的所有应用程序的后台数据 我可以进入数据使用页面,但我不知道如何获取应用程序,然后逐个单击。这样我就可以进入并禁用背景数据了?您可以使用“uiautomatorviewer”工具查看显示在那里的应用程序的文本/说明/资源id 要使用uiautomatorviewer工具,请执行以下操作: [1] Connect your device. [2] Open command prompt and type 'uiautomatorviewe

我正试图通过uiAutomator禁用设置->数据使用中显示的所有应用程序的后台数据
我可以进入数据使用页面,但我不知道如何获取应用程序,然后逐个单击。这样我就可以进入并禁用背景数据了?

您可以使用“uiautomatorviewer”工具查看显示在那里的应用程序的文本/说明/资源id

要使用uiautomatorviewer工具,请执行以下操作:

[1] Connect your device.
[2] Open command prompt and type 'uiautomatorviewer'.
[3] Open the particular screen of whose elements you want to view (in this case - your data usage page).
[3] Press the green 'Device Screenshot' button  next to file open in top left.

谢谢斯姆里蒂。但,我要看的是这个数据使用页面中应用程序的编程列表。我需要禁用此页面中列出的所有应用程序的后台数据,但我自己的两个应用程序除外。