[WIP] ugly screenshot hack to make emulator work#27
[WIP] ugly screenshot hack to make emulator work#27nwlunatic wants to merge 1 commit intoopenstf:masterfrom
Conversation
|
Hi, @nwlunatic |
|
@qingyunliu Yes, it does. And actually on emulator we are using (Android emulator version 25.1.6.0), it's working quite fast. |
|
I think we could probably do this by implementing a fallback for emulators, if the ScreenshotClient works there. I can't promise when but I definitely want to take a look into this. Thank you for sharing your findings. So everything else works, like touch events etc? |
|
Yes, everything works just fine (minitouch, minirev), no provider erros or something, stf treats emulator as a usual device |
|
@nwlunatic Hi, I see it really works just fine for API level 23 and I would like to apply the fix for the other API levels as well. Thus, I would like to ask you how did you build this minicap.so file? Have you followed all the build steps under minicap-shared page(https://github.com/openstf/minicap/tree/master/jni/minicap-shared )? Building minicap-shared following the steps seems hard, that's why I would like to be sure this is the right way. |
|
@adpenev Hi! Yes, I followed minicap-shared build steps and they seem quite simple in comparison to building without docker-container. Still it require quite a lot of disk space (about all of my linux laptop 150 GB (to fetch android repo) ssd to build only android-23). Si I've simplified this Makefile, to build only android-23. I've also faced this issue, but I guess building only x86 is not affected. |
|
@nwlunatic Thanks much for your answer. One more question, what linux OS did you use - Ubuntu, Mint or something? I'm on OS X and having in mind it cannot be used for the build I was thinking to create a Linux virtual machine on Virtual Box for the build. |
|
By the way if you don't care about ever being able to sync the branch On Tuesday, 12 July 2016, Igor Pavlov notifications@github.com wrote:
|
|
Yep, I've used ubuntu. But I'm pretty sure you can use any linux. The only issue with OS X is case-insensitive fs by default. You can also try to make case-sensitive disk tho' |
|
Yes I experienced the same thing. Making a case sensitive disk is OK, but older branches require older versions of Xcode... making it extremely annoying if not borderline impossible to build all the branches. |
|
Oh, well. I was sure all the software to build android tree is inside the docker image. And you only need an mounted fs from host machine to put and get artifacts. |
|
Right, the docker image works fine, it contains what's needed. I thought you were talking about building directly on OS X. |
|
@nwlunatic and @sorccu Thank you for your answers guys. :) |
|
Everything with the build works just fine. Thanks. :) One question, @sorccu and @nwlunatic I remember you are using Linux what IDE and configuration do you use in order to write code, debug and build the minicap-shared project? Actually, debugging using IDE is what I really would like to setup. I downloaded and built the code on Linux Mint VM and there will be the development environment as well. |
|
Can you guys tell what emulator configuration you used for testing ? |
|
@sorccu Hi, again ) I would like to invest some time to make normal implementation for emulator (i'm targeting x86 23 for now). |
#12
This PR is view only, I think.
Actually minicap work on emulators without Host GPU on.
With Host GPU on it work with help of screenshotClient and, probably, OpenGL under the hood.
I am not being able to make it work using GLConsumer yet though.