androidandroid-studiomobile-applicationtaskmanagerandroid-profiler

Fetching third-party app's resource usage and statistics in Android Studio


I have learnt the basics of Android and want to develop an app (Similar to Task manger for Android). I want to know how to fetch the resource (CPU, Memory, Battery) usage and statistics of third-party apps(Gmail, Whatsapp,..) in Android Studio.

I went through the documentation and found about Android Profilers. But, this can be used to find resource usage of app that we are currently developing and not for third-party apps. Can someone help me out with relevant information?


Solution

  • Android Studio Profilers rely on shell commands on behalf of the app to get CPU or memory usage, so that's why it only shows resource usage for that app.