문제

I have a following problem: I need to save files on the android device using adb however I can't save this files on developing computer due to sercurity reasons. That basicly means I can't use adb push.

I was thinking about some kind of tool that I will run as "adb shell" command which will automatically write everything that I put on standard input of this tool to a predefined file.

Can anybody suggest what can I use?

도움이 되었습니까?

해결책

You can implement adb SYNC protocol in your program, so it would be able to upload your files from a memory buffer instead of a disk file.

다른 팁

You can use script command after this everything will be written in specified file

script -f filename

Refer http://linux.about.com/library/cmd/blcmdl1_script.htm for more information

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top