ElectricMotorcycleForum.com

Makes And Models => Zero Motorcycles Forum | 2013+ => Topic started by: domingo3 on October 25, 2017, 03:41:38 AM

Title: Reverse engineer Zero app?
Post by: domingo3 on October 25, 2017, 03:41:38 AM
I tried to search, but didn't find anything.  Has anyone thought of or tried reverse engineering the Zero App?  I have some programming experience, but not with Android apps.  If it's a dead end, then you'll save me some time and frustration.  If nobody's tried, I might give it a go. 
Title: Re: Reverse engineer Zero app?
Post by: Shadow on October 25, 2017, 03:55:34 AM
These threads mention reverse engineering the Zero Mc App:
http://electricmotorcycleforum.com/boards/index.php?topic=6374
http://electricmotorcycleforum.com/boards/index.php?topic=2722

Actually you don't necessarily need to touch the app internals just turn on hci packet logging feature in Android OS and view with Wireshark.
Title: Re: Reverse engineer Zero app?
Post by: domingo3 on October 25, 2017, 09:28:06 PM
  I re-read through those threads and only saw the briefest mention of reverse engineering.  Maybe I'm not using the correct term, but what I'm thinking about is disassembling the app, making changes and recompiling.  I'd start with something simple, like changing the fonts so that all the numbers fit on the riding screen.  For me, sometimes the numbers go on two lines and I can't read them. 
  Later I might see if the app would allow something like setting regen to >100%, or if I could get the app to report the correct values where they are wrong (eg miles remaining or time to charge).  Probably beyond my capability, but I'm willing to spend some time trying.
Title: Re: Reverse engineer Zero app?
Post by: Shadow on October 25, 2017, 10:13:51 PM
Documenting the Zero Motorcycles app communication stream would be very useful for creating a replacement app. Modifying the official app would probably raise the attention of legal consul... good luck!
Title: Re: Reverse engineer Zero app?
Post by: togo on October 26, 2017, 03:51:52 AM
Yes, start by documenting the protocol between the app and the bike.