openstf / stf

Control and manage Android devices from your browser.
https://openstf.io
Other
13.17k stars 2.71k forks source link

HUAWEI G730-U00 does not work #429

Open jonqchk opened 7 years ago

jonqchk commented 7 years ago

Got minicap failure when connecting HUAWEI G730-U00, may be similar with #404 :

INF/util:datautil 42021 [_] Device database does not have an entry for "IJVKTSDQQGTOJVQ4" (model " G730-U00"/"G730-U00"). This is not an error, it only means that we don't have data for it yet. INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] Setting frame producer projection to 645x849 INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] Requesting frame producer to start INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] Launching screen service INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] minicap says: "PID: 14659" INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] minicap says: "INFO: Using projection 540x960@478x849/0" INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] minicap says: "INFO: (external/MY_minicap/src/minicap_17.cpp:239) Creating SurfaceComposerClient" INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] minicap says: "INFO: (external/MY_minicap/src/minicap_17.cpp:242) Performing SurfaceComposerClient init check" INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] minicap says: "INFO: (external/MY_minicap/src/minicap_17.cpp:249) Creating virtual display" INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] minicap says: "INFO: (external/MY_minicap/src/minicap_17.cpp:255) Creating CPU consumer" INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] Connecting to minicap service IMP/device:plugins:connect 42027 [IJVKTSDQQGTOJVQ4] Remote Connect Started for device "IJVKTSDQQGTOJVQ4" at "localhost:7401" WRN/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] Shell keeping minicap running ended unexpectedly INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] Disconnecting from minicap service INF/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] Stopping minicap service FTL/device:plugins:screen:stream 42027 [IJVKTSDQQGTOJVQ4] Frame producer had an error FailError: Failure: 'closed' at /usr/local/lib/node_modules/stf/node_modules/adbkit/lib/adb/parser.js:228:29 at processImmediate as _immediateCallback FTL/util:lifecycle 42027 [IJVKTSDQQGTOJVQ4] Shutting down due to fatal error INF/provider 42018 [] Cleaning up device worker "IJVKTSDQQGTOJVQ4" ERR/provider 42018 [] Device worker "IJVKTSDQQGTOJVQ4" died with code 1 INF/provider 42018 [_] Restarting device worker ##"IJVKTSDQQGTOJVQ4"

screen shot 2016-09-20 at 11 44 17 am
sorccu commented 7 years ago

Thanks for the report and log output.

I can't find a place to buy a G730-U00, so I'd say the chances of this issue getting looked into are very slim. However, perhaps fixing some other Huawei device that's easier to buy would fix this one as well.

jonqchk commented 7 years ago

Thanks for the quick response. HUAWEI uses its own CPU(named Haisi), not sure whether it is relevant to the minicap issue. I think it is a appropriate way to do so. if you fix some other Huawei device for similar issue, please update comment on this ticket, i will keep monitoring and then try if it also works

sorccu commented 7 years ago

Let's keep this issue open so that it's easier to find if someone else searches for it.

jonqchk commented 7 years ago

ok, actually i close it by mistake. I just thought "Close and comment" means close the page. :0

codeskyblue commented 7 years ago

@sorccu I know some device not working well with minicap. So is this solution OK. Try to find another screenshot method if minicap not supported. But as far as I know, the default android tool screenshot is too slow, do you know some other tools that can make screenshot a litter faster? Thanks any way.

sorccu commented 7 years ago

I have an idea that will probably make most devices work. But no time to do it right now.

codeskyblue commented 7 years ago

Maybe I can do it, just need ideas.

codeskyblue commented 7 years ago

@sorccu I have tried with servel methods.

codeskyblue commented 7 years ago

@sorccu waiting your ideas....

sorccu commented 7 years ago

I'm not 100% decided if I would want to open source that method or not yet.

Perhaps you could try screenrecord -o raw-frames.

codeskyblue commented 7 years ago

It is OK, currently I can use screencap instead.

codeskyblue commented 7 years ago

Maybe your idea is like https://chrome.google.com/webstore/detail/vysor/gidgenkbbabolejbgbpnhbimgjbffefm I guess.

sorccu commented 7 years ago

Perhaps it is similar, I have not looked at Vysor's source code. But we are aware of Vysor, yes.

sorccu commented 7 years ago

@jonqchk I can see from your log that your device was running Android 4.2. We've just pushed a fix for many 4.2 devices in STF 2.3.0. Please try it and report back if it works.