commit | f584f014dbb281727fccfea10bc9c2539a752f17 | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Mon May 19 17:57:25 2014 -0700 |
committer | Amith Yamasani <yamasani@google.com> | Mon May 19 17:57:25 2014 -0700 |
tree | aafc0fa4c8433d0a9ef71aecafc380de0c7ff079 | |
parent | 0208462f7c5186544712dd2c84d4e4419a8c407a [diff] |
Allow adding a user while still removing other users When at the user limit, removing and adding a user causes a race condition where the deleted user is still being removed and adding another one fails. This change excludes deleted users from the counting to compare against the limit. Also fix an ArrayIndexOutOfBounds recently introduced in AppOpsService. Bug: 13282768 Change-Id: Ib79659e7604396583a280dbbc560b288a6d9051c