• Nick Pelly's avatar
    Fix NFC service wake-lock, again. · 2edb3ee5
    Nick Pelly authored
    1) Put a watchdog on the NFC Service disable path.
    All the bug-reports show we were stuck in _disable(), watch-dog
    this path (10 seconds).
    
    2) Only attempt a SE reset once, even if it fails the first time.
    All the bugs reports should the _disable() was due to SE reset
    on first boot.
    
    3) Grab the NFC service lock before the wake-lock.
    So even if someone has NFC service lock, at least we don't
    hold a wake-lock waiting for it.
    
    Bug: 4581084
    Change-Id: Ic9829dddde8d0c67cf0e8e4912357fa2902faa11
    2edb3ee5
NativeNfcManager.java 4.42 KB