How to export phone usage time data to json/csv/sql/txt raw form? There are many apps like Google's Digital Wellbeing and another famous app called Action Dash.
These apps show your data about how many times the phone unlocked, per-app usage stats, no of times an app launched, no of notification etc.
How can I get all these data in raw format from my android phone?
I basically want to use python to perform some analysis on these data.
There are some apps in the play store that let you see more.

App Usage - Manage/Track Usage This app lets you export the data.
Action Dash This has a great amount of data that is being analyzed in the app. (This makes me think that the data is stored somewhere).

Take a look at the folders and files in &quot;/data/data/com.google.android.apps.wellbeing&quot; you may find something useful files there. There are some files there that look promising. You will need to be rooted to access this folder.