m4xw / rosettadrone_mini2

The Rosetta Drone 2 Project. Enable Mavlink and H.264 on DJI drones. Supports Mini 2 with Virt Stick Litchi CSV and DJI Waypoint class interpreters
BSD 3-Clause "New" or "Revised" License
28 stars 7 forks source link

Android 12 and /sdcard, etc. #7

Closed tr0043t closed 1 year ago

tr0043t commented 3 years ago

Android 12 is rolling out faster, and will probably hit my devices sometime soon. It appears that the latest permission changes could impact this code, since the ability to request a previous Android storage permission appears to be removed. This will likely mean changing the existing storage model a bit ...

m4xw commented 3 years ago

Yea guess I need to consider it. I wonder if the SDK even handles that properly..

stefansommer commented 1 year ago

The app crashes immediately after launch on my one phone with Android 13. Exact same configuration works on my other phone with Android 9. Is it related to this? I can provide a logcat

m4xw commented 1 year ago

The app crashes immediately after launch on my one phone with Android 13. Exact same configuration works on my other phone with Android 9. Is it related to this? I can provide a logcat

Last develop branch should work now, you might need to follow that workaround for video i outlined in the other issue tho. Only thing required is to enable the permissions manually first before starting the app (and i had troubles with it being put to sleep with samsung tools, so need to disable that too if you use QGC on your phone as well).

As long the app works in this context i will close this issue for now @laurenweinstein1 Someday need to handle it properly tho

stefansommer commented 1 year ago

Thanks! I can confirm the crash upon start is fixed (I couldn't get the video to work though, even with the workaround)