# 2.2.2 手机端环境搭建
- [GFPS 环境搭建](#id-2.2.2手机端环境搭建-GFPS环境搭建) - [1.手机需要连接google网络](#id-2.2.2手机端环境搭建-1.手机需要连接google网络) - [2.手机不可以打开勿扰模式,不然可能看不到弹窗](#id-2.2.2手机端环境搭建-2.手机不可以打开勿扰模式,不然可能看不到弹窗) - [3.检查手机是否打开Google Play服务通知](#id-2.2.2手机端环境搭建-3.检查手机是否打开GooglePlay服务通知) - [4.检查google play 服务是否更新到最新的版本](#id-2.2.2手机端环境搭建-4.检查googleplay服务是否更新到最新的版本) - [5.登陆google账号](#id-2.2.2手机端环境搭建-5.登陆google账号) - [6 打开自动同步数据功能](#id-2.2.2手机端环境搭建-6打开自动同步数据功能) - [7.检查Show notification是否打开:](#id-2.2.2手机端环境搭建-7.检查Shownotification是否打开:) - [8.Setting界面打开蓝牙,以及位置信息。](#id-2.2.2手机端环境搭建-8.Setting界面打开蓝牙,以及位置信息。) - [9.Enable debug mode ID:](#id-2.2.2手机端环境搭建-9.EnabledebugmodeID:) - [10.Check Google Play Service version](#id-2.2.2手机端环境搭建-10.CheckGooglePlayServiceversion) - [11.注册成为google beta tester(内部测试账号已经注册过了,这一步不需要,如果是客户自己注册的Google账号,需要提醒客户check)](#id-2.2.2手机端环境搭建-11.注册成为googlebetatester(内部测试账号已经注册过了,这一步不需要,如果是客户自己注册的Google账号,需要提醒客户check)) - [Find hub 环境搭建](#id-2.2.2手机端环境搭建-Findhub环境搭建) - [1. The Google Find Hub App must be installed and updated to the latest Beta version.](#id-2.2.2手机端环境搭建-1.TheGoogleFindHubAppmustbeinstalledandupdatedtothelatestBetaversion.) - [1.1 如果没有安装:](#id-2.2.2手机端环境搭建-1.1如果没有安装:) - [1.2 如果已经安装:](#id-2.2.2手机端环境搭建-1.2如果已经安装:) - [1.2.1 长按 Find hub 图标,会看到App info](#id-2.2.2手机端环境搭建-1.2.1长按Findhub图标,会看到Appinfo) - [1.2.2 点击App info,会看到 App details](#id-2.2.2手机端环境搭建-1.2.2点击Appinfo,会看到Appdetails) - [1.2.3 点击App details,会看到以下页面,如果有新版本请手动更新到最新的版本。如果是beta版本则不需要更新,系统会自动帮忙更新。](#id-2.2.2手机端环境搭建-1.2.3点击Appdetails,会看到以下页面,如果有新版本请手动更新到最新的版本。如果是beta版本则不需要更新,系统会自动帮忙更新。) - [2."Use Find Hub" must be enabled under "Settings \> Google \> Find Hub".](#id-2.2.2手机端环境搭建-2.%22UseFindHub%22mustbeenabledunder%22Settings%3EGoogle%3EFindHub%22.) - [3 "Find your offline devices" must be set to "With network in all areas" under "Settings \> Google \> Find Hub".](#id-2.2.2手机端环境搭建-3%22Findyourofflinedevices%22mustbesetto%22Withnetworkinallareas%22under%22Settings%3EGoogle%3EFindHub%22.) - [4.“Scan for nearby devices” and “Include debug results” must be enabled under “Settings\> Google \> Devices and sharing \> Devices”.](#id-2.2.2手机端环境搭建-4.“Scanfornearbydevices”and“Includedebugresults”mustbeenabledunder“Settings%3EGoogle%3EDevicesandsharing%3EDevices”.) - [5.Should be connected to the google Internet and have Bluetooth and Location turned on in Settings.](#id-2.2.2手机端环境搭建-5.ShouldbeconnectedtothegoogleInternetandhaveBluetoothandLocationturnedoninSettings.) - [6 测试账号需要加入(内部测试账号已加入,qc测试不需要关心,FAE需要提醒客户自查)](#id-2.2.2手机端环境搭建-6测试账号需要加入(内部测试账号已加入,qc测试不需要关心,FAE需要提醒客户自查)) - [7 如果测试手机支援LEA, 开发者选项中将 Bypass Bluetooth LE Audio 选项关掉,然后重启手机](#id-2.2.2手机端环境搭建-7如果测试手机支援LEA,开发者选项中将BypassBluetoothLEAudio选项关掉,然后重启手机)
\ 该测试至少要准备两只手机。测试手机建议使用Google pixel手机,请**务必确保**手机端有打开开发者选项 https://developer.android.com/studio/debug/dev-options?hl=zh-cn  ### GFPS 环境搭建 #### 1.手机需要连接google网络 该网络必须可以登陆google的网站,在测试前请先测试一下是否可以登录google的网站(**建议试试能不能打开youtube之类的**)。 #### 2.手机不可以打开勿扰模式,不然可能看不到弹窗 ![](images/2.2.2+手机端环境搭建_f31d5963.jpg) #### 3.检查手机是否打开Google Play服务通知 Setting-\>(Apps¬ification  or   Apps)应用和通知-\> See all apps -\>Google Play服务-\>通知-\>All Google Play services notifications, 开启(显示通知) ![](images/2.2.2+手机端环境搭建_ed548277.jpg) \ #### 4.检查google play 服务是否更新到最新的版本 setting-\>(Apps¬ification    or   Apps)应用和通知-\>See all apps-\>Google Play 服务-\>高级-\>商店, 点击 App details or google play,界面会跳转到google play 商店,点击更新. 如果已经成为 beta tester, google play service可能会自动更新到最新的。 ![](images/2.2.2+手机端环境搭建_f4e30409.jpg) ![](images/2.2.2+手机端环境搭建_c52519b2.jpg) \ #### 5.登陆google账号 Settings\>Accounts   or  Seetings-\>Google(内部账号(不可给客户): Fast Pair Validator 测试 请使用 realsilbt8888@gmail.com    手动测试账号请参考 Google 账号 - BT_Market - WIKI (realtek.com)  #### 6 打开自动同步数据功能 由于GFPS的account key是存在google账号的云端的,所以必须要登陆google账号并且需要打开自动同步数据功能 Settings\>Accounts : ![](images/2.2.2+手机端环境搭建_e134ccda.jpg) or Seetings→Google: ![](images/2.2.2+手机端环境搭建_50c41446.jpg)![](images/2.2.2+手机端环境搭建_221878de.jpg)![](images/2.2.2+手机端环境搭建_b9289c10.jpg)![](images/2.2.2+手机端环境搭建_eb7c1957.jpg) #### 7.检查Show notification是否打开: Settings\>Google\>(Devices & sharing)\>Devices(设置\>Google\>设备连接\>设备\>) pixel 2xl: ![](images/2.2.2+手机端环境搭建_065ee5de.jpg)![](images/2.2.2+手机端环境搭建_fc4a7274.jpg) pixel 7: ![](images/2.2.2+手机端环境搭建_755d8ae5.jpg)![](images/2.2.2+手机端环境搭建_0b6ee88b.jpg)![](images/2.2.2+手机端环境搭建_0af6c82e.jpg) \ #### 8.Setting界面打开蓝牙,以及位置信息。 \ #### 9.Enable debug mode ID: The model ID provided to you is a debug mode ID. To enable it, go to Settings \> Google \> Devices & sharing \> Devices \> top right 3 dot menu to enable “Include debug results”. If the option “Include debug results” is missing in this page, please ensure Developer options in the phone is enabled. or go to Settings \> Google \> Devices & sharing \> Devices \>“Include debug results”  Settings \> Google \> Devices & sharing \> Devices \> top right 3 dot menu to enable “Include debug results” ![](images/2.2.2+手机端环境搭建_2ef55f3d.jpg) or Settings \> Google \> Devices & sharing \> Devices \>“Include debug results” ![](images/2.2.2+手机端环境搭建_4eda2909.jpg) https://developer.android.com/studio/debug/dev-options?hl=zh-cn #### 10.Check Google Play Service version Purpose: To confirm we use right version of Fast Pair module for testing Go to Settings \> Apps¬ification  or Apps\>google play services \> advanced,  then check Google Play services version (It should be 20.XX.XX or higher). ![](images/2.2.2+手机端环境搭建_e2794111.jpg) \ \ #### **11.注册成为google beta tester(内部测试账号已经注册过了,这一步不需要,如果是客户自己注册的Google账号,需要提醒客户check)** Sign up for the Google Play services beta program https://play.google.com/apps/testing/com.google.android.gms join the Android Beta group at https://www.google.com/android/beta to get latest update via OTA Finder/Find Hub testing program please Navigate to https://play.google.com/apps/testing/com.google.android.apps.adm \ 可以登陆Google账号之后在以下链接查看是否有添加成功:我的群组 ![](images/2.2.2+手机端环境搭建_530befda.jpg) 需要注意的是: ![](images/2.2.2+手机端环境搭建_f974af07.jpg) 如果没有权限添加,FAE需要联系YingTsung (YT) Lin, 请他发邮件给Google, 让Google把客户注册的Google账号添加到Google的Test group。 \ ### Find hub 环境搭建 #### 1. The Google Find Hub App must be installed and updated to the latest Beta version. 确认手机是否安装 Find Hub, 图标如下图:  ![](images/2.2.2+手机端环境搭建_e86d8403.jpg) ##### 1.1 如果没有安装: 去 Play Store/应用商店 下载Find Hub并且安装。 ##### 1.2 如果已经安装: 确认安装的是否是最新版。不是最新版,请手动升级到最新版。确认步骤如下: ###### 1.2.1 长按 Find hub 图标,会看到App info ![](images/2.2.2+手机端环境搭建_bad7ef45.jpg) ###### 1.2.2 点击App info,会看到 App details ![](images/2.2.2+手机端环境搭建_a20fd455.jpg) ###### 1.2.3 点击App details,会看到以下页面,如果有新版本请手动更新到最新的版本。如果是beta版本则不需要更新,系统会自动帮忙更新。 ![](images/2.2.2+手机端环境搭建_3b8637aa.jpg) \ #### 2.*"Use Find Hub"* must be enabled under *"Settings \> Google \> Find Hub"*. ![](images/2.2.2+手机端环境搭建_974fb425.jpg) ![](images/2.2.2+手机端环境搭建_09f8c8e7.jpg) or 手机端打开 finder功能.mp4 \ #### *3 "Find your offline devices"* must be set to *"With network in all areas"* under *"Settings \> Google \> Find Hub"*. ![](images/2.2.2+手机端环境搭建_cf01db8b.jpg) ![](images/2.2.2+手机端环境搭建_d0a01a8e.jpg) \ \ #### 4.“Scan for nearby devices” and “Include debug results” must be enabled under “Settings\> Google \> Devices and sharing \> Devices”. ![](images/2.2.2+手机端环境搭建_7790d6c1.jpg) \ #### 5.Should be connected to the google Internet and have Bluetooth and Location turned on in Settings. ![](images/2.2.2+手机端环境搭建_742e563c.jpg) \ #### **6 测试账号需要加入(内部测试账号已加入,qc测试不需要关心,FAE需要提醒客户自查)** Google Play services testing program: Navigate to https://play.google.com/apps/testing/com.google.android.gms Find My Device testing program: Navigate to https://play.google.com/apps/testing/com.google.android.apps.adm. 如果没有权限,需要联系Google帮忙添加账号权限。 \ #### **7 如果测试手机支援LEA, 开发者选项中将 Bypass Bluetooth LE Audio 选项关掉,然后重启手机** **![](images/2.2.2+手机端环境搭建_5f8eb235.jpg)** \ \