Skip to content

AWS Device Farm - Disable Proxy

0

Hi,

Using AWS Device Farm, our Android app is having trouble connecting to Firebase because it detects that calls are coming from Amazon instead of a physical device. We've tried disabling the proxy to allow a direct connection like a real user would do, but we haven't been able to disable it using the custom test environments (or without them). How can we achieve this?

Thanks

asked 2 years ago364 views

1 Answer
0

Unfortunately, AWS Device Farm does not provide a direct way to disable the proxy for network connections from the devices it uses for testing. This can indeed cause issues with services like Firebase that may detect the traffic as coming from Amazon rather than a physical device.

However, there are a few potential workarounds you could consider:

  1. For Android devices, you can use private devices in AWS Device Farm. When using private devices, you have the option to select "Skip app re-signing" when creating your test run or remote access session. This may help bypass some of the proxy-related issues.

  2. You could set up a man-in-the-middle proxy within your custom test environment. This would allow you to capture and analyze network traffic, and potentially modify it to appear more like traffic from a physical device. However, this method is only available for Android devices in custom environment mode.

  3. If you're using Selenium for web app testing, you can use the standard Selenium desired capability to configure the browser to connect through a specific proxy. You would need to ensure that your proxy allows the browser to connect to it, typically by allowlisting your IP addresses.

  4. As a last resort, you might consider adding logging or debugging statements to your application code to help diagnose the exact nature of the connection issues with Firebase.

If these workarounds don't solve your specific issue, it would be advisable to open a technical support case with AWS Device Farm. Provide them with the details of your use case, and they may be able to offer more tailored assistance or additional workarounds.

Remember that completely disabling the proxy might not be possible due to how AWS Device Farm is designed to work, but these alternatives might help you achieve your testing goals.

Sources
How to intercept the network outgoing request from AWS device farm | AWS re:Post
Skipping app re-signing on private devices in AWS Device Farm - AWS Device Farm

answered 2 years ago

AWS
SUPPORT ENGINEER

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.