Make updates world readable

This should allow update_engine to access the file without
granting the dac_override capability.

Change-Id: I5d0c8792fd47e5571dbaf802b2725f99ee2dc150
This commit is contained in:
Gabriele M
2018-03-24 17:01:00 +01:00
parent 3aabbc7ed5
commit 8d0471effc
@@ -251,6 +251,7 @@ public class UpdaterController implements Controller {
Update update = mDownloads.get(downloadId).mUpdate;
File file = update.getFile();
if (file.exists() && verifyPackage(file)) {
file.setReadable(true, false);
update.setPersistentStatus(UpdateStatus.Persistent.VERIFIED);
mUpdatesDbHelper.changeUpdateStatus(update);
update.setStatus(UpdateStatus.VERIFIED);