-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what is the possible reason of " Unable to initialize SurfaceComposerClient " ? #26
Comments
Normal applications don't have permission to access SurfaceComposerClient. Only system apps can do it, or you can try rooting your device. Alternatively, if you're OK with supporting only Android 5.0+, try adding the |
but,my device is root . and i run app on android 4.4. is any other reason? |
Does your app run as root? |
yes, this is my test code:
|
That's not how |
Also what does this have to do with minicap? |
this is my test code , because of my original code :
is " Unable to initialize SurfaceComposerClient ".so i write this test. |
I see. Well, you need to fix your su usage somehow, but if you get that fixed I think it will work. |
i don't understand ... you means , my app has not get the root authority ? |
Yes, because that's not how |
thank you ~! i try |
Support Android 12 (preview),and resolve black screen problem
my jni code :
android::spandroid::SurfaceComposerClient sc = new android::SurfaceComposerClient();
is failed .
i don't know why ??
look up the android source , i wirte the test code like this :
the run result is : conn == 0 .
my question is why createConnection is failed ?
is authority ? is thread ?
i use the code in apk with JNI .
The text was updated successfully, but these errors were encountered: