Julesian
Julesian

Reputation: 61

Determining physical memory address of an application running in Android

I want to test out mlock() command on an application. How do I determine the physical memory addresses of applications currently running in an Android device?

Upvotes: 1

Views: 709

Answers (1)

fadden
fadden

Reputation: 52343

mlock() is a system call that operates on the address space of the current process. It doesn't affect other processes.

This is a privileged operation, which means apps can't use it unless you have a rooted device and have modified system_server to enable the appropriate capability.

Android devices don't swap dirty pages out of RAM, and actively kill off background processes when the system gets low on memory, so mlock() is less useful on Android that it might be in other contexts.

Upvotes: 1

Related Questions