Issue 186618:run cts com.android.cts.appsecurity.DocumentsTest--testTree--fail5.1_r2
[root cause]in testTree method, the second writeFully(...) task may be
executed in the AsyncTask after readFully(...) task, or they may be
executed at the same time. Since the read and write operation is not
protected by synchronized. Two tasks running on different thread my
access doc.contents at the same time, and may lead to a null pointer
crash
[changesY] using AsyncTask.SERIAL_EXECUTOR instead of AsyncTask.THREAD_POOL_EXECUTOR

Change-Id: I2aa25c350960e010719b911094969e4662ce1a7a
1 file changed