DeviceFarmer / minicap

Stream real-time screen capture data out of Android devices.
Other
294 stars 76 forks source link

the prodoct of xiaomi 10 ,minicap is not work #11

Closed java-Xs closed 3 years ago

java-Xs commented 3 years ago

i rebuild minicap project to android 11,i use docker ro run some server in pc, the phone information is below:

{ serial: '510ac8d4', platform: 'Android', manufacturer: 'XIAOMI', operator: ',中国联通', model: 'Mi 10', version: '11', abi: 'arm64-v8a', sdk: '30', product: 'umi', cpuPlatform: 'kona', openGLESVersion: '3.2', marketName: 'MI 10', display: { id: 0, width: 1080, height: 2340, xdpi: 386.3659973144531, ydpi: 386.70098876953125, fps: 90, density: 2.75, rotation: 0, secure: true, size: 6.665616096147213, url: 'ws://10.0.20.158:7428' }, phone: { network: 'UNKNOWN' }

i put some data in stf-device-db, ex: "Mi_10": { "cpu": { "cores": 8, "freq": "2.84", "name": "Qualcomm Technologies, Inc SM8250" }, "date": "2020-05-01T15:00:00.000Z", "display": { "h": 2340, "s": 6.67, "w": 1080 }, "maker": { "name": "XIAOMI" }, "memory": { "ram": 8192, "rom": 262144 }, "name": { "id": "Mi 10", "long": "Mi 10" }, "os": { "type": "android", "ver": "11" } }

the binary minicap tips:

2021-03-03T03:44:35.526Z INF/device:plugins:screen:stream 177 [510ac8d4] Setting frame producer projection to 843x843 2021-03-03T03:44:35.527Z INF/device:plugins:screen:stream 177 [510ac8d4] Requesting frame producer to start 2021-03-03T03:44:35.527Z INF/device:plugins:screen:stream 177 [510ac8d4] Launching screen service 2021-03-03T03:44:35.551Z INF/device:plugins:screen:stream 177 [510ac8d4] minicap says: "PID: 28302" 2021-03-03T03:44:35.551Z INF/device:plugins:screen:stream 177 [510ac8d4] minicap says: "INFO: Using projection 1080x2340@389x843/0" 2021-03-03T03:44:35.552Z WRN/device:plugins:screen:stream 177 [510ac8d4] Shell keeping minicap running ended unexpectedly 2021-03-03T03:44:35.553Z INF/device:plugins:screen:stream 177 [510ac8d4] Connecting to minicap service 2021-03-03T03:44:35.630Z INF/device:plugins:connect 177 [510ac8d4] Listening on port 7413 2021-03-03T03:44:35.631Z IMP/device:plugins:connect 177 [510ac8d4] Remote Connect Started for device "510ac8d4" at "10.0.20.158:7413" 2021-03-03T03:44:37.075Z INF/device:plugins:screen:stream 177 [510ac8d4] Disconnecting from minicap service 2021-03-03T03:44:37.076Z INF/device:plugins:screen:stream 177 [510ac8d4] Stopping minicap service 2021-03-03T03:44:37.077Z FTL/device:plugins:screen:stream 177 [510ac8d4] Frame producer had an error FailError: Failure: 'closed'

so i wnat to debug minicap, do you help me what to do next? thanks.

java-Xs commented 3 years ago

xiaomi`s phone is a liitle different, i update some code by depandency@WeiPeiXian,thanks, I will close this qestion.

ii958 commented 3 years ago

how to fix miui's problem? the version is 12.5.5 & 12.5.8

varundtsfi commented 3 years ago

Mentioned MIUI version work on generic binaries not required specific one.

If you want to try please find the binaries on following link

https://github.com/varundtsfi/Xiaomi_Vector_issue/tree/main/Xiaomi