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

Commit d11378c7 authored by William Escande's avatar William Escande
Browse files

KeystoreService: stop calling NativeInterface in test

Bug: 295237486
Test: atest BluetoothKeystoreServiceTest
Change-Id: I105176e2b8cd214746c73bc6c3c8db95c729281e
parent 99afec48
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.bluetooth.btservice.bluetoothkeystore;

import android.util.Log;

import com.android.bluetooth.Utils;

import java.io.IOException;
import java.security.NoSuchAlgorithmException;
@@ -29,8 +30,12 @@ public class BluetoothKeystoreNativeInterface {
    private BluetoothKeystoreService mBluetoothKeystoreService = null;

    static {
        if (Utils.isInstrumentationTestMode()) {
            Log.w(TAG, "App is instrumented. Skip loading the native");
        } else {
            classInitNative();
        }
    }

    /**
     * Initializes the native interface.