aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Shields <simon@lineageos.org>2017-08-24 10:52:30 (GMT)
committerRashed Abdel-Tawab <rashed@linux.com>2017-10-29 06:25:21 (GMT)
commitd001c46c9f79bb58d59201fe2ca12c37b5cc237c (patch)
tree189d221b613d6e8144f04c3470e8fcc1eea47bef
parent53ee62712c4fb70e5198de26800b667d2876d615 (diff)
downloadandroid_build-staging/lineage-15.0_rebase-android-8.0.0_r23.zip
android_build-staging/lineage-15.0_rebase-android-8.0.0_r23.tar.gz
android_build-staging/lineage-15.0_rebase-android-8.0.0_r23.tar.bz2
releasetools: don't assert devicestaging/lineage-15.0_rebase-android-8.0.0_r23
this is broken on twrp Change-Id: I50b52e711cea1a45327d537854c9cf299ea96f9c
-rw-r--r--tools/releasetools/edify_generator.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/releasetools/edify_generator.py b/tools/releasetools/edify_generator.py
index 2ddb5cf..5ae80e5 100644
--- a/tools/releasetools/edify_generator.py
+++ b/tools/releasetools/edify_generator.py
@@ -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."""