I have this app with a simple checkbox which adds a line to build.prop when the user presses it , the thing works but when i exit the app the check box is reseted , is there
Yes, you can Just save the value of checkBox state in SharedPreferences and then retrieve them later when required
SharedPreferences sp = getSharedPreferences("your_prefs", Activity.MODE_PRIVATE);
SharedPreferences.Editor editor = sp.edit();
editor.putString("state", "checked");
editor.commit();
later you can get it like
SharedPreferences sp = getSharedPreferences("your_prefs", Activity.MODE_PRIVATE);
String str = sp.getString("state");
.See How to use SharedPreferences in Android to store, fetch and edit values
You can use putBoolean() and getBoolean() methods of Sharedpreferences too as checkboxes have only two states