ardevd / jlrpy

Python library for interacting with the JLR Remote Car API
MIT License
84 stars 29 forks source link

connection to JLR servers broken again #122

Closed shegnauer closed 6 months ago

shegnauer commented 6 months ago

In device registration I get this error since about noon CEST today:

jlr.js:823 Uncaught TypeError: Cannot read properties of null (reading 'userId') at jlr.js:823:31 at req.onreadystatechange (jlr.js:760:11)

and follow-up errors from my proxy. It was working as expected this morning. Also, I noted the offical JLR app is now at version 1.8.1 - that one works as expected.

Edit: jlr.js is based on jlrpy 1.6.0, where it does also not connect anymore (no access to logs currently). WattCat is also not working anymore.

merc5555 commented 6 months ago

Same issue 🙁

ardevd commented 6 months ago

Yep. Investigating.

rzumbuehl commented 6 months ago

Thanks a lot!

kkennedyuk commented 6 months ago

Thank you so much for this - can I ask how are you determining the new headers to use? :-)

pmharris77 commented 6 months ago

Thank you so much for this - can I ask how are you determining the new headers to use? :-)

@kkennedyuk Presumably by capturing the HTTP requests from the updated android app?

ardevd commented 6 months ago

Thank you so much for this - can I ask how are you determining the new headers to use? :-)

Correct. A combination of static and dynamic analysis.

zwcall commented 6 months ago

Thank you so much for this - can I ask how are you determining the new headers to use? :-)

Correct. A combination of static and dynamic analysis.

Hi ! you succeeded ! Since they updated it I tried to write the fix in PR but I didn't succeed. I have a rooted phone (magisk,lsposed,frida) and the app crashes on startup, I suppose it's due to the isolated process in the background which must behave like a watchdog? would you be open to discussion please? I would like to understand my mistake thanks you again !