Wednesday, January 21, 2026

Copying files to Android device using adb


 

While copying files to a Android device make use of adb instead of rsync/cp.

Why?
adb skips the filesystem layer and hence much faster than usual usb/wifi transfer.


##
// First enable developer mode in android

##
// run below in laptop to list and see the android device in laptop
// and then accept laptop in android
adb list

##
// To enter the android file system (from laptop) and get the path
// where files needs to be copied(destination)
adb shell 


##
// To copy from laptop to android device. p for progress.

adb push -p /path/to/source/in/laptop  /sdcard/path/to/android/destination/


No comments:

Post a Comment