Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Published on
Course: Android Internals
Lecture 7: Android Graphics
Clipping is a handy way to collect and organize the most important slides from a presentation. You can keep your great finds in clipboards organized around topics.
At the moment I am doing a project, an native C daemon for Android, that needs to
collect the state of the phone like: is the audio ON (music plays), what is the current
level of the output sound, is the gps ON, the CPU freq, is the screen ON etc.
For some of them, I easily found the corresponding files in the sysfs and procfs, and I can get the values. But, for example like for the audio I cannot find this values. How to connect to the HAL api inside the kernel module.
Please can you give me some guideline how to do that? How to check if music is running?
Thank you,
Vlado