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

Commit 8e691242 authored by Sreeram Ramachandran's avatar Sreeram Ramachandran
Browse files

Use a better and more direct API to mark a socket as if it were a user's.

Change-Id: If525ee259b74314191d1913f7c2a3e828e05c38f
parent bb37e1ce
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -65,16 +65,15 @@ LOCAL_C_INCLUDES:= \
        $(TOP)/frameworks/av/include/media/stagefright/timedtext \
        $(TOP)/frameworks/native/include/media/hardware \
        $(TOP)/frameworks/native/include/media/openmax \
        $(TOP)/frameworks/native/services/connectivitymanager \
        $(TOP)/external/flac/include \
        $(TOP)/external/tremolo \
        $(TOP)/external/openssl/include \
        $(TOP)/external/libvpx/libwebm \
        $(TOP)/system/netd/include \

LOCAL_SHARED_LIBRARIES := \
        libbinder \
        libcamera_client \
        libconnectivitymanager \
        libcutils \
        libdl \
        libdrmframework \
@@ -84,6 +83,7 @@ LOCAL_SHARED_LIBRARIES := \
        libicuuc \
        liblog \
        libmedia \
        libnetd_client \
        libopus \
        libsonivox \
        libssl \
+2 −2
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
#include <cutils/properties.h>
#include <cutils/qtaguid.h>

#include <ConnectivityManager.h>
#include <NetdClient.h>

namespace android {

@@ -122,7 +122,7 @@ void HTTPBase::UnRegisterSocketUserTag(int sockfd) {

// static
void HTTPBase::RegisterSocketUserMark(int sockfd, uid_t uid) {
    ConnectivityManager::markSocketAsUser(sockfd, uid);
    setNetworkForUser(uid, sockfd);
}

// static