1// 2// Copyright (C) 2008 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17// the signapk tool (a .jar application used to sign packages) 18// ============================================================ 19package { 20 default_applicable_licenses: ["Android-Apache-2.0"], 21} 22 23java_binary_host { 24 name: "signapk", 25 srcs: ["src/**/*.java"], 26 manifest: "SignApk.mf", 27 static_libs: [ 28 "apksig", 29 "bouncycastle-unbundled", 30 "bouncycastle-bcpkix-unbundled", 31 "conscrypt-unbundled", 32 ], 33 34 // b/267608166: Prevent target Java 17 so the host-side tool can run in an 35 // environment where JDK 11 is available. 36 java_version: "11", 37 38 jni_libs: ["libconscrypt_openjdk_jni"], 39 40 // The post-build signing tools need signapk.jar (and its shared libraries, 41 // handled in their own Android.bp files) 42 dist: { 43 tag: ".jar", 44 targets: ["droidcore"], 45 }, 46} 47