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

Commit 85c60def authored by Janis Danisevskis's avatar Janis Danisevskis
Browse files

Keystore 2.0: Make Bluetooth app ready for Keystore 2.0 part 2.

No more specifying UIDs for Keystore. Bluetooth is running as
AID_BLUETOOTH, so it is using this namespace implicitly.

Bug: 181841596
Bug: 159476193
Test: Successfully pair new device.
Change-Id: I966325fbe77dd6c0fc128f08bc98245d86927212
parent 84b2b2ba
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package com.android.bluetooth.btservice.bluetoothkeystore;

import android.annotation.Nullable;
import android.os.Process;
import android.os.SystemProperties;
import android.security.keystore.KeyGenParameterSpec;
import android.security.keystore.KeyProperties;
@@ -821,7 +820,6 @@ public class BluetoothKeystoreService {
                        .setBlockModes(KeyProperties.BLOCK_MODE_GCM)
                        .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_NONE)
                        .setKeySize(KEY_LENGTH)
                        .setUid(Process.BLUETOOTH_UID)
                        .build();

                keyGenerator.init(keyGenParameterSpec);