Package: a-pandas-ex-adb-settings-to-df
Parses all Android config files (json/db/xml) in the /data/ folder and returns an easy-to-handle DataFrameSome things you have to know:You need root accessI have only tested it against BlueStacks / Windows 10 / Python 3.9.The parsing might take a while and the DataFrame might get huge. (103,000 rows on my BlueStacks emulator with 3 apps installed [Roblox, YouTube, GloboTV]It ignores all Exceptions, but prints them out. Usually, you can ignore them because, most of the time, they are thrown because of empty filesDon't use the sed columns yet (search and replace) on a real device. You could screw up your cell phone.$pipinstalla-pandas-ex-adb-settings-to-dffroma_pandas_ex_adb_settings_to_dfimportpd_add_adb_settings_to_dfpd_add_adb_settings_to_df()importpandasaspdadb_path="C:\\Users\\Gamer\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe"deviceserial="localhost:5875"save_in_folder="f:\\tempfilesforandroid"# to save the json/db/xml filesdf=pd.Q_adb_settings_to_df(adb_path=adb_path,deviceserial=deviceserial,save_in_folder=save_in_folder,folder="data/",# Should be the same on any android device,with_sed_columns=False# DON'T USE THIS ON A REAL DEVICE! SEARCH + REPLACE)indexaa_all_keys...level_6level_700.0(long,name)...NaNNaN11.0(long,value)...NaNNaN20.0(boolean,0,name)...NaNNaN31.0(boolean,0,value)...NaNNaN42.0(boolean,1,name)...NaNNaN...............103404NaN(6,desc)...NaNNaN103405NaN(6,label)...NaNNaN103406NaN(6,pkg)...NaNNaN103407NaN(6,source)...NaNNaN103408NaN(6,url)...NaNNaN[103409rowsx15columns]print(df[10:20].to_string())indexaa_all_keysaa_valueaa_xpathaa_snippetaa_fileaa_file_androidlevel_0level_1level_2level_3level_4level_5level_6level_7108.0(boolean,4,name)preferences_home_tz_enabled//boolean[5]<booleanname="preferences_home_tz_enabled"value="false"/>f:\tempfilesforandroid\data\data\com.android.calendar\shared_prefs\com.android.calendar_preferences.xml/data/data/com.android.calendar/shared_prefs/com.android.calendar_preferences.xmlboolean4name<NA><NA><NA><NA><NA>119.0(boolean,4,value)false//boolean[5]<booleanname="preferences_home_tz_enabled"value="false"/>f:\tempfilesforandroid\data\data\com.android.calendar\shared_prefs\com.android.calendar_preferences.xml/data/data/com.android.calendar/shared_prefs/com.android.calendar_preferences.xmlboolean4value<NA><NA><NA><NA><NA>1210.0(boolean,5,name)preferences_alerts_popup//boolean[6]<booleanname="preferences_alerts_popup"value="false"/>f:\tempfilesforandroid\data\data\com.android.calendar\shared_prefs\com.android.calendar_preferences.xml/data/data/com.android.calendar/shared_prefs/com.android.calendar_preferences.xmlboolean5name<NA><NA><NA><NA><NA>1311.0(boolean,5,value)false//boolean[6]<booleanname="preferences_alerts_popup"value="false"/>f:\tempfilesforandroid\data\data\com.android.calendar\shared_prefs\com.android.calendar_preferences.xml/data/data/com.android.calendar/shared_prefs/com.android.calendar_preferences.xmlboolean5value<NA><NA><NA><NA><NA>1412.0(string,0,name)preferences_week_start_day//string[1]<stringname="preferences_week_start_day">f:\tempfilesforandroid\data\data\com.android.calendar\shared_prefs\com.android.calendar_preferences.xml/data/data/com.android.calendar/shared_prefs/com.android.calendar_preferences.xmlstring0name<NA><NA><NA><NA><NA>1513.0(string,0,string)-1//string[1]<stringname="preferences_week_start_day">f:\tempfilesforandroid\data\data\com.android.calendar\shared_prefs\com.android.calendar_preferences.xml/data/data/com.android.calendar/shared_prefs/com.android.calendar_preferences.xmlstring0string<NA><NA><NA><NA><NA>1614.0(string,1,name)preferences_version//string[2]<stringname="preferences_version">f:\tempfilesforandroid\data\data\com.android.calendar\shared_prefs\com.android.calendar_preferences.xml/data/data/com.android.calendar/shared_prefs/com.android.calendar_preferences.xmlstring1name<NA><NA><NA><NA><NA>1715.0(string,1,string)7.1.2//string[2]<stringname="preferences_version">f:\tempfilesforandroid\data\data\com.android.calendar\shared_prefs\com.android.calendar_preferences.xml/data/data/com.android.calendar/shared_prefs/com.android.calendar_preferences.xmlstring1string<NA><NA><NA><NA><NA>1816.0(string,2,name)preferences_alerts_ringtone//string[3]<stringname="preferences_alerts_ringtone">f:\tempfilesforandroid\data\data\com.android.calendar\shared_prefs\com.android.calendar_preferences.xml/data/data/com.android.calendar/shared_prefs/com.android.calendar_preferences.xmlstring2name<NA><NA><NA><NA><NA>1917.0(string,2,string)content://settings/system/notification_sound//string[3]<stringname="preferences_alerts_ringtone">f:\tempfilesforandroid\data\data\com.android.calendar\shared_prefs\com.android.calendar_preferences.xml/data/data/com.android.calendar/shared_prefs/com.android.calendar_preferences.xmlstring2string<NA><NA><NA><NA><NA>