How to examine SharedPreferences from adb shell?

前端 未结 8 705
傲寒
傲寒 2021-01-30 10:30

Now that we can Examining sqlite3 Databases from a Remote Shell, is it possible to examine SharedPreferences from adb shell? Since it would be much more convenient to examine an

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 11:24

    In case anyone else is running into "Permission Denied" errors using all of the above suggestions like I was, you may need to use exec-out like this:

    adb exec-out run-as  cat /data/data//shared_prefs/_preferences.xml
    

提交回复
热议问题