How to access data/data folder in Android device?

后端 未结 18 2163
南方客
南方客 2020-11-22 15:36

I am developing an app and I know my database *.db will appear in data/data/com.****.***

I can access this file from AVD in Eclipse with he

18条回答
  •  鱼传尺愫
    2020-11-22 16:12

    You can download a sigle file like that:

    adb exec-out run-as debuggable.app.package.name cat files/file.mp4 > file.mp4

    Before you download you might wan't to have a look at the file structure in your App-Directory. For this do the following steps THelper noticed above:

    adb shell
    run-as com.your.packagename 
    cd files
    ls -als .
    

    The Android-Studio way Shahidul mentioned (https://stackoverflow.com/a/44089388/1256697) also work. For those who don't see the DeviceFile Explorer Option in the Menu: Be sure, to open the /android-Directory in Android Studio. E.g. react-native users have this inside of their Project-Folder right on the same Level as the /ios-Directory.

提交回复
热议问题