Use getFileContents() instead of incorrect file system call to fetch file contents.

Bug: 47281
Change-Id: I2b9be4165ae85c52ff9a9b68b9d71ec011a6c5b4
(cherry picked from commit 3b5770835d91d01d2d906cd8c9e6a00058fc0001)