diff options
| author | 2022-07-11 10:01:00 -0700 | |
|---|---|---|
| committer | 2022-07-11 13:59:35 -0700 | |
| commit | 292f9373007d54ccb482a632298accd1a5bcb2d4 (patch) | |
| tree | 4655d1dd3c2fb600ecf3de2cae893c6e6303303b /libs/androidfw/misc.cpp | |
| parent | b37c41d36b777d144d0433b2a16702844cbbc35b (diff) | |
Limit the max number of service connection a process can bind to
services to be 3000.
This limits the max number of outgoing ServiceConnection a process is allowed to bind to a service (or multiple services) by bindService() calls.
1. Add device_config key "max_service_connections_per_process" to set
mMaxServiceConnectionsPerProcess, the default value is 3000.
2. If the per process max session connection is exceeded, Context.bindService()
calls returns false and the service connection is not connected.
Bug: 236039413
Test: atest cts/tests/app/src/android/app/cts/ServiceTest.java#testMaxServiceConnections
Change-Id: I9a4e97a4edaa8f2a52bf67b19ce3948d0ebcfdea
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions