1

Can anyone please tell me, where Androids’ developer options are stored?

I’m trying to modify the Pointer Location developer option in this file.

After recompiling Android, where is the file containing the modified sqlite database, system process or binary file, as I would like to exchange the new file with the one on my smartphone.

1

The Developer options are stored in the file:

/data/data/com.android.providers.settings/databases/settings.db

Pay attention that this is a database stored on file that includes also other saved options / settings, so just copying over another db file might cause unexpected behaviors.

As pointed out by @Gokul NC in the comments, this is not applicable since Marshmallow.

  • 3
    Not applicable since Marshmallow. Mention that in the answer.. – Gokul NC Jul 12 '16 at 16:14
  • @GokulNC so what's the answer for marshmallow? – user697683 May 8 '17 at 9:42
  • So how to avoid such unexpected behavior? I overwrote a file and the app won't start. I used chmod/chown to match original. What else should I watch out for? – Emil Sep 9 '17 at 22:24
  • @GokulNC Where's the storage in M and N? – iBug Oct 10 '17 at 15:52
  • @iBug Check my other answer :) – Gokul NC Oct 15 '17 at 10:39
1

On my LineageOS on Android Nougat the file was located at

/data/system/users/0/settings_global.xml

I guess the 0 after the /users/ is my user id. If this location differs from android version // distribution you might want to find the file via something like

find | grep "settings_global.xml"

or another search string using the adb shell or another way to access the shell on your device.

0

For Android 6.0 and above, it can be found inside the SharedPreferences file:

/data/data/com.android.settings/databases/com.android.settings_preferences.xml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.