[Android Tips] 10. Pull out /data/data/${package_name} files without root access
2014-08-22 15:20 shaobin0604 阅读(493) 评论(0) 编辑 收藏 举报#!/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