Fix double free of play policy in a race condition.
The mPlayPolicy can be freed twice if there is a race condition.
mPlayPolicy should be protected with a mutex lock.
SafetyNet logging is not added to avoid log spamming. The
mutex lock is called whenever a license request is made.
That can happen quite often.
sts-tradefed run sts-engbuild-no-spl-lock -m StsHostTestCases -t android.security.sts.Poc21_01#testPocBug_176168330
Test: run sts test on master build
run sts test from http://go/ag/13308312
(cherry picked from commit 537144f77baad847d2c30be6436f94c917019e68)
(cherry picked from commit 4b86f1dbae158737cd05aa4d5b5634985534cfc3)
4 files changed