facebook / flipper

A desktop debugging platform for mobile developers.
https://fbflipper.com/
MIT License
13.33k stars 952 forks source link

Failed to start client connection: Failed to exchange certificate with /APP_NAME/ in android real device #5559

Open NagVuddi opened 5 months ago

NagVuddi commented 5 months ago

I am getting the below error after adding Flipper to the Android application, "Failed to start client connection: Failed to exchange certificate with /APP_NAME/ on Device- 11 - API 30: Error: No matching device found for app"

Below are the connectivity logs from Flipper desktop client,

Certificate Signing Request being processed Ensure OpenSSL is available Obtain CA certificate Deploy CA certificate to application sandbox Deploying file 'sonarCA.crt' to device at '/data/user/0/package_name/files/sonar/' Query available devices via adb cat '/data/user/0/package_name/files/sonar/app.csr' Unable to find a matching device for the incoming request Failed to exchange certificate,Error: No matching device found for app: /package_name/ Insecure websocket connection attempt: /app_name/ on unknown. Insecure connection attempt

Note: The device is not rooted and the application is installed in "system/priv-app" folder

OpenSSL was installed and the same application worked on rooted devices.

Android studio-generated APK is working as expected. .\gradlew build generated APK with singing is not working as expected.

Android version: 11 Windows: 10 Flipper desktop version: 0.239.0 Flipper Android version: 0.190.0

Please provide a solution for this issue.

TReX24 commented 2 months ago

We have the same issue. Any updates here???

diskree commented 2 months ago

Any progress?

kj71 commented 2 months ago

I was getting kind of similar issue, when I was debugging my app from my Android device's work profile. On personal profile, it is working fine.