openatx / adbutils

pure python adb library for google adb service.
MIT License
761 stars 175 forks source link

fix issue that fail to obtain rotation due to minicap output format #25

Closed hfutxqd closed 4 years ago

hfutxqd commented 4 years ago

fix issue #22 and #21 The command minicap -i on some device(android 10) could got this output:

INFO: (external/MY_minicap/src/minicap_29.cpp:345) could not get display for id: 0, using internal display
{
    "id": 0,
    "width": 1440,
    "height": 3120,
    "xdpi": 515.15,
    "ydpi": 514.60,
    "size": 6.68,
    "density": 3.50,
    "fps": 90.00,
    "secure": true,
    "rotation": 0
}