Merge "Don't crash if a system restore fails before constructing the PMBA" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c70fc4a320
@@ -7664,7 +7664,7 @@ if (MORE_DEBUG) Slog.v(TAG, " + got " + nRead + "; now wanting " + (size - soF
|
|||||||
|
|
||||||
// If this was a full-system restore, record the ancestral
|
// If this was a full-system restore, record the ancestral
|
||||||
// dataset information
|
// dataset information
|
||||||
if (mIsSystemRestore) {
|
if (mIsSystemRestore && mPmAgent != null) {
|
||||||
mAncestralPackages = mPmAgent.getRestoredPackages();
|
mAncestralPackages = mPmAgent.getRestoredPackages();
|
||||||
mAncestralToken = mToken;
|
mAncestralToken = mToken;
|
||||||
writeRestoreTokens();
|
writeRestoreTokens();
|
||||||
|
|||||||
Reference in New Issue
Block a user