diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml
index 6b96e120d..eba9a14cf 100644
--- a/src/main/AndroidManifest.xml
+++ b/src/main/AndroidManifest.xml
@@ -40,7 +40,6 @@
-
@@ -401,15 +400,6 @@
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize">
-
-
-
-
-
-
= Build.VERSION_CODES.TIRAMISU) {
- if (telecomManager.getOwnSelfManagedPhoneAccounts().contains(handle)) {
- Log.d(TAG, "a phone account for " + accountId + " already exists");
- return;
- }
- }
- final PhoneAccount.Builder builder =
- PhoneAccount.builder(getHandle(context, accountId), accountId+"");
- builder.setSupportedUriSchemes(Collections.singletonList("dc"));
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
- builder.setCapabilities(
- PhoneAccount.CAPABILITY_SELF_MANAGED
- | PhoneAccount.CAPABILITY_SUPPORTS_VIDEO_CALLING);
- }
- final PhoneAccount phoneAccount = builder.build();
- telecomManager.registerPhoneAccount(phoneAccount);
- }
-
- public static void placeCall(Context context, int accountId, int chatId) {
- final Bundle extras = new Bundle();
- extras.putParcelable(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, getHandle(context, accountId));
- final Bundle outgoingCallExtras = new Bundle();
- outgoingCallExtras.putInt(EXTRA_ACCOUNT_ID, accountId);
- outgoingCallExtras.putInt(EXTRA_CHAT_ID, chatId);
- extras.putBundle(TelecomManager.EXTRA_OUTGOING_CALL_EXTRAS, outgoingCallExtras);
-
- final Uri address = Uri.parse("tel:0");
- try {
- context.getSystemService(TelecomManager.class).placeCall(address, extras);
- } catch (final SecurityException e) {
- Log.e(TAG, "call integration not available", e);
- Toast.makeText(context, "call integration not available", Toast.LENGTH_LONG).show();
- }
- }
-
- public static void addNewIncomingCall(final Context context, int accId, int chatId, int callId, String payload) {
- final PhoneAccountHandle phoneAccountHandle = getHandle(context, accId);
- final Bundle bundle = new Bundle();
- bundle.putString(TelecomManager.EXTRA_INCOMING_CALL_ADDRESS, chatId+"");
- final Bundle extras = new Bundle();
- extras.putInt(EXTRA_CALL_ID, callId);
- extras.putString(EXTRA_CALL_PAYLOAD, payload);
- bundle.putBundle(TelecomManager.EXTRA_INCOMING_CALL_EXTRAS, extras);
-
- try {
- context.getSystemService(TelecomManager.class).addNewIncomingCall(phoneAccountHandle, bundle);
- } catch (final SecurityException e) {
- Log.e(TAG, "call integration not available", e);
- Toast.makeText(context, "call integration not available", Toast.LENGTH_LONG).show();
- }
- }
-
-}