Skip to content
Commit bf93ca7f authored by Nikita Ioffe's avatar Nikita Ioffe Committed by Bill Lin
Browse files

Don't use ApexInfo.packageName in StagingManager

* ApexInfo.packageName has a misleading name since it represents name
  of apex module (e.g. com.android.tzdata), not the packageName from
  AndroidManifest.xml of an apex (e.g. com.google.android.tzdata). Later
  should be used in PackageManager-world while former is apexd-internal
  name.
* Restructured code a little bit to make the pre-reboot verification
  flow easier follow.

Test: atest CtsStagedInstallHostTestCases
Test: adb shell pull /system/apex/com.android.resolv.apex /tmp/resolv.apex &&
      adb install /tmp/resolv.apex &&
      adb reboot &&
      <verify staged session was applied>
Bug: 132324953

Change-Id: Ifd88b5e5df84ba7a6aebd70dced7b9ab48ed0159
Merged-In: Iedfe87f6e70a2e1d2792487ac7b2891693ceb72a
(cherry picked from commit e0dbc98f)
parent c2348fa9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment