summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-01-13 09:45:14 -0800
committerTao Bao <tbao@google.com>2017-01-13 09:59:38 -0800
commit9f7a0acd2d383b825bcdcbef25d6b42f9875acfe (patch)
tree269220d6598eb263f36f25da1cdcd2da6f5abe55 /tools/aapt2/diff/Diff.cpp
parent0938b22c0ab3f28acfcbcc4099b93dc0a43a691a (diff)
RecoverySystem: Fix the issue in installPackage().
Commit 794c8b0b3fe16051843c22232d58d6b184dde49b fixed the race condition when requesting data wipes via uncrypt. We have similar issue with RecoverySystem.installPackage(). It first requests to set up the BCB, then triggers a reboot. These two steps should finish atomically. This CL switches to calling RecoverySystemService.rebootRecoveryWithCommand(), which guards the two steps with synchronized blocks. Bug: 34239871 Test: Having two apps: one calls RecoverySystem.cancelScheduledUpdate() continuously, and the other calls RecoverySystem.installPackage() just once. The install request should not be cancelled by the other. Change-Id: I5ec56fcaa70eae7c33e3cc8e6cfc7472b935ce4e
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions