内部文件会提示Permission denied
没有权限
1、先获取权限
C:\Users\xxx>adb root
restarting adbd as root
C:\Users\xxx>adb remount
remount succeeded
2、再上传
C:\Users\xxx> adb pull /data/data/com.xxx.xxx/databases/xxx.db D:\test
/data/data/com.xxx.xxx/databases/xxx.db: 1 file pulled, 0 skipped. 16.2 MB/s (94208 bytes in 0.006s)
D盘的test文件夹先创建好
PS:下载文件到设备
C:\Users\xxx>adb push D:\test\xxx.db /data/data/com.xxx.xxx/databases
D:\test\xxx.db: 1 file pushed, 0 skipped. 27.5 MB/s (32768 bytes in 0.001s)