Merge "Document "Revoke USB debug authorizations"" into main

This commit is contained in:
Treehugger Robot
2024-01-24 23:24:58 +00:00
committed by Gerrit Code Review

View File

@@ -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);
}