Fix issues with installation of bigger ZIP files (like stock Android)

Change-Id: I4e7ff0aa7224a7fe592eb5e06bc13a1f077b0eb3