TSDZ2-ESP32 / TSDZ2-Android

Android control application for ESP32 add-on module of TSDZ2 eBike motor
GNU General Public License v3.0
10 stars 12 forks source link

OTA doesn't work on my Android 13 phone #5

Open djwlindenaar opened 3 weeks ago

djwlindenaar commented 3 weeks ago

Hi,

first of all: Great app/addon to my TSDZ2. Thanks @mspider65

I'm trying to build and flash a patch on my installed board and when I select the firmware update in the Android app, it crashes. Looking into the exceptions thrown, it complains about a permission missing regarding "nearby device access". I have approved all permissions in the app settings, so that's not it. I'm pretty sure that it needs "NEARBY_WIFI_DEVICES" additional to the existing permissions. I'm not able to test that by building myself, but would be ready to test it for you if you could provide an updated APK :)

Daniel

djwlindenaar commented 2 weeks ago

Just invested some time to figure out using Android Studio and now build it with the "NEARBY_WIFI_DEVICES" permission. That almost made it work, but I needed to add a void constructor for the fragmentStatus class. Not sure what that has to do with anything, but probably something due to launching the action_open_document intent and then coming back to the app. I guess fragmentDebug needs that as well.

Now it works...