Refactor: Add permission checks to Unarchive activities It adds permission checks for REQUEST_INSTALL_PACKAGES or INSTALL_PACKAGES to both UnarchiveActivity and UnarchiveErrorActivity at the start of their onCreate methods. The launch of the v2 UnarchiveLaunch activity is now gated by these permission checks. Bug: 489225275 Flag: android.content.pm.use_pia_v2 Test: manually tested Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:c3f52bcbb62f8af7d3a2aefb617696579cbe68f2 Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:8ffafe7532e3ce3c6c1c69e4ab781bdb94021645 Merged-In: I8f1265acae162cd752e76259f4ffaf39ab76b7e5 Change-Id: I8f1265acae162cd752e76259f4ffaf39ab76b7e5