How can one pull the (private) data of one's own Android app?

前端 未结 14 1807
长发绾君心
长发绾君心 2020-11-30 16:44

Attempting to pull a single file using

adb pull /data/data/com.corp.appName/files/myFile.txt myFile.txt

fails with

failed          


        
14条回答
  •  天涯浪人
    2020-11-30 17:15

    Does that mean that one could chmod the directory from world:--x to world:r-x long enough to be able to fetch the files?

    Yes, exactly. Weirdly enough, you also need the file to have the x bit set. (at least on Android 2.3)

    chmod 755 all the way down worked to copy a file (but you should revert permissions afterwards, if you plan to continue using the device).

提交回复
热议问题