Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34ae6f10 authored by Kali-'s avatar Kali- Committed by Steve Kondik
Browse files

Implement verify cache partition size during install

Change-Id: I6350b6c579785d422d927e0615f2bf69762399ef
parent e00898b5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -106,6 +106,11 @@ class EdifyGenerator(object):
    self.script.append('set_perm(0, 0, 0777, "/tmp/backuptool.sh");')
    self.script.append(('run_program("/tmp/backuptool.sh", "%s");' % command))

  def RunVerifyCachePartitionSize(self):
    self.script.append('package_extract_file("system/bin/verify_cache_partition_size.sh", "/tmp/verify_cache_partition_size.sh");')
    self.script.append('set_perm(0, 0, 0777, "/tmp/verify_cache_partition_size.sh");')
    self.script.append('run_program("/tmp/verify_cache_partition_size.sh");')

  def ShowProgress(self, frac, dur):
    """Update the progress bar, advancing it over 'frac' over the next
    'dur' seconds.  'dur' may be zero to advance it via SetProgress
+2 −0
Original line number Diff line number Diff line
@@ -412,6 +412,8 @@ def WriteFullOTAPackage(input_zip, output_zip):
    script.ShowProgress(0.2, 10)
    script.RunBackup("restore")

  script.RunVerifyCachePartitionSize()

  script.ShowProgress(0.2, 10)
  script.WriteRawImage("/boot", "boot.img")