[Q] Android system apps/files that monitor battery level - Android Q&A, Help & Troubleshooting

I am creating an kiosk using an android tablet and pcb.The pcb does my job of monitoring the tablets battery,and I want to avoid the various battery intents generated by my android device(since its causing some other serious issues on my app).so can anyone please shed light on the android system apps/files that monitor the battery level so that I can remove/delete/edit them??

Related

[ASK] How to reduce Application Memory Footprint?

Hi all,
I am a newbie @ Android application development, and still trying to learn. I have one question. If we take for example, the Greenify app, if i look into its memory consumption, the value is quite low (3.4MB +-) whereas, with my app, it always hover around 20MB or so. I wonder, how can i achieve the same result? Anybody can help? My application is a simple monitoring app for my client company, contains 2 services, 3 Activities (1 service and Activity for saving the account into the device). And even in fresh state, the memory always takes around 20MB.
Thanks for any info

OS Monitor alternatives

I used to install OS Monitor (https://play.google.com/store/apps/details?id=com.eolwral.osmonitor) on my Android devices.
It's a nice utility, very poweful yet not intrusive.
In particular, I like the realtime monitoring of CPU, RAM and battery temp.
Unfortunately, OS Monitor won't support Android 7.0 and following version due to securtiy constrain.
I searched for alternatives but without much success. The real-time monitors I found on Google Play offer widget but no integration with the status-bar.
Do you have any advice for a possible substitute?
Thanks.

Development: Avoid Samsung Device Care Wakeup alarms

Hello,
We have an Android SDK that many applications use for marketing purposes. Specifically, it allows to deliver personalized messages to their users based on geofences or bluetooth beacons detection.
We've dedicated tons of hours optimizing the thing so it does not drain user battery or annoys in any matter, however we are now facing a new challenge: Samsung Device Care (Samsung Maintenance).
As you may know, this application comes pre installed in (I think) all Samsung devices, and helps users to keep the battery consumption low by detecting apps that consume too much in the background among other features.
Our software behaves correctly in almost all categories, including battery consumption and background time execution, however the Samsung device care app sometimes shows an alert saying that the "application generates too many wake ups". In order to avoid this, we are being more aggressive by explicitly controlling the number wake ups when app is in the background, the only problem is that we are completely blind right now, as we don't know what is the threshold that Samsung Device care app uses to trigger this alarm.
I have decompiled the Samsung device care app, however the app seems to be written in C / C++, hampering the task.
I have also run tests for days in a couple of Samsung phones in order to see if I can trigger the alarm, so I can try to empirically found what the limits are, however I haven't been able to trigger any alarm, even though my testing code is requesting an AlarmManager callback every 30 seconds.
Finally, I have also opened a ticket in the Samsung Developer site, but no answer so far...
Do you have any idea where can I find this information? :crying:

How to keep an app since SDK 16 running foreground every time?

I’m building an app to monitoring the android device in Kotlin.
I’ve looked in 3 obstacles:
1 - The difference between android under and post 7.0.0 on foreground services
2 - Chinese ROMs, with an agressive kill of apps when user do a simple clean on last apps
3 - which android tool can I use for resolve it.
I’ve seen until now: AlarmManager, permanent notifications, accessibility service… Broadcast receiver to up application when system restart and battery optimization, but all my tries didn’t seem to help me in solving.
For example, the follow tutorial doesn’t work after I clean the lastest apps used in a Chinese ROM (Xiaomi): robertohuertas.com/2019/06/29/android_foreground_services
Showing permanent notification is the only way according to android docs. But chinese rom use there own task management to save battery which even closes permanent notification, If user manual cleans app from resent task. Currently i am ignoring those devices/ limited support. I am looking for better solution.

Hacking Amazon Halo Rise bedside sleep monitor

I am very new to the subject of hacking an Android app, and so I am interested in any advice that anyone more experienced has to offer. I have been using the Amazon Halo Rise bedside sleep monitor for 7 weeks now, and it is evidently accurately detecting REM sleep (apparently in real time, or very close to real time) along with the other stages of sleep (light sleep and deep sleep, and also wakefulness). These stages of sleep (and wakefulness) are displayed in a hypnogram graph in the Halo Rise app on my smartphone. I assume that the Halo Rise bedside device is using Wi-Fi to communicate with the Halo Rise app on my smartphone (Android version 13) because the Halo Rise app required my Wi-Fi password in order to work. The Halo Rise app does not use Bluetooth. I want to use the Halo Rise bedside device to experiment with lucid dream induction. I have previously written programs in C and Python, and I built a device that used an Arduino micro-controller along with a finger tip pulse detector and an accelerometer to reliably detect REM sleep. However, the Amazon Halo Rise bedside device is contactless and is apparently more accurately identifying REM sleep than my device. I am wondering if there might be a way to access the stages of sleep data in the Halo Rise app at the moment during which that data is actually written to the app and then generate a signal from my smartphone that would activate external hardware which in turn produces stimuli that might manifest in the dream to potentially induce lucidity. I realize that no one can probably directly answer this question, but I am definitely interested in any advice that might point me in the right direction, such as good technical books to read that explain the Android OS and how apps interface with it, any pertinent websites that address such technical topics, or any forums or maker spaces that address such technical topics. Here is a link for the Amazon Halo Rise https://www.pcmag.com/reviews/amazon-halo-rise I honestly would appreciate any advice. Thank you for your time.

Categories

Resources