Merge "Document "Revoke USB debug authorizations"" into main
This commit is contained in:
@@ -52,6 +52,9 @@ public class ClearAdbKeysPreferenceController extends DeveloperOptionsPreference
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
// If the build is insecure (any -user build, 'ro.adb.secure=0'), adbd does not
|
||||
// requests/store authorizations. There is no need for a "revoke authorizations"
|
||||
// button.
|
||||
return AdbProperties.secure().orElse(false);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user