From 6b655856e672904aad945d60d5e68df01fb984bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJKAST=E2=80=9D?= Date: Tue, 7 Nov 2023 15:52:02 -0500 Subject: [PATCH] Update javaDocs for deployNextRouterService in the RS --- .../com/smartdevicelink/transport/SdlRouterService.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java b/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java index 32dffe5d06..4692f307a8 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java @@ -1175,7 +1175,14 @@ public void onCreate() { } /** - * The method will attempt to start up the next router service in line based on the sorting criteria of best router service. + * The method will attempt to start up the next router service in line based on the sorting + * criteria of best router service. + * If a ParcelFileDescriptor is not null, we pass it along to the next RouterService to give + * it a chane to connected via AOA. This only happens on Android 14 and above when the app + * selected to host the RouterService does not satisfy the requirements for permission + * FOREGROUND_SERVICE_CONNECTED_DEVICE. By passing along the usbPfd, it will give the next + * RouterService selected a chance to connect. + * @param usbPfd a ParcelFileDescriptor used for AOA connections. */ protected void deployNextRouterService(ParcelFileDescriptor usbPfd) { List sdlAppInfoList = AndroidTools.querySdlAppInfo(getApplicationContext(), new SdlAppInfo.BestRouterComparator(), null);