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

Commit d001c46c authored by Simon Shields's avatar Simon Shields Committed by Rashed Abdel-Tawab
Browse files

releasetools: don't assert device

this is broken on twrp

Change-Id: I50b52e711cea1a45327d537854c9cf299ea96f9c
parent 53ee6271
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -145,13 +145,7 @@ class EdifyGenerator(object):

  def AssertDevice(self, device):
    """Assert that the device identifier is the given string."""
    cmd = ('assert(' +
           ' || \0'.join(['getprop("ro.product.device") == "%s" || getprop("ro.build.product") == "%s"'
                         % (i, i) for i in device.split(",")]) +
           ' || abort("E%d: This package is for device: %s; ' +
           'this device is " + getprop("ro.product.device") + ".");' +
           ');') % (common.ErrorCode.DEVICE_MISMATCH, device)
    self.script.append(self.WordWrap(cmd))
    pass

  def AssertSomeBootloader(self, *bootloaders):
    """Assert that the bootloader version is one of *bootloaders."""