1

I can read the content of /dev/logo in C,

fd = open("/dev/logo", O_RDONLY);

len = read(fd, logo_addr, 512);

Now I want to do these things using shell command, how to do?

Can I use

$ adb shell cat dev/logo >logo.dev

?

4

1 回答 1

2

你能用dd吗?就像是:

dd /dev/logo bs=1 count=512 of=logo.dev

假设您需要读取设备的 512 字节。

于 2013-10-23T00:26:38.323 回答