Hi, I am new to building android from source. In my custom rom (for testing), I need to log all events (like an app opened, app closed, new notification arrived and all other possible events) in the android phone.
I would like to know where to add the logging code. As far as I know, the system server is the place to do so. Please correct me if I am wrong. Also, please name the primary file to look at if possible (easier for me to change rather than looking at entire code).
Thank you.