Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0538ddc4 authored by Qi Wu's avatar Qi Wu Committed by Janis Danisevskis
Browse files

Limited use key: feature files

Add files for limited use key feature. So that the app
developer can know whether KeyMint cannot enforce this
feature in hardware, can only enforce when count == 1
or can enforce with any number of count(>=1).

Bug: b/174140443
Test: compile
Change-Id: I33349c4f968fa7b16055acd3db2e0cb80c0c5df1
parent 87eb2c41
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2021 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.
-->

<!-- Feature for devices with KeyMint that can enforce limited use key
     in hardware with any max usage count (including count equals to 1). -->
<permissions>
    <feature name="android.hardware.keystore.limited_use_key" />
</permissions>
 No newline at end of file
+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2021 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.
-->

<!-- Feature for devices with KeyMint that only can enforce limited use key
     in hardware with max usage count equals to 1. -->
<permissions>
    <feature name="android.hardware.keystore.single_use_key" />
</permissions>
 No newline at end of file