Showing posts with label SD Card. Show all posts
Showing posts with label SD Card. Show all posts

Tuesday, May 15, 2012

移除 Apps 後, 可否完美地刪除在 SD Card 上遺留的資料?


答案是"沒有".

因為當你安裝每一個 App, 佢就可以在 sdcard 製造無限檔案跟資料夾. 大概係因為當年 Google 未提議開發商將資料放入 /sd_path/Android/data/package_name/ 的後遺症.

在當時, 因為存取 SD card 資料並無一個清楚指引, 每一個開發商都會隨意在 SD card 建立不同資料夾存放資料, 當用家使用了手機一段時間後,  SD card 便會變得混亂非常. 其後 Google 係發布 Android 2.2 時連同新增的 API 加入了這個指引,  這個路徑內的資料會於 Apps 移除時一併刪除.

當然很多開發商仍然不跟隨指引, 例如因為軟件升級會刪除此路徑上的資料, 為保留資料確有需要另建資料夾.... 所以就只有靠用家自己刪除了.