Issue
In my rooted Android device,
jint fd = open("/dev/ashmem",O_RDWR);
gives -1 and fopen results in error 13. I've tried changing the permissions as well with chmod 777, but to no avail.
Any ideas? Thank you for your help.
Solution
Apps targeting Android 10 cannot directly use ashmem (/dev/ashmem) and must instead access shared memory via the NDK’s ASharedMemory class
Answered By - Flot2011
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.