Revert "Add sign_sepolicy_path for a binary to sign sepolicy.apex."

This reverts commit e0a977affd.

Test: atest --host releasetools_test
Bug: 297794885
Change-Id: I951277e4aa3ae1f90474a1f7a036fc8693453c53
This commit is contained in:
Thiébaud Weksteen
2023-10-18 11:08:47 +11:00
parent e7bf32f0de
commit 62865caf1b
5 changed files with 16 additions and 117 deletions

View File

@@ -58,21 +58,6 @@ class SignApexTest(test_utils.ReleaseToolsTestCase):
apk_keys)
self.assertTrue(os.path.exists(signed_test_apex))
@test_utils.SkipIfExternalToolsUnavailable()
def test_SignSepolicyApex(self):
test_apex = os.path.join(self.testdata_dir, 'sepolicy.apex')
payload_key = os.path.join(self.testdata_dir, 'testkey_RSA4096.key')
container_key = os.path.join(self.testdata_dir, 'testkey')
apk_keys = {'SEPolicy-33.zip': os.path.join(self.testdata_dir, 'testkey')}
signed_test_apex = sign_apex.SignApexFile(
'avbtool',
test_apex,
payload_key,
container_key,
False,
None)
self.assertTrue(os.path.exists(signed_test_apex))
@test_utils.SkipIfExternalToolsUnavailable()
def test_SignCompressedApexFile(self):
apex = os.path.join(test_utils.get_current_dir(), 'com.android.apex.compressed.v1.capex')