Actually check if an OTA is encrypted

This commit is contained in:
Gabriele M
2017-07-26 11:57:32 +02:00
parent d854c6377b
commit 13f3849b96
2 changed files with 5 additions and 8 deletions

View File

@@ -181,8 +181,7 @@ public class UpdaterService extends Service {
update.getFile().getAbsolutePath() + Constants.UNCRYPT_FILE_EXT);
update.getFile().renameTo(uncrytpFile);
installPackage(uncrytpFile);
} else if (update.getFile().getAbsolutePath().startsWith("/data/") &&
Utils.isDeviceEncrypted(this)) {
} else if (Utils.isEncrypted(this, update.getFile())) {
// uncrypt rewrites the file so that it can be read without mounting
// the filesystem, so create a copy of it.
File uncrytpFile = new File(