Otapreopt: Introduce protocol version 10

In version 10, we no longer assume '&' for shared libraries of system
packages, instead expecting the package manager state to be precise
and correct.

Add translation code to parameter parsing. For prior versions, reject
commands that have '&' for shared libraries.

Bug: 115993344
Test: mmma frameworks/native/cmds/installd
Test: atest installd_otapreopt_test
Change-Id: I191f82839047e31303303b610583cc0d64c78177
2 files changed