Question Service logd - Xiaomi Mi 11

Hi guys, I have a service logd that seems appears after passing script adb shell cmd package bg-dexopt-job . Do you have it ? It seems consume battery at same level like Bluetooth or phone standby. Any risk to have battery drained?

Related

[Q] Non-functioning stamina/false battery reading.

hi !
At first i tried to get some GOOD answer from the official forum ,but... pfff.... lol : they said factory reset my phone ,delete batterystats.bin ,etc.
These are voodoos only and do not wok ! (OS always creates a new stats file after every charge)
Well ,here comes the problem(s) and the facts about my phone:
Warranty : yes
Model : c5303
Rooted : yes
Bootloader : unlock NOT allowed (LBL,never touched)
OS : Stock based. (no matter what ,i have the same issues)
Service center : NOT FAULTY
The problems :
1. A real example :today i had 61% charge. Powered off my phone for approx. 5 mins. After this turned ON ,and i had 81%. What the hell ??? It is a real charge level ,drains lineary it holds out till the end !
2. In official 4.3 and custom ROMs based on that ,STAMINA absolutely doesnt work. I have exactly the same standby time with or without it. Forget the force stop eco ,etc mode controller ,clear data,etc. It doesnt work !
Logcat LOG : http://pastebin.com/NSV7j68T
Created with my phone from a terminal window. If you need something else ,please let me know.
A real fact too : with stamina off ,the OS calculates the remaining uptime to ~4 days. I turn on STAMINA ,it displays ~15 days ,but after a few hours it lowers to the STAMINA OFF value. Why ????
3. Phone configured to totally OFFLINE mode in 2G. Just like an old Nokia 3210. EVERYTHING is off ! Everything. Even NFC too.
Freeze with Titanium Backup ? It doesnt help.
I have the same issues with every stock based ROMs ! (Dont forget ,i have LBL !)
Guys ! What can i do ? This is not a normal situation !
akimester said:
hi !
At first i tried to get some GOOD answer from the official forum ,but... pfff.... lol : they said factory reset my phone ,delete batterystats.bin ,etc.
These are voodoos only and do not wok ! (OS always creates a new stats file after every charge)
Well ,here comes the problem(s) and the facts about my phone:
Warranty : yes
Model : c5303
Rooted : yes
Bootloader : unlock NOT allowed (LBL,never touched)
OS : Stock based. (no matter what ,i have the same issues)
Service center : NOT FAULTY
The problems :
1. A real example :today i had 61% charge. Powered off my phone for approx. 5 mins. After this turned ON ,and i had 81%. What the hell ??? It is a real charge level ,drains lineary it holds out till the end !
2. In official 4.3 and custom ROMs based on that ,STAMINA absolutely doesnt work. I have exactly the same standby time with or without it. Forget the force stop eco ,etc mode controller ,clear data,etc. It doesnt work !
Logcat LOG : http://pastebin.com/NSV7j68T
Created with my phone from a terminal window. If you need something else ,please let me know.
A real fact too : with stamina off ,the OS calculates the remaining uptime to ~4 days. I turn on STAMINA ,it displays ~15 days ,but after a few hours it lowers to the STAMINA OFF value. Why ????
3. Phone configured to totally OFFLINE mode in 2G. Just like an old Nokia 3210. EVERYTHING is off ! Everything. Even NFC too.
Freeze with Titanium Backup ? It doesnt help.
I have the same issues with every stock based ROMs ! (Dont forget ,i have LBL !)
Guys ! What can i do ? This is not a normal situation !
Click to expand...
Click to collapse
I'm not really sure how your phone behaves in term of battery drain.
First are you using Greenify? If not, make sure you do!
Do you have any background process that drains your battery like "Media Server", if yes you can make a shell script which you can execute from the terminal or use init.d script with init.d app. (Both are quite easy, if you need help I can give you some guidance).
Download CPU Spy and check if your phones goes into "Deep Sleep" when you're not using it.
Use Wakelock Detector to see which programs "wakes" your device, how often and for how long.
Share what your battery life is on average and in stand by mode.
Most of the time the phone calculates the remaining time on the average reading for the past few hours or smth like that.
In my case (just giving you an example), I use stock .205 ROM, rooted, stock kernel, Locked Boot Loader.
With Greenify, Media Server script that I exec from the terminal and Stamina mode, I drop like 1% of battery every 6-8 hours when I'm not using my phone (3G, GPS, Wi-Fi on all the time. NFC & bluetooth - off). I mostly charge my phone before I go to bed, and when I wake up it's still at 100%.
because of my poor english knowledge ,its pretty hard to draw up the things.
well ,greenify. i use it ,but i cant greenify system apps/services ,only "playstore" things. (all my apps are stock apps ,bloatwares are freezed with TB)
wakelock detector. nothing(!) keeps my phone awake ! nothing !
according to the OS' battery stats ,i have no awakes ,the display has the highest consumption ,everything else has lower percentage.
cpu spy:its interesting.. once im in deepsleep ,other times NO ! and yes ,i refreshed the stats. but when in deepsleep ,i have the same amount of drain when not in deepsleep !
btw i know what stamina is and how it works.
ok ,please tell me how can i use/create that greenify/media server script thingy.
akimester said:
because of my poor english knowledge ,its pretty hard to draw up the things.
well ,greenify. i use it ,but i cant greenify system apps/services ,only "playstore" things. (all my apps are stock apps ,bloatwares are freezed with TB)
wakelock detector. nothing(!) keeps my phone awake ! nothing !
according to the OS' battery stats ,i have no awakes ,the display has the highest consumption ,everything else has lower percentage.
cpu spy:its interesting.. once im in deepsleep ,other times NO ! and yes ,i refreshed the stats. but when in deepsleep ,i have the same amount of drain when not in deepsleep !
btw i know what stamina is and how it works.
ok ,please tell me how can i use/create that greenify/media server script thingy.
Click to expand...
Click to collapse
Well if you have some battery juice leak, than maybe it's hardware problem as it seems, cause from what I can tell your software behaves perfectly fine.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
For script you just create file called let's say "mediaserver.sh" or whatever you wanna call it as long as it has ".sh" at the end.
You edit it with text editor and paste:
#!/system/bin/sh
killall -9 android.process.media
killall -9 mediaserver
in it.
Place it anywhere in your phone. Let's say SD card.
You go to terminal and type:
su
exec /mnt/sdcard/mediaserver.sh
exit
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
But in your case you don't have Media Server or any other app eating your battery juice, so if you have poor battery life it's the battery itself.
Best thing you could do it, stress test the battery.
Charge your battery to 100%. Unplug the charger.
Go to dialer and type #*#*4636#*#* → battery information → battery voltage should be around 4150~4200 at full charge. Everything above 4100 is healthy battery.
Go and set your screen brightness at 70-80% and play a game. Your battery will should last at less 3h.
Then charge the battery to 100% again. Check the voltage. Put your phone in stamina mode and see how much your phone will last if you're using it only as a phone, without playing games, internet, etc. See if you can get more than 2 days.
If results are good then I would not worry about anything if I were you.
thank you ,i will try it !
have a nice day !

Xposed high CPU usage with logd

Hi, I'm running into a problem for which I can find no information by searching. I just installed a fresh copy of CM13 and Xposed on my Sprint Galaxy S5 (SM-G900P), and noticed extremely fast battery depletion. Upon looking into it with htop as root, I noticed high CPU usage by three or more /system/bin/logd processes, and additionally a process with a partial command line logcat -v time -s Xposed. I wanted to know if anyone else has encountered this trouble on GS5s, and if so, do you know how to fix it? Currently I have Xposed disabled but I want to play with it!
Edit: With Xposed disabled, CPU usage is still off the charts. in just two hours, the battery was depleted by 70% - and I hadn't had the screen on at all! The running processes were still present, and the device didn't sleep at all during that time. I have a screenshot if it's desired, of the Battery page in CM13 settings. I've had to uninstall Xposed framework, I hope we can fix this so that I can reinstall it.

Analyzing the Standby drain from Android OS

Let me keep this short and to the point. As numerous other users, I am also extremely bothered by the huge Android OS drain while on standby. On average, standby drain is 3% - 4% per hour,which is unacceptable. Let me describe my condition and my findings.
My setup
Stock OpenBeta 10 - 12, stock kernel, with Magisk and greenify. Dual sim (Airtel + Jio). 4G mobile data always active on Jio. Drain remains same if I disable both/ one of the sims, turn off data, or switch to flight mode.
What I tried
Used this command from a PC to check if any rogue app is using too much CPU. It once showed me Google drive was constantly using 6% CPU, but it was an one time bug, rebooting fixed it and never showed up again. Clearly, active usage was not problem, only the standby.
Code:
adb shell top -m 20 -s cpu
Then I checked BetterBatteryStats and I always see such alarming "Wake (Screen Off)" times. As you can see in screenshot in attachment. It is almost 50% of total standby. It might seem if the wakelocks are due to Google Play Services or GoogleQuickSearchBox, but no! Google's app take wakelock only if the phone is already awake, the primary reason of waking up has to be checked by this tool called Battery Historian by Google
To use it,
Download the repository as Zip file from https://github.com/google/battery-historian
Install python 2.7 and add python to your path.
Unzip Battery Historian after downloading as ZIP and go to scripts folder.
Run these two commands in cmd with phone connected in USB Debugging mode
Code:
adb shell dumpsys batterystats > batterystats.txt
python historian.py batterystats.txt > batterystats.html
If you cant get python running, skip the second command and upload the txt file here.
Now you will have a HTML file, possibly around 4-5MB. Opening it takes a bit of time to fully load in browser, like 1-2mins. Be patient.
In this graph, compare your screen, wake_lock* and wake_reason rows. In my case, the wake reason is almost always QCOM SMD-MODEM or QCOM SMD-MPM. And loads of wakelock from RILJ_ACK. Both of these point to possible screw ups from OnePlus at proper optimization of the radio interface.
I am not exactly sure what this means as I don't have much expertise on the kernel level, instead I am an app developer. I highly suspect it is a bug at the firmware/radio level.
I urge everyone to post their own findings and also help in fixing the problem with proper explanation if anyone possesses the kernel level expertise. I have also included my own battery stats in the attachments, if anyone is interested in further investigation
RESERVED

Question Battery stat always resetting

Hi, since last eea rom, m'y battery stat are always resetting after a certain moment. This morning , my stat where here and after disabling plane mode , they reset .Do you have this ?
On xiaomi.eu Rom, same problem, reset after 30 min...
Maybe it's due to 12.0.9
My stat reset every morning when I wake up. I stop plane mode and start wifi and bluetooth and then 3 minutes later battery stats are gone
mine are fine
also with 12.0.9 stats are there until 100% charged
I'm on 12.0.9.0, no issue in battery stats
qvert said:
mine are fine
also with 12.0.9 stats are there until 100% charged
Click to expand...
Click to collapse
i passed this in adb , what you advice after passing 12.0.9 version ,
adb shell pm disable-user com.android.traceur
adb shell cmd package bg-dexopt-job
can it be related ?
nope
1 does disable taceur the logging (i also did)
2 this basically does just run the bg-dexopt-job which also runs every other day when the device idles on 100% battery and charged
it's not related to your issue
but you can also revert #1 if you want
just switch disable-user with enable-user
Ok I found the app causing that. With xiaomi adb, I froze com.miui.powerkeeper. after reenable it, problem is gone

Question Weird battery drain.

Hello.
I use my Z8 as a daily driver about 3 months. I have a trouble with battery drain. Some screenshots:
Why does the system sometimes take 8% and sometimes not at all. "Android OS" and "Android System" in battery info are presents, battery drain is high. If these processes are invisible, battery drain is OK. Why?
Problem solved:
daemon /*bin*/sscrpcd is a mine problem. I delete this daemon from filesystem, battery OK and even proximity sensor alived!
Hey, what exactly you mean by this sscrpcd?
I simply deleted this program (sscrpcd) and battery drain stopped, proximity sensor alive.
sscrpcd is a daemon for sensors.
Topic
Hi,
where can i find this program sscrpcd so i can delete it.
# find / -name sscrpcd
/vendor/bin/sscrcpd
After clean installation
lineage-19.1-20230407-nightly-sake-signed.zip
pjk11 said:
/vendor/bin/sscrcpd
After clean installation
lineage-19.1-20230407-nightly-sake-signed.zip
View attachment 5884213
Click to expand...
Click to collapse
Well I am on stock OS and don't have RW on vendor so would need to change OS but will probably do that anyway. Last thing to give my zenfone 8 a chance before switching to other brand due to how bad battery is. Maybe on LineageOS it will magically resolve.
You need root.

Categories

Resources