Commit 339aa1de authored by José Henrique's avatar José Henrique
Browse files

Remove apex signing

parent c1734d7f
......@@ -35,12 +35,9 @@ def create_release_zip(post_build_env_vars):
if post_build_env_vars["production"]:
print("Signing apks...")
needs_apex_signing = (post_build_env_vars["version"] == "eleven" or
post_build_env_vars["version"] == "eleven_plus")
sign_target_files_apks(
post_build_env_vars["unsigned_target_files_path"],
target_files_path,
needs_apex_signing)
target_files_path)
print("Creating release zip file...")
ota_from_target_files(
......
......@@ -17,36 +17,9 @@ def run_command(cmd):
return int(bin(result).replace("0b", "").rjust(16, '0')[:8], 2)
def sign_target_files_apks(unsigned_target_files_path, dest_target_files_path,
needs_apex_signing):
def sign_target_files_apks(unsigned_target_files_path, dest_target_files_path):
signing_keys_dir = "signing_keys/default"
cmd = "python2 build/make/tools/releasetools/sign_target_files_apks"
if needs_apex_signing:
modules_to_sign = [
"com.android.art.release.apex=" + signing_keys_dir + "/releasekey",
"com.android.art.debug.apex=" + signing_keys_dir + "/releasekey",
"com.android.i18n.apex=" + signing_keys_dir + "/releasekey",
"com.android.runtime.apex=" + signing_keys_dir + "/releasekey",
"com.android.tethering.apex=" + signing_keys_dir + "/networkstack",
"com.android.vndk.current.apex=" + signing_keys_dir + "/releasekey",
"com.android.cellbroadcast.apex=" + signing_keys_dir + "/releasekey",
"com.android.adbd.apex=" + signing_keys_dir + "/releasekey",
"com.android.conscrypt.apex=" + signing_keys_dir + "/releasekey",
"com.android.extservices.apex=" + signing_keys_dir + "/releasekey",
"com.android.ipsec.apex=" + signing_keys_dir + "/releasekey",
"com.android.media.apex=" + signing_keys_dir + "/releasekey",
"com.android.media.swcodec.apex=" + signing_keys_dir + "/releasekey",
"com.android.mediaprovider.apex=" + signing_keys_dir + "/releasekey",
"com.android.neuralnetworks.apex=" + signing_keys_dir + "/releasekey",
"com.android.os.statsd.apex=" + signing_keys_dir + "/releasekey",
"com.android.permission.apex=" + signing_keys_dir + "/releasekey",
"com.android.resolv.apex=" + signing_keys_dir + "/releasekey",
"com.android.sdkext.apex=" + signing_keys_dir + "/releasekey",
"com.android.telephony.apex=" + signing_keys_dir + "/releasekey",
"com.android.tzdata.apex=" + signing_keys_dir + "/releasekey"
]
for module in modules_to_sign:
cmd += " -e " + module
cmd += " -p out/host/linux-x86"
cmd += " -o -d " + signing_keys_dir
cmd += " " + unsigned_target_files_path
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment