update CallScreeningService#setSkipCallLog to address 3rd pty apps

A 3rd party developer reported
CallScreeningService.CallResponse#setSkipCallLog(true) was still
logging the blocked call to Dialer.  This turned out to be true.

Turns out we do not allow 3rd party devs from toggling the
setSkipCallLog function.  Only carriers are allowed to toggle
the function.

To make this clear, the docs are being updated.

bug: 238892157
     130213778 (original)

Test: not required; docs only change.
Change-Id: I6b796421f7f178808eab301e12a4367b67ceaa71
This commit is contained in:
Thomas Stuart
2022-07-13 10:45:19 -07:00
committed by Tyler Gunn
parent 70c84d90c7
commit e192879719

View File

@@ -495,6 +495,9 @@ public abstract class CallScreeningService extends Service {
* Note: Calls will still be logged with type
* {@link android.provider.CallLog.Calls#BLOCKED_TYPE}, regardless of how this property
* is set.
* <p>
* Note: Only the carrier and system call screening apps can use this parameter;
* this parameter is ignored otherwise.
*/
public Builder setSkipCallLog(boolean shouldSkipCallLog) {
mShouldSkipCallLog = shouldSkipCallLog;