Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brianjmurrell/e62c9e6f217cbd3a51f8f83ae5943f88 to your computer and use it in GitHub Desktop.
Save brianjmurrell/e62c9e6f217cbd3a51f8f83ae5943f88 to your computer and use it in GitHub Desktop.
--- ./build/make/tools/releasetools/edify_generator.py.orig 2018-06-15 11:04:03.974973549 -0400
+++ ./build/make/tools/releasetools/edify_generator.py 2018-06-15 11:04:45.895051297 -0400
@@ -145,13 +145,7 @@
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))
+ self.script.append('')
def AssertSomeBootloader(self, *bootloaders):
"""Assert that the bootloader version is one of *bootloaders."""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment