[Q] Com.android.keyguard consuming loads of RAM... - General Questions and Answers

Hello all!!!
Recently I rooted my phone, a Galaxy S4. Anyway, I've been in the process of freezing apps and services. I noticed that the com.android.keyguard service is consuming the largest portion of RAM, usually around 500-700mb. I am cautious when disabling services and being that this is a system service, I wondered if it could be frozen without crashing my phone. I get slowdowns and hangs here and there and figured out that ending that process with CCleaner makes my phone immediately speed up. Any ideas are appreciated...

I just wanted to update you all on my progress and what I discovered. Since nobody replied to this message, maybe it was a little too advanced for this section of the forum and was misplaced so I apologize. Anyway, I did more reading and gathered that the service could be frozen, however, you lose the ability to lock your screen along with the home button functionality and the menus that are offered with it. What you can gain is a marked increase in performance. On average this service was consuming over a quarter of my total RAM and when it approached around 40% of memory, stalled and hung up my phone forcing me to hard restart my phone. Since then, it no longer occurs. If you don't need a password or the home button and find your phone performing like mine, this is a viable way to achieve a performance boost. Post below if others find this helpful as many have discussed this topic but never came to any conclusions.

I wanted to keep you all up on my findings and they're positive. Not only have I not had a slowdown or lockup, I've also gained a load of battery life. I was fully charged and only consumed 3% of the power using my phone lightly over a 10 hour period. It's very promising. I've seen discussion here concerning this service but the focus is on disabling the lockscreen while keeping the home button functionality. Please comment if this is helpful...

Try to restore factory Settings?

tpgugezhanghu said:
Try to restore factory Settings?
Click to expand...
Click to collapse
I never thought to do that because other than the hangs and slowdowns, the phone performed normally. Thinking back though, these problems started to effect me more after installing the upgrade to kitkat

Related

HOW to check your battery life ( HTC HELP CENTRE )

Today i contacted HTC Center to ask them about the battery drain issue and overheating happes after updating to ICS they didn't give me a quit good answer for all they questions but,, they give a way to check battery life ..
NOTE: if ur device dzn't pass this send it back to repair
1ST A range of 10-20 hours of battery life is normal based on individual usage patterns, you may try dialing *#*#4636#*#* to check the battery information including health and status.
To optimize the performance of the battery follow the below:
1. turn off Wireless connections (Wi-Fi, Mobile Network, Bluetooth) when not in use
2. Stop services and apps running in the background by going to menu> settings> applications> Running services> tap the service you want to close> tap stop/Close.
3. Adjust the display settings to where it uses less battery and meets your needs
Here are also some tips for you to conserve battery life if you are experiencing this issue.
? Try rebooting your phone every few hours. Rebooting your phone clears the phone internal memory and shuts down programs that may be running in the background and using battery.
? Try turning off the data connection when not in use. Data connections in the background and syncing can cause the phone to use more battery even when sleeping.
? You can set your display to brightness to auto. Allowing the phone to adjust the brightness allows for optimal viewing while conserving as much battery as possible.
IMPORTANT
You may also try the battery test, by following the instructions below:
1. Restart your device
2. Turn on Airplane Mode
3. Connect your device to the charger, and charge it fully
4. Set Screen Brightness to Max.
5. Set Screen Time out to never.
6. Dial *#*#3424#*#*, choose battery run down test, and follow the instructions.
NOTE: If the device loses more than 40% of battery in an hour, then send your device to the repair center for repair.
pplzzzz post somthing to keep the thread alive.
IF you like it HIT
THANKS​IT Manager Musa91
Sorry to burst your bubble but these step will actually reduce the battery , if your phone drains a lot and heats up you have a faulty device that's it.
If you reboot often phone consumes a lot more by loading everything AGAIN it wont save your battery at all.
Autobrightness doesn't always work , its better if you manually set it to 35%- 40%.
Turning off wireless and data will conserve battery that's like smartphone 101 , who doesn't know that?
Android and particularly ICS automatically terminates unnecessary background processes, there is no point in killing them. In fact if you do that often it will consume more battery to start them again if they are needed. Just remember to swipe away apps after you're done, ICS will take care of the rest.
As for the battery tip , after you initiate the test phone will ask you to turn airplane mode on, it will also keep the max brightness level and wont turn off the screen so there is no need to perform the steps you've posted.
posting to keep it alive lol
i didn't either convinced with there answers as i told they wasn't direct ....
this is just a test nothing else...
and about overheating and reboots it's only happen to allot of people after ICS update
i do normally after flashing any rom set the brightness to 35% ..
lol
i did the 1 hour test and my battery level get down to 74%
the battery heat was between 32.3 to 43.7 C
Pikabat said:
Sorry to burst your bubble but these step will actually reduce the battery , if your phone drains a lot and heats up you have a faulty device that's it.
If you reboot often phone consumes a lot more by loading everything AGAIN it wont save your battery at all.
Autobrightness doesn't always work , its better if you manually set it to 35%- 40%.
Turning off wireless and data will conserve battery that's like smartphone 101 , who doesn't know that?
Android and particularly ICS automatically terminates unnecessary background processes, there is no point in killing them. In fact if you do that often it will consume more battery to start them again if they are needed. Just remember to swipe away apps after you're done, ICS will take care of the rest.
As for the battery tip , after you initiate the test phone will ask you to turn airplane mode on, it will also keep the max brightness level and wont turn off the screen so there is no need to perform the steps you've posted.
posting to keep it alive lol
Click to expand...
Click to collapse
u keeped it a way way over life
Pikabat said:
Android and particularly ICS automatically terminates unnecessary background processes, there is no point in killing them. In fact if you do that often it will consume more battery to start them again if they are needed. Just remember to swipe away apps after you're done, ICS will take care of the rest.
Click to expand...
Click to collapse
While I agree with you on most of the other points, this one needs a bit of explanation. Although, the memory management in ICS is far better and is a bit like what Windows Vista and 7 do, at times you do need to kill some messy programs which play with system privileges and hog battery, like the famous facebook application.
GB and ICS use in-memory program caching like Vista and Windows 7, i.e. they keep frequently running programs in RAM and use as much memory as possible (or in sane limits in case of 7) for this task. It is freed automatically if a program requires more RAM. Thats why even when a large part of memory appears to be consumed most of the times on ICS/GB and Vista/7, large program still run perfectly well. The OS is just consuming the RAM that is lying around when no program is using it. GB and ICS even introduced a "Cached Applications" view in their "Running Apps" screen to take a look at these cached apps.
This makes the killing of background processes optimized for the OS as processes which are not used for long time can be marked inactive first and then cached. These cached processes can then be removed in cases memory is required by some program.
But there are some nasty apps like the Facebook app which not only keeps processes in background, but also keeps them active and mark the services spawned from the main executable as system services hence they are not killed at all. Facebook's background upload system, the so called "push notifications" service, all these take CPU and other resources all the time and dramatically reduce the battery life. Hence killing these manually is still required.
This is my personal experience or perception or whatever.
krazy_about_technology said:
While I agree with you on most of the other points, this one needs a bit of explanation. Although, the memory management in ICS is far better and is a bit like what Windows Vista and 7 do, at times you do need to kill some messy programs which play with system privileges and hog battery, like the famous facebook application.
But there are some nasty apps like the Facebook app which not only keeps processes in background, but also keeps them active and mark the services spawned from the main executable as system services hence they are not killed at all. Facebook's background upload system, the so called "push notifications" service, all these take CPU and other resources all the time and dramatically reduce the battery life. Hence killing these manually is still required.
This is my personal experience or perception or whatever.
Click to expand...
Click to collapse
What you're saying is true but its still not accurate. As you mentioned facebook is marking its processes as system service which means it gonna try to start again automatically. As I said before there is no point in killing, also facebook made some improvements in this area. I remember that old version was using about 40mb of ram when it was idling but now it uses about 8-9mb. As for the push notifications I've disabled them so I cant comment on that but I do know that its not always working.
Pikabat said:
Sorry to burst your bubble but these step will actually reduce the battery , if your phone drains a lot and heats up you have a faulty device that's it.
Click to expand...
Click to collapse
You may as well talk to a wall.
This guy makes stuff up and posts it as fact, then begs for thanks for his posts. He claims he's an expert but doesn't know the most basic things about how Android phones work.
I mean for crying out loud....ICS is well known to add about 20% to battery life. It's one of the best features of the new version. There were countless threads about the improvement people saw when first switching to ICS a few months ago when it first started to come out. Yet this thread basically suggests that it's a known fact that ICS causes increased battery drain.
Taking his advice is somewhere between counterproductive to your goals and downright dangerous to your device depending on what he's suggesting.
Guys, please stay on topic. There is no need to call this guide "dangerous".
His points might not bring any advantage but they are not dangerous either.
Neutral discussions are okay, but please don't start attacking each other.
We are in a forum were we want to help each other and not having contests on the best guides or whatever.
I won't comment every single point made here, but both sides have their rights and wrongs.
So please keep this technical.
Personal attacks are not tolerated on XDA.
Diamondback said:
Guys, please stay on topic. There is no need to call this guide "dangerous".
His points might not bring any advantage but they are not dangerous either.
Neutral discussions are okay, but please don't start attacking each other.
We are in a forum were we want to help each other and not having contests on the best guides or whatever.
I won't comment every single point made here, but both sides have their rights and wrongs.
So please keep this technical.
Personal attacks are not tolerated on XDA.
Click to expand...
Click to collapse
When you suggest mixing and matching elements of different versions of hacked firmware, that most certainly is dangerous. (For the phone anyway)
So much can go wrong doing a thing like that.
And when someone is recomending doing that as a sollution to every new problem someone suggests without regard to ROM, current firmware, the specific problem, android version, etc etc.....that is irresponcible.
Thats what this guy is doing in several other threads. This thread isnt one of the damgerous ones. Its one of the counterproductive ones I mentioned.
Someone will screw up thier phone with this advice. Pointing this out is not insulting to 1 person. Its being helpful to hundreds.
If we just sit silently and not say anything about bad advice, we wouldnt be very good forum members.
Sent from a rebel ship by storing the message in an R2 unit. (Help me, XDA. You're my only hope)
Skipjacks said:
When you suggest mixing and matching elements of different versions of hacked firmware, that most certainly is dangerous. (For the phone anyway)
So much can go wrong doing a thing like that.
And when someone is recomending doing that as a sollution to every new problem someone suggests without regard to ROM, current firmware, the specific problem, android version, etc etc.....that is irresponcible.
Thats what this guy is doing in several other threads. This thread isnt one of the damgerous ones. Its one of the counterproductive ones I mentioned.
Someone will screw up thier phone with this advice. Pointing this out is not insulting to 1 person. Its being helpful to hundreds.
If we just sit silently and not say anything about bad advice, we wouldnt be very good forum members.
Sent from a rebel ship by storing the message in an R2 unit. (Help me, XDA. You're my only hope)
Click to expand...
Click to collapse
you are a 1 of two ::: either u r racism or u can't read coz this is not me invented this way of test IT's HTC HELP CENTER AS I WROTE IN THE TITLE READ well
"Today i contacted HTC Center to ask them about the battery drain issue and overheating happes after updating to ICS they didn't give me a quit good answer for all they questions but,, they give a way to check battery life .. "
and the other thread you talk about is proofed with video and photo's and cleared how to use it with the right firmware with specific ROM so stop this chasing out and don't make ur self looks like a hero we all here support each other to provide a good solution for other's so keep it that way end of discussion.
Ok final warning regarding attitude to all.
If I see any more of this there will be consequences to all.
Consider this a final warning...
Skipjacks said:
When you suggest mixing and matching elements of different versions of hacked firmware, that most certainly is dangerous. (For the phone anyway)
Click to expand...
Click to collapse
Not true. No documented cases of it harming the Sensation. 3.12 and 3.32 are very similar. Also, with the development mode flash fix coming out any day now, even if someone bugs up their hboot or something, it'll be recoverable similar to how Samsung phones to use ODIN to completely flash back.
.......
sshede said:
it'll be recoverable similar to how Samsung phones to use ODIN to completely flash back.
Click to expand...
Click to collapse
i completely agree with you since i experanced that myself many times when i 1st buy the sensation so many wrong flashes then it's recoverd and back to work just fine

Battery Drain?

Here are some of my GSAM stats on this Imgur link. I am worried I am dealing with lousy battery life and have to charge my phone once a day mid-day to get anything done. I was expecting 5-6 SOT and decent stand by battery life with Doze. Even with Airplane Mode and Wi-Fi, my phone's battery life drains a bit too. I did a cache wipe and dalvik cache wipe too.
I have the July Patch with stock T-Mobile software: Baseband G930TUVU3APG1
https://imgur.com/a/z11jw
Do I need to do a factory data reset of some sorts? Or wait for a new update, even though T-Mobile is taking their merry ole time with the August patch?
I had really bad, terrible battery life when i first got this week couple weeks back until i looked into it.
First i installed root on the phone, and started to uninstall unnecessary programs and bloatware that came with the phone. If you decide to install root, PLEASE follow the instructions to a point. I forgot to disable manual security updates and one week later, ran into the famous bootloop and had to start all over. Oh well, lesson learned and i learned
After i uninstalled several programs, i still noticed that i had better battery life but not great. I thought maybe it was my old house the reception "pinging" was the cause of it. After searching around, i was told to install "Wakelock Detector" App from the Play Store.
What this App does is that it will tell you which app that are installed on your phone, are causing to "wakeup" your device either by pinging out, or waking up the screen or whatever. After running the program and after a day of it surveying my phone, it found several programs being the cause. Mainly my email App. It was waking up the device, something like 43 times a day. After looking around the settings of the App, i had it setup to check for emails every 5 minutes. After adjusting several other programs, battery life is great.
Just today, i took my phone off the charger at 9am and here it is 10:43pm and my battery is sitting at 55% battery with medium use today.
Also look into system settings such as Account sync options, wifi searching and whatnot.
Hope this helps. If you have any more questions, please feel free to ask away. I love to help out
Eighthourblink said:
I had really bad, terrible battery life when i first got this week couple weeks back until i looked into it.
First i installed root on the phone, and started to uninstall unnecessary programs and bloatware that came with the phone. If you decide to install root, PLEASE follow the instructions to a point. I forgot to disable manual security updates and one week later, ran into the famous bootloop and had to start all over. Oh well, lesson learned and i learned
After i uninstalled several programs, i still noticed that i had better battery life but not great. I thought maybe it was my old house the reception "pinging" was the cause of it. After searching around, i was told to install "Wakelock Detector" App from the Play Store.
What this App does is that it will tell you which app that are installed on your phone, are causing to "wakeup" your device either by pinging out, or waking up the screen or whatever. After running the program and after a day of it surveying my phone, it found several programs being the cause. Mainly my email App. It was waking up the device, something like 43 times a day. After looking around the settings of the App, i had it setup to check for emails every 5 minutes. After adjusting several other programs, battery life is great.
Just today, i took my phone off the charger at 9am and here it is 10:43pm and my battery is sitting at 55% battery with medium use today.
Also look into system settings such as Account sync options, wifi searching and whatnot.
Hope this helps. If you have any more questions, please feel free to ask away. I love to help out
Click to expand...
Click to collapse
Thanks, but what if I don't want to root whatsoever? I just want to keep stock for now. I heard the July update is causing battery issues for tons of folks?
nviz22 said:
Thanks, but what if I don't want to root whatsoever? I just want to keep stock for now. I heard the July update is causing battery issues for tons of folks?
Click to expand...
Click to collapse
You could always use Debloater 3.90 to disable certain apps from running. Although this wont unistalled the apps nor will it free up any space, it will prevent them from running.
Did you check into the settings that I mentioned within the System settings or download Wakelock Detector? This will help you figure out and pin point the issue.
#rooton
Eighthourblink said:
You could always use Debloater 3.90 to disable certain apps from running. Although this wont unistalled the apps nor will it free up any space, it will prevent them from running.
Did you check into the settings that I mentioned within the System settings or download Wakelock Detector? This will help you figure out and pin point the issue.
#rooton
Click to expand...
Click to collapse
I tried a few times in the past, but I always end up disabling stuff and it causes a headache. I only want to disable stuff like DT Ignite and T-Mobile anyways. I'll play with the settings. Didn't download the wake lock detector since it said root was better.
nviz22 said:
I tried a few times in the past, but I always end up disabling stuff and it causes a headache. I only want to disable stuff like DT Ignite and T-Mobile anyways. I'll play with the settings. Didn't download the wake lock detector since it said root was better.
Click to expand...
Click to collapse
Two good guides from the main Samsung S7 are located here :
Debloater - Safe Apps to Disable
Battery Life Discussion
Although i wouldn't disable all the apps that the thread suggests, i did use it as a guide. Most of Tmobile and useless Apps are safe to delete.
There is a way to run WakeLock Detector without root but you have to be familiar running command prompts / ADB lines. I can walk you through it if you are interested. Not too complicated, but can be if you have never did it before.
#rooton
Eighthourblink said:
Two good guides from the main Samsung S7 are located here :
Debloater - Safe Apps to Disable
Battery Life Discussion
Although i wouldn't disable all the apps that the thread suggests, i did use it as a guide. Most of Tmobile and useless Apps are safe to delete.
There is a way to run WakeLock Detector without root but you have to be familiar running command prompts / ADB lines. I can walk you through it if you are interested. Not too complicated, but can be if you have never did it before.
#rooton
Click to expand...
Click to collapse
I'll try those. Thanks.
Smart Manger was causing a huge drain for me. I disabled it with Package Disabler and drain was gone.
Sent from my SM-G930T using Tapatalk

[Q] Android OS - Data and Battery usage

Hi guys,
I have an S7 Flat since August 2016, and I noticed recently that my battery life isn't that great, and my mobile data usage is really high...
I went to check what could be causing this, and I noticed that the "Android OS" is using a LOT of data, and also on the top of battery consumption...
As you can see on the screenshot below, Android OS used more than 1,5gb of my Mobile Data:
https://hostr.co/file/5elmUph0ItsP/Screenshot_20170213-223014.png
And it is just the Mobile Data usage, it also sends and receives a lot of data via wifi...
Below you can see that it's on the top of battery consumption:
https://hostr.co/file/GXho82XWers5/Screenshot_20170213-222938.png
And below you can see its battery consumption and data usage via Wifi and Mobile while around 10 hours off the charger...
https://hostr.co/file/2NrfPAQv37Wy/Screenshot_20170213-222943.png
Does anyone knows what could be causing this and how to fix it?
Well, it seems that I'm screwed, I spent hours yesterday doing researches on the internet about this problem, and I found a lot of discussions, people report that they fixed it, but each one says that they did something different, I tried some of this "fixes" but it's still draining my battery and my mobile data
Some discussions that I read:
http://forums.androidcentral.com/sa...99-android-os-destroying-my-data-s7-edge.html
http://androidforums.com/threads/holy-smokes-high-data-usage-by-android-os-solved.490265/
This one, despite the fact that it says "solved" on the title, the OP fixed his problem, but a bunch of people like me couldn't fix it
Still doing researches, I see a lot of people giving tips about removing the facebook app, which I had done even before I noticed this battery drainage and data consumption...
I followed some of the tips, but no luck, I'm getting desperate and desperate times need desperate measures... I saw some people saying that turning power saving OFF would fix it (specially on S7), I thought that it doesn't make any sense, but since I tried almost everything, I just turned my power saving OFF, let's hope, tomorrow I'll have some results...
Some more threads that has tips:
http://androidforums.com/threads/android-os-excessive-data.1009403/
https://www.quora.com/How-do-I-to-stop-the-Android-OS-from-using-background-data
Well, I really don't understand the logic in this, but turning OFF power saving seems to have fixed it, if someone having the same problem reads this thread where I'm talking to myself and nobody tried to help, try turning OFF power saving.
Some screenshots below showing the battery and data usage without the power saving:
https://hostr.co/file/7adL8YDAndva/Screenshot_20170217-084633.png
https://hostr.co/file/SphgzYiSVgzC/Screenshot_20170217-084626.png

Need help on battery life and CPU usage

I have a Samsung Galaxy S7 and the battery was doing fine. A few weeks ago the phone started getting quite slow and the battery life went way down. I had installed a few apps around then, so I removed them and still battery life was bad. I tried restarting the phone and that didn't help. At the time I was running Marshmellow and I was using OSMonitor to watch the system. I was finding that Android OS was taking most of my battery and 30% of the CPU all of the time. Not long after that Nougat became available and I upgraded thinking that might help. It didn't help and OSMonitor no longer worked. I switched to GSam Battery Monitor and used adb to give it the permissions to see all app information. I'm still finding that the Kernel is taking 28% of my battery and Android System is taking 37% of my battery and I can't figure out why. I would rather not need to do a full reset and install all of my apps and settings again, so I'm asking if anyone out there has ideas on things to try and fix this. This is a non-rooted phone running the stock image from Samsung/Verizon.
Thanks for any help.
try activate the Battery Saving option and use it for a day and see if helps
I've had this happen to me before. The phone was getting seriously hot while it was happening too. I decided to do all I can without doing a factory reset (I was on vacation at the time, so no access to something to backup my data).
I cleared the cache of all apps. Then I disabled all of the stock apps I didn't need (like Gear VR). I also shuttered apps running in the background to about a max of 3 apps open at any given time. That stopped the insane heat issue, but Android System was still sucking 30% of the battery. I turned off Always On Display, that got me down to about 25%. A factory reset got the phone down to around 10%, and I never saw the issue again.
Before you do that I would recommend checking out this thread below as there does appear to be a bunch of other possible solutions provided by others.
https://forum.xda-developers.com/s7-edge/help/how-experiencing-android-battery-drain-t3327730/page51
Djuganight said:
try activate the Battery Saving option and use it for a day and see if helps
Click to expand...
Click to collapse
But then my background syncing is turned off too...
I didn't need this before, so wondering why I should need it now.
I had same issues and was able to fix it. See the following thread for details.
https://forum.xda-developers.com/showthread.php?p=71558514
Try this , it helped me a lot .
Download from the XDA forums the Kernel named : "Apollo Kernel" v7
Just flash it , and when you install it , if you dont use your phone for high end games or hard work,that requires high end specs , then you can underclock the cpu/gpu .
It s a battery life saver, plus , your components will be much better in terms of thermals/life

Question My battery drain is insane!

Hello everyone, I'm in trouble.
22 Ultra is simply eating battery at indescribable levels. Yesterday we went on a trip from work, I left my home with 100%. During the day I did not touch the phone, a bit of a camera but beyond that really nothing. My battery was about 40% after about 3 hours, with no screen use at all! On the other hand, a friend at work with Xiaomi came out with 100% and after 3 hours was on 85, and he did touch the phone here and there.
I don't know how that makes sense, and it's no longer clear to me what to do to solve the problem. I debloat, deleted and disabled a number of irrelevant apps but still, the battery is being eaten. How can I solve it? Please help me!
Draining battery so fast, 20% per hour while idle is not normal, so you definitely have a problem.
It looks that there are two possibilities here:
- Battery malfunction
- Some active process in the background that is using lots of processor power constantly.
If battery is damaged / not working properly, the only solution is to replace it. Still, this doesn't look like a case of duying battery.
If you have some persistent process running in the background that you can't get rid of by debloating, it can't be stopped by restarting the phone, and its not visible in the battery usage section, i would say that factory reset is the most effective option here, since you stated that you tried to deal with it in a various ways already.
You could also wait a bit until you get chance to update to OneUI 5 / Android 13, which should solve your problem, if it's software related.
Hope that you will find solution soon
draskome said:
Draining battery so fast, 20% per hour while idle is not normal, so you definitely have a problem.
It looks that there are two possibilities here:
- Battery malfunction
- Some active process in the background that is using lots of processor power constantly.
If battery is damaged / not working properly, the only solution is to replace it. Still, this doesn't look like a case of duying battery.
If you have some persistent process running in the background that you can't get rid of by debloating, it can't be stopped by restarting the phone, and its not visible in the battery usage section, i would say that factory reset is the most effective option here, since you stated that you tried to deal with it in a various ways already.
You could also wait a bit until you get chance to update to OneUI 5 / Android 13, which should solve your problem, if it's software related.
Hope that you will find solution soon
Click to expand...
Click to collapse
I want to keep the factory reset as the last option....
Every single app that I don't need at the background I disabled from running in background.
Deleted
maor23 said:
I want to keep the factory reset as the last option....
Every single app that I don't need at the background I disabled from running in background.
Click to expand...
Click to collapse
Try to wipe your system cache.....it won't do a factory reset but might solve the issue while keeping your phone as it is.
Volume UP button along with the power button until you see Android screen
Scroll down with volume down until you reach wipe system cache and reboot
sometimes, it won't show up while you press the buttons....in that case, connect your phone to your PC/Laptop with any USB C cable and then do it.
Second solution, you can try Samsungs App Booster.....get an apk from the net. It generally helps as well.

Categories

Resources