In my java program I am trying to collect some raw data from Android device connected to PC. In a terminal I do following:
Session0:
adb forward tcp:31337 tcp:31337
Session 1: In a adb shell,
dd if=/dev/block/mtd27 bs=4096 | nc -l -p 31337
Session0:
nc 127.0.0.1 31337 > dd of=data.dd bs=4096
Please help and guide me to accomplish this using java. I implemented adb forwarding, and client socket in host machine
Thanks a lot in advance
Session0:
adb forward tcp:31337 tcp:31337
Session 1: In a adb shell,
dd if=/dev/block/mtd27 bs=4096 | nc -l -p 31337
Session0:
nc 127.0.0.1 31337 > dd of=data.dd bs=4096
Please help and guide me to accomplish this using java. I implemented adb forwarding, and client socket in host machine
Thanks a lot in advance