Merge "Add confirmation UI protocol to Keystore AIDL definition"

This commit is contained in:
TreeHugger Robot
2018-01-25 17:31:38 +00:00
committed by Android (Google) Code Review
5 changed files with 85 additions and 1 deletions

View File

@@ -11,7 +11,8 @@ filegroup {
// only used by key_store_service
cc_library_shared {
name: "libkeystore_aidl",
srcs: ["android/security/IKeystoreService.aidl"],
srcs: ["android/security/IKeystoreService.aidl",
"android/security/IConfirmationPromptCallback.aidl"],
aidl: {
export_aidl_headers: true,
include_dirs: [

View File

@@ -0,0 +1,27 @@
/**
* Copyright (c) 2017, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.security;
/**
* This must be kept manually in sync with system/security/keystore until AIDL
* can generate both Java and C++ bindings.
*
* @hide
*/
interface IConfirmationPromptCallback {
oneway void onConfirmationPromptCompleted(in int result, in byte[] dataThatWasConfirmed);
}

View File

@@ -81,4 +81,7 @@ interface IKeystoreService {
in String wrappingKeyAlias, in byte[] maskingKey, in KeymasterArguments arguments,
in long rootSid, in long fingerprintSid,
out KeyCharacteristics characteristics);
int presentConfirmationPrompt(IBinder listener, String promptText, in byte[] extraData,
in String locale, in int uiOptionsAsFlags);
int cancelConfirmationPrompt(IBinder listener);
}