Remove visual voicemail in telephony
This CL deletes all visual voicemail client code in telephony service,
including settings.
The rest of the VVM code (filter settings and VisualVoicemailService
handler) is moved to com.android.phone.vvm.
Bug: 36173451
Bug: 35811769
Fixes: 36173451
Fixes: 35811769
Test: smoke test/legacy voicemail, voicemail settings
Change-Id: I4b0bdae28ffb1fce173dfb6aea26e2b06308f106
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 3f61b34..0e772ab 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -94,9 +94,9 @@
import com.android.internal.telephony.uicc.UiccCardApplication;
import com.android.internal.telephony.uicc.UiccController;
import com.android.internal.util.HexDump;
-import com.android.phone.settings.VisualVoicemailSettingsUtil;
import com.android.phone.settings.VoicemailNotificationSettingsUtil;
import com.android.phone.vvm.RemoteVvmTaskManager;
+import com.android.phone.vvm.VisualVoicemailSmsFilterConfig;
import java.io.FileDescriptor;
import java.io.PrintWriter;
@@ -2017,27 +2017,6 @@
}
@Override
- public void setVisualVoicemailEnabled(String callingPackage,
- PhoneAccountHandle phoneAccountHandle, boolean enabled) {
- mAppOps.checkPackage(Binder.getCallingUid(), callingPackage);
- if (!TextUtils.equals(callingPackage,
- TelecomManager.from(mPhone.getContext()).getDefaultDialerPackage())) {
- enforceModifyPermissionOrCarrierPrivilege(
- PhoneUtils.getSubIdForPhoneAccountHandle(phoneAccountHandle));
- }
- VisualVoicemailSettingsUtil.setEnabled(mPhone.getContext(), phoneAccountHandle, enabled);
- }
-
- @Override
- public boolean isVisualVoicemailEnabled(String callingPackage,
- PhoneAccountHandle phoneAccountHandle) {
- if (!canReadPhoneState(callingPackage, "isVisualVoicemailEnabled")) {
- return false;
- }
- return VisualVoicemailSettingsUtil.isEnabled(mPhone.getContext(), phoneAccountHandle);
- }
-
- @Override
public String getVisualVoicemailPackageName(String callingPackage, int subId) {
mAppOps.checkPackage(Binder.getCallingUid(), callingPackage);
if (!canReadPhoneState(callingPackage, "getVisualVoicemailPackageName")) {