DeviceFarmer / minicap

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

where is minicap.so for android sdk 33? #40

Closed Ternado-git closed 6 months ago

Ternado-git commented 2 years ago

i need minicap.so for android sdk 33. how can i get that file?

varundtsfi commented 2 years ago

Hi @Ternado-git You have to use minicap-debug.apk approach for now. team is not providing the minicap.so approach from Android 12 and onwards. I have tried to build Android 13 R1 AOSP but now able to succeed, Getting error while getting the display. int counter =0; std::vector physicalDisplayIds = android::SurfaceComposerClient::getPhysicalDisplayIds(); std::cout <<"Data need to be printed " physicalDisplayIds.size(); for (auto m_displayId : physicalDisplayIds) {
MCINFO("PHYSICAL DISPLAY IDS %d", counter); dpy = android::SurfaceComposerClient::getPhysicalDisplayToken(m_displayId); if(!dpy) { MCINFO("MINICAP-33 :- could not get display for id:using getPhysicalDisplayToken"); dpy = android::SurfaceComposerClient::getInternalDisplayToken(); if(!dpy){ MCINFO("MINICAP-33 :- could not get display for id:getInternalDisplayToken"); }else{ MCINFO("MINICAP-33 :- Able to get the display id:getInternalDisplayToken"); } }else{ MCINFO("MINICAP-33 :- Able to get the display for id:using getPhysicalDisplayToken"); } counter++; }

OR

https://cs.android.com/android/platform/superproject/+/master:frameworks/av/cmds/screenrecord/screenrecord.cpp;drc=d1a53fbe9a58652fa677af9bb1b07612f5c2e0ed;l=1171 here what would be the valude of :fromValue(atoll(optarg)); what would be the argument over here?

Ternado-git commented 2 years ago

Hi @varundtsfi Thank you for your reply, and where can i get the minicap_debug.apk?

varundtsfi commented 2 years ago

Hi @Ternado-git You have to run the following script(run.sh with required params) https://github.com/DeviceFarmer/minicap/blob/master/run.sh

This will build the following project and generate the apk and install to inside the device. https://github.com/DeviceFarmer/minicap/tree/master/experimental

varundtsfi commented 6 months ago

This is the Duplicate issue related with the following https://github.com/DeviceFarmer/minicap/issues/41

We can close this issue. we have pushed the required so files in the following PR

https://github.com/DeviceFarmer/minicap/pull/58