How to Disable or Manage Android Clear Data

Standard

You have to add this part to your manifest file:

android:manageSpaceActivity=".ActivityOfYourChoice"

and then instead of "Clear Data", there is a button for "Manage Space" which launches ActivityOfYourChoice.

Also you can make a fake activity that do nothing:

public class ActivityOfYourChoice extends Activity {

 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);

 finish();
 }
}