简体   繁体   中英

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

I want to retreive android database using run-as like in here , like this way :

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

but my database file has space like "my db", what kind of punctuation that I must used ?

/ or " " or ' ' or something else ?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM