Refactor android_os_Debug to use androidprocheaps

The smaps reading logic removed in this change, was moved to androidprocheaps previously (aosp/3001640). Refactored the logic in android_os_Debug to use the implementation in androidprocheaps and remove the code duplication.

Change-Id: I362a26f54f09e9f795215bf2ed7a537bb8c17c1d
Fix: 323589060
Test: atest libmeminfo_test
2 files changed