element-x-android icon indicating copy to clipboard operation
element-x-android copied to clipboard

debug proxy mitm

Open rotekii opened this issue 1 year ago • 2 comments

Steps to reproduce

I'm trying to follow the steps in https://github.com/element-hq/element-x-android/blob/develop/docs/debug_proxying.md but i can't seem to find RustMatrixClientFactory.create() method.

Outcome

I only find this io.element.android.libraries.matrix.impl.RustMatrixClientFactory$create$2.

RustMatrixClientFactory_Method.txt

I'm not sure if it means the same thing and if so how to do other steps: Add .disableSslVerification() in the ClientBuilder method chain.

Your phone model

Google Nexus (emulator)

Operating system version

Android 10

Application version and app store

Element X version 0.4.10

Homeserver

No response

Will you send logs?

Yes

Are you willing to provide a PR?

Yes

rotekii avatar May 07 '24 11:05 rotekii

Those instructions are meant for developers of the app using its source code, not for using JADX for reverse engineering, modifying it and then repacking and installing the app. It could technically still be done, but not in an easy way.

You can download the source code in this repo, modify the Client builder here, then build the app and install it in your device, but since the APK signatures won't match you'll probably have to replace your current install and it'll erase the local data in your device.

jmartinesp avatar May 07 '24 14:05 jmartinesp

is there any other way to intercept it for non developers, I have tried tools like HttpToolkit and Owasp ZAP but none seem to be working for ElementX, but somehow they work fine with Element.

rotekii avatar May 07 '24 16:05 rotekii