From 7ef13799276f575bcc56758b5e0431a47b2af788 Mon Sep 17 00:00:00 2001 From: Melisa Carranza Zuniga Date: Tue, 23 Aug 2022 19:09:12 +0200 Subject: [PATCH] Adding output_path arg to sign_sepolicy_path call Bug: b/217570541 Test: mma and call sign_apex or sign_target_files_apks Change-Id: I0fcab6e8a40739406a158a687acea448fd205f5d --- tools/releasetools/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 5196f6321e..ac2ed97d51 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -2392,6 +2392,7 @@ def SignSePolicy(sepolicy, key, password): """ if OPTIONS.sign_sepolicy_path is None: + logger.info("No sign_sepolicy_path specified, %s was not signed", sepolicy) return False java_library_path = os.path.join( @@ -2404,7 +2405,7 @@ def SignSePolicy(sepolicy, key, password): cmd.extend([key + OPTIONS.public_key_suffix, key + OPTIONS.private_key_suffix, - sepolicy]) + sepolicy, os.path.dirname(sepolicy)]) proc = Run(cmd, stdin=subprocess.PIPE) if password is not None: