Code Coverage : coverage.ec not generated on the device

This method is for Emma code coverage tool . You may try using Jacoco for coverage
here