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
Related
I'm trying to use this command on Ubuntu's terminal am start -a android.intent.action.MAIN -n com.android.settings/.Settings which was meant for CMD on Windows. Any help?
my mate 7 tl10 partions gone after bad flashing
wee need partions from another tl10 via adb backup with dd command : details of command here:
adb shell
su
dd if=/dev/block/mmcblk0 of=/sdcard/Dump_1GB.bin bs=1024 count=1024000
dd if=/dev/block/mmcblk0 of=/sdcard/Dump_512mb.bin bs=1024 count=524288
dd if=/dev/block/mmcblk0 of=/sdcard/Dump_2GB.bin bs=1024 count=2048000
and another command if give u any results send me dd backups:
adb shell
su
dd if=/dev/block/mmcblk0boot0 of=/sdcard/Boot0.bin bs=1024 count=4096
dd if=/dev/block/mmcblk0boot1 of=/sdcard/Boot1.bin bs=1024 count=4096
at the final procedures use this commands:
adb shell
su
cat /proc/partitions
Hi,
I recently rooted the phone and in the process of doing so I had to over write the user data. I want to recover the raw file to dig out some media files, I followed a guide http://forum.xda-developers.com/showthread.php?t=1994705 but got limited succes since I was unable to get all the commands to run specifically:
adb forward tcp:5555 tcp:5555
cd /nexus
nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p37.raw
[email protected] ~
$ adb forward tcp:5555 tcp:5555
-bash: adb: command not found
[email protected] ~
$ cd /nexus
[email protected] /nexus
$ nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p37.raw
-bash: nc: command not found
-bash: pv: command not found
Anyone out here can help me out?
Cheers
Hi i like to backup a partition of an OnePlus One CM 13.1 in cause of reflashing my data is lost trying over Phone Terminal with NC and also over ADB and Android SDK on my PC in both i've tried the command to Backing up a partition to a PC
nc -l -p 5555 -e dd if=/dev/block/mmcblk0p28 ive got an error -e command invalid
so i try nc -l -p 5555 dd if=/dev/block/mmcblk0p28 without -e here everything works without errors but the image file on the pc is appears in the folder i use but the image stays at 0 bytes
please help me to find the right command that i should use to save my partition perhaps to recover my or a part of my lost Data from it no google synch or other clouds were unfortunatly used
thx and sorry for my bad english i hope you could understand my problem
ADB COMMAND TO FACTORY RESET DEVICE?? I'm trying to factory reset an Android / Linux based device but I'm not sure the command?? And should I use net-hunter, terminal emulator, or SSH? PLEASE HELP
Either
Code:
adb shell "am broadcast -a android.intent.action.MASTER_CLEAR"
or
Code:
adb shell "recovery --wipe_data"
I prefer this one : am broadcast -p android -a android.intent.action.FACTORY_RESET
(needs root)
edit:
if you also need to wipe all data and system properties here is it:
am broadcast -p android -a android.intent.action.FACTORY_RESET -e "android.intent.extra.REASON" "MasterClearConfirm" --ez "android.intent.extra.WIPE_EXTERNAL_STORAGE" true --ez "com.android.internal.intent.extra.WIPE_ESIMS" true --receiver-foreground