Skip to content

Commit c703a1e

Browse files
Ashok-Varmatemawi
authored andcommittedApr 22, 2024
cronet: @JavaDoc update android permission MODIFY_NETWORK_ACCOUNTING (deprecated) => UPDATE_DEVICE_STATS
1 parent 5a8da19 commit c703a1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎cronet/src/main/java/io/grpc/cronet/CronetChannelBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ final CronetChannelBuilder setTrafficStatsTag(int tag) {
173173
* Sets specific UID to use when accounting socket traffic caused by this channel. See {@link
174174
* android.net.TrafficStats} for more information. Designed for use when performing an operation
175175
* on behalf of another application. Caller must hold {@link
176-
* android.Manifest.permission#MODIFY_NETWORK_ACCOUNTING} permission. By default traffic is
176+
* android.Manifest.permission#UPDATE_DEVICE_STATS} permission. By default traffic is
177177
* attributed to UID of caller.
178178
*
179179
* <p><b>NOTE:</b>Setting a UID disallows sharing of sockets with channels with other UIDs, which

‎cronet/src/main/java/io/grpc/cronet/InternalCronetChannelBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static void setTrafficStatsTag(CronetChannelBuilder builder, int tag) {
4747
* Sets specific UID to use when accounting socket traffic caused by this channel. See {@link
4848
* android.net.TrafficStats} for more information. Designed for use when performing an operation
4949
* on behalf of another application. Caller must hold {@link
50-
* android.Manifest.permission#MODIFY_NETWORK_ACCOUNTING} permission. By default traffic is
50+
* android.Manifest.permission#UPDATE_DEVICE_STATS} permission. By default traffic is
5151
* attributed to UID of caller.
5252
*
5353
* <p><b>NOTE:</b>Setting a UID disallows sharing of sockets with channels with other UIDs, which

0 commit comments

Comments
 (0)
Please sign in to comment.