Obsolete
Status Update
Comments
dn...@google.com <dn...@google.com> #3
Can we get sample project or apk to reproduce the issue?
lb...@gmail.com <lb...@gmail.com> #4
@3 Updated the shared file to include the app this crash was on, even though you can already know this from the Crashlytics website link.
Do note, that as I wrote, this crash was from real users, and it might be a very rare bug.
We failed to reproduce it. I don't know why it occurs, and when.
I only know it doesn't make sense.
Do note, that as I wrote, this crash was from real users, and it might be a very rare bug.
We failed to reproduce it. I don't know why it occurs, and when.
I only know it doesn't make sense.
dn...@google.com <dn...@google.com> #5
We have passed this to the development team and will update this issue with more information as it becomes available.
lb...@gmail.com <lb...@gmail.com> #6
@5 Seems it occurs more often now, and Crashlytics reported in another link.
I've updated the file to include this. Now it has 3 links of the crash reports.
It occurs only on Pixel devices, but of all kinds: Pixel , Pixel 2, Pixel XL, Pixel XL 2.
I hope this gets fixed.
I've updated the file to include this. Now it has 3 links of the crash reports.
It occurs only on Pixel devices, but of all kinds: Pixel , Pixel 2, Pixel XL, Pixel XL 2.
I hope this gets fixed.
lb...@gmail.com <lb...@gmail.com> #7
If you want a sample app source code, which is similar (but not identical) to the one that I've reported about, you can try this one :
https://github.com/AndroidDeveloperLB/PhoneCallRecorder
But again, this issue might be rare, because on one hand we have a lot of users, but on the other hand it seems to occur only to Android P users.
But again, this issue might be rare, because on one hand we have a lot of users, but on the other hand it seems to occur only to Android P users.
lb...@gmail.com <lb...@gmail.com> #8
It might have been fixed on DP4, because we don't see it occur on Crashlytics anymore, for about 2 weeks.
dn...@google.com <dn...@google.com> #9
We've deferred this issue for consideration in a future release. Thank you for your time to make Android better.
dn...@google.com <dn...@google.com> #10
In case you want to provide more information with respect to this bug, please file a bug in AOSP via "https://goo.gl/TbMiIO ".
is...@google.com <is...@google.com>
ct...@google.com <ct...@google.com> #11
Not a dupe: that bug is about startService() use from Activity onResume(), not about startForegroundService() viability.
ct...@google.com <ct...@google.com> #12
Declaring obsolete on the basis of #8 -- this was reported in a preview release, and appeared fixed prior to formal release of Android P.
Description
* Which Developer Preview build are you using? See Settings > About phone > Build number (for example OPP5.170921.005).
Android P , probably occurs even on DP3, because Crashlytics shows both "P" and "9" as Android versions.
* Is this a regression from O to P?
Seems to occur only on Android P
* What device are you using? (for example, Pixel XL)
According to the reports, only Pixel 2 and Pixel 2 XL for now.
* What are the steps to reproduce the problem? (Please provide the minimal reproducible test case.)
The app listens to phone calls events, and starts a foreground service for handling it.
* Issue Category e.g. Framework (platform), NDK (platform), Hardware (CPU, GPU, Sensor, Camera), ART (platform), Runtime Permissions etc
Framework
* What was the expected result?
Not to crash, because we use official API :
ContextCompat.startForegroundService , and then in the service onCreate method, we call : startForeground
* Can you provide the API document where this expected behavior is explained?
* What was the actual result?
It crashes for some users
I will soon provide a link to the Crashlytics report website.
Here's the log about this crash:
Caused by java.lang.IllegalStateException: Not allowed to start service Intent { cmp=....ICEDuringCallService (has extras) }: app is in background uid UidRecord{c642574 u0a160 RCVR idle change:uncached procs:1 seq(0,0,0)}
at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1577)
at android.app.ContextImpl.startForegroundService(ContextImpl.java:1538)
at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:669)
at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:669)
at android.support.v4.content.ContextCompat.startForegroundService(ContextCompat.java:570)
at ....PhoneBroadcastReceiver.startCallerIdIfNeeded(PhoneBroadcastReceiver.java:84)
at ....PhoneBroadcastReceiver.onReceive(PhoneBroadcastReceiver.java:45)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3368)
at android.app.ActivityThread.access$1100(ActivityThread.java:197)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1645)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6642)
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)