Closed StanislavMayorov closed 4 months ago
@StanislavMayorov can you verify the Proxyman Certificate is installed in Setting app -> Security -> Encryption & Credential -> Trusted Certificate -> User Tab?
May I ask: If you finish the step 5 in the Android docs: https://docs.proxyman.io/debug-devices/android-device
to your android app source code?
@StanislavMayorov I tested again and it works fine with Android API 34
@NghiaTranUIT thank you for reply. I tested OKHTTP-Android-Sample and reproduced the same error like in my app.
OKHTTP-Android-Sample Error:
Request failed:
java.security.cert.CertPathValidatorException
Trust anchor for certification path not found
@StanislavMayorov can you verify the Proxyman Certificate is installed in Setting app -> Security -> Encryption & Credential -> Trusted Certificate -> User Tab?
May I ask: If you finish the step 5 in the Android docs: https://docs.proxyman.io/debug-devices/android-device
- Add res/xml/network_security_config.xml
- Add to AndroidManifest.xml
to your android app source code?
Yes. So my app works on android API 33. I tested using OKHTTP-Android-Sample to have the same env.
It's odd. Let me try again with your emulator (Created by Other Image Tab -> Upsidedown Cake, API 34, Google APIs).
Mime was created from the Recommended Tab.
@StanislavMayorov it just works fine again with the sample code, that I provide you.
There is something odd, the first request always fails. If you re-send the GET request again, it will work.
@NghiaTranUIT I got it. I can reproduce it only on the new Medium phone
template! It works fine on pixel 7
with the same API SDK. I have android studio 2023.1.1. Medium phone
template is a new one.
@StanislavMayorov
Medium Phone doesn't work with Proxyman because it's a PlayStore version. Pixel phone works fine because it's not 👍
@NghiaTranUIT pixel 7 has the same play store icon, but it works fine with Google API image.
@NghiaTranUIT Hello. Pixel 7 and Medium Phone have the same play store icon. Could you explain the difference please?
Sorry, I don't know honestly. I guess it's how Medium Phone Emulator works, it doesn't allow the Mitm app to decrypt their data. You can try with other proxy apps, like Charles Proxy.
May I ask: Why do you need to use the Medium
Phone? Can we try the Pixel phone with the same API? 🤔
@NghiaTranUIT I can use pixel
instead of Medium Phone
. Pixel works fine with the same API. I hadn't just known about this compatibility issue. It had been confusing.
Can you update this comment to describe that only pixel emulator is supported please?
Sure, I will add this note. For now, I might update the online documentation first 👍
thank you!
Description
@NghiaTranUIT hello. SSL proxy doesn't works for android 14 emulator (Google API). It works fine for android 13. There's no error in the patch script.
Steps to Reproduce
Current Behavior
SSL proxy doesn't work.
Expected Behavior
SSL proxy works.
Environment