Parassharmaa / usage_stats

Flutter Plugin to query Android Usage Statistics (Configurations, Events, Usage, Network)
MIT License
15 stars 21 forks source link

Is there a way to get RAM, CPU and Battery usage? #19

Open leossmith opened 2 years ago

leossmith commented 2 years ago

Is it possible to add stats for RAM, CPU and / or Battery usage for the processes listed?

thank you.

Parassharmaa commented 2 years ago

Package uses android.app.usage to collect usage events, and there are no properties related to RAM/CPU/Battery in that.

But by using other classes like ActivityManager.MemoryInfo and ActivityManager it might be possible.