Merge "Add util methods to read partial files." into android10-dev