mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-25 16:15:55 +03:00
[GH-ISSUE #1575] Android Studio SSL Proxy Not Working #1568
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1568
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AlanCPSC on GitHub (Mar 13, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1575
Description
I am unable to successfully set up SSL proxying for the Mac and Android Studio Emulator.
After exhausting all suggestions available on the website, I am now out of any further ideas.
Steps to Reproduce
Current Behavior
Expected Behavior
Environment
@AlanCPSC commented on GitHub (Mar 13, 2023):
Despite restarting multiple times and attempting to reinstall the certificates, no progress has been made.
Does anyone have any suggestions on how to effectively address this problem? 🤔
@AlanCPSC commented on GitHub (Mar 13, 2023):
Here is screenshot proof that I have configured certificate on both Mac & Emulator:

Here is screenshot error that I get each time I try to make a https request on Emulator:

@NghiaTranUIT commented on GitHub (Mar 13, 2023):
@AlanCPSC Can you try using the Automatic Script for Android Emulator 🤔
To make sure that it's installed & trusted properly.
The Emulator must not be an Google Play version.
@AlanCPSC commented on GitHub (Mar 13, 2023):
@NghiaTranUIT. I already installed it using the Automatic Script for Android Emulator.
I am able to connect inside the Android Emulator when I turn OFF SSL proxying:

I am NOT able to connect inside the Android Emulator when I turn ON SSL proxying:

@NghiaTranUIT commented on GitHub (Mar 13, 2023):
Do you have access to the Source code of your app? (Facebook Login)
It seems you're trying to intercept these famous apps (Facebook, Google, IG), and they're protected by SSL Pinning.
@AlanCPSC commented on GitHub (Mar 13, 2023):
But I have the same problem with EVERY https request. Including benign apps like https://httpbin.org/get.
Additionally, I am able to intercept these famous apps on MacOS Chrome. Just not through the Android Emulator.
@NghiaTranUIT commented on GitHub (Mar 13, 2023):
Can you try on this sample code: https://github.com/ProxymanApp/OKHTTP-Android-Sample
It's already added the res/xml/network_security_config.xml and AndroidManifest.xml
If you can intercept the HTTPS traffic from this app, it means you setup properly. The problem maybe from your app.
@NghiaTranUIT commented on GitHub (Mar 13, 2023):
Please note that Android Security is higher and trickier than the iOS app. You have to be the owner of your apps, which allows you to modify the
res/xml/network_security_config.xmlandAndroidManifest.xmlfiles.These files need to define the domain that you're owing too. It's not possible to intercept HTTPS traffic from Social website.
@AlanCPSC commented on GitHub (Mar 13, 2023):
@NghiaTranUIT
I discovered what was going on. Proxyman does not work with Mozilla's GeckoView for some reason.
I am not sure why, but when I switch back to using a standard Android WebView, I can intercept all SSL traffic again.
@AlanCPSC commented on GitHub (Mar 13, 2023):
Also regarding the claim "It's not possible to intercept HTTPS traffic from Social website."
I actually can - I just have to do it on a standard WebView. See the following screenshot:
If you fine folks can look into supporting Mozilla's GeckoView in the future, that would be wonderful.
@NghiaTranUIT commented on GitHub (Mar 14, 2023):
@AlanCPSC Firefox or Mozilla GeckoView required you to add Proxyman Certificate to their trust store.
Mozilla doesn't provide the UI to add the certificate, the above link is a workaround.
@AlanCPSC commented on GitHub (Mar 15, 2023):
@NghiaTranUIT Found the following additional threads regarding this issue:
Bug 1553265 - No way to bypass certificate error pages, such as self-signed certs
Bug 868370 - Provide a way to import user certificates from PKCS#12/PFX files
Closing this issue since the problem does not appear to be related to Proxyman. Thank you for your help.