1 /*
2  * Copyright (C) 2022 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 /**
18  * IBootDone - Interface for boot_done service in system_state_server
19  */
20 interface IBootDone {
21     /**
22      * Port - Port name for the tipc
23      */
24     const String PORT = "com.android.trusty.boot_done.tidl";
25 
26     /**
27      * set_boot_done() - Set value of boolean boot_done to 'true'
28      *
29      * This API allows the bootloader to notify Trusty TEE of the
30      * boot complete state, after which handoff to the HLOS happens.
31      * HLOS especially when unsigned, shall be granted a lower
32      * privilege than the bootloader.
33      * Upon being notified of the boot complete state, the TEE can
34      * update the Normal World access policy, for example gating
35      * connection to some ports or some specific APIs exposed by a port.
36      *
37      */
set_boot_done()38     void set_boot_done();
39 }
40