问题描述
我想从应用程序启动screenrecord,并有一定的问题。
我读过很多关于执行命令,但似乎没有任何帮助。
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.
问题是,当我开始screenrecord文件,它会创建大小为3014字节
Problem is, When I start screenrecord file, It creates with size 3014 bytes
。(内容:[...] ftypisom [...] isom3gp4 [...])
,并没有记录在文件中的
(content: [...]ftypisom[...]isom3gp4[...])
, and nothing is recorded in the file.
我怎样才能解决这个问题?
How can I fix it?
推荐答案
该screenrecord命令旨在从亚行shell中运行。具体而言,它需要的AID_GRAPHICS组的成员的功能。普通的Android应用程序没有这个特权。
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.
一些更详细的信息here.
这篇关于Android的奇巧从应用程序启动screenrecord的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!