Android KitKat start screenrecord from App

旧时模样 提交于 2019-12-11 19:16:29

问题


I'm trying to start screenrecord from application, and have some problems. I've read a lot about executing command but nothing seems to help.

Problem is, When I start screenrecord file, It creates with size 3014 bytes

(content: [...]ftypisom[...]isom3gp4[...]), and nothing is recorded in the file.

How can I fix it?


回答1:


The screenrecord command is intended to be run from an adb shell. Specifically, it needs to be a member of the AID_GRAPHICS group to function. Normal Android apps do not have this privilege.

Some more detailed information here.



来源:https://stackoverflow.com/questions/21330237/android-kitkat-start-screenrecord-from-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!