How to Push a Directory to Android Device Using ADB
To push an entire directory using ADB, follow these steps:
- Open a command prompt window on your computer and navigate to the directory where the ADB tool is installed.
- Connect your Android device to your computer via USB cable.
- Enable USB debugging on your Android device by going to Settings > Developer options > USB debugging and turning it on.
- In the command prompt window, type the following command: adb push '[path of the directory on your computer]' '[path of the directory on your Android device]'
- Press Enter to execute the command. This will push the entire directory from your computer to your Android device.
For example, if you want to push a directory named 'myfolder' located on your computer's desktop to the root directory of your Android device, the command would look like this:
adb push C:\Users\Username\Desktop\myfolder /sdcard/
原文地址: https://www.cveoy.top/t/topic/nx8G 著作权归作者所有。请勿转载和采集!