Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ecovacs Home 2.4.4 for Android shows Java error on login #138

Open
nauman73 opened this issue Aug 23, 2023 · 3 comments
Open

Ecovacs Home 2.4.4 for Android shows Java error on login #138

nauman73 opened this issue Aug 23, 2023 · 3 comments

Comments

@nauman73
Copy link

nauman73 commented Aug 23, 2023

Describe the bug
Ecovacs Home 2.4.4 for Android shows Java error seen in attached screen capture ("Value Y of type java.lang.String cannot be converted to JSONObject(null,-1)") when I click the Log In button. I do not face this problem when using Ecovacs Home 2.0.0 on same Android device.

To Reproduce
Steps to reproduce the behavior:

  1. Install Ecovacs Home 2.4.4 on Android device. Device should already have bumper CA certificate. In my case I am using Android 6.0.
  2. Run the app and accept the agreements/policy statements. Login screen will display.
  3. Fill the email and password fields and click Log In button.
  4. Java error appears, and app does not login.

Expected behavior
Expect the app to login and proceed to list of robots.

Screenshots
Screenshot attached.
App_Error

Desktop (please complete the following information):

  • App OS: Android 6.0
  • Bumper OS: Docker image on Linux

Smartphone (please complete the following information):

  • Device: Samsung Galaxy Note 4
  • OS: Android 6.0

Vacuum (please complete the following information):

  • Model: Deebot Ozmo 920

Additional context
I am using old device so I can install bumper certificate on Android 6.0 without rooting my device.

@lehoangnb
Copy link

lehoangnb commented Aug 29, 2023

Change this json response value to "value": "{\"publicKey\":\"public key or something\"}"
bumper_confserver_v1_private_common.py

@nauman73
Copy link
Author

@lehoangnb : Thanks for your response. Should I put the literal string "public key or something" or should I replace it with the public key of the bumper certificate? I am using docker image so I am not sure how to propagate this change to docker image.

@lehoangnb
Copy link

lehoangnb commented Sep 5, 2023

@lehoangnb : Thanks for your response. Should I put the literal string "public key or something" or should I replace it with the public key of the bumper certificate? I am using docker image so I am not sure how to propagate this change to docker image.

I have decrypted the packet from ecovacs app to the server using mitm, I see that is a random string like md5.
Just change the file and rebuild docker image
If u dont want to change anything, use older version of ecovacs app (2.1.3 or below)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants