Reputation: 564
I have been googling for a while looking for UIAutomatorViewer source code, but failed to find it. Can anyone please provide a link to Android UIAutomatorViewer sources. I need the sources as I am planning to experiment with UIAutomatorViewer.
Upvotes: 0
Views: 1666
Reputation: 365
uiautomatorviewer is now located in "tools/swt.git". Thus the location would be: https://android.googlesource.com/platform/tools/swt/+/refs/heads/main
This commit shows that it was moved to "sdk"
removing uiautomatorviewer from frameworks/testing
It is to be moved into sdk
This commit of "sdk" says
Some of the SDK tools sources have moved out of the sdk.git project.
They are no longer found here.
Instead they can be found in the tools/base.git and the tools/swt.git projects.
If you need to view/change the source and lack these folders, you can bring
them by using a repo init command such as:
$ repo init -u https://android.googlesource.com/platform/manifest -g all,-notdefault,tools
$ repo sync [-j N]
The libraries that are sourced in tools/base and tools/swt are converted to
prebuilts which are located in prebuilts/devtools. These prebuilts are the
ones being used when doing a "make sdk".
Upvotes: 0
Reputation: 17723
It's here https://android.googlesource.com/platform/frameworks/testing/+/aecdc4a/uiautomator/utils/uiautomatorviewer/src/com/android/uiautomator but it doesn't fit line numbers of my stacktrace
Upvotes: 1