Merge "Avoid byte[] allocations in writePackageListLPr"