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

Commit 5d8940d6 authored by Andre Eisenbach's avatar Andre Eisenbach
Browse files

Prevent non-system users from enabling Bluetooth HCI logging

Bug: 18643224
Change-Id: I990aa3dac478d332f565496d0353c9677ea85d46
parent 96da8e36
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1075,9 +1075,8 @@ public class AdapterService extends Service {
        }

        public boolean configHciSnoopLog(boolean enable) {
            if ((Binder.getCallingUid() != Process.SYSTEM_UID) &&
                (!Utils.checkCaller())) {
                Log.w(TAG, "configHciSnoopLog() - Not allowed for non-active user");
            if (Binder.getCallingUid() != Process.SYSTEM_UID) {
                Log.w(TAG, "configHciSnoopLog() - Not allowed for non-system user");
                return false;
            }