Skip to content Skip to sidebar Skip to footer

Adb Pull File With Special Character In Its Path

I am trying to copy a file from my phone to my pc using adb over network. My code works perfectly fine even for files with spaces in their path, but it fails for files containing a

Solution 1:

I managed to solve the problem (which is apparently a bug in adb Issue 8185: adb push doesn't accept unicode filenames ) by using the following code snippet to encode the path.

byte ptext[] = androidFilePath.getBytes("UTF-8");
androidFilePath = new String(ptext, "CP1252");

Post a Comment for "Adb Pull File With Special Character In Its Path"