Retrieve database or any other file from the Internal Storage using run-as

后端 未结 12 2379
清酒与你
清酒与你 2020-11-22 11:01

On a non-rooted android device, I can navigate to the data folder containing the database using the run-as command with my package name. Most files types I am c

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 11:28

    I've published a simple shell script for dumping databases:

    https://github.com/Pixplicity/humpty-dumpty-android

    It performs two distinct methods described here:

    1. First, it tries to make the file accessible for other users, and attempting to pull it from the device.
    2. If that fails, it streams the contents of the file over the terminal to the local machine. It performs an additional trick to remove \r characters that some devices output to the shell.

    From here you can use a variety of CLI or GUI SQLite applications, such as sqlite3 or sqlitebrowser, to browse the contents of the database.

提交回复
热议问题