Sunday, April 06, 2014

Android Debug Bridge (ADB) LS & pull commands to list files on Android device

Find base info here: http://developer.android.com/tools/help/adb.html

This is presuming you've already got visibility of your device using the adb (Android Debug Bridge).

ls command

Usage examples:

C:\Users\Toby>adb ls /data/data/mobi.tobyrichards.mylists/files
000041f9 00001000 533c5ce6 .
000041e9 00001000 531e0fce ..
000081b0 00000190 53243c60 listdata.dat
000081b0 00000216 531cc5fb List 1.dat
000081b0 00000193 53243c40 Zach.dat
00008180 00000000 53276e97 testinputdata.dat
00008180 000001bc 53410ded test.dat

pull command

Usage example for all files in a folder.

Files will be in d:\remli in the example below.

C:\Users\trichards>adb pull /data/data/mobi.tobyrichards.mylists/files/ d:\remli

pull: building file list...
pull: /data/data/mobi.tobyrichards.mylists/files/List 3.dat -> d:\remli/List 3.dat
pull: /data/data/mobi.tobyrichards.mylists/files/List 2.dat -> d:\remli/List 2.dat
pull: /data/data/mobi.tobyrichards.mylists/files/List 1.dat -> d:\remli/List 1.dat
pull: /data/data/mobi.tobyrichards.mylists/files/listdata.dat -> d:\remli/listdata.dat

4 files pulled. 0 files skipped.

8 KB/s (1172 bytes in 0.139s)

push command

Usage example for all files in a folder.

C:\Users\trichards>adb push d:\remli /data/data/mobi.tobyrichards.mylists/files/

push: d:\remli/listdata.dat -> /data/data/mobi.tobyrichards.mylists/files/listdata.dat
push: d:\remli/List 3.dat -> /data/data/mobi.tobyrichards.mylists/files/List 3.dat
push: d:\remli/List 2.dat -> /data/data/mobi.tobyrichards.mylists/files/List 2.dat
push: d:\remli/List 1.dat -> /data/data/mobi.tobyrichards.mylists/files/List 1.dat
4 files pushed. 0 files skipped.
23 KB/s (1172 bytes in 0.049s)


2 comments:

Anonymous said...

beautythanks for the shared this interesting information with us. I really enjoyed your article and waiting for new..

Unknown said...

The information is very good and very useful. I really like it and I am also waiting for the post information.

Obat Alami Menurunkan Kolesterol Jahat
Cara Menghilangkan Bekas Benjolan Jerawat
Obat Herbal Gondongan