Problem pulling file from emulator using GUI -OR- adb command

后端 未结 5 1138
故里飘歌
故里飘歌 2021-01-22 13:54

I\'m developing my first Android application in Eclipse, Win7x64 and am having trouble pulling a SQLite file to inspect what\'s getting in it. I\'m seeing this problem using DD

5条回答
  •  萌比男神i
    2021-01-22 14:29

    Are you trying to pull from /data/data/your.application.name? Are you on a production phone? If so, you may be out of luck; production phones disallow access to that directory.

    Are you specifying both the source and destination names?

    adb pull /sdcard/name.of.file.db name.of.file.db
    

    adb insists on the destination name being a filename, not a directory; in particular, . to mean 'put the file in the CWD' won't work.

    Other than that, dunno. Your report does sound a bit peculiar.

    You may find it useful to try creating an AVD (an emulated device) and deploying to that. AVDs are not production devices and as such you can do things that real phones won't let you, like tinkering in your application's private data area. If this is a permissions problem this will work round it.

提交回复
热议问题