Status Update
Comments
aa...@google.com <aa...@google.com> #2
Sample project attached.
vi...@google.com <vi...@google.com> #3
What steps are needed to reproduce this issue? Frequency of occurrence?
Which device did you use to reproduce this issue?
Can you confirm if this issue is reproducible on a Pixel/Nexus device?
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report and screenshot to google drive and share the folder to android-bugreport@google.com, then share the link here.
aa...@google.com <aa...@google.com> #4
I attached a project in
Run the app once to allow the BroadcastReceiver to register. Then rerun it over and over again.
On any API 35 device (I used an emulator and a Pixel 8 Pro), the BroadcastReceiver will get BOOT_COMPLETED
action every time you launch the app.
This seems to only happen when launching the app from Android Studio. When I force stop the app and launch it from the device itself, it doesn't happen. Something about the way AS launches the device is triggering the BOOT_COMPLETED
event. But only on API 35
vi...@google.com <vi...@google.com> #5
We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
ho...@gmail.com <ho...@gmail.com> #6
I'm just now experiencing that something is not right. Regarding 2 types of intent event.
- android.intent.action.BOOT_COMPLETED
- android.intent.action.LOCKED_BOOT_COMPLETED
I also experience this when I launch the app from Android Studio. But I also get additional log.
- BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED action:android.intent.action.LOCKED_BOOT_COMPLETED dispatchLatency:1 completeLatency:604 dispatchRealLatency:0 completeRealLatency:604 receiversSize:1 userId:0 userType:android.os.usertype.full.SYSTEM
- BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED action:android.intent.action.BOOT_COMPLETED dispatchLatency:604 completeLatency:837 dispatchRealLatency:604 completeRealLatency:837 receiversSize:2 userId:0 userType:android.os.usertype.full.SYSTEM
- Device: S25 Ultra android 15
- Android Studio: 2024.2.2 Patch 1
Description
```
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application ...>
...
<receiver
android:name=".MyBroadcastReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
```
And:
```
class MyBroadcastReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
Log.i("LogTag", "MyBroadcastReceiver: action=${intent.action}")
}
}
```
On API 35 (both physical device & emulator) the receiver gets a `BOOT_COMPLETED` broadcast every time I launch the app:
```
11-19 08:21:17.219 23781 23781 I LogTag : MyBroadcastReceiver: action=android.intent.action.BOOT_COMPLETED
11-19 08:21:17.220 1473 17948 I BroadcastQueue: BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED action:android.intent.action.BOOT_COMPLETED dispatchLatency:0 completeLatency:374 dispatchRealLatency:1 completeRealLatency:374 receiversSize:1 userId:0 userType:android.os.usertype.full.SYSTEM
...
11-19 08:21:19.994 23866 23866 I LogTag : MyBroadcastReceiver: action=android.intent.action.BOOT_COMPLETED
11-19 08:21:19.995 1473 7170 I BroadcastQueue: BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED action:android.intent.action.BOOT_COMPLETED dispatchLatency:3 completeLatency:371 dispatchRealLatency:3 completeRealLatency:371 receiversSize:1 userId:0 userType:android.os.usertype.full.SYSTEM
```
Devices used:
```
google/husky/husky:Baklava/ZP1A.241108.004.A1/12637121:userdebug/dev-keys
google/sdk_gphone64_x86_64/emu64xa:15/AP31.240617.003/12088229:userdebug/dev-keys
```