App Management
Android 5.0+
Risk: SAFE
Dump App HPROF Memory Heap
Dumps Dalvik/ART Java heap memory to .hprof file for memory leak analysis.
Command Syntax
adb shell am dumpheap com.example.app /sdcard/Download/heap.hprof
Generic Syntax:
am dumpheap com.example.app /sdcard/Download/heap.hprof
Real-World Usage Examples
Run command
Dumps Dalvik/ART Java heap memory to .hprof file for memory leak analysis.
adb shell am dumpheap com.example.app /sdcard/Download/heap.hprof