AppOps: fix deadlock issue when showing dialog
WindowManagerService need call PowerManagerService to release wakelock. The Notifier in PowerManagerService need call AppOpsService to notify holding wakelock ops is finished. Meanwhile, AppOpsService may need call WindowManagerService to show dialog. This scenario will lead to deadlock issue. To move showing dialog action out of lock section to fix this issue. Since only UI work is moved out of lock area, it is supposed to be safe. Change-Id: I3f2bf4b9c9d81914cfd3c0fc3fc76d0b4a06a1f6 CRs-fixed: 786466
Loading
Please register or sign in to comment