Merge "HH: Minimally refactor Android.mk"
diff --git a/releasetools.py b/releasetools.py
index 0c4174a..0340132 100644
--- a/releasetools.py
+++ b/releasetools.py
@@ -41,6 +41,13 @@
len(target_radio_img), common.sha1(target_radio_img).hexdigest()))
+def IncrementalOTA_InstallBegin(info):
+ # Reduce the space taken by the journal.
+ info.script.Unmount("/system")
+ info.script.TunePartition("/system", "-O", "^has_journal")
+ info.script.Mount("/system")
+
+
def IncrementalOTA_InstallEnd(info):
try:
target_bootloader_img = info.target_zip.read("RADIO/bootloader.img")