I want to check the interaction between user and the resources of each application can access. in other word, is there a way I can check how many times the GPS is enabled, disabled, and the same for other system resources such as camera , wifi, and so on. Is it possible?
Asked
Active
Viewed 120 times
1
-
This must be a custom ROM or a sideloaded service with root privileges. – Alex Cohn Nov 05 '15 at 04:22
-
Thanks for replying, what about if i want to know what are the resources the application are using while it is running. for example I know that android os will check the permissions from the manifest file then will give the privilege to the app at the installation time, but if the user install snapchat for example and he never use the gps can I know that? – Balira Nov 05 '15 at 05:18
-
Please define *you* in this question: some system monitor, running with root access to [**/proc**](https://en.wikipedia.org/wiki/Procfs)? some analytics service, built into the app? a 3rd party app that does not have special permissions? – Alex Cohn Nov 05 '15 at 07:19
-
I'm working to build an app and i want to find a way that i can monitor other applications settings, I want to know which settings the user enabled and disabled in each app – Balira Nov 05 '15 at 07:40
1 Answers
0
Yes, Its possible, In fact, apps like Quality Time and 'App Lockers' rely on it.
The way I think they might be doing this is by analyzing logcat
's output.
You can do this by adding a permission android.permission.READ_LOGS
and then acting accordingly in your code.
Hope this helps.

Mayur Bhangale
- 405
- 1
- 5
- 19
-
Thanks for replying, as I know these kind of apps are checking the app usage but what about the resources camera, wifi etc. can you explain more – Balira Nov 04 '15 at 19:21
-
Just researched through same, Unfortunately, this permission is no longer supported. [Check this for more](http://stackoverflow.com/questions/11461650/read-logs-permission-on-jelly-bean-api-16) – Mayur Bhangale Nov 04 '15 at 19:38
-
Thank you again, I hope I can find something that can help me, to understand users usage of these resources – Balira Nov 05 '15 at 03:09