fix streaming installation for splits

Plus a bit of code cleanup.

BUG: b/149631960
Test: atest PackageManagerShellCommandTest
Change-Id: I704d1c479fdeb93c3c031bfa639f195979564139
1 file changed