summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Grover <joeygrover@gmail.com>2016-09-26 11:08:57 -0400
committerJoey Grover <joeygrover@gmail.com>2016-09-26 11:08:57 -0400
commit3688c6c1e3d60df91e0a795f3820a2699930a32a (patch)
tree3388ad3889922ad5a564801c16e366cdfe7e937a
parent019b7e39f34c9df887b4adc78a983dfdb7f2c11f (diff)
downloadsdl_android-feature/multiplexing_cleanup.tar.gz
Only allow alt transport in debug modefeature/multiplexing_cleanup
-rw-r--r--sdl_android_lib/src/com/smartdevicelink/transport/SdlRouterService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdl_android_lib/src/com/smartdevicelink/transport/SdlRouterService.java b/sdl_android_lib/src/com/smartdevicelink/transport/SdlRouterService.java
index 07974d540..ea62e19dc 100644
--- a/sdl_android_lib/src/com/smartdevicelink/transport/SdlRouterService.java
+++ b/sdl_android_lib/src/com/smartdevicelink/transport/SdlRouterService.java
@@ -654,7 +654,9 @@ public class SdlRouterService extends Service{
}
String requestType = intent.getAction();//intent.getIntExtra(TransportConstants.ROUTER_BIND_REQUEST_TYPE_EXTRA, TransportConstants.BIND_REQUEST_TYPE_CLIENT);
if(TransportConstants.BIND_REQUEST_TYPE_ALT_TRANSPORT.equals(requestType)){
- return this.altTransportMessenger.getBinder();
+ if(0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE)){ //Only allow alt transport in debug mode
+ return this.altTransportMessenger.getBinder();
+ }
}else if(TransportConstants.BIND_REQUEST_TYPE_CLIENT.equals(requestType)){
return this.routerMessenger.getBinder();
}else if(TransportConstants.BIND_REQUEST_TYPE_STATUS.equals(requestType)){