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

Unverified Commit b82e60e0 authored by Dan Pasanen's avatar Dan Pasanen Committed by Michael Bestas
Browse files

core: we're now lineage

* Change necessary bits to support our project move

Change-Id: Ie6a04eec45b6eb9f6f76f29e3163abd3f95f5da6
parent cd886e51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2223,7 +2223,7 @@ $(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE)
	   $(if $(OEM_OTA_CONFIG), -o $(OEM_OTA_CONFIG)) \
	   $(BUILT_TARGET_FILES_PACKAGE) $@

CM_TARGET_PACKAGE := $(PRODUCT_OUT)/cm-$(CM_VERSION).zip
CM_TARGET_PACKAGE := $(PRODUCT_OUT)/lineage-$(CM_VERSION).zip

.PHONY: otapackage bacon
otapackage: $(INTERNAL_OTA_PACKAGE_TARGET)
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ class EdifyGenerator(object):
    self.script.append(('run_program("/tmp/install/bin/backuptool.sh", "%s");' % command))

  def ValidateSignatures(self, command):
    self.script.append('package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");')
    self.script.append('package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");')
    # Exit code 124 == abort. run_program returns raw, so left-shift 8bit
    self.script.append('run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can\'t install this package on top of incompatible data. Please try another package or run a factory reset");')

+1 −1
Original line number Diff line number Diff line
@@ -801,7 +801,7 @@ endif;
  common.ZipWriteStr(output_zip, "system/build.prop",
                     ""+input_zip.read("SYSTEM/build.prop"))

  common.ZipWriteStr(output_zip, "META-INF/org/cyanogenmod/releasekey",
  common.ZipWriteStr(output_zip, "META-INF/org/lineageos/releasekey",
                     ""+input_zip.read("META/releasekey.txt"))

def WritePolicyConfig(file_name, output_zip):