Skip to content
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

Investigate why can't trigger WorkManager like JobScheduler #3

Open
machado001 opened this issue Dec 24, 2024 · 0 comments
Open

Investigate why can't trigger WorkManager like JobScheduler #3

machado001 opened this issue Dec 24, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested

Comments

@machado001
Copy link
Owner

With job scheduler, we can use the following adb command to force a job to run (without wait for the minimal 15minutes):

adb shell cmd jobscheduler run -f <com.pkg.name> <JOB_ID>

reference: AOSP commit

to figure out what is the job id:

adb shell dumpsys jobscheduler | <grep|findstr> <com.pkg.name>

Since WorkManager uses JobScheduler on newer devices, i'm not sure why this command not works.

Let's investigate.

@machado001 machado001 added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Dec 24, 2024
@machado001 machado001 added this to Lilol Dec 24, 2024
@machado001 machado001 moved this to Ready in Lilol Dec 24, 2024
@machado001 machado001 added the good first issue Good for newcomers label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested
Projects
Status: To do
Development

No branches or pull requests

1 participant