安卓開發時,免root查看數據庫 等

利用adbshell 的run-as命令 訪問/data/data/包名  

如果簽名了並且指定設置了android:debuggable="false"將無法使用該命令。

 

D:\anzhuang\studio\sdk\platform-tools>adb shell

shell@R9:/ $ run-as com.xxx.xxx

shell@R9:/data/data/com.xxx.xxx$ ls

files

lib

program_cache

shared_prefs

shell@R9:/data/data/com.xxx.xxx$ cd files

shell@R9:/data/data/com.xxx.xxx/files $ ls

__MACOSX

quanjing

shell@R9:/data/data/com.xxx.xxx/files $ cd quanjing

shell@R9:/data/data/com.xxx.xxx/files/quanjing $ ls

Scorllimage

Sounds

Videos

quanjing.json

shell@R9:/data/data/com.huachuang.mvlplatform/files/quanjing $

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章