With improper enquing jobs, there can be easily mess, is there any adb command to remove all pending and active jobs (showed by adb shell dumpsys jobscheduler
)
To call JobScheduler.cancelAll()
via adb
use:
adb shell service call jobscheduler 5
For finer control use JobScheduler.cancel(int jobId)
:
adb shell service call jobscheduler 4 i32 <jobId>
To confirm the proper service call
codes for your Android version read