• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#  Copyright (C) 2022 The Android Open Source Project
2#
3#  Licensed under the Apache License, Version 2.0 (the "License");
4#  you may not use this file except in compliance with the License.
5#  You may obtain a copy of the License at
6#
7#       http://www.apache.org/licenses/LICENSE-2.0
8#
9#  Unless required by applicable law or agreed to in writing, software
10#  distributed under the License is distributed on an "AS IS" BASIS,
11#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12#  See the License for the specific language governing permissions and
13#  limitations under the License.
14
15# Default model ID to simulate on provider side.
16DEFAULT_MODEL_ID = '00000c'
17
18# Default public key to simulate as registered headsets.
19DEFAULT_ANTI_SPOOFING_KEY = 'Cbj9eCJrTdDgSYxLkqtfADQi86vIaMvxJsQ298sZYWE='
20
21# Default anti-spoof Key Device Metadata JSON file for data provider at seeker side.
22DEFAULT_KDM_JSON_FILE = 'simulator_antispoofkey_devicemeta_json.txt'
23
24# Time in seconds for events waiting according to Fast Pair certification guidelines:
25# https://developers.google.com/nearby/fast-pair/certification-guideline
26SETUP_TIMEOUT_SEC = 5
27BECOME_DISCOVERABLE_TIMEOUT_SEC = 10
28START_ADVERTISING_TIMEOUT_SEC = 5
29SCAN_TIMEOUT_SEC = 5
30HALF_SHEET_POPUP_TIMEOUT_SEC = 5
31AVERAGE_PAIRING_TIMEOUT_SEC = 12
32
33# The phone to simulate Fast Pair provider (like headphone) needs changes in Android system:
34# 1. System permission check removal
35# 2. Adjusts Bluetooth profile configurations
36# The build fingerprint of the custom ROM for Fast Pair provider simulator.
37FAST_PAIR_PROVIDER_SIMULATOR_BUILD_FINGERPRINT = (
38    'google/bramble/bramble:Tiramisu/MASTER/eng.hylo.20211019.091550:userdebug/dev-keys')
39