Merge "Fix PowerMgr NPE on emulator."