libmemtrack: check return value for getMemory()
libmemtrack does not report an error when the binderized memtrack
service dies during a call to getMemory, so a crash in the memtrack
service can result in the calling process (e.g. system_server)
crashing as well. Add an error check to avoid this problem.
Test: adb shell kill -9 $(adb shell pidof email@example.com)
Signed-off-by: Connor O'Brien <firstname.lastname@example.org>
1 file changed