Dario Freni 2fc64882f7 Convert Android.mk to Android.bp for CtsShim*
Bug: 138429615
Test: File was mostly auto-generated via `androidmk`, except the
manifest generation bit. All modules verified to be compiling, and
correct hash verified beign present in the CtsShimPriv manifest:

$ sha512sum -b \
out/soong/.intermediates/frameworks/base/packages/CtsShim/build/CtsShimPrivUpgrade/android_common/CtsShimPrivUpgrade.apk
88828701aa191d9cfd7fe839bc0d0ba159e3c21dd85fb5bcd7d15e9e66ea7d88d8f6e2369a911b567571a6750e424f3c1424a927f8fde559535c7329778b7eb9

$ sha512sum -b \
out/soong/.intermediates/frameworks/base/packages/CtsShim/build/CtsShimPrivUpgradeWrongSHA/android_common/CtsShimPrivUpgradeWrongSHA.apk
55df1add673f13671e35de14540b427320f52fafff593c56e6dcc81d8b4fbde508d596edf8a326f764c58b70bcb94b63c6baacba1f8c6e4940c179a77dfc1ab1

$ aapt2 dump xmltree --file AndroidManifest.xml \
out/soong/.intermediates/frameworks/base/packages/CtsShim/build/CtsShimPriv/android_common/CtsShimPriv.apk \
| grep hash
        A:
	http://schemas.android.com/apk/res/android:hash(0x01010526)="88828701aa191d9cfd7fe839bc0d0ba159e3c21dd85fb5bcd7d15e9e66ea7d88d8f6e2369a911b567571a6750e424f3c1424a927f8fde559535c7329778b7eb9"
	(Raw:
	"88828701aa191d9cfd7fe839bc0d0ba159e3c21dd85fb5bcd7d15e9e66ea7d88d8f6e2369a911b567571a6750e424f3c1424a927f8fde559535c7329778b7eb9")

Change-Id: I9bb44a007324ab29ea60fb3ee06fc9ead42cdeba
Merged-In: Ie6e0df9f4f1365b5194e9748b325b421f838c65b
2019-11-16 17:37:16 +08:00

75 lines
1.8 KiB
Plaintext

//
// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//##########################################################
// Variant: Privileged app
android_app_import {
name: "CtsShimPrivPrebuilt",
// this needs to be a privileged application
privileged: true,
// Make sure the build system doesn't try to resign the APK
dex_preopt: {
enabled: false,
},
arch: {
arm: {
apk: "apk/arm/CtsShimPriv.apk",
},
arm64: {
apk: "apk/arm/CtsShimPriv.apk",
},
x86: {
apk: "apk/x86/CtsShimPriv.apk",
},
x86_64: {
apk: "apk/x86/CtsShimPriv.apk",
},
},
presigned: true,
}
//##########################################################
// Variant: System app
android_app_import {
name: "CtsShimPrebuilt",
// Make sure the build system doesn't try to resign the APK
dex_preopt: {
enabled: false,
},
arch: {
arm: {
apk: "apk/arm/CtsShim.apk",
},
arm64: {
apk: "apk/arm/CtsShim.apk",
},
x86: {
apk: "apk/x86/CtsShim.apk",
},
x86_64: {
apk: "apk/x86/CtsShim.apk",
},
},
presigned: true,
}