Merge "Synchronize mPermissions to void NullPointerException." am: 9e7c6b3865
am: 34662c81ca

Change-Id: I61062a7141267d4bd246576b1e7379a1fe4951b5