-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes issues with Droneshare Uploader service #920
Fixes issues with Droneshare Uploader service #920
Conversation
- fixed issues with uploader service notification handling. - improved network connectivity receiver/detector based on http://developer.android.com/training/monitoring-device-state/manifest-receivers.html#ToggleReceivers
@geeksville I entered a bogus username and password for droneshare in order to test the uploader service, and it was successfully able to upload the log files. Is that expected, or by design? |
I think that it just created an account with that login info. It should reject if you retry that same bogus username with a different bogus password. |
@ne0fhyk - yes. If you pick a username that is not in use it will create that user. |
@ne0fhyk - thanks for your great fixes! One question: Why did you want preferences keys to be localizable? It seems to me those strings are opaque and therefore best excluded from strings.xml. |
@kevin: It is because then they stay linked by the AS and eclipse tools,
|
@geeksville it also allows to have a constant reference to the preference keys strings that is accessible from code and from the preference XML file. This way if any keys need to be updated, only one value has to be changed. |
@arthurbenemann @squilter can one (or both) of you review the PR, and gives me a thumb up (or down). I'd like to merge it, as I'm having a lot of issues with the bugs it fixes when used with android wear. |
@ne0fhyk Seems to work as expected. There were three localization FIXMEs. Are passwords really stored in plaintext? |
@geeksville how is authentication handled on droneshare? Would it be possible to send the username/password credentials pair, and receive a unique token from droneshare that can be used for further/future authentication? |
@squilter I suggest we create another issue for the localization, and the credentials handling. This fix is only targeting the frequency of uploads, and the notification dispatching from the uploader service. |
@arthurbenemann no problem, enjoy the break! |
…into fix_uploader_service_connectivity_detection
@squilter the localization fixmes were taking care of. |
…y_detection Fixes issues with Droneshare Uploader service
@ne0fhyk Thanks for the merge. |
This PR fixes a couple of issues with the Droneshare uploader service:
changes to a device's connectivity can be very frequent
, resulting in numerous false restarts of the service.The update in the PR uses the techniques advocated @ http://developer.android.com/training/monitoring-device-state/manifest-receivers.html#ToggleReceivers to restrict the Droneshare uploader service restarts to actual connectiivty gain/loss events.