Android seems to keep a log of the past week of app usage. It seems that there are many applications that are able to get this "App usage" permission and by querying some underlying api get all the app usage data from your phone. It shows launch times and duration of specific applications. Some applications that can read these data are: https://play.google.com/store/apps/details?id=com.a0soft.gphone.uninstaller and https://play.google.com/store/apps/details?id=com.huybn.UsageHistory. While it seems that many of these applications have ways to export this data I was wondering if there was a way to export this data without an app as the above apps each have an export format that really can only be read on the android phone.
TLDR; Is it possible to grab Application Usage Data via ADB or as a file on the internal storage (maybe in /data/system/something?)
/data/system/usagestats/usage-history.xml
. After that, it has been split to multiple (daily?) files. I currently cannot find my notes on those separate files, but see e.g. here for more details.