Don't trust callers to supply app info to bindBackupAgent()

Get the canonical identity and metadata about the package from the
Package Manager at time of usage rather than rely on the caller to
have gotten things right, even when the caller has the system uid.

Bug 28795098

Change-Id: I215786bc894dedf7ca28e9c80cefabd0e40ca877

Merge conflict resolution for ag/1133474 (referencing ag/1148862)
- directly to mnc-mr2-release
(cherry picked from commit b2a6b594827da2f595bf48c04088fb98e71333aa)

Change-Id: Ie82264ad0512d0ab59de8a964e96866088cb1a33
4 files changed