OSDN Git Service

core: we're now lineage
authorDan Pasanen <dan.pasanen@gmail.com>
Mon, 19 Dec 2016 17:23:13 +0000 (11:23 -0600)
committerMichael Bestas <mikeioannina@gmail.com>
Fri, 6 Jan 2017 23:37:44 +0000 (01:37 +0200)
* Change necessary bits to support our project move

Change-Id: Ie6a04eec45b6eb9f6f76f29e3163abd3f95f5da6

core/Makefile
tools/releasetools/edify_generator.py
tools/releasetools/ota_from_target_files.py

index 5ea29ea..baaf03d 100644 (file)
@@ -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)
index 2c6cfaf..9892d2a 100644 (file)
@@ -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");')
 
index b322611..766a36e 100755 (executable)
@@ -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):