[Moto G Android Development] alonsoch:
Hi , i post in this section because i think that this "tool" will be very helpful to the rom makers, i know that in the web are a lot of tutorials but i never have seen one Rom that implement this tool to show the ROM were they are working...

so if i'm in the wrong section or if any moderator think that this is sh**t you can delete my post or etc.

So, in android 4.4 google introduces a new feature called "Screen Recording" so the tool basically record your screen , i think that if we use some videos an pics in the OP of any rom we will have a better idea of what we will see in our device, if is smooth or slow, or laggy, etc

So basically you will need :

THIS JUST WORK ON DEVICES RUNNING KITKAT

Moto G Drivers(Or drivers of the android device)

ADB

Moto G(Or android device)

So

open a conosole were is adb (shift+open window command here)

remember check adb debugging

try

adb devices

this will return something like that

https://drive.google.com/file/d/0B9MUCjEugQjgVmpLc0tOSVIxbTQ/edit?usp=sharing

so, if our device is detected we use the next instructions(basic commando):

adb shell screenrecord /sdcard/demo.mp4

if we put attention we will see that the video will be saved in the sdcard(in the root), we can change were the video will be saved, and we see too that demo.mp4 is the name of the video, you can change the name but remember put .mp4 in the end, the length of time it records (the default duration is 3-minutes) and this comand would record at 4mbps THIS COMMAND IS THE BASIC

so this look like that:

https://drive.google.com/file/d/0B9MUCjEugQjgenVMWGhXeG9YRkE/edit?usp=sharing

we know that the video will be in /sdcard/ with the name demo.mp4

so another example of code will be this:

adb shell screenrecord --bit-rate 8000000 --time-limit 30 /sdcard/kit.mp4

now the bitrate of the video will be 8mbps and the time now will be 30 seconds and the name of the video is kit and will be saved in the root of our sdcard.

this look like:

https://drive.google.com/file/d/0B9MUCjEugQjgeER2bGhHcTRPdzQ/edit?usp=sharing

now we have our video, so we will pull the video from our sdcard to our pc:

adb pull /sdcard/kit.mp4

https://drive.google.com/file/d/0B9MUCjEugQjgMTdpbjc3ZHV3Smc/edit?usp=sharing

and DONE we have a little record about our rom,etc

i repeat this is the basic example. a lot of commands are in this page http://developer.android.com/tools/help/adb.html#screenrecord

You will fin this commands in the above link:

This are more commands , just added in the command before put /sdcard/

example: adb shell screenrecord

--bit-rate 8000000 --time-limit 30

/sdcard/kit.mp4

Options=====Description

--help=======Displays a usage summary.

--size <WIDTHxHEIGHT>======Sets the video size, for example: 1280x720. The default value is the device's main display resolution (if supported), 1280x720 if not. For best results, use a size supported by your device's Advanced Video Coding (AVC) encoder.

--bit-rate <RATE>=======Sets the video bit rate for the video, in megabits per second. The default value is 4Mbps. You can increase the bit rate to improve video quality or lower it for smaller movie files. The following example sets the recording bit rate to 6Mbps:

screenrecord --bit-rate 6000000 /sdcard/demo.mp4

--time-limit <TIME>======Sets the maximum recording time, in seconds. The default and maximum value is 180 (3 minutes).

--rotate=======Rotates the output 90 degrees. This feature is experimental.

--verbose=======Displays log information on command line screen. If you do not set this option, the utility does not display any information while running.

And one more thing you can find all the requirements here :

Drivers(download device manager)------https://motorola-global-portal.custhelp.com/app/answers/prod_answer_detail/a_id/97326/p/30,6720,9050/action/auth

Minimal Adb(Thanks to him)----- http://xdaforums.com/showthread.php?t=2317790

Example of the Results:

http://www.youtube.com/watch?v=22C2w6FswAg&feature=youtu.be

Thanks to :

Google

Motorola

[MENTION=3558630]shimp208[/MENTION]

and maybe ... me.... :D