blob: 125c34e637db44d4bcc989c35f83aff99d1de6f7 [file] [log] [blame]
// Copyright (C) 2022 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.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
// Build and install NearbyFastPairProviderSimulatorApp to your phone:
// m NearbyFastPairProviderSimulatorApp
// adb root
// adb remount && adb reboot (make first time remount work)
//
// adb root
// adb remount
// adb push ${ANDROID_PRODUCT_OUT}/system/app/NearbyFastPairProviderSimulatorApp /system/app/
// adb reboot
// Grant all permissions requested to NearbyFastPairProviderSimulatorApp before launching it.
android_app {
name: "NearbyFastPairProviderSimulatorApp",
sdk_version: "test_current",
// Sign with "platform" certificate for accessing Bluetooth @SystemAPI
certificate: "platform",
static_libs: ["NearbyFastPairProviderSimulatorLib"],
optimize: {
enabled: true,
shrink: true,
proguard_flags_files: ["proguard.flags"],
},
}
android_library {
name: "NearbyFastPairProviderSimulatorLib",
sdk_version: "test_current",
srcs: [
"src/**/*.java",
"src/**/*.kt",
],
static_libs: [
"NearbyFastPairProviderLib",
"NearbyFastPairProviderLiteProtos",
"NearbyFastPairProviderSimulatorLiteProtos",
"androidx.annotation_annotation",
"error_prone_annotations",
"fast-pair-lite-protos",
],
}