Skip to content

Commit 6b65585

Browse files
committed
Update javaDocs for deployNextRouterService in the RS
1 parent 8b16303 commit 6b65585

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

android/sdl_android/src/main/java/com/smartdevicelink/transport/SdlRouterService.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,14 @@ public void onCreate() {
11751175
}
11761176

11771177
/**
1178-
* The method will attempt to start up the next router service in line based on the sorting criteria of best router service.
1178+
* The method will attempt to start up the next router service in line based on the sorting
1179+
* criteria of best router service.
1180+
* If a ParcelFileDescriptor is not null, we pass it along to the next RouterService to give
1181+
* it a chane to connected via AOA. This only happens on Android 14 and above when the app
1182+
* selected to host the RouterService does not satisfy the requirements for permission
1183+
* FOREGROUND_SERVICE_CONNECTED_DEVICE. By passing along the usbPfd, it will give the next
1184+
* RouterService selected a chance to connect.
1185+
* @param usbPfd a ParcelFileDescriptor used for AOA connections.
11791186
*/
11801187
protected void deployNextRouterService(ParcelFileDescriptor usbPfd) {
11811188
List<SdlAppInfo> sdlAppInfoList = AndroidTools.querySdlAppInfo(getApplicationContext(), new SdlAppInfo.BestRouterComparator(), null);

0 commit comments

Comments
 (0)