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
Loading
Please register or sign in to comment