Stop claiming that malloc debug is only usable on rooted devices.
Bug: N/A Test: N/A Change-Id: Ie9d753e7c2b6cc06e1c8e562970a000858f1072e
This commit is contained in:
parent
d238817037
commit
7dc7d2b7f2
|
@ -5,15 +5,11 @@ Malloc debug is a method of debugging native memory problems. It can help
|
||||||
detect memory corruption, memory leaks, and use after free issues.
|
detect memory corruption, memory leaks, and use after free issues.
|
||||||
|
|
||||||
This documentation describes how to enable this feature on Android N or later
|
This documentation describes how to enable this feature on Android N or later
|
||||||
versions of the Android OS.
|
versions of the Android OS. (See the "Examples" section.)
|
||||||
|
|
||||||
The documentation for malloc debug on older versions of Android is
|
The documentation for malloc debug on older versions of Android is
|
||||||
[here](README_marshmallow_and_earlier.md).
|
[here](README_marshmallow_and_earlier.md).
|
||||||
|
|
||||||
In order to enable malloc debug, you must be able to set special system
|
|
||||||
properties using the setprop command from the shell. This requires the
|
|
||||||
ability to run as root on the device.
|
|
||||||
|
|
||||||
When malloc debug is enabled, it works by adding a shim layer that replaces
|
When malloc debug is enabled, it works by adding a shim layer that replaces
|
||||||
the normal allocation calls. The replaced calls are:
|
the normal allocation calls. The replaced calls are:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue