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

Commit b51956cb authored by Yueming Wang's avatar Yueming Wang
Browse files

Revert "Log: Bluetooth Connections"

This reverts commit 5072b49b.

Reason for revert: Reverting this CL as it causes several build breakages in git_stage-aosp-master

Change-Id: Ie81e1991082755b083e6e28dac364bdc1f0d30ca
parent 5072b49b
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -40,10 +40,8 @@ import android.content.IntentFilter;
import android.os.ParcelUuid;
import android.os.SystemProperties;
import android.os.UserHandle;
import android.provider.Settings.Secure;
import android.util.Log;
import android.util.Pair;
import android.util.StatsLog;

import com.android.bluetooth.Utils;
import com.android.bluetooth.btservice.RemoteDevices.DeviceProperties;
@@ -526,11 +524,6 @@ class AdapterProperties {
        Log.d(TAG,
                "PROFILE_CONNECTION_STATE_CHANGE: profile=" + profile + ", device=" + device + ", "
                        + prevState + " -> " + state);
        String ssaid = Secure.getString(mService.getContentResolver(), Secure.ANDROID_ID);
        String combined = ssaid + device.getAddress();
        int obfuscated_id = combined.hashCode() & 0xFFFF; // Last two bytes only
        StatsLog.write(StatsLog.BLUETOOTH_CONNECTION_STATE_CHANGED,
                state, obfuscated_id, profile);
        if (!isNormalStateTransition(prevState, state)) {
            Log.w(TAG,
                    "PROFILE_CONNECTION_STATE_CHANGE: unexpected transition for profile=" + profile