Viewing private files created by an android app

后端 未结 5 1041
情歌与酒
情歌与酒 2021-02-04 01:53

I have an xml file being written by an app that is set to MODE_PRIVATE, but I now want to read that file outside of the phone, for debugging purposes. In Eclipse, I can access o

5条回答
  •  一个人的身影
    2021-02-04 02:57

    Another option is to have a command in the app that dumps the private files. This only works if you don't want to edit the files, but has the added bonus that you don't have to strip it out before it goes to production, because the user can't break anything with it. Well, as long as the files don't contain sensitive information. But, really, if they do, you're doing something wrong. As @user1778055 said, a user can root their phone to access it.

提交回复
热议问题