1.使用uptime查看开机时间
130|[email protected]:/ $ uptime
up time: 00:12:32, idle time: 01:28:59, sleep time: 00:00:00
2.使用screenrecord录制屏幕
$ adb shell screenrecord --help
Usage: screenrecord [options] <filename>
Records the device‘s display to a .mp4 file.
Options:
--size WIDTHxHEIGHT
Set the video size, e.g.
"1280x720"
. Default is the device‘s main
display resolution (
if
supported), 1280x720
if
not. For best results,
use
a size supported by the AVC encoder.
--bit-rate RATE
Set the video bit rate, in megabits per second. Default 4Mbps.
--
time
-limit TIME
Set the maximum recording
time
, in seconds. Default / maximum is 180.
--rotate
Rotate the output 90 degrees.
--verbose
Display interesting information on stdout.
--help
Show this message.
Recording continues
until
Ctrl-C is hit or the
time
limit is reached.
screenrecord使用举例
(1). 基本使用
1 2 |
|
(2). 指定分辨率(参数:--size)
1 2 |
|
注意,分辨率不是完全可以随意定制的,比如在我手机上录制100x100的会提示错误:
1 2 3 4 |
|
(3). 指定比特率(参数:--bit-rate)
1 2 |
|
(4). 旋转(参数:--rotate)
1 2 |
|