简体   繁体   English

无法在Android 4.4.2上录制屏幕

[英]Cannot record screen on Android 4.4.2

I am trying to record my device screen using the shell command as outlined here: 我正在尝试使用shell命令来记录我的设备屏幕,如下所示:

http://developer.android.com/tools/help/adb.html#screenrecord http://developer.android.com/tools/help/adb.html#screenrecord

Using the verbose flag, I am getting a Permission Denial that I think is connected to the fact there is an Owner profile on the device, as it references User 0 and User 1 in the error message. 使用详细标志,我收到一个权限拒绝,我认为它与设备上存在所有者配置文件这一事实有关,因为它在错误消息中引用了用户0和用户1。

Does anyone know how I can remove the Owner profile (can't see any options to do so) or how I can set the Owner to user 0? 有谁知道我如何删除所有者资料(看不到任何选项)或如何将所有者设置为用户0?

EDIT - clarification, the error states "broadcast asks to run as user -1 but is calling from user 0" 编辑-澄清,错误指出“广播要求以用户-1的身份运行,但正在从用户0调用”

I got the recording to work. 我有录音工作。

It seems that for whatever reason, you need to do this via adb shell. 似乎无论出于何种原因,您都需要通过adb shell进行此操作。

Whilst adb shell is running shell commands on the connected device, running the screenrecord commands directly on the device just doesn't want to work. 尽管adb shell在所连接的设备上运行shell命令,但不想在设备上直接运行screenrecord命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM