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

Commit 9572d875 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android Git Automerger
Browse files

am 8f4b20b1: am 84bac0f7: am 5d8940d6: Prevent non-system users from enabling Bluetooth HCI logging

* commit '8f4b20b1':
  Prevent non-system users from enabling Bluetooth HCI logging
parents d25d877c 8f4b20b1
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1062,9 +1062,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;
            }