Feature Request P2
Status Update
Comments
ap...@google.com <ap...@google.com> #2
In SystemJobService, it can expect null, and able to tolerance null from WorkManagerImpl.getInstance, due to auto-backup reason.
@Override
public void onCreate() {
super.onCreate();
mWorkManagerImpl = WorkManagerImpl.getInstance(getApplicationContext());
if (mWorkManagerImpl == null) {
// This can occur if...
// 1. The app is performing an auto-backup. Prior to O, JobScheduler could erroneously
// try to send commands to JobService in this state ( b/32180780 ). Since neither
// Application#onCreate nor ContentProviders have run, WorkManager won't be
// initialized. In this case, we should ignore all JobScheduler commands and tell it
// to retry.
But, current WorkManagerImpl.getInstance(Context context) implementation is that, it will never return null but throw IllegalStateException.
Isn't there's conflict among these 2 SystemJobService.onCreate logic, and WorkManagerImpl.getInstance logic?
@Override
public void onCreate() {
super.onCreate();
mWorkManagerImpl = WorkManagerImpl.getInstance(getApplicationContext());
if (mWorkManagerImpl == null) {
// This can occur if...
// 1. The app is performing an auto-backup. Prior to O, JobScheduler could erroneously
// try to send commands to JobService in this state (
// Application#onCreate nor ContentProviders have run, WorkManager won't be
// initialized. In this case, we should ignore all JobScheduler commands and tell it
// to retry.
But, current WorkManagerImpl.getInstance(Context context) implementation is that, it will never return null but throw IllegalStateException.
Isn't there's conflict among these 2 SystemJobService.onCreate logic, and WorkManagerImpl.getInstance logic?
ap...@google.com <ap...@google.com> #3
Project: platform/frameworks/support
Branch: androidx-master-dev
commit e14104eb7008f82edd50b37e16bd119b307e0554
Author: Sumir Kataria <sumir@google.com>
Date: Mon Jun 24 10:50:57 2019
Fix for JobScheduler calls when backup is in progress.
The original fix (ag/Ia1604b7c4b98f6b31869e1161a0c1efce7fe46f2) relied
on a null-check, but the new version of WorkManager.getInstance(Context)
with the Context param doesn't return null; it throws an Exception. This
CL updates the three places where we explicitly check for the return value
internally:
1. SystemJobService (the main place where this would manifest)
2. RescheduleReceiver
3. WorkManagerTestInitHelper (for consistency)
Fixes: 135858602
Test: Ran existing tests
Change-Id: Ia232869712d0c78fd80e91d0a863b8c50a080400
M work/workmanager-testing/src/main/java/androidx/work/testing/WorkManagerTestInitHelper.java
M work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/RescheduleReceiver.java
M work/workmanager/src/main/java/androidx/work/impl/background/systemjob/SystemJobService.java
https://android-review.googlesource.com/988026
https://goto.google.com/android-sha1/e14104eb7008f82edd50b37e16bd119b307e0554
Branch: androidx-master-dev
commit e14104eb7008f82edd50b37e16bd119b307e0554
Author: Sumir Kataria <sumir@google.com>
Date: Mon Jun 24 10:50:57 2019
Fix for JobScheduler calls when backup is in progress.
The original fix (ag/Ia1604b7c4b98f6b31869e1161a0c1efce7fe46f2) relied
on a null-check, but the new version of WorkManager.getInstance(Context)
with the Context param doesn't return null; it throws an Exception. This
CL updates the three places where we explicitly check for the return value
internally:
1. SystemJobService (the main place where this would manifest)
2. RescheduleReceiver
3. WorkManagerTestInitHelper (for consistency)
Fixes: 135858602
Test: Ran existing tests
Change-Id: Ia232869712d0c78fd80e91d0a863b8c50a080400
M work/workmanager-testing/src/main/java/androidx/work/testing/WorkManagerTestInitHelper.java
M work/workmanager/src/main/java/androidx/work/impl/background/systemalarm/RescheduleReceiver.java
M work/workmanager/src/main/java/androidx/work/impl/background/systemjob/SystemJobService.java
ap...@google.com <ap...@google.com> #4
Thanks you so much for the speedy fixed!
May I know when will it be ready for production? As, currently, this IllegalStateException is impacting our users.
May I know when will it be ready for production? As, currently, this IllegalStateException is impacting our users.
ap...@google.com <ap...@google.com> #5
Hello, please look for this later in the week. If you want to work around this bug specifically and don't need on-demand initialization, you can use the old (deprecated) WorkManager.getInstance() method for now.
ap...@google.com <ap...@google.com> #6
Hello. Thanks for respond. I surely will keep a pair of eye on the next release :)
Yes. We don't need on-demand initialization. May I know how does using old (deprecated) WorkManager.getInstance() in our app code, able to bypass this problem? Isn't the crash is origin from library internal SystemJobService?
We once thinking to bypass this problem, by switching back to Version 2.0.1 (The version just before WorkManager.getInstance(Context) is introduced). However, we notice Room version is being changed in between. Downgrading WorkManager version, might cause additional SQLite problem.
Yes. We don't need on-demand initialization. May I know how does using old (deprecated) WorkManager.getInstance() in our app code, able to bypass this problem? Isn't the crash is origin from library internal SystemJobService?
We once thinking to bypass this problem, by switching back to Version 2.0.1 (The version just before WorkManager.getInstance(Context) is introduced). However, we notice Room version is being changed in between. Downgrading WorkManager version, might cause additional SQLite problem.
ap...@google.com <ap...@google.com> #7
Sorry, you are correct that moving to the deprecated method will not help you here. I would advise waiting for the release later this week. And thank you very much for finding this bug and doing the research to find the underlying issue.
I am curious: do you actually have reports of this bug on Android 9? It should've been fixed in the platform layer at that point. If possible, can you share any Android 9 specific logs/bugreports/stacktraces with device models?
I am curious: do you actually have reports of this bug on Android 9? It should've been fixed in the platform layer at that point. If possible, can you share any Android 9 specific logs/bugreports/stacktraces with device models?
ap...@google.com <ap...@google.com> #8
OK. Finger crossed users will not leave our app. I will follow the Green Dinosaur in Twitter, to wait for his announcement.
Based on your code comment, I thought this problem shouldn't occur in new Android but it happens some how. This is the log
Asus ZenFone 5 (ZE620KL) (ASUS_X00QD), Android 9 (Happen 2 times)
Asus ZenFone 5Z (ZS620KL/ZS621KL) (ASUS_Z01R_1), Android 9 (Happen 1 time)
3 incidents are having same log trace as below
java.lang.RuntimeException:
at android.app.ActivityThread.handleCreateService (ActivityThread.java:3570)
at android.app.ActivityThread.access$1300 (ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1672)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:198)
at android.app.ActivityThread.main (ActivityThread.java:6732)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
Caused by: java.lang.IllegalStateException:
at androidx.work.impl.WorkManagerImpl.getInstance (WorkManagerImpl.java:142)
at androidx.work.impl.background.systemjob.SystemJobService.onCreate (SystemJobService.java:53)
at android.app.ActivityThread.handleCreateService (ActivityThread.java:3558)
at android.app.ActivityThread.access$1300 (ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1672)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:198)
at android.app.ActivityThread.main (ActivityThread.java:6732)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
I attach the screenshot of Google Play Console as well. (I expect the stack trace should print programmer's message side-by-side with IllegalStateException. But it doesn't)
Feel free to let me know if you need any information from my side. Happy to help.
Based on your code comment, I thought this problem shouldn't occur in new Android but it happens some how. This is the log
Asus ZenFone 5 (ZE620KL) (ASUS_X00QD), Android 9 (Happen 2 times)
Asus ZenFone 5Z (ZS620KL/ZS621KL) (ASUS_Z01R_1), Android 9 (Happen 1 time)
3 incidents are having same log trace as below
java.lang.RuntimeException:
at android.app.ActivityThread.handleCreateService (ActivityThread.java:3570)
at android.app.ActivityThread.access$1300 (ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1672)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:198)
at android.app.ActivityThread.main (ActivityThread.java:6732)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
Caused by: java.lang.IllegalStateException:
at androidx.work.impl.WorkManagerImpl.getInstance (WorkManagerImpl.java:142)
at androidx.work.impl.background.systemjob.SystemJobService.onCreate (SystemJobService.java:53)
at android.app.ActivityThread.handleCreateService (ActivityThread.java:3558)
at android.app.ActivityThread.access$1300 (ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1672)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:198)
at android.app.ActivityThread.main (ActivityThread.java:6732)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
I attach the screenshot of Google Play Console as well. (I expect the stack trace should print programmer's message side-by-side with IllegalStateException. But it doesn't)
Feel free to let me know if you need any information from my side. Happy to help.
ap...@google.com <ap...@google.com> #9
Thanks, we'll investigate this internally.
ap...@google.com <ap...@google.com> #10
Hello, wondering whether the fix will be released in another one, or two days. As, users start to complain and leaving our app, due to increased crash rate :(
Thanks.
Thanks.
ap...@google.com <ap...@google.com> #11
Hi, we're still aiming to get this out this week.
ap...@google.com <ap...@google.com> #12
still have bug:
trace:
5 java.lang.IllegalStateException:WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
6 androidx.work.impl.background.systemjob.SystemJobService.onCreate(SystemJobService.java:68)
7 android.app.ActivityThread.handleCreateService(ActivityThread.java:3133)
8 android.app.ActivityThread.access$1900(ActivityThread.java:196)
9 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1622)
10 com.android.tony.defenselib.hook.HookHandle$1.handleMessage(HookHandle.java:30)
11 android.os.Handler.dispatchMessage(Handler.java:107)
12 android.os.Looper.loop(Looper.java:210)
13 android.app.ActivityThread.main(ActivityThread.java:5982)
14 java.lang.reflect.Method.invoke(Native Method)
15 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
16 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
this code cause crash:
if (!Application.class.equals(getApplication().getClass())) {
// During auto-backup, we don't get a custom Application subclass. This code path
// indicates we are either performing auto-backup or the user never used a custom
// Application class (or both).
throw new IllegalStateException("WorkManager needs to be initialized via a "
+ "ContentProvider#onCreate() or an Application#onCreate().");
}
my analysis:
code in handleCreateService() in ActivityThread.java:
" Application app = packageInfo.makeApplication(false, mInstrumentation);
service.attach(context, this,data.info.name , data.token, app, ActivityManager.getService())
"
handleCreateService--->. Application app = packageInfo.makeApplication(false, mInstrumentation); ---> forceDefaultAppClass is always false-->if have custom Application,will make custom Application ---> service.attach(context, this,data.info.name , data.token, app, ActivityManager.getService()); ---> so getApplication() in service get custom application
--> if have customApplication, the code : "Application.class.equals(getApplication().getClass()" in Service will be false , even it's in backup mode
trace:
5 java.lang.IllegalStateException:WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
6 androidx.work.impl.background.systemjob.SystemJobService.onCreate(SystemJobService.java:68)
7 android.app.ActivityThread.handleCreateService(ActivityThread.java:3133)
8 android.app.ActivityThread.access$1900(ActivityThread.java:196)
9 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1622)
10 com.android.tony.defenselib.hook.HookHandle$1.handleMessage(HookHandle.java:30)
11 android.os.Handler.dispatchMessage(Handler.java:107)
12 android.os.Looper.loop(Looper.java:210)
13 android.app.ActivityThread.main(ActivityThread.java:5982)
14 java.lang.reflect.Method.invoke(Native Method)
15 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
16 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)
this code cause crash:
if (!Application.class.equals(getApplication().getClass())) {
// During auto-backup, we don't get a custom Application subclass. This code path
// indicates we are either performing auto-backup or the user never used a custom
// Application class (or both).
throw new IllegalStateException("WorkManager needs to be initialized via a "
+ "ContentProvider#onCreate() or an Application#onCreate().");
}
my analysis:
code in handleCreateService() in ActivityThread.java:
" Application app = packageInfo.makeApplication(false, mInstrumentation);
service.attach(context, this,
"
handleCreateService--->. Application app = packageInfo.makeApplication(false, mInstrumentation); ---> forceDefaultAppClass is always false-->if have custom Application,will make custom Application ---> service.attach(context, this,
--> if have customApplication, the code : "Application.class.equals(getApplication().getClass()" in Service will be false , even it's in backup mode
ap...@google.com <ap...@google.com> #13
i'm also having the same crash, here is the relevant stacktrace:
compileSdkVersion 30
implementation 'androidx.work:work-runtime-ktx:2.4.0'
Crash
TCT (Alcatel) 5056D
Android 6.0 (SDK 23)
48.aab
2 hours ago
java.lang.RuntimeException:
at android.app.ActivityThread.handleCreateService (ActivityThread.java:2887)
at android.app.ActivityThread.access$1900 (ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1427)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:148)
at android.app.ActivityThread.main (ActivityThread.java:5417)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:616)
Caused by: java.lang.IllegalStateException:
at androidx.work.impl.background.systemjob.SystemJobService.onCreate (SystemJobService.java:2)
at android.app.ActivityThread.handleCreateService (ActivityThread.java:2877)
at android.app.ActivityThread.access$1900 (ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1427)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:148)
at android.app.ActivityThread.main (ActivityThread.java:5417)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:616)
What could the walkaround this issue? Is there another way to initialize the WorkManager instance? I'm using
private fun getWorkManager(): WorkManager =
try {
WorkManager.getInstance(App.context)
} catch (e: Exception) {
e.printStackTrace()
sleep(100)
getWorkManager()
}
compileSdkVersion 30
implementation 'androidx.work:work-runtime-ktx:2.4.0'
Crash
TCT (Alcatel) 5056D
Android 6.0 (SDK 23)
48.aab
2 hours ago
java.lang.RuntimeException:
at android.app.ActivityThread.handleCreateService (ActivityThread.java:2887)
at android.app.ActivityThread.access$1900 (ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1427)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:148)
at android.app.ActivityThread.main (ActivityThread.java:5417)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:616)
Caused by: java.lang.IllegalStateException:
at androidx.work.impl.background.systemjob.SystemJobService.onCreate (SystemJobService.java:2)
at android.app.ActivityThread.handleCreateService (ActivityThread.java:2877)
at android.app.ActivityThread.access$1900 (ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1427)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:148)
at android.app.ActivityThread.main (ActivityThread.java:5417)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:616)
What could the walkaround this issue? Is there another way to initialize the WorkManager instance? I'm using
private fun getWorkManager(): WorkManager =
try {
WorkManager.getInstance(App.context)
} catch (e: Exception) {
e.printStackTrace()
sleep(100)
getWorkManager()
}
ap...@google.com <ap...@google.com> #14
Same Error on production when call WorkManager.getInstance(context):
Library version: androidx.work:work-runtime:2.4.0
Samsung Galaxy S8 (dreamlte), 3840MB RAM, Android 9
java.lang.RuntimeException:
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6227)
at android.app.ActivityThread.access$1200 (ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1785)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7050)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)
Caused by: java.lang.IllegalStateException:
at androidx.work.impl.WorkManagerImpl.getInstance (WorkManagerImpl.java:150)
at androidx.work.WorkManager.getInstance (WorkManager.java:184)
at br.com.rcgm.dicaslotofacilfull.task.WorkRequestSincronizarConcurso.enfileirar (WorkRequestSincronizarConcurso.java:20)
at br.com.rcgm.dicaslotofacilfull.BaseApplication.onCreate (BaseApplication.java:23)
at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1154)
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6222)
Library version: androidx.work:work-runtime:2.4.0
Samsung Galaxy S8 (dreamlte), 3840MB RAM, Android 9
java.lang.RuntimeException:
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6227)
at android.app.ActivityThread.access$1200 (ActivityThread.java:237)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1785)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7050)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965)
Caused by: java.lang.IllegalStateException:
at androidx.work.impl.WorkManagerImpl.getInstance (WorkManagerImpl.java:150)
at androidx.work.WorkManager.getInstance (WorkManager.java:184)
at br.com.rcgm.dicaslotofacilfull.task.WorkRequestSincronizarConcurso.enfileirar (WorkRequestSincronizarConcurso.java:20)
at br.com.rcgm.dicaslotofacilfull.BaseApplication.onCreate (BaseApplication.java:23)
at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1154)
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6222)
ap...@google.com <ap...@google.com> #15
Hi,
I'm also facing same issue, in few devices.
Instance access : WorkManager.getInstance()
I'm not doing on-demand Initialization.
version used: 'androidx.work:work-runtime:2.3.4'
Device details
Brand: samsung
Model: Galaxy J2 Pro
Android version: 6.0.1
Fatal Exception: java.lang.RuntimeException: Unable to create service androidx.work.impl.background.systemjob.SystemJobService: java.lang.IllegalStateException: WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3883)
at android.app.ActivityThread.-wrap8(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1909)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by java.lang.IllegalStateException: WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
at androidx.work.impl.background.systemjob.SystemJobService.onCreate(SystemJobService.java:73)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3873)
at android.app.ActivityThread.-wrap8(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1909)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
I'm also facing same issue, in few devices.
Instance access : WorkManager.getInstance()
I'm not doing on-demand Initialization.
version used: 'androidx.work:work-runtime:2.3.4'
Device details
Brand: samsung
Model: Galaxy J2 Pro
Android version: 6.0.1
Fatal Exception: java.lang.RuntimeException: Unable to create service androidx.work.impl.background.systemjob.SystemJobService: java.lang.IllegalStateException: WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3883)
at android.app.ActivityThread.-wrap8(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1909)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by java.lang.IllegalStateException: WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
at androidx.work.impl.background.systemjob.SystemJobService.onCreate(SystemJobService.java:73)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3873)
at android.app.ActivityThread.-wrap8(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1909)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
ap...@google.com <ap...@google.com> #16
i have the same issue
ap...@google.com <ap...@google.com> #17
deleted
ap...@google.com <ap...@google.com> #18
Still seeing this issue in 2.5.0 using default WorkManager.getInstance() initialization. How can we prevent this situation from occurring?
if (!Application.class.equals(getApplication().getClass())) {
// During auto-backup, we don't get a custom Application subclass. This code path
// indicates we are either performing auto-backup or the user never used a custom
// Application class (or both).
throw new IllegalStateException("WorkManager needs to be initialized via a "
+ "ContentProvider#onCreate() or an Application#onCreate().");
}
if (!Application.class.equals(getApplication().getClass())) {
// During auto-backup, we don't get a custom Application subclass. This code path
// indicates we are either performing auto-backup or the user never used a custom
// Application class (or both).
throw new IllegalStateException("WorkManager needs to be initialized via a "
+ "ContentProvider#onCreate() or an Application#onCreate().");
}
ap...@google.com <ap...@google.com> #19
this issue on workManager 2.5.0 when initialize WorkManager in background thread, bring it back to UI thread
ap...@google.com <ap...@google.com> #20
I begin to see this issue after using "on demand Initialization"
Stacktrace:
Caused by java.lang.IllegalStateException
WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
androidx.work.impl.background.systemjob.SystemJobService.onCreate (SystemJobService.java:73)
android.app.ActivityThread.handleCreateService (ActivityThread.java:3833)
android.app.ActivityThread.access$1500 (ActivityThread.java:229)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1881)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loop (Looper.java:226)
android.app.ActivityThread.main (ActivityThread.java:7178)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:503)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:942)
For now, the device affected is
android 9 Realme.
Work Manager version: 2.6.0
Stacktrace:
Caused by java.lang.IllegalStateException
WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
androidx.work.impl.background.systemjob.SystemJobService.onCreate (SystemJobService.java:73)
android.app.ActivityThread.handleCreateService (ActivityThread.java:3833)
android.app.ActivityThread.access$1500 (ActivityThread.java:229)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1881)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loop (Looper.java:226)
android.app.ActivityThread.main (ActivityThread.java:7178)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:503)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:942)
For now, the device affected is
android 9 Realme.
Work Manager version: 2.6.0
ap...@google.com <ap...@google.com> #21
Still happening with WorkManager 2.7.1 Samsung Galaxy S21 Ultra 5G Android 12 (SDK 31)
java.lang.RuntimeException:
at android.app.ActivityThread.handleCreateService (ActivityThread.java:4953)
at android.app.ActivityThread.access$1900 (ActivityThread.java:310)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2300)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:226)
at android.os.Looper.loop (Looper.java:313)
at android.app.ActivityThread.main (ActivityThread.java:8669)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1135)
Caused by: java.lang.IllegalStateException:
at androidx.work.impl.WorkManagerImpl.getInstance (WorkManagerImpl.java:158)
at androidx.work.impl.foreground.SystemForegroundDispatcher.<init> (SystemForegroundDispatcher.java:105)
at androidx.work.impl.foreground.SystemForegroundService.initializeDispatcher (SystemForegroundService.java:96)
at androidx.work.impl.foreground.SystemForegroundService.onCreate (SystemForegroundService.java:59)
at android.app.ActivityThread.handleCreateService (ActivityThread.java:4940)
at android.app.ActivityThread.access$1900 (ActivityThread.java:310)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2300)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:226)
at android.os.Looper.loop (Looper.java:313)
at android.app.ActivityThread.main (ActivityThread.java:8669)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1135)
ap...@google.com <ap...@google.com> #22
We recently moved our WorkManager initialization to the default pattern and have started seeing this same issue.
java.lang.RuntimeException: Unable to create service androidx.work.impl.background.systemjob.SystemJobService: java.lang.IllegalStateException: WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
at android.app.ActivityThread.handleCreateService(ActivityThread.java:5073)
at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2425)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8741)
at java.lang.reflect.Method.invoke(Method.java:-2)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Caused by: java.lang.IllegalStateException: WorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate().
at androidx.work.impl.background.systemjob.SystemJobService.onCreate(SystemJobService:73)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:5060)
at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2425)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8741)
at java.lang.reflect.Method.invoke(Method.java:-2)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
ap...@google.com <ap...@google.com> #23
I would check to make sure that the app is not a multi-process app. If it is, you will need your Application
to additionally sub-class Configuration.Provider
or additionally define a second provider for the other process.
ap...@google.com <ap...@google.com> #24
Hi all, I am also facing the same crash in Work Manager 2.7.1 with on-demand initialization in Samsung X-Cover Pro(31), sdk 32. There's no concrete scenario for this crash to happen, it happens randomly at any screen. Plus the auto-backup is disabled in my app which was listed as one of the factors responsible for the crash. Can someone please assist me with a way to fix/handle this crash?
ap...@google.com <ap...@google.com> #25
Hi all , i use workManager 2.7.0 face some crash "IllegalStateExceptionWorkManager needs to be initialized via a ContentProvider#onCreate() or an Application#onCreate()" . i am sure app manifest allowBackUp=false and initWorkManger in every process. Can someone please assist me with a way to fix/handle this crash?
ap...@google.com <ap...@google.com> #26
I'm experience the same problem. I used suspend function to init WorkManager and used Dispatchers.Default as a scope to launch. I'm going to use runBlocking instead
ap...@google.com <ap...@google.com> #27
Project: platform/frameworks/support
Branch: androidx-main
commit a5ab3d2c4682bc7d40d618c60b7962509e4dde52
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Apr 01 18:16:03 2022
Rename *Request.java -> *Request.kt
bug: 209145335
Test: refactoring
Change-Id: Idff67d592f5252d8707c51561377d4fabfff45d8
M work/work-runtime/src/main/java/androidx/work/OneTimeWorkRequest.kt
M work/work-runtime/src/main/java/androidx/work/PeriodicWorkRequest.kt
M work/work-runtime/src/main/java/androidx/work/WorkRequest.kt
https://android-review.googlesource.com/2052908
Branch: androidx-main
commit a5ab3d2c4682bc7d40d618c60b7962509e4dde52
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Apr 01 18:16:03 2022
Rename *Request.java -> *Request.kt
bug: 209145335
Test: refactoring
Change-Id: Idff67d592f5252d8707c51561377d4fabfff45d8
M work/work-runtime/src/main/java/androidx/work/OneTimeWorkRequest.kt
M work/work-runtime/src/main/java/androidx/work/PeriodicWorkRequest.kt
M work/work-runtime/src/main/java/androidx/work/WorkRequest.kt
ap...@google.com <ap...@google.com> #28
Project: platform/frameworks/support
Branch: androidx-main
commit a4d9af457492b81e038923dc224de465d5050946
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Sat Apr 02 11:55:40 2022
Migrate ProcessUtils to kotlin
bug: 209145335
Test: refactoring
Change-Id: If2d46362ab20338230e4ace5680d354e2677b00f
M work/work-runtime/src/main/java/androidx/work/impl/utils/ProcessUtils.kt
https://android-review.googlesource.com/2053546
Branch: androidx-main
commit a4d9af457492b81e038923dc224de465d5050946
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Sat Apr 02 11:55:40 2022
Migrate ProcessUtils to kotlin
bug: 209145335
Test: refactoring
Change-Id: If2d46362ab20338230e4ace5680d354e2677b00f
M work/work-runtime/src/main/java/androidx/work/impl/utils/ProcessUtils.kt
ap...@google.com <ap...@google.com> #29
Project: platform/frameworks/support
Branch: androidx-main
commit f63f7fac9dda108333cf515b3fbc6889e7ef01df
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Sat Apr 02 01:18:44 2022
Rename ProcessUtils.java to ProcessUtils.kt
bug: 209145335
Test: refactoring
Change-Id: I2472414bb76a8b00a820b6a5762b18d20607bba0
M work/work-runtime/src/main/java/androidx/work/impl/utils/ProcessUtils.kt
https://android-review.googlesource.com/2053545
Branch: androidx-main
commit f63f7fac9dda108333cf515b3fbc6889e7ef01df
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Sat Apr 02 01:18:44 2022
Rename ProcessUtils.java to ProcessUtils.kt
bug: 209145335
Test: refactoring
Change-Id: I2472414bb76a8b00a820b6a5762b18d20607bba0
M work/work-runtime/src/main/java/androidx/work/impl/utils/ProcessUtils.kt
ap...@google.com <ap...@google.com> #30
Project: platform/frameworks/support
Branch: androidx-main
commit 913bf47276f789914bb04fde4cb2fd4fe5886d8a
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Sun Apr 03 14:15:49 2022
Migrate *Worker to Kotlin
bug: 209145335
Test: N/A
Change-Id: I26be62e34a7eb0558573c827368efd068fe12265
M work/work-runtime/src/androidTest/java/androidx/work/impl/WorkManagerImplTest.java
M work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/MainActivity.java
M work/work-runtime/src/main/java/androidx/work/impl/workers/CombineContinuationsWorker.kt
M work/work-runtime/src/androidTest/java/androidx/work/impl/workers/ConstraintTrackingWorkerTest.java
M work/work-runtime/src/main/java/androidx/work/impl/utils/EnqueueRunnable.java
M work/work-runtime/src/main/java/androidx/work/impl/workers/ConstraintTrackingWorker.kt
M work/work-runtime/src/main/java/androidx/work/impl/workers/DiagnosticsWorker.kt
https://android-review.googlesource.com/2051396
Branch: androidx-main
commit 913bf47276f789914bb04fde4cb2fd4fe5886d8a
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Sun Apr 03 14:15:49 2022
Migrate *Worker to Kotlin
bug: 209145335
Test: N/A
Change-Id: I26be62e34a7eb0558573c827368efd068fe12265
M work/work-runtime/src/androidTest/java/androidx/work/impl/WorkManagerImplTest.java
M work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/MainActivity.java
M work/work-runtime/src/main/java/androidx/work/impl/workers/CombineContinuationsWorker.kt
M work/work-runtime/src/androidTest/java/androidx/work/impl/workers/ConstraintTrackingWorkerTest.java
M work/work-runtime/src/main/java/androidx/work/impl/utils/EnqueueRunnable.java
M work/work-runtime/src/main/java/androidx/work/impl/workers/ConstraintTrackingWorker.kt
M work/work-runtime/src/main/java/androidx/work/impl/workers/DiagnosticsWorker.kt
ap...@google.com <ap...@google.com> #31
Project: platform/frameworks/support
Branch: androidx-main
commit e369a7b6f545d4cc88e6d215124d6629e404d91d
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Sat Apr 02 15:20:18 2022
Rename *Worker.java to *Worker.kt
bug: 209145335
Test: N/A
Change-Id: I2db19d9c049c13af79faf5954be41f453c1e0575
M work/work-runtime/src/main/java/androidx/work/impl/workers/CombineContinuationsWorker.kt
M work/work-runtime/src/main/java/androidx/work/impl/workers/ConstraintTrackingWorker.kt
M work/work-runtime/src/main/java/androidx/work/impl/workers/DiagnosticsWorker.kt
https://android-review.googlesource.com/2051395
Branch: androidx-main
commit e369a7b6f545d4cc88e6d215124d6629e404d91d
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Sat Apr 02 15:20:18 2022
Rename *Worker.java to *Worker.kt
bug: 209145335
Test: N/A
Change-Id: I2db19d9c049c13af79faf5954be41f453c1e0575
M work/work-runtime/src/main/java/androidx/work/impl/workers/CombineContinuationsWorker.kt
M work/work-runtime/src/main/java/androidx/work/impl/workers/ConstraintTrackingWorker.kt
M work/work-runtime/src/main/java/androidx/work/impl/workers/DiagnosticsWorker.kt
ap...@google.com <ap...@google.com> #32
Project: platform/frameworks/support
Branch: androidx-main
commit e35e0843068e2e2058eb96570aa867cac0853afa
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Mon Oct 17 15:12:50 2022
Migrate WorkInfo to Kotlin
bug: 209145335
Test: refactoring
Relnote: N/A
Change-Id: I1832d68d2f415bf0051904a31785a892cc872fde
M libraryversions.toml
A work/work-runtime/api/current.ignore
M work/work-runtime/api/current.txt
M work/work-runtime/api/public_plus_experimental_current.txt
A work/work-runtime/api/restricted_current.ignore
M work/work-runtime/api/restricted_current.txt
M work/work-runtime/src/main/java/androidx/work/WorkInfo.kt
https://android-review.googlesource.com/2257284
Branch: androidx-main
commit e35e0843068e2e2058eb96570aa867cac0853afa
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Mon Oct 17 15:12:50 2022
Migrate WorkInfo to Kotlin
bug: 209145335
Test: refactoring
Relnote: N/A
Change-Id: I1832d68d2f415bf0051904a31785a892cc872fde
M libraryversions.toml
A work/work-runtime/api/current.ignore
M work/work-runtime/api/current.txt
M work/work-runtime/api/public_plus_experimental_current.txt
A work/work-runtime/api/restricted_current.ignore
M work/work-runtime/api/restricted_current.txt
M work/work-runtime/src/main/java/androidx/work/WorkInfo.kt
ap...@google.com <ap...@google.com> #33
Project: platform/frameworks/support
Branch: androidx-main
commit f328aaebd16d13e533e2866b6f2f51cdf4488360
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Mon Oct 17 14:49:07 2022
Move WorkInfo.java to .Kt
bug: 209145335
Test: NA
Change-Id: Idff216c9b296edd8eaf7639dc7ef04ef3fa3606c
M work/work-runtime/src/main/java/androidx/work/WorkInfo.kt
https://android-review.googlesource.com/2257283
Branch: androidx-main
commit f328aaebd16d13e533e2866b6f2f51cdf4488360
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Mon Oct 17 14:49:07 2022
Move WorkInfo.java to .Kt
bug: 209145335
Test: NA
Change-Id: Idff216c9b296edd8eaf7639dc7ef04ef3fa3606c
M work/work-runtime/src/main/java/androidx/work/WorkInfo.kt
ap...@google.com <ap...@google.com> #34
Project: platform/frameworks/support
Branch: androidx-main
commit 16046a2181271f9727126e17ab55ee634bf633a6
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Nov 25 22:09:48 2022
Move InputMerger related code to Kotlin
Relnote: N/A
bug: 209145335
Test: refactoring
Change-Id: I31f80efa33fe1d1eead027bc01a805f5365f9524
M work/work-runtime/api/current.txt
M work/work-runtime/api/public_plus_experimental_current.txt
M work/work-runtime/api/restricted_current.txt
M work/work-runtime/src/main/java/androidx/work/Configuration.java
M work/work-runtime/src/main/java/androidx/work/InputMerger.kt
M work/work-runtime/src/main/java/androidx/work/InputMergerFactory.kt
M work/work-runtime/src/main/java/androidx/work/OneTimeWorkRequest.kt
M work/work-runtime/src/main/java/androidx/work/OverwritingInputMerger.kt
M work/work-runtime/src/main/java/androidx/work/impl/WorkDatabase.kt
M work/work-runtime/src/main/java/androidx/work/impl/model/WorkSpec.kt
A work/work-runtime/src/schemas/androidx.work.impl.WorkDatabase/17.json
M work/work-testing/src/androidTest/java/androidx/work/testing/WorkManagerInitHelperTest.java
https://android-review.googlesource.com/2319090
Branch: androidx-main
commit 16046a2181271f9727126e17ab55ee634bf633a6
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Nov 25 22:09:48 2022
Move InputMerger related code to Kotlin
Relnote: N/A
bug: 209145335
Test: refactoring
Change-Id: I31f80efa33fe1d1eead027bc01a805f5365f9524
M work/work-runtime/api/current.txt
M work/work-runtime/api/public_plus_experimental_current.txt
M work/work-runtime/api/restricted_current.txt
M work/work-runtime/src/main/java/androidx/work/Configuration.java
M work/work-runtime/src/main/java/androidx/work/InputMerger.kt
M work/work-runtime/src/main/java/androidx/work/InputMergerFactory.kt
M work/work-runtime/src/main/java/androidx/work/OneTimeWorkRequest.kt
M work/work-runtime/src/main/java/androidx/work/OverwritingInputMerger.kt
M work/work-runtime/src/main/java/androidx/work/impl/WorkDatabase.kt
M work/work-runtime/src/main/java/androidx/work/impl/model/WorkSpec.kt
A work/work-runtime/src/schemas/androidx.work.impl.WorkDatabase/17.json
M work/work-testing/src/androidTest/java/androidx/work/testing/WorkManagerInitHelperTest.java
ap...@google.com <ap...@google.com> #35
Project: platform/frameworks/support
Branch: androidx-main
commit 3f1aad9c6869839b7b0b8caba8d9d6ac6d85115b
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Nov 25 21:24:53 2022
Move InputMerger related classes to *.kt
bug: 209145335
Test: NA
Change-Id: I7e27178402b28ba543cd0c752c4aec179a5d7f49
M work/work-runtime/src/main/java/androidx/work/InputMerger.kt
M work/work-runtime/src/main/java/androidx/work/InputMergerFactory.kt
M work/work-runtime/src/main/java/androidx/work/OverwritingInputMerger.kt
https://android-review.googlesource.com/2319089
Branch: androidx-main
commit 3f1aad9c6869839b7b0b8caba8d9d6ac6d85115b
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Nov 25 21:24:53 2022
Move InputMerger related classes to *.kt
bug: 209145335
Test: NA
Change-Id: I7e27178402b28ba543cd0c752c4aec179a5d7f49
M work/work-runtime/src/main/java/androidx/work/InputMerger.kt
M work/work-runtime/src/main/java/androidx/work/InputMergerFactory.kt
M work/work-runtime/src/main/java/androidx/work/OverwritingInputMerger.kt
ap...@google.com <ap...@google.com> #36
Project: platform/frameworks/support
Branch: androidx-main
commit cb73f5d95e0531a419d2bc14d075c3eb35e9bb8c
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Mon Oct 17 16:10:28 2022
Make WorkInfo constructor public
bug: 209145335
Test: refactoring
Relnote: "WorkInfo's constructor is public now,
that can useful in testing."
Change-Id: Ia00b6beffca0b0b2dff5cdae67020bbd4b068579
M work/work-multiprocess/src/androidTest/java/androidx/work/multiprocess/ParcelableWorkInfoTest.kt
M work/work-multiprocess/src/main/java/androidx/work/multiprocess/parcelable/ParcelableWorkInfo.java
M work/work-runtime/api/current.txt
M work/work-runtime/api/public_plus_experimental_current.txt
M work/work-runtime/api/restricted_current.txt
M work/work-runtime/src/androidTest/java/androidx/work/impl/WorkManagerImplTest.java
M work/work-runtime/src/main/java/androidx/work/WorkInfo.kt
M work/work-runtime/src/main/java/androidx/work/impl/model/WorkSpec.kt
M work/work-runtime/src/test/java/androidx/work/WorkInfoTest.kt
https://android-review.googlesource.com/2257230
Branch: androidx-main
commit cb73f5d95e0531a419d2bc14d075c3eb35e9bb8c
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Mon Oct 17 16:10:28 2022
Make WorkInfo constructor public
bug: 209145335
Test: refactoring
Relnote: "WorkInfo's constructor is public now,
that can useful in testing."
Change-Id: Ia00b6beffca0b0b2dff5cdae67020bbd4b068579
M work/work-multiprocess/src/androidTest/java/androidx/work/multiprocess/ParcelableWorkInfoTest.kt
M work/work-multiprocess/src/main/java/androidx/work/multiprocess/parcelable/ParcelableWorkInfo.java
M work/work-runtime/api/current.txt
M work/work-runtime/api/public_plus_experimental_current.txt
M work/work-runtime/api/restricted_current.txt
M work/work-runtime/src/androidTest/java/androidx/work/impl/WorkManagerImplTest.java
M work/work-runtime/src/main/java/androidx/work/WorkInfo.kt
M work/work-runtime/src/main/java/androidx/work/impl/model/WorkSpec.kt
M work/work-runtime/src/test/java/androidx/work/WorkInfoTest.kt
ap...@google.com <ap...@google.com> #37
Project: platform/frameworks/support
Branch: androidx-main
commit f20e994d97815fa9f2310d99d84f6f2bd039d0a3
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Sat Nov 26 00:51:36 2022
Move Configuration to kotlin
bug: 209145335
Test: refactoring
Relnote: N/A
Change-Id: I640fc5e07460ee3504f2243e689187e43d52c42b
M work/work-inspection/src/androidTest/java/androidx/work/inspection/InspectorApp.kt
M work/work-runtime/api/current.ignore
M work/work-runtime/api/current.txt
M work/work-runtime/api/public_plus_experimental_current.txt
M work/work-runtime/api/restricted_current.ignore
M work/work-runtime/api/restricted_current.txt
M work/work-runtime/src/androidTest/java/androidx/work/WorkForegroundRunnableTest.kt
M work/work-runtime/src/main/java/androidx/work/Configuration.kt
M work/work-runtime/src/main/java/androidx/work/InputMergerFactory.kt
https://android-review.googlesource.com/2318794
Branch: androidx-main
commit f20e994d97815fa9f2310d99d84f6f2bd039d0a3
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Sat Nov 26 00:51:36 2022
Move Configuration to kotlin
bug: 209145335
Test: refactoring
Relnote: N/A
Change-Id: I640fc5e07460ee3504f2243e689187e43d52c42b
M work/work-inspection/src/androidTest/java/androidx/work/inspection/InspectorApp.kt
M work/work-runtime/api/current.ignore
M work/work-runtime/api/current.txt
M work/work-runtime/api/public_plus_experimental_current.txt
M work/work-runtime/api/restricted_current.ignore
M work/work-runtime/api/restricted_current.txt
M work/work-runtime/src/androidTest/java/androidx/work/WorkForegroundRunnableTest.kt
M work/work-runtime/src/main/java/androidx/work/Configuration.kt
M work/work-runtime/src/main/java/androidx/work/InputMergerFactory.kt
ap...@google.com <ap...@google.com> #38
Project: platform/frameworks/support
Branch: androidx-main
commit 0704c05f12bd248d59b5db9f78638bc78739881a
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Nov 25 23:56:45 2022
Move Configuration.java to Configuration.kt
bug: 209145335
Test: NA
Change-Id: If7413a874f286f1d1488336e7011d42188342a0b
M work/work-runtime/src/main/java/androidx/work/Configuration.kt
https://android-review.googlesource.com/2318793
Branch: androidx-main
commit 0704c05f12bd248d59b5db9f78638bc78739881a
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Nov 25 23:56:45 2022
Move Configuration.java to Configuration.kt
bug: 209145335
Test: NA
Change-Id: If7413a874f286f1d1488336e7011d42188342a0b
M work/work-runtime/src/main/java/androidx/work/Configuration.kt
ap...@google.com <ap...@google.com> #39
Project: platform/frameworks/support
Branch: androidx-main
commit fcf6647776e53ef7c97339bc388b1d70336f51a9
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Feb 03 14:56:22 2023
Migrate StartWorkRunnable & StopWorkRunnable to Kotlin
As a drive by use Processor directly in those runnables.
bug: 209145335
Test: ./gradlew :work:work-runtime:cC
Change-Id: I44d6dca55298c98026e1bdd75faf214ee7bacddb
M work/work-runtime/src/androidTest/java/androidx/work/impl/foreground/SystemForegroundDispatcherTest.kt
M work/work-runtime/src/main/java/androidx/work/impl/WorkManagerImpl.java
M work/work-runtime/src/main/java/androidx/work/impl/utils/StartWorkRunnable.kt
M work/work-runtime/src/main/java/androidx/work/impl/utils/StopWorkRunnable.kt
https://android-review.googlesource.com/2419666
Branch: androidx-main
commit fcf6647776e53ef7c97339bc388b1d70336f51a9
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Feb 03 14:56:22 2023
Migrate StartWorkRunnable & StopWorkRunnable to Kotlin
As a drive by use Processor directly in those runnables.
bug: 209145335
Test: ./gradlew :work:work-runtime:cC
Change-Id: I44d6dca55298c98026e1bdd75faf214ee7bacddb
M work/work-runtime/src/androidTest/java/androidx/work/impl/foreground/SystemForegroundDispatcherTest.kt
M work/work-runtime/src/main/java/androidx/work/impl/WorkManagerImpl.java
M work/work-runtime/src/main/java/androidx/work/impl/utils/StartWorkRunnable.kt
M work/work-runtime/src/main/java/androidx/work/impl/utils/StopWorkRunnable.kt
ap...@google.com <ap...@google.com> #40
Project: platform/frameworks/support
Branch: androidx-main
commit 9651c996b5689c1b1ed1267447759bd816f878bc
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Feb 03 14:41:21 2023
Move StartWorkRunnable & StopWorkRunnable from .java to .kt
bug: 209145335
Test: NA
Change-Id: I41f0e9b82c786bfa4118f92564ab7f3c17307dd5
M work/work-runtime/src/main/java/androidx/work/impl/utils/StartWorkRunnable.kt
M work/work-runtime/src/main/java/androidx/work/impl/utils/StopWorkRunnable.kt
https://android-review.googlesource.com/2419665
Branch: androidx-main
commit 9651c996b5689c1b1ed1267447759bd816f878bc
Author: Sergey Vasilinets <sergeyv@google.com>
Date: Fri Feb 03 14:41:21 2023
Move StartWorkRunnable & StopWorkRunnable from .java to .kt
bug: 209145335
Test: NA
Change-Id: I41f0e9b82c786bfa4118f92564ab7f3c17307dd5
M work/work-runtime/src/main/java/androidx/work/impl/utils/StartWorkRunnable.kt
M work/work-runtime/src/main/java/androidx/work/impl/utils/StopWorkRunnable.kt
Description
No description yet.