TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker and becoming a Supporting Member. For more info: Support TMC

Tesla Companion App

Discussion in 'Model S: User Interface' started by castor, May 13, 2014.

  1. castor

    castor Member

    Joined:
    Jan 4, 2013
    Messages:
    148
    Location:
    Redmond, WA
    Looks like I may not be able to release the new version of Tesla Companion for keyless driving and full calendar integration since the current beta is using the new authentication mechanism that requires a client id key and secret key that are not publicly available.

    The way to obtain that keys is decompiling the official app or decrypt the HTTPs requests, decompiling the App violates the software license, I’m not sure what the current implication of sniffing the HTTPs request are yet.

    I contacted Tesla and they are not providing keys for third party apps.

    Using Tesla proprietary client and secret key to authenticate a third party app might have legal consequences.
    This is different to the previous authentication mechanism where authentication requires only email/password provided by the user.

    The Beta program will continue working for some time however it may be closed as well.

    The released version of Tesla Companion will stay on the store using previous authentication mechanism, however it won’t provide any new functionality released on Firmware 6.0 and will stay operational until Tesla decides to retire the old protocol.

    As sad as it may sound I need to protect myself from possible lawsuits.

    For example in the following link it exposes what certain risks are when developing a third party app for Tesla using their secrets.

    https://www.eff.org/issues/coders/reverse-engineering-faq

    “It is legally risky to bypass any “technical protection measures” (e.g., authentication handshakes, protocol encryption, password authentication, code obfuscation, code signing) that control access to the code or any specific functionality.”

    Castor
     
  2. Gear

    Gear Member

    Joined:
    Jul 14, 2013
    Messages:
    620
    Location:
    SoCal
    I've tweeted Elon asking for some support for us Windows Phone-using Tesla. It'd be nice if others did the same and hopefully he'll dignifiy at least one of us with a response. It seems WP use amongst Tesla owners is growing and we deserve some kind of official support, hopefully via support for Castor's app so he can continue to do great work.
     
  3. ACDriveMotor

    ACDriveMotor Member

    Joined:
    Aug 11, 2013
    Messages:
    873
    Location:
    Seattle, WA
    I would bet that WP represents a larger percentage of Tesla owners than WP market share would otherwise suggest.
     
  4. ahimberg

    ahimberg Member

    Joined:
    Aug 8, 2010
    Messages:
    349
    Location:
    Woodinville, WA
    Tesla should be able to figure this out pretty easily if they want, just check the useragent strings on login to tell the difference between android, ios, visibletesla, the 2 winphone apps.
     
  5. castor

    castor Member

    Joined:
    Jan 4, 2013
    Messages:
    148
    Location:
    Redmond, WA
    Definitely they can allow the WP apps if they want, however I'm sure we need to get written consent before we can use the secret key in our code. Using their secret id on a released store app put us on the dark gray area.
     
  6. 132

    132 Member

    Joined:
    Mar 19, 2012
    Messages:
    94
    Castor,
    Thank you for all the time and effort you have put into this. I really hope Tesla is reading these boards and remedy the situation for wp users. As a former IPhone user, I've been much more satisfied with wp on my Nokia. Its strange to me that a company as forward thinking as Tesla chooses not to recognize what some of their patrons consider an equivalent ( better in my view as I switched after owning several generations of IPhones) platform.
     
  7. ACDriveMotor

    ACDriveMotor Member

    Joined:
    Aug 11, 2013
    Messages:
    873
    Location:
    Seattle, WA
    TMC could also just release an official WP app. But I would much prefer that they enable others via an SDK.
     
  8. simonog

    simonog Member

    Joined:
    Jan 9, 2014
    Messages:
    426
    Location:
    United Kingdom
    While logically I like the idea of an SDK, it seems to me that as the API increasingly allows control of a 2 ton missile, the disincentive for Tesla to do so rises. Imagine the scenario where someone writes a piece of code which contains a bug and as a result of its use a fatal accident occurs.

    It becomes a lawyers' paradise and a huge distraction for Tesla management to handle the fallout. I can see the arguments that Tesla should have protected the interface so that nothing bad could possibly be done. Hard enough to do with their own software; next to impossible with third party software.

    Can you see any simple way round this? Until there is, I regret to say that I think an SDK in a diminishing probability.
     
  9. Gear

    Gear Member

    Joined:
    Jul 14, 2013
    Messages:
    620
    Location:
    SoCal
    The mobile apps don't have anything to do with actually controlling the movement of the vehicle, however.
     
  10. ACDriveMotor

    ACDriveMotor Member

    Joined:
    Aug 11, 2013
    Messages:
    873
    Location:
    Seattle, WA
    @simonog If that is a real scenario it can happen today with a bug in one of the existing mobile apps (official or otherwise). I think that is why the REST interfaces are limited in what they can do.
     
  11. Olen

    Olen Member

    Joined:
    Oct 9, 2013
    Messages:
    97
    With the new (post 6.0) API and oauth, they can easily limit the allowed functions based on the application id. Today we are "forced" to fake the id of either the official android app or the iPhone app. If they allowed 3. party apps, we could use unique ids for each application (Tesla Companion, Visible Tesla and so on) and they could make sure these would only be allowed to do a subset of what the APIs might actually provide. They could then also be much stricter about misusing other application ids.
     
  12. castor

    castor Member

    Joined:
    Jan 4, 2013
    Messages:
    148
    Location:
    Redmond, WA
    New update for Tesla Companion is released to the store, it supports keyless driving and full calendar integration.


    Castor.
     
  13. pvandamcom

    pvandamcom Member

    Joined:
    Mar 24, 2014
    Messages:
    346
    Location:
    Netherlands
    Great stuff Castor!, downloaded it immediately and it works fine.
    Fantastic that the Calendar function did make it to the released version.

    I've enjoyed it very much so far.

    Thanks for this important contribution to the Windows platform!
     
  14. clea

    clea Member

    Joined:
    Mar 16, 2011
    Messages:
    834
    Location:
    Laval, Quebec
    I have been looking for this in the store but it hasn't shown up yet ... is there some reason why the Canadian store won't publish it or is there something that needs to be done to push it to stores outside of the states?
     
  15. castor

    castor Member

    Joined:
    Jan 4, 2013
    Messages:
    148
    Location:
    Redmond, WA
    Calendar and Keyless driving feature requires Windows Phone 8.1, have you updated your phone?
     
  16. SlyWombat

    SlyWombat Member

    Joined:
    May 15, 2014
    Messages:
    235
    Location:
    Mississauga, ON, CA
    I am in Canada and have it, (but yeah I am on 8.1), btw, thanks for this great app, I just switched back to windows phone again after moving to android for a while.
     
  17. clea

    clea Member

    Joined:
    Mar 16, 2011
    Messages:
    834
    Location:
    Laval, Quebec
    details details ... missed that one ;~) thx!
     
  18. kevincwelch

    kevincwelch Active Member

    Joined:
    May 13, 2012
    Messages:
    2,054
    Location:
    Chicagoland
    This is great!

    I'm running it on Windows 8.1 desktop. Is there a way to run this in a window instead of full screen?
     
  19. castor

    castor Member

    Joined:
    Jan 4, 2013
    Messages:
    148
    Location:
    Redmond, WA
    Windows Store Apps can run only full screen on Windows 8.1, however Store Apps can run in a window on Windows 10 :)
     
  20. ACDriveMotor

    ACDriveMotor Member

    Joined:
    Aug 11, 2013
    Messages:
    873
    Location:
    Seattle, WA
    Can Windows 10 apps on phone run in a window? ;)
     

Share This Page

  • About Us

    Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.
  • Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.


    SUPPORT TMC