Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the available/free memory from ADB?

Tags:

I tried adb shell top, but it gives too much details info.

What I need is just the total available memory. How to get it via ADB?

like image 312
JackWM Avatar asked Apr 03 '14 16:04

JackWM


People also ask

How do I check storage on adb?

Your first step to determining what's full is to execute in either a terminal or adb shell the command “df /sdcard” – this will display the disk space used by the internal SD. For purposes of this, the /sdcard mount point is all we're interested in, but if you want to see external space used you could do “df /sdcard2”.

How do I find my Android RAM?

Open your Apps list and tap the ""Settings"" app. Select ""Device care"" or ""Device maintenance"" on the menu—the name varies by model. Now, tap ""Memory"" to view the total amount of RAM in your phone or tablet, as well as RAM usage per app.

What is in adb shell Dumpsys Gfxinfo?

dumpsys gfxinfo is a shell command you can use on the device via the command line. It provides you a dump of the rendering information of your current application instance and included in that dump is your app's Jank info.


1 Answers

Why not built-in::

$ adb shell "cat /proc/meminfo" 

Most phones lack free utility and all the more buzybox. On other hand /proc/meminfo is integral part of Linux.

like image 188
gavenkoa Avatar answered Nov 06 '22 05:11

gavenkoa