Android Adb,使用 运行-as 检索数据库,但文件名具有 space

Android Adb, retrieve database using run-as but with file name that has space

我想使用 运行 检索 android 数据库-就像在 here 中一样,像这样:

adb shell
shell $ run-as com.example.package
shell $ chmod 666 databases/file
shell $ exit                                               ## exit out of 'run-as'
shell $ cp /data/data/package.name/databases/file /sdcard/
shell $ run-as com.example.package
shell $ chmod 600 databases/file
adb pull /sdcard/file

但是我的数据库文件有 space 像 "my db",我必须使用什么样的标点符号?

/ 或 " " 或 ' ' 或其他什么?

你应该使用引号 "
chmod 666 databases/"my db"