frameworks/base

Settings

Screen Recorder app

Code: # Screen recorder PRODUCT_PACKAGES += \ ScreenRecorder \ libscreenrecorder

frameworks/base

Settings

NEW - Audio recording

up for code review

frameworks/base

Settings

ScreenRecorder







And a video showing off audio recording!

And a video showing off audio recording!

I have no interest in working on back porting this to older versions of Android. If you want to give it a shot, knock yourself out but please don't reply to this thread or in PM about how to do it or how to overcome any obstacles you may face.

As most of you probably already know, Android 4.4 comes with a binary that allows you to record the display. It's nice to have this feature available but it's not the most convenient method to use. It would be a whole lot nicer if it were exposed to the user through the framework. I did just that and am here today to share it with the masses. I took the original screenrecord code and turned it into a native library with JNI bindings to allow using it in Java.I've added hooks into PhoneWindowManager which allows the user to pressstart/stop screen recording. Once recording is started there is an ongoing notification that can be pressed to stop recording as well. For those that don't have volume rockers or don't like pressing those two buttons together, I have a couple commits for you to pick which will add an option to the global actions menu that is displayed when you hold down the power button.Now for the stuff you'll need to get this up and running in your own ROM.For the core functionality you'll need one commit fromand one fromas well as the ScreenRecorder app which contains the service that does the majority of the work.To get these built into your ROM you will need to add a couple products to PRODUCT_PACKAGES, you can decide where you want to add this.If you want to add the option to the global actions menu, here are the two commits you will need.I currently have 3 patcheson github which add audio recording via the microphone. One for frameworks/base, one for Settings, and one for ScreenRecorder app. For those interested in trying out audio recording here are the links to the patches:And now I leave you with a couple of screenshots and a short video that was taken using this feature.