檢視儲存在SharedPreferences的資料

2021-09-03 08:22:06 字數 359 閱讀 6145

1.使用adb shell命令進入手機的命令操作視窗

2.使用run-as 包名  命令進入我們的應用的儲存路徑

3.使用ls 命令檢視該包下面的所有檔案,其中有shared_prefs資料夾

4.使用cd shared_prefs && ls 命令就能看到儲存的資料檔案了(是以xml格式儲存的)

5.使用cat 檔名 即可檢視內容。

由此引發思考:我們在使用sharedpreferences儲存資料時需要注意資料的私密性,使用者名稱和密碼等敏感資訊需要慎重儲存,至少也需要進行加密處理。

檢視mysql儲存過程 mysql檢視儲存過程函式

查詢資料庫中的儲存過程和函式 select name from mysql.proc where db xx and type procedure 儲存過程 select name from mysql.proc where db xx and type function 函式 show proce...

mysql檢視儲存過程 mysql檢視儲存過程

查詢資料庫中的儲存過程和函式 select name from mysql.proc where db xx and type procedure 儲存過程 select from mysql.proc where db xx and type procedure and name xx selec...

你的知識儲存在大腦裡還是儲存在 Google 上

哈佛大學 60 名學生做了乙個實驗,發現乙個有趣的現象 google 遺忘。他們的實驗是這樣的 把 40 條諸如 鴕鳥眼睛比腦袋大 之類的碎片資訊輸入到電腦,然後問人們能否記住這些資訊。那些堅信自己能記住的人,結果往往很少記得。他們得出的結論是,由於資訊獲取的便捷,尤其是 google 搜尋引擎和 ...