OSDN Git Service

Move markSocketAsUser to the top of IConnectivityManager.aidl
authorChad Brubaker <cbrubaker@google.com>
Tue, 16 Jul 2013 18:22:32 +0000 (11:22 -0700)
committerChad Brubaker <cbrubaker@google.com>
Tue, 16 Jul 2013 18:29:11 +0000 (11:29 -0700)
Move markSocketAsUser to the top of IConnectivityManager.aidl to make
calls from
framework/native/services/connectivitymanager less fragile

Change-Id: Iba92c21dfef175b570521f34e7ee2732e5a0a9c9

core/java/android/net/IConnectivityManager.aidl

index 7ee10c3..d537b32 100644 (file)
@@ -37,6 +37,9 @@ import com.android.internal.net.VpnProfile;
 /** {@hide} */
 interface IConnectivityManager
 {
+    // Keep this in sync with framework/native/services/connectivitymanager/ConnectivityManager.h
+    void markSocketAsUser(in ParcelFileDescriptor socket, int uid);
+
     void setNetworkPreference(int pref);
 
     int getNetworkPreference();
@@ -119,8 +122,6 @@ interface IConnectivityManager
 
     boolean prepareVpn(String oldPackage, String newPackage);
 
-    void markSocketAsUser(in ParcelFileDescriptor socket, int uid);
-
     ParcelFileDescriptor establishVpn(in VpnConfig config);
 
     void startLegacyVpn(in VpnProfile profile);