问题
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