diff options
author | 2024-08-26 16:20:24 +0000 | |
---|---|---|
committer | 2024-08-26 16:20:24 +0000 | |
commit | 355034149835cea5fdb6cdec1dedd5cf5be73a0a (patch) | |
tree | 9297cd15bb0d513ed8fb415d2c6f3f3f3d8cc327 | |
parent | 3beaa244af57fde2d6ce5d6183df44062a4eca0f (diff) |
Mark EXTRA_PLAY_CALL_RECORDING_TONE as deprecated.
This constant was never actually used and serves no purpose any more.
This was used to detect apps that tried to record a call by recording the
device mic hoping to pick up the call audio from the earpiece. This is
no longer allowed by audio policies. This extra was set based on a
carrier config key that was never actually used by any carriers anyways.
Removing to clean up dead/useless code.
Flag: com.android.server.telecom.flags.telecom_resolve_hidden_dependencies
Test: Run unit/cts tests.
Bug: 308017600
Change-Id: Id43b8fcffa7c98b8b907116b54acd693ecbcd4e7
-rw-r--r-- | core/api/system-current.txt | 2 | ||||
-rw-r--r-- | telecomm/java/android/telecom/PhoneAccount.java | 7 | ||||
-rw-r--r-- | telephony/java/android/telephony/CarrierConfigManager.java | 1 |
3 files changed, 9 insertions, 1 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 15e5706db9d1..2a9060f8facd 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -14196,7 +14196,7 @@ package android.telecom { field public static final int CAPABILITY_EMERGENCY_PREFERRED = 8192; // 0x2000 field public static final int CAPABILITY_EMERGENCY_VIDEO_CALLING = 512; // 0x200 field public static final int CAPABILITY_MULTI_USER = 32; // 0x20 - field public static final String EXTRA_PLAY_CALL_RECORDING_TONE = "android.telecom.extra.PLAY_CALL_RECORDING_TONE"; + field @Deprecated @FlaggedApi("com.android.server.telecom.flags.telecom_resolve_hidden_dependencies") public static final String EXTRA_PLAY_CALL_RECORDING_TONE = "android.telecom.extra.PLAY_CALL_RECORDING_TONE"; field @FlaggedApi("com.android.server.telecom.flags.telecom_resolve_hidden_dependencies") public static final String EXTRA_SKIP_CALL_FILTERING = "android.telecom.extra.SKIP_CALL_FILTERING"; field public static final String EXTRA_SORT_ORDER = "android.telecom.extra.SORT_ORDER"; } diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java index e6fe406dd8e5..83dac184fc5f 100644 --- a/telecomm/java/android/telecom/PhoneAccount.java +++ b/telecomm/java/android/telecom/PhoneAccount.java @@ -175,8 +175,15 @@ public final class PhoneAccount implements Parcelable { * <p> * The call recording tone is a 1400 hz tone which repeats every 15 seconds while recording is * in progress. + * + * @deprecated this API was only intended to prevent call recording via the microphone by an app + * while in a phone call. Audio policies no longer make this possible. Further, this API was + * never actually used. Call recording solutions integrated in an OEM dialer app must use + * appropriate recording signals to inform the caller/callee of the recording. * @hide */ + @FlaggedApi(com.android.server.telecom.flags.Flags.FLAG_TELECOM_RESOLVE_HIDDEN_DEPENDENCIES) + @Deprecated @SystemApi public static final String EXTRA_PLAY_CALL_RECORDING_TONE = "android.telecom.extra.PLAY_CALL_RECORDING_TONE"; diff --git a/telephony/java/android/telephony/CarrierConfigManager.java b/telephony/java/android/telephony/CarrierConfigManager.java index b9a001d1f2b6..48f5d69b6371 100644 --- a/telephony/java/android/telephony/CarrierConfigManager.java +++ b/telephony/java/android/telephony/CarrierConfigManager.java @@ -420,6 +420,7 @@ public class CarrierConfigManager { * <p> * Note: This requires the Telephony config_supports_telephony_audio_device overlay to be true * in order to work. + * @deprecated this functionality was never used and is no longer supported. * @hide */ public static final String KEY_PLAY_CALL_RECORDING_TONE_BOOL = "play_call_recording_tone_bool"; |