LeOS-GSI/patches/leos/platform_packages_apps_ImsS.../0001-remove_token.patch

42 lines
2.1 KiB
Diff

From 45848230543a57a3e7aa65f639003cbbb5683dbd Mon Sep 17 00:00:00 2001
From: harvey186 <harvey186@hotmail.com>
Date: Tue, 12 Dec 2023 15:39:08 +0100
Subject: [PATCH] remove_token
Change-Id: I818095bf275db4a0f1df223a7ef374e4c38320bb
---
.../android/imsserviceentitlement/ImsEntitlementApi.java | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/com/android/imsserviceentitlement/ImsEntitlementApi.java b/src/com/android/imsserviceentitlement/ImsEntitlementApi.java
index d6ccd65..bb5d17c 100644
--- a/src/com/android/imsserviceentitlement/ImsEntitlementApi.java
+++ b/src/com/android/imsserviceentitlement/ImsEntitlementApi.java
@@ -30,8 +30,6 @@ import com.android.imsserviceentitlement.debug.DebugUtils;
import com.android.imsserviceentitlement.entitlement.EntitlementConfiguration;
import com.android.imsserviceentitlement.entitlement.EntitlementConfiguration.ClientBehavior;
import com.android.imsserviceentitlement.entitlement.EntitlementResult;
-import com.android.imsserviceentitlement.fcm.FcmTokenStore;
-import com.android.imsserviceentitlement.fcm.FcmUtils;
import com.android.imsserviceentitlement.ts43.Ts43Constants.ResponseXmlAttributes;
import com.android.imsserviceentitlement.ts43.Ts43Constants.ResponseXmlNode;
import com.android.imsserviceentitlement.ts43.Ts43SmsOverIpStatus;
@@ -105,14 +103,9 @@ public class ImsEntitlementApi {
* unrecoverable network issue or malformed server response. This is blocking call so should
* not be called on main thread.
*/
- @Nullable
public EntitlementResult checkEntitlementStatus() {
Log.d(TAG, "checkEntitlementStatus subId=" + mSubId);
ServiceEntitlementRequest.Builder requestBuilder = ServiceEntitlementRequest.builder();
- mLastEntitlementConfiguration.getToken().ifPresent(
- token -> requestBuilder.setAuthenticationToken(token));
- FcmUtils.fetchFcmToken(mContext, mSubId);
- requestBuilder.setNotificationToken(FcmTokenStore.getToken(mContext, mSubId));
// Set fake device info to avoid leaking
requestBuilder.setTerminalVendor("vendorX");
requestBuilder.setTerminalModel("modelY");
--
2.34.1