rt,android ADB push command to resolve Chinese name file, import local computer files into SD card of Android simulator AVD
1. Via the ADB push command
Ps:windows under the unstable, try the following Chinese name file can pass, but the file name is empty, Linux can. If this method is not possible under win, refer to the second method. Subtitle digital file name No need to say, certainly no problem.
with ADB push, you can add files to your SD card. If you want to change the file name when you push, just change the second parameter of the push to the full path (directory + filename), such as E:/videos/welcom.mp4. To restart the emulator, you can see what's new in the SD card.
adb push e:/videos/golden Age. mp4/sdcard/videos/(or/mnt/sdcard/videos/) (Note: This command does not enter ADB shell)adb push e:/videos/golden age. mp4/sdcard/videos/the Golden Age renamed. mp4 (or/mnt/sdcard/videos/ Golden Age renamed. mp4)to extract the Test.mp4, you can use the ADB pull command. The second parameter is the local hard disk address, if you do not want to change the name, only need to enter the directory address (can not add \), and need to change the name, the full path of the input file is OK.
2. Open The image file using the UltraISO tool sdcard.img (the image file is the emulator SD card)
A. Go to the next UltraISO yourself, and after installation, open UltraISO.
b. Then select File "Open", define the path to Sdcard.img (Sdcard.img in the. android\avd\avd.avd\ file directory), successfully opened the sdcard.img image file, display the file on the SD card.
c. Then select the Videos folder, copy and paste the prepared file with the Chinese name into the folder, then select File, save,
d.
/span>
3. Modify the source code of the ADB tool
under Windows file (folder) naming is GBK encoded, In the case of UTF-8 encoding used in Android, all the push and pull commands using ADB will cause errors due to different encoding methods, and only the source code of the ADB tool can be modified to allow ADB to convert the file name encoding accordingly.
- The process is as follows: use Ubuntu 12.04 to download the Android source code, the specific process reference network, Ubuntu must use 64-bit machine, because the latest Android source code can only be compiled on a 64-bit machine.
Reference:
1.http:// www.blogjava.net/wangxinsh55/archive/2011/09/20/359046.html
2.http:// www.cnblogs.com/dolphin0520/archive/2012/04/12/2443491.html
3.http:// blog.csdn.net/lixiaodaoaaa/article/details/9770405
Android Address transfer Chinese name file to emulator SD card