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

Commit 3711c6c0 authored by kopriva's avatar kopriva Committed by android-build-merger
Browse files

docs: added Android P behavior change note to untagSocket reference

am: 5ad001eb

Change-Id: I814224210475078c4ab01f53e42202a538c8a444
parents bdb8a3b4 5ad001eb
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -329,6 +329,14 @@ public class TrafficStats {


    /**
    /**
     * Remove any statistics parameters from the given {@link Socket}.
     * Remove any statistics parameters from the given {@link Socket}.
     * <p>
     * In Android 8.1 (API level 27) and lower, a socket is automatically
     * untagged when it's sent to another process using binder IPC with a
     * {@code ParcelFileDescriptor} container. In Android 9.0 (API level 28)
     * and higher, the socket tag is kept when the socket is sent to another
     * process using binder IPC. You can mimic the previous behavior by
     * calling {@code untagSocket()} before sending the socket to another
     * process.
     */
     */
    public static void untagSocket(Socket socket) throws SocketException {
    public static void untagSocket(Socket socket) throws SocketException {
        SocketTagger.get().untag(socket);
        SocketTagger.get().untag(socket);