Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

java code for run dd command in android

$
0
0
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

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>