We have a JUnit test Rule for espresso tests that records test results in a json file. After test execution the json file is pulled from the device
Rule
json