signer: Preserve capabilities on Android system image

Since we no longer use xattrs when using
unsquashfs on the Android system image. A side-effect of this change
is the loss of capabilities for a handful of Android binaries such as

This change records the capabilities on the system image and applies
them manually to the output system image.

TEST=Locally sign hatch (ARC R) and kevin (ARC P) base images and
     verify signed base image's system.raw.img contents

Signed-off-by: Josh Horwich <>

Change-Id: Ied824d5ebf7a5139e71341abca810b14e67623e0
Reviewed-by: Allen Webb <>
Tested-by: Josh Horwich <>
Reviewed-by: Prameet Shah <>
Commit-Queue: Josh Horwich <>
Reviewed-by: Yury Khmel <>
Reviewed-by: Yury Khmel <>
1 file changed