Merge "Remove the use of FileInputStream.available()" into gingerbread