Giter VIP home page Giter VIP logo

Comments (4)

varundtsfi avatar varundtsfi commented on September 1, 2024

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::vectorandroid::PhysicalDisplayId 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?

from minicap.

Ternado-git avatar Ternado-git commented on September 1, 2024

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

from minicap.

varundtsfi avatar varundtsfi commented on September 1, 2024

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

from minicap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.