OSDN Git Service

AudioService: log focus changes and limit focus stack size
authorJean-Michel Trivi <jmtrivi@google.com>
Thu, 5 Oct 2017 19:19:23 +0000 (12:19 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Thu, 5 Oct 2017 21:25:52 +0000 (14:25 -0700)
commit0b67b9fad6733492ffab238a5ba12b98a696ef0c
treedef781a27f4dbc7cf7536cc9676646c17b9892b0
parentd675f51c72c230d701c14c7f953d38c3e9f1eb1c
AudioService: log focus changes and limit focus stack size

Log audio focus request and abandon commands.
Limit the size of the audio focus stack to prevent malicious
  applications trying to run the process out of memory.

Test: use media apps and speech reco, check dumpsys audio
Bug: 67055749
Change-Id: I529529fe40f33a8f67c64c3c61ba22d9530fb4d9
services/core/java/com/android/server/audio/AudioEventLogger.java
services/core/java/com/android/server/audio/MediaFocusControl.java