Change SSL server port to avoid BindException
Android TV mediashell listens on port 9000.
test_android_CVE_2017_13309 generates BindException and followed by
lots of NotYetBoundException when tries to bind and accept on port 9000.
Bug: 114292047
Test: run cts -m CtsSecurityTestCases
-t android.security.cts.SSLConscryptPlainTextExposureTest#test_android_CVE_2017_13309
Change-Id: Idd13379037553b71da66ee90bade10c9f2b16a15
Signed-off-by: Kevin Wang <wk091218@gmail.com>
diff --git a/tests/tests/security/src/android/security/cts/SSLConscryptPlainTextExposureTest.java b/tests/tests/security/src/android/security/cts/SSLConscryptPlainTextExposureTest.java
index 8f6477e..5002a72 100644
--- a/tests/tests/security/src/android/security/cts/SSLConscryptPlainTextExposureTest.java
+++ b/tests/tests/security/src/android/security/cts/SSLConscryptPlainTextExposureTest.java
@@ -98,7 +98,7 @@
public SocketChannel socketChannel;
public SSLEngine clientEngine;
public String remoteAddress = "127.0.0.1";
- public int port = 9000;
+ public int port = 7000;
public ByteBuffer[] dataOutAppBuffers = new ByteBuffer[3];
public ByteBuffer dataOutNetBuffer;
public ByteBuffer hsInAppBuffer, hsInNetBuffer, hsOutAppBuffer, hsOutNetBuffer;
@@ -492,7 +492,7 @@
public ByteBuffer dataInAppBuffer, dataInNetBuffer;
final String hostAddress = "127.0.0.1";
- public int port = 9000;
+ public int port = 7000;
public boolean bActive = false;
public Selector selector;