Skip to content

android-upload-service-3.4

Compare
Choose a tag to compare
@gotev gotev released this 16 Aug 21:24
· 275 commits to master since this release
  • Added support for Android O and notification channels. Min SDK is now 14. #299
  • Important security fixes to prevent man in the middle attacks from other applications! See #305 and #306. Thanks to Sergey Toshin for pointing them out

Breaking changes

Support library

To be able to support Android O, Upload Service uses the latest support libraries 26.0.0 so if you are using support libraries < 26 in your app, make sure to remove any com.android.support:support-v4:25.+ or lower in your gradle file, otherwise you will get a NoSuchMethodException at runtime.

Namespace

Setting NAMESPACE (as described in Setup) is now mandatory, to prevent misconfiguration which can lead to sensible data leakage fixed in #305 and #306. If you have not set the NAMESPACE, you will get this exception at runtime:

java.lang.RuntimeException: Unable to start service net.gotev.uploadservice.UploadService@32340b1 with Intent { act=net.gotev.uploadservice.action.upload cmp=net.gotev.uploadservicedemo/net.gotev.uploadservice.UploadService (has extras) }: java.lang.IllegalArgumentException: Hey dude, please set the namespace for your app by following the setup instructions: https://github.com/gotev/android-upload-service/wiki/Setup
       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3556)
       at android.app.ActivityThread.-wrap20(Unknown Source:0)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1698)
       at android.os.Handler.dispatchMessage(Handler.java:105)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6541)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
    Caused by: java.lang.IllegalArgumentException: Hey dude, please set the namespace for your app by following the setup instructions: https://github.com/gotev/android-upload-service/wiki/Setup
       at net.gotev.uploadservice.UploadService.onStartCommand(UploadService.java:248)
       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3539)
       at android.app.ActivityThread.-wrap20(Unknown Source:0at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1698at android.os.Handler.dispatchMessage(Handler.java:105at android.os.Looper.loop(Looper.java:164at android.app.ActivityThread.main(ActivityThread.java:6541at java.lang.reflect.Method.invoke(Native Methodat com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767