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

Commit 89142290 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "NetworkStackClient: Allow modules with network_stack uid"

parents 1adf5f04 4c854cfb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -488,7 +488,9 @@ public class NetworkStackClient {
    private void requestConnector(@NonNull NetworkStackCallback request) {
        // TODO: PID check.
        final int caller = Binder.getCallingUid();
        if (caller != Process.SYSTEM_UID && !UserHandle.isSameApp(caller, Process.BLUETOOTH_UID)
        if (caller != Process.SYSTEM_UID
                && caller != Process.NETWORK_STACK_UID
                && !UserHandle.isSameApp(caller, Process.BLUETOOTH_UID)
                && !UserHandle.isSameApp(caller, Process.PHONE_UID)) {
            // Don't even attempt to obtain the connector and give a nice error message
            throw new SecurityException(