Loading libs/binder/AppOpsManager.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -42,7 +42,7 @@ static sp<IBinder> gToken; static const sp<IBinder>& getToken(const sp<IAppOpsService>& service) { static const sp<IBinder>& getToken(const sp<IAppOpsService>& service) { pthread_mutex_lock(&gTokenMutex); pthread_mutex_lock(&gTokenMutex); if (gToken == NULL) { if (gToken == NULL || gToken->pingBinder() != NO_ERROR) { gToken = service->getToken(new BBinder()); gToken = service->getToken(new BBinder()); } } pthread_mutex_unlock(&gTokenMutex); pthread_mutex_unlock(&gTokenMutex); Loading Loading
libs/binder/AppOpsManager.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -42,7 +42,7 @@ static sp<IBinder> gToken; static const sp<IBinder>& getToken(const sp<IAppOpsService>& service) { static const sp<IBinder>& getToken(const sp<IAppOpsService>& service) { pthread_mutex_lock(&gTokenMutex); pthread_mutex_lock(&gTokenMutex); if (gToken == NULL) { if (gToken == NULL || gToken->pingBinder() != NO_ERROR) { gToken = service->getToken(new BBinder()); gToken = service->getToken(new BBinder()); } } pthread_mutex_unlock(&gTokenMutex); pthread_mutex_unlock(&gTokenMutex); Loading