Binder count in audioserver will increase more and more when recording.

AudioPolicy will use startRecording/stopRecording in startInput,stopInput
function and resolveAttributionSource function will make a new binder each time
for start/finish recording.

The new binder, which create in startRecording, will be held in
PermissionManagerService and couldn't be remove when finishRecording,because
finishRecording also make another new binder instance.
we should make binder use the same instance when use startRecording and
stopRecording.

Test: AudioRecord
Bug: 205058577
Change-Id: I5e36b3063c2c89e72654acdac2cfb736de579f01
1 file changed