Loading tools/releasetools/edify_generator.py +2 −2 Original line number Diff line number Diff line Loading @@ -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)) Loading Loading
tools/releasetools/edify_generator.py +2 −2 Original line number Diff line number Diff line Loading @@ -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)) Loading