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

Commit 2e71abe7 authored by Steve Kondik's avatar Steve Kondik Committed by Abaakouk Mehdi
Browse files

Also look at ro.product.board.

parent 0f452f21
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -88,8 +88,8 @@ 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(",")]) + 
           ' || \0'.join(['getprop("ro.product.device") == "%s" || getprop("ro.build.product") == "%s" || getprop("ro.product.board") == "%s"'
                         % (i, i, i) for i in device.split(",")]) + 
           ');')
    self.script.append(self._WordWrap(cmd))