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

Commit 8f4b20b1 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Android Git Automerger
Browse files

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

* commit '84bac0f7':
  Prevent non-system users from enabling Bluetooth HCI logging
parents 0208ca98 84bac0f7
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;
            }