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

Open
opened 2023-08-23 09:50:26 +02:00 by nauman73 · 3 comments
nauman73 commented 2023-08-23 09:50:26 +02:00 (Migrated from github.com)

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.

**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](https://github.com/bmartin5692/bumper/assets/7857254/b82ebe8f-b12a-4a40-8f43-69b5f932ca9b) **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 commented 2023-08-29 04:30:44 +02:00 (Migrated from github.com)

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

Change this json response value to `"value": "{\"publicKey\":\"public key or something\"}"` [bumper_confserver_v1_private_common.py](https://github.com/bmartin5692/bumper/blob/master/bumper/plugins/bumper_confserver_v1_private_common.py#L121C9-L121C9)
nauman73 commented 2023-08-31 18:45:30 +02:00 (Migrated from github.com)

@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 : 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 commented 2023-09-05 05:45:23 +02:00 (Migrated from github.com)

@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)

> @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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mia/bumper#138
No description provided.