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