grajen3 / mib2-lsd-patching

MIT License
9 stars 0 forks source link

Satellite Maps #1

Open cdnninja opened 9 months ago

cdnninja commented 9 months ago

Ran into this from mib solution.

I have wanted to find a "free" way to get sat maps working on audi cars. Awhile back played with using phone data from the MIB system and that worked fine. However it points to google at the time, now audi sat maps. Here is my theory of what I want to accomplish. I know this has been done for google using a pay for server but not sat maps:

  1. Redirect the map requests, would need to find where the URL is for the map API endpoint and change it. Also need to confirm no SSL pinning is done. If it is adjust that.
  2. Once above is complete I can pair my phone as data method, and start to watch and response to the API requests. This would take time but would be purely server side work. I am thinking developing a docker container that would do this. Idea being anyone could host it at home to do this work.

Finding how to change the endpoint has been over my head. I think I could do the API build out if I could get access to the traffic though.

Any thoughts around this?

cdnninja commented 9 months ago

From just a few minutes browsing the code only URL in your code base is: https://github.com/grajen3/mib2-lsd-patching/blob/d57796ff243dfdfdf32dacad468b1eaf76b638e3/lsd_java/de/eso/vcard/d/a.java#L394

Two other IPs are listed which both map back to being owned by the same company as above. The question is if this is for all connected services or if this repo doesn't have the whole code base?

grajen3 commented 9 months ago

I have no clue about Satelite stuff - is it google earth thing? I did found https://github.com/grajen3/mib2-lsd-patching/blob/d57796ff243dfdfdf32dacad468b1eaf76b638e3/lsd_java/de/vw/mib/asl/internal/navigation/map/dsi/factories/impl/google/license/GoogleEarthLicenseStateInit.java#L155-L157 https://github.com/grajen3/mib2-lsd-patching/blob/d57796ff243dfdfdf32dacad468b1eaf76b638e3/lsd_java/de/vw/mib/asl/internal/navigation/map/dsi/factories/impl/google/license/GoogleEarthLicenseStateInit%241.java#L26-L28

Maybe you can follow some code there (maybe that magic Int Constant is referenced elsewhere, or maybe it just goes to different system that is not part of LSD. https://github.com/grajen3/mib2-lsd-patching/tree/aa-in-vc/lsd_java/de/vw/mib/asl/internal/navigation/map/dsi/factories/impl/google overall seems like place to dig (and just grepping google or finding files with google in name just to see what LSD/satelite/google earth interaction/contract is

I find that it's a lot of trial and error with this stuff - I'm also not very in-depth on all this - I guess I was just person that was most stubborn to get anywhere further on the turn-by-turn guidance in VC from AA heh (on that thread that you got links to this repo :) )

cdnninja commented 9 months ago

Thanks for the reply! Sat map is the new google earth feature. Couple years back they left google earth to a new provider. An update to the MMI converted the option over. Same core feature though so code could reference the old version.

cdnninja commented 9 months ago

Do you know what version of the code this repo is?

grajen3 commented 9 months ago

Do you know what version of the code this repo is?

This is from what I got from my car and then followed steps from original repo ( https://gitlab.com/alelec/mib2-lsd-patching ) to decompile: MHI2_ER_VWG13_P4521 1161 (if this is what you're asking? as I said, I'm pretty clueless with this stuff overall and had pretty narrow focus on just one thing)

This is just a fork that just have decompiled .java files commited (from my unit) as it was useful to share/reference interesting .java files in that other thread (and of course my modifications to them)