Assigned
Status Update
Comments
vi...@google.com <vi...@google.com> #2
Information redacted by Android Beta Feedback.
mu...@gmail.com <mu...@gmail.com> #3
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Complete steps to reproduce
What steps do others need to take in order to reproduce the issue themselves?
Current output (Error message if any)
What do you see instead?
Screen Record of the Issue
Please capture screen record or video of the issue using following steps:
adb shell screenrecord /sdcard/video.mp4
Subsequently use following command to pull the recorded file:
adb pull /sdcard/video.mp4
Attach the file to this issue
Note: Please upload the files to google drive and share the folder to android-bugreport@google.com, then share the link here.
Complete steps to reproduce
What steps do others need to take in order to reproduce the issue themselves?
Current output (Error message if any)
What do you see instead?
Screen Record of the Issue
Please capture screen record or video of the issue using following steps:
adb shell screenrecord /sdcard/video.mp4
Subsequently use following command to pull the recorded file:
adb pull /sdcard/video.mp4
Attach the file to this issue
Note: Please upload the files to google drive and share the folder to android-bugreport@google.com, then share the link here.
Description
2. CTS tool version: 15_r2
3. Module Failing:- CtsDevicePolicyTestCases
4. Steps to reproduce the problem :
run cts --include-filter "CtsDevicePolicyTestCases android.devicepolicy.cts.DefaultDialerApplicationTest#setDefaultDialerApplication_dialerPackageDoesNotExist_unchanged[IncludeRunOnSystemDeviceOwnerUser]"
5. Issue description:
My device is Android 15 launch device(with AOSP r1 tag), based on x86_64 architecture.
The mentioned test case runs even when Telephony feature is not enabled and leads to failure. The test case is expecting to receive a exception from the DevicePolicyManager#setDefaultDialerApplication but this function is checking the Telephony feature at beginning of the function and returns nothing if feature is disabled.
CTS failed log:
android.devicepolicy.cts.DefaultDialerApplicationTest#setDefaultDialerApplication_dialerPackageDoesNotExist_unchanged[IncludeRunOnSystemDeviceOwnerUser] FAILURE: java.lang.AssertionError: expected com.android.bedstead.nene.exceptions.NeneException to be thrown, but nothing was thrown
at org.junit.Assert.assertThrows(Assert.java:1028)
at org.junit.Assert.assertThrows(Assert.java:981)
at android.devicepolicy.cts.DefaultDialerApplicationTest.setDefaultDialerApplication_dialerPackageDoesNotExist_unchanged(DefaultDialerApplicationTest.java:132)
6. What you think the correct behavior should be.
Failed cts test should be skipped when Telephony feature is disable.
7. How can it be fixed?
By adding this annotation "@RequireFeature(FEATURE_TELEPHONY)" before the test case it can be skipped if it does not have that feature.
7. Bug report link: