Acquire the full wakelock only during user confirmation request
Use Case:
1. Create obex connection from remote to DUT.
2. Dont transfer any file and wait for the screentimeout.
3. Check if device goes to suspend.
Failure:
Device does not go to suspend mode if OPP connection is present.
Root Cause:
Acquire the full wakelock when user confirmation is required and
not during opp connection request.
Fix:
Obex server session will acquire the full wakelock only when user
confirmation is required. Otherwise, if session acquires the full
wakelock during connect request and did not receives the PUT
request from remote full wakelock will not be released. In this
scenario DUT will not go to suspend and cause battery drain.
Bug: 21896912
Change-Id: I17b90b206016c2a34d724393ac3b17a41983722c
1 file changed