mirror of
https://gitee.com/openharmony/powermgr_power_manager
synced 2024-11-27 09:13:03 +00:00
fix: add bootevent
Signed-off-by: hxf233333 <huxiaofei11@huawei.com>
This commit is contained in:
parent
10c75c2f58
commit
522d40b2ce
@ -77,6 +77,7 @@
|
||||
],
|
||||
"gid" : ["system", "shell"],
|
||||
"caps" : ["SYS_PTRACE", "KILL"],
|
||||
"bootevents" : ["bootevent.powermgr.ready"],
|
||||
"jobs" : {
|
||||
"on-start" : "services:powermgr"
|
||||
},
|
||||
|
@ -11,6 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
bootevent.powermgr.ready=false
|
||||
persist.powermgr.stopservice = false
|
||||
persist.dfx.userclicktime = 0
|
||||
persist.dfx.shutdownactiontime = 0
|
||||
|
@ -11,6 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
bootevent.powermgr.ready = powermgr:powermgr:0775
|
||||
persist.powermgr. = powermgr:powermgr:0775
|
||||
persist.dfx.userclicktime = powermgr:powermgr:0776
|
||||
persist.dfx.shutdownactiontime = powermgr:powermgr:0776
|
||||
|
@ -122,6 +122,7 @@ bool PowerMgrService::Init()
|
||||
screenOffPreController_ = std::make_shared<ScreenOffPreController>(powerStateMachine_);
|
||||
screenOffPreController_->Init();
|
||||
}
|
||||
system::SetParameter("bootevent.powermgr.ready", "true");
|
||||
POWER_HILOGI(COMP_SVC, "Init success");
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user