blues-lab / getapk

Small CLI program that uses an Android device and adb tp download raw APK files from the Google Play store.
1 stars 0 forks source link

Programmatically determine coordinates of Install button #2

Open conorgil opened 2 years ago

conorgil commented 2 years ago

Currently, the coordinates for the install button are hard coded. It would be great to programmatically determine the location of the install button so that it works every time.

Ideas

There is a tool installed on Android called uiautomator. It is possible to get an XML file that describes each element of the page. That output could be used to look up the coordinates of the install button.