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

Commit f2433b1b authored by LuK1337's avatar LuK1337 Committed by Łukasz Patron
Browse files

AdbRootPreferenceController: Use ADBRootService::isSupported()

This allows us to show the preference in Settings even if
Build.IS_DEBUGGABLE is false.

Change-Id: I28f8a0fefc7b611ce7433de3dae5579abdb73274
parent fb6cf9d7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.settings.development;

import android.adb.ADBRootService;
import android.content.Context;
import android.os.Build;
import android.os.UserManager;

import androidx.preference.Preference;
@@ -51,7 +50,7 @@ public class AdbRootPreferenceController extends DeveloperOptionsPreferenceContr

    @Override
    public boolean isAvailable() {
        return Build.IS_DEBUGGABLE;
        return mADBRootService.isSupported();
    }

    @Override