From my friend Xing.
The
current setting configuration is saved in SQL database. You can find the
information in the following database file:
/data/data/com.android.providers.settings/databases/settings.db
You can use the “sqlite3” command to query the database:
/data/data/com.android.providers.settings/databases
# sqlite3 settings.db
SQLite
version 3.6.22
Enter
".help" for instructions
Enter
SQL statements terminated with a ";"
sqlite>
.tables
android_metadata
bookmarks
system
bluetooth_devices
secure
sqlite>
select * from system;
3|volume_system|7
4|volume_voice|4
5|volume_alarm|6
6|volume_notification|5
7|volume_bluetooth_sco|7
8|mode_ringer|2
9|vibrate_on|4
10|mode_ringer_streams_affected|166
11|mute_streams_affected|46
12|dim_screen|1
15|emergency_tone|0
16|call_auto_retry|0
17|dtmf_tone_type|0
18|hearing_aid|0
19|tty_mode|0
20|airplane_mode_on|0
21|airplane_mode_radios|cell,bluetooth,wifi
22|airplane_mode_toggleable_radios|wifi
23|auto_time|1
24|screen_brightness|102
25|screen_brightness_mode|0
26|window_animation_scale|1.0
27|transition_animation_scale|1.0
28|accelerometer_rotation|1
29|haptic_feedback_enabled|1
30|notification_light_pulse|1
31|set_install_location|0
32|default_install_location|0
33|power_sounds_enabled|1
34|low_battery_sound|/system/media/audio/ui/LowBattery.ogg
35|dock_sounds_enabled|0
36|desk_dock_sound|/system/media/audio/ui/Dock.ogg
37|desk_undock_sound|/system/media/audio/ui/Undock.ogg
38|car_dock_sound|/system/media/audio/ui/Dock.ogg
39|car_undock_sound|/system/media/audio/ui/Undock.ogg
40|lockscreen_sounds_enabled|0
41|lock_sound|/system/media/audio/ui/Lock.ogg
42|unlock_sound|/system/media/audio/ui/Unlock.ogg
43|vibrate_in_silent|1
45|next_alarm_formatted|
46|notification_sound|content://media/internal/audio/media/2
47|ringtone|content://media/internal/audio/media/19
48|alarm_alert|content://media/internal/audio/media/83
49|screen_off_timeout|30000
50|stay_on_while_plugged_in|3
53|volume_ring|6
54|volume_ring_last_audible|6
59|volume_music|10
60|volume_music_last_audible|10
sqlite>