SoFunction
Updated on 2025-04-10

What data will clear data in Android system settings clear?

What will be removed If you click Clear Data Button in the System Application

A story in today suddenly mentioned the cleaning data in the system settings, and later began to think about the cleaning function of the system application, which data will be cleaned. So I started to study, taking as an example, the idea is to first create a flag file in each folder under /data/data/, here, then perform the data cleaning operation, and finally compare the results. First, make clear the situation of each folder before the data.

Copy the codeThe code is as follows:

/data/data/ # ls
lib
files
databases
shared_prefs
app_thumbnails
cache
app_webIcons
app_appcache
app_databases
app_geolocation

Create a flag for each folder (also verify whether to delete the folder)

Copy the codeThe code is as follows:

/data/data/ # touch lib/
/data/data/ # touch files/
/data/data/ # touch databases/
/data/data/ # touch shared_prefs/
/data/data/ # touch app_thumbnails/
/data/data/ # touch cache/
/data/data/ # touch app_webIcons/
/data/data/ # touch app_appcache/
/data/data/ # touch app_databases/
/data/data/ # touch app_geolocation/

Perform a clean-up operation. View the results after performing a cleanup operation.

Copy the codeThe code is as follows:

/data/data/ # ls
lib
/data/data/ #

Check the lib situation

Copy the codeThe code is as follows:

/data/data/ # cd lib/
/data/data//lib # ls

/data/data//lib #

In general, the settings in the system and the cleanup data in the application will clean up files and folders that remove lib folders (including internal files). The ./sdcard/Android/data/ directory is also related to the package name, but the cleaning data in the system will not clean up the relevant information in this directory.