feat: add uixt tool list_packages

This commit is contained in:
lilong.129
2025-05-21 16:24:54 +08:00
parent 044eb07a35
commit 495443a2c4
7 changed files with 49 additions and 1 deletions

View File

@@ -303,6 +303,10 @@ func (dev *AndroidDevice) GetCurrentWindow() (windowInfo types.WindowInfo, err e
return types.WindowInfo{}, errors.New("failed to extract current window")
}
func (dev *AndroidDevice) ListPackages() ([]string, error) {
return dev.Device.ListPackages()
}
func (dev *AndroidDevice) GetPackageInfo(packageName string) (types.AppInfo, error) {
appInfo := types.AppInfo{
Name: packageName,