Merge "[CDM] Gate hidden test API behind a permission" into udc-dev

This commit is contained in:
Raphael Kim
2023-05-12 22:23:25 +00:00
committed by Android (Google) Code Review

View File

@@ -1331,10 +1331,12 @@ public final class CompanionDeviceManager {
/** /**
* Enable or disable secure transport for testing. Defaults to enabled. * Enable or disable secure transport for testing. Defaults to enabled.
* Should not be used outside of testing.
* *
* @param enabled true to enable. false to disable. * @param enabled true to enable. false to disable.
* @hide * @hide
*/ */
@RequiresPermission(android.Manifest.permission.MANAGE_COMPANION_DEVICES)
public void enableSecureTransport(boolean enabled) { public void enableSecureTransport(boolean enabled) {
try { try {
mService.enableSecureTransport(enabled); mService.enableSecureTransport(enabled);