Provide a way to get the command result

Bug: 122055262
Test: build
Change-Id: Icc6c2c791461df5d47479e82592895fc84b1974e
6 files changed