[Motorola Droid 4] Ohmster:
[MENTION=4772154]lucize[/MENTION] this is an excellent test file that you made! :good:

I just tried it on my phone, using your syntax of:

$ su

# screenrecord --bit-rate 4000000 --time-limit 20 /sdcard/test3.mp4

I wanted a shorter recording, you proved your point with the full 1 minute mp3. :o

OMG, it works!

Hey man, you are a very experienced 'nix user as in Linux, UNIX, Android, whatever. You use the Tab key to access your command history. I could not understand what the heck you were doing the first time around, now that I got to see it on your test2.mp4 file, I get it now. NICE! :D

This is the Droid 4 thread so I believe that you actually have a full, hard keyboard on your phone, with Tab key. My Razr has a small virtual keyboard so I do not have the Tab key. I do have "Special Keys" in Terminal. Tab is "Vol Up + T" and although it works, it is too cumbersome to use regularly. I do use the "Vol Dn + C" to access the Ctl-C function, a LOT. :D I use Google Voice Typing all the time for text and email because that tiny virtual keyboard is so cumbersome that it is not good for any sort of serious typing and Voice Typing works so well that I always use it. Not much good for Terminal commands, though. ;)

I made a 20 second recording to prove it works and attached it for you to see. So it *does* work on our OMAP4 phones. Michael uses pretty much the same rom code for all 4 devices, but for the hardware differences so he does make 4 separate roms each time. Not the kernel, I just was not doing it right. Strange, I was able to do it the first time over USB/adb but could not duplicate it in Terminal. Your example gave me the proper syntax I need to get it working.

Now I can go back and tell Kenneth, [MENTION=4414937]kennethso168[/MENTION] that it does work, (He makes the Xposed Module APM+) and try to figurer out why his Power Menu Screenrecord feature does not work for me.

Thank you very much [MENTION=4772154]lucize[/MENTION]. Your wonderful test2.mp4 answered ALL the questions I had. Great job, buddy! :good: :highfive:

Question:

Hey do any of you guys know if one can make and use shell scripts in Android like Windows bat files or Linux shell scripts? Screenrecord is a nice feature to share something on your phone with someone else, but typing all of that command line stuff just to do it is a major pain. Is it possible to put something like this..

#!/system/xbin/sh

# screenrecord --bit-rate 4000000 --time-limit 20 /sdcard/test3.mp4

...into an Android text file, make it executable, and run it? Such as:

#sr60, or sr120

...for a 1 minute screen record or 2 minute screen record? Simple "top of your head" question guys. Not super important. A lot of really cool Linux stuff does not work in Android like the "screen" or "clear" command. Not sure if shell scripts would work either. I can run "bash" to get a bash shell with dir colors but I am not sure if "this version of the Bourne Again shell" support shell scripts. :confused:

I guess I could test this myself and try it, but if I were to make a mistake and have negative results, that would not tell me as much as if one of you really experienced Android OS guys were to know from your own experience. Thanks guys! :)