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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user