alibaba / tidevice

tidevice can be used to communicate with iPhone device
MIT License
2.42k stars 456 forks source link

tidevice applist app longversion #68

Open thlengane opened 3 years ago

thlengane commented 3 years ago

tidevice applist displays the list of apps and the ShortVersion ie. 6.0.4, is there a way to display a long version ie. 6.0.4-35 (B5634)?

If not, can I please put this as a feature request?

electricbubble commented 3 years ago
from tidevice._usbmux import Usbmux
from tidevice import Device

if __name__ == "__main__":
    um = Usbmux()

    d = um.device_list()[0]
    d = Device(udid=d["SerialNumber"])
    bundleId = "com.tencent.xin"
    result = d.installation.lookup(bundleId)
    for k in result:
        if str(k).lower().find("version") >= 0:
            print("{:<30}\t{}".format(k, result[k]))
DTPlatformVersion               14.4
CFBundleShortVersionString      8.0.4
CFBundleInfoDictionaryVersion   6.0
WeChatBundleVersion             8.0.4.34
CFBundleVersion                 8.0.4.34
MinimumOSVersion                13.0
CFBundleNumericVersion          0
thlengane commented 3 years ago

Perfect man, thanks. Working 100%. Appreciated.