Check FEATURE_BLUETOOTH for Companion Device Test in CTS-V
Issue:
"Companion Device Test” does not check for Bluetooth Feature Presence.
This causes the app to crash.
AndroidRuntime: java.lang.RuntimeException: Unable to create service
com.android.companiondevicemanager.DeviceDiscoveryService: java.lang.NullPointerException:
Attempt to invoke virtual method 'android.bluetooth.le.BluetoothLeScanner
android.bluetooth.BluetoothAdapter.getBluetoothLeScanner()' on a null object reference
Root Cause:
In CN80G Batch SKU devices, Bluetooth feature is not present and hence this fails.
Fix:
The fix should be in the test case to check for FEATURE_BLUETOOTH before running
tests. If Feature not supported, the test case is not applicable.
This patch is an indicative patch to request for waiver from Google for this failure
Change-Id: I132b57e8b5a6075da0db0395dc0333bdbbbf08ec
Loading
Please sign in to comment