#!/usr/bin/env bash PACKAGE_NAME=com.your.package DB_NAME=data.db rm -rf ${DB_NAME} adb shell "run-as ${PACKAGE_NAME} chmod 666 /data/data/${PACKAGE_NAME}/databases/${DB_NAME}" adb pull /data/data/${PACKAGE_NAME}/databases/${DB_NAME} /tmp/ adb shell "run-as ${PACKAGE_NAME} chmod 600 /data/data/${PACKAGE_NAME}/databases/${DB_NAME}" sqlite3 /tmp/${DB_NAME
时间: 2024-10-01 06:58:56