Search code examples
androidandroid-studioandroid-6.0-marshmallowscreen-recording

Screenrecord not working in Android Marshmallow


Just upgraded the Nexus 5 device from Android Lollipop to Marshmallow. I am trying to record application navigation using recording feature of Android Studio as well as using command line adb shell command.

Both ways are showing error that file(video file that needs to be created) is not accessible or readonly.

I am unable to record anything. Error occurs as soon as I click RECORD or press enter to start recording.

Is there any option in 6.0 that I need to enable?

Command line :

Abhinavs-MacBook-Pro:platform-tools abhinavtyagi$ ./adb shell screenrecord /test.mp4
Unable to open '/test.mp4': Read-only file system

Android Studio : enter image description here


Solution

  • Don't try putting the recording file in the root directory - put it somewhere in the file system that is writable

    adb shell screenrecord /sdcard/demo.mp4