Status Update
Comments
ba...@google.com <ba...@google.com>
ba...@google.com <ba...@google.com>
na...@google.com <na...@google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
- Android bug report (to be captured after reproducing the issue)
Android Wear devices connected to Android devices
-
On you Android phone, following the instructions below, under the section ‘Instructions on your companion phone or tablets (Android)’
-
Launch the ‘Android Wear’ app on your phone or tablet.
-
Tap on the three vertical ellipsis on the top right hand corner of the screen and click on “Report Wearable Bug” to capture a bug report from the watch
-
On the watch, you will observe a notification card with the text “Bug report #X is being generated”. It can take up to 20 minutes for the bug report to be generated and transferred to your phone.
-
Once the bug report is done, the notification card on the watch changes to “Bug report #X captured” and you will receive a notification on the phone that reads “Wearable bug report finished.
-
Tap to send." Tap on this notification and email the bug report to a pre populated email address
Instructions on your companion phone or tablets (Android)
- On your Android device, go to Settings > About phone or About tablet.
- At the bottom of the screen, touch 'Build number' seven times in quick succession. You’ll see a message saying you’re now in developer mode.
- Press Back to go back to the main Settings screen.
- Touch Developer options.
- At the top of the screen, make sure 'Developer options' is set to ON.
- Check the box next to USB debugging.
- Check the box next to Bug report shortcut.
- Reproduce the issue or error message on your phone or tablet. It’s important that your device logs at least one occurrence of the problem.
- Immediately after seeing the issue, press and hold the power button until the power menu appears.
- Select Take bug report, then select Report in the dialog that follows.
- After a significant delay -- up to two minutes -- your phone or tablet will vibrate and display a notification saying ‘Bug report captured’. Touch the notification to open Gmail with the report attached. +After replying to this message, you can disable developer mode and bug reports by going to Settings > Developer Options and sliding the top toggle to OFF.
de...@gmail.com <de...@gmail.com> #3
I have followed the following steps:
1. Run an app with the following permission:
<uses-permission-sdk-23 android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
2. Run either one of the two pieces of code:
// Will fail silently with ActivityTaskManager system_server I START u0 {act=android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS dat=package:cmp=com.google.android.apps.wearable.settings/com.google.android.clockwork.settings.FakeSettingsActivity}
val intent = Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS)
intent.setData(Uri.parse("package:" + context.packageName));
context.startActivity(intent);
// Will crash the app with android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS dat=package: }
val intent = Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS)
intent.setData(Uri.parse("package:" + context.packageName));
context.startActivity(intent);
I executed the first piece of code and then the second, and captured a dump state. See here (shared with android-bugreport@google.com):
vi...@google.com <vi...@google.com> #4
Would appreciate your assistance.
*Uri*
On Thu, Oct 31, 2024 at 7:10 PM <buganizer-system@google.com> wrote:
de...@gmail.com <de...@gmail.com> #5
Thanks for the information. We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
Description
I have devices for collecting data from sensors:
Model: XMWT01<br> Device name: Mi Watch 78CC<br> Build number: PXDP.210508.001.XM129<br>
Model: WG12026<br> Device name: TicWatch E2 0846<br> Build number: PWDR.190618.001.B8<br>
Model: SM-R860<br> Device name: Galaxy Watch4<br> Build number: R860XXU1BUH9<br>
For this devices I register accelerometer and gyroscope for collect data with 50 Hz frequency (for example):
I run the listener in the background service and save the data file in a separate thread using ExecutorService. After collecting and uploading the data, I do the validation.
My Service:
I count the number of counts per second and plot the accelerometer and gyro for 7-8 hours. The result is shown in the attached figure (test_samsung_gw4.png). As you can see from the figure, I'm getting big data misses. But, when I leave my application's main window on the screen (getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) in the main activity), I get data at a stable frequency and no data is lost.
I attached part of my code in the letter. The most important class is ReaderSensorService, which runs a listener for sensors.
My question is as follows: Can I specify any options, or by changing the approach to obtain data without loss in the background? (When my application is running in the background and the screen is off.)