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

Commit 4484a68a authored by William Escande's avatar William Escande
Browse files

Bluetooth: Do not load jni in instrumented test

Bug: 295237486
Test: atest BluetoothInstrumentationTests
Change-Id: Iee66ef185e511cfdb5d405c7382e8e23c33c206c
parent a5b94fea
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -13,16 +13,13 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @hide
 */

package com.android.bluetooth.btservice;

import android.app.Application;
import android.util.Log;

import com.android.bluetooth.Utils;

public class AdapterApp extends Application {
    private static final String TAG = "BluetoothAdapterApp";
    private static final boolean DBG = false;
@@ -33,8 +30,12 @@ public class AdapterApp extends Application {
        if (DBG) {
            Log.d(TAG, "Loading JNI Library");
        }
        if (Utils.isInstrumentationTestMode()) {
            Log.w(TAG, "App is instrumented. Skip loading the native");
        } else {
            System.loadLibrary("bluetooth_jni");
        }
    }

    public AdapterApp() {
        super();