Closed Bug 1181893 Opened 9 years ago Closed 6 years ago

Unable call mozPower.reboot、mozPower.powerOff、mozPower.Restart from other certified apps

Categories

(Firefox OS Graveyard :: Gaia::System::Power Mgmt, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Chenguoqiang, Unassigned)

References

Details

Unable call mozPower.reboot、mozPower.powerOff、mozPower.reboot from other certified apps.
Summary: Unable call mozPower.reboot、mozPower.powerOff、mozPower.reboot from other certified apps → Unable call mozPower.reboot、mozPower.powerOff、mozPower.Restart from other certified apps
Because these functions call func StartForceQuitWatchdog (http://mxr.mozilla.org/mozilla-b2g37_v2_2/source/hal/Hal.cpp#632), this func must run on main process & main thread.

PowerManagerService::PowerOff()
http://mxr.mozilla.org/mozilla-b2g37_v2_2/source/dom/power/PowerManagerService.cpp#145
See Also: → 1148470
See Also: 1148470
See Also: → 1148740
Hi Guoqiang:

Would you help check if the information in 1148740 can answer your question? That was asked recently from your team and it looks to me they are related questions?

Also would you help me know what's the scenario you try to use a App to control device's power? (restart, poweroff, etc.)
Flags: needinfo?(Chenguoqiang)
Dear Wehuang,

It's the same questions
Flags: needinfo?(Chenguoqiang)
Thanks Guoqiang's confirmation!
Depends on: 1382955
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.