1 /* 2 * Copyright 2021 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 package com.android.microdroid.testservice; 17 18 /** {@hide} */ 19 interface ITestService { 20 const int SERVICE_PORT = 5678; 21 22 /* add two integers. */ addInteger(int a, int b)23 int addInteger(int a, int b); 24 25 /* read a system property. */ readProperty(String prop)26 String readProperty(String prop); 27 28 /* get the VM's stable secret, this is _only_ done for testing. */ insecurelyExposeSealingCdi()29 byte[] insecurelyExposeSealingCdi(); 30 31 /* get the VM's attestation secret, this is _only_ done for testing. */ insecurelyExposeAttestationCdi()32 byte[] insecurelyExposeAttestationCdi(); 33 34 /* get the VM's boot certificate chain (BCC). */ getBcc()35 byte[] getBcc(); 36 } 37