Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 037c07ef authored by Shuo Qian's avatar Shuo Qian Committed by Gerrit Code Review
Browse files

Merge "Remove/Modify some logs in SubscriptionController to prevent log flood."

parents 6958edf5 bc21e32f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -596,8 +596,6 @@ public class SubscriptionController extends ISub.Stub {
     */
    @Override
    public int getActiveSubInfoCount(String callingPackage) {
        if (DBG) logd("[getActiveSubInfoCount]+");

        if (!canReadPhoneState(callingPackage, "getActiveSubInfoCount")) {
            return 0;
        }
@@ -608,10 +606,10 @@ public class SubscriptionController extends ISub.Stub {
            List<SubscriptionInfo> records = getActiveSubscriptionInfoList(
                    mContext.getOpPackageName());
            if (records == null) {
                if (DBG) logd("[getActiveSubInfoCount] records null");
                if (VDBG) logd("[getActiveSubInfoCount] records null");
                return 0;
            }
            if (DBG) logd("[getActiveSubInfoCount]- count: " + records.size());
            if (VDBG) logd("[getActiveSubInfoCount]- count: " + records.size());
            return records.size();
        } finally {
            Binder.restoreCallingIdentity(identity);