首页 > 代码库 > [Android Tips] 10. Pull out /data/data/${package_name} files without root access

[Android Tips] 10. Pull out /data/data/${package_name} files without root access

#!/usr/bin/env bashPACKAGE_NAME=com.your.packageDB_NAME=data.dbrm -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

 

[Android Tips] 10. Pull out /data/data/${package_name} files without root access