fix: add bootevent

Signed-off-by: hxf233333 <huxiaofei11@huawei.com>
This commit is contained in:
hxf233333 2024-09-07 15:12:45 +08:00
parent 10c75c2f58
commit 522d40b2ce
4 changed files with 4 additions and 0 deletions

View File

@ -77,6 +77,7 @@
],
"gid" : ["system", "shell"],
"caps" : ["SYS_PTRACE", "KILL"],
"bootevents" : ["bootevent.powermgr.ready"],
"jobs" : {
"on-start" : "services:powermgr"
},

View File

@ -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

View File

@ -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

View File

@ -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;
}