[Q] How to prevent Task Manager from ever killing a particular app? - ONE Q&A, Help & Troubleshooting

Recently, for the first time, I tried to use an app to track a sports activity (MapMyRide). I find that sometimes the app will get killed out of memory, I assume by the Task Manager. It's surprising, because on my OnePlus One with its 3GB RAM, I've almost never seen anything killed by the Task Manager (as compared to every older, lesser Android device I've used, where the Task Managers tended to be fairly vicious).
The MapMyRide app has the 'prevent the device from sleeping' permission.
Is there a way to tell the OnePlus One (CM12, rev YNG1TAS17L) Task Manager to NEVER kill this particular app (without installing an add-on framework like Xposed)?
thanks,

libove said:
Recently, for the first time, I tried to use an app to track a sports activity (MapMyRide). I find that sometimes the app will get killed out of memory, I assume by the Task Manager. It's surprising, because on my OnePlus One with its 3GB RAM, I've almost never seen anything killed by the Task Manager (as compared to every older, lesser Android device I've used, where the Task Managers tended to be fairly vicious).
The MapMyRide app has the 'prevent the device from sleeping' permission.
Is there a way to tell the OnePlus One (CM12, rev YNG1TAS17L) Task Manager to NEVER kill this particular app (without installing an add-on framework like Xposed)?
thanks,
Click to expand...
Click to collapse
Arey you using any task killing apps or greenify?

venky61 said:
Arey you using any task killing apps or greenify?
Click to expand...
Click to collapse
Hi venky61, no - no task killing apps or any other configuration changes from default OnePlus One CM12.0 for memory management. My experience with my OnePlus One is that it almost never knocks anything out of memory. (With 3GB RAM, and good battery life, I guess it doesn't really need to). Which is why it seems strange that this particular app does get knocked out.
thanks,

libove said:
Hi venky61, no - no task killing apps or any other configuration changes from default OnePlus One CM12.0 for memory management. My experience with my OnePlus One is that it almost never knocks anything out of memory. (With 3GB RAM, and good battery life, I guess it doesn't really need to). Which is why it seems strange that this particular app does get knocked out.
thanks,
Click to expand...
Click to collapse
Yes exactly. The memory management is really good on OPO. It never kills any app.
Try these things in sequence. One of it should help.
1. Restart the device and check.
2. uninstall and install the app and check. Lastly,
3. Go to recovery and wipe cache and dalvik once.

venky61 said:
Yes exactly. The memory management is really good on OPO. It never kills any app.
Try these things in sequence. One of it should help.
1. Restart the device and check.
2. uninstall and install the app and check. Lastly,
3. Go to recovery and wipe cache and dalvik once.
Click to expand...
Click to collapse
Hi again. I had already done the restart and the uninstall/reinstall, to no effect; I've now tried the last option - rebooted into TWRP recovery and selected the wipe Dalvik and cache; I note that TWRP gave an error: it insisted on asking for a password (my phone is encrypted), but that shouldn't matter as - as far as I understand it - neither Dalvik nor cache is encrypted, just user data. Anyway, it wiped whatever it was going to wipe (and it did do something, because on the bootup just after I got the typical-after-wiping-Dalvik "upgrading..." message), and now I'm making on more test. My guess is that the MapMyRide app will still get kicked out of memory... we'll see! Nope, still got kicked out.
Any next suggestions? My theory rests on the possibility (in my ignorance, I admit) that maybe CM12 / its underlying Android 5.x base needs some extra/special permission to be granted to an app to allow the app to instruct the Task Manager to never kill it. Does such a permission even exist? What is the "correct" way for an app and Task Managers to agree that an app is high(er/est) priority and shouldn't be kicked out unless the device is dying?
thanks again,

libove said:
Hi again. I had already done the restart and the uninstall/reinstall, to no effect; I've now tried the last option - rebooted into TWRP recovery and selected the wipe Dalvik and cache; I note that TWRP gave an error: it insisted on asking for a password (my phone is encrypted), but that shouldn't matter as - as far as I understand it - neither Dalvik nor cache is encrypted, just user data. Anyway, it wiped whatever it was going to wipe (and it did do something, because on the bootup just after I got the typical-after-wiping-Dalvik "upgrading..." message), and now I'm making on more test. My guess is that the MapMyRide app will still get kicked out of memory... we'll see! Nope, still got kicked out.
Any next suggestions? My theory rests on the possibility (in my ignorance, I admit) that maybe CM12 / its underlying Android 5.x base needs some extra/special permission to be granted to an app to allow the app to instruct the Task Manager to never kill it. Does such a permission even exist? What is the "correct" way for an app and Task Managers to agree that an app is high(er/est) priority and shouldn't be kicked out unless the device is dying?
thanks again,
Click to expand...
Click to collapse
Hi,
Thats so abnormal that I heard to happen with Oneplus one. Try this app https://play.google.com/store/apps/details?id=com.lim.android.automemman&hl=en
Might be helpful to control the ram management.

venky61 said:
Hi,
Thats so abnormal that I heard to happen with Oneplus one. Try this app https://play.google.com/store/apps/details?id=com.lim.android.automemman&hl=en
Might be helpful to control the ram management.
Click to expand...
Click to collapse
Hi Venky,
I have two questions about the AutoMemMan app. One is that the app's page says that it does not work with Android 5, and OnePlus One CM12.0 is Android 5, so I hesitate to try it anyway.
But two, perhaps more important, is that I don't see from reading about AutoMemMan how it would help prevent the built-in task manager from killing this app.
Aside from the above, I am doing another test now, monitoring the MapMyRide app's memory use, using the built-in Settings -> Apps, select the MapMyRide app, to see if maybe it has a memory leak, which would of course cause it to be killed eventually.
Just now, I have recently started the test. The app began with 82MB of memory in use, and five minutes later is now using 85MB. The phone has 1,5GB RAM free So this may take a while

libove said:
Hi Venky,
I have two questions about the AutoMemMan app. One is that the app's page says that it does not work with Android 5, and OnePlus One CM12.0 is Android 5, so I hesitate to try it anyway.
But two, perhaps more important, is that I don't see from reading about AutoMemMan how it would help prevent the built-in task manager from killing this app.
Aside from the above, I am doing another test now, monitoring the MapMyRide app's memory use, using the built-in Settings -> Apps, select the MapMyRide app, to see if maybe it has a memory leak, which would of course cause it to be killed eventually.
Just now, I have recently started the test. The app began with 82MB of memory in use, and five minutes later is now using 85MB. The phone has 1,5GB RAM free So this may take a while
Click to expand...
Click to collapse
My bad... I have linked a wrong app. I was supposed to send this. https://play.google.com/store/apps/details?id=com.jrummy.apps.memory.manager&hl=en
I tried this and it gives an option to control the values for foreground and also has an option to selectively make an individual app ignore the memory management I guess as far I could understand. (Task Manager) One more reason to suggest it was to check if the app is given priority stage for memory management or not.
Now as you mentioned memory leak, If your phone has posed, there is a module to fix it. Try it http://repo.xposed.info/module/com.thetonyp.fixlollipopmemoryleak
Hope it gets solved soon for u

Hi Navi, yes, that "Memory Manager" by JRummy Apps does look promising.
Sad truth is I've just given up on this for now - I so rarely use the feature that it's not worth trying to debug further. Maybe next time I plan to use the feature I'll first load Memory Manager and see if it helps.
Many thanks for all the advice!

Related

Root cause for Gear 2 high battery consumption found, at least for non-Samsung phones

Edit: with new Gear Manager (Jun release), this method doesn't work anymore. The new approach is to install a "contact synchroniser killer" app on the rooted watch. More details are in this post.
==================================================================================================================================================================================
Hi all,
Ever since I started using my Gear 2 Neo with my HTC One M8 phone (using the guide in this forum), I noticed that my watch consumes battery significantly faster than most of the users have been reporting. Even more strangely, sometimes after resetting both the phone and the watch (and I've done this a lot while experimenting and trying to get more stuff working) I had streaks of stellar battery life, well in line with optimistic reports here and elsewhere, but then, after a while, it started deteriorating very quickly.
So I decided it was time to do something about it. I installed Tizen SDK, hooked the watch up and started poking around. The first thing I noticed my watch CPU was, most of the time, sitting on 40%! Well, that doesn't sound right, does it? Then I noticed the log (located under /var/log/dlog_main) was full with messages related to contact synchronisation. It turns out the damn thing synchronises all of my contacts every several seconds. The trouble is I have well over 1500 contacts (that's consolidated from different sources, the number of raw contacts should be well over 3000). So it takes significant time to do this, meaning my watch (and the phone!) are thrashed by these stupid full contact syncs all the time! What's even more striking is the fact it doesn't help when I change it to "favourites only". Apparently, this affects only the contacts displayed on the watch, however, the sync process still takes all of them.
At this point I started poking around Samsung APK files to try and understand what was going on. Apparently, the APK responsible for contact sync is called GOPROVIDERS. Indeed, if you kill it, the thrashing stops, however, other important functions cease working as well. Aside of Contacts vanishing from the Gear, "Find my phone" is gone as well, but, more importantly, notifications stop working. While I could tolerate the first two, the last one was too much to give up.
I started decompiling and analysing sources. Apparently, there is a process running every several seconds that analyses if any changes have been made to the contacts. It uses pretty bizarre logic which seems to be relying on Samsung-specific fields in the contacts. Now, this already sounds suspicious, and, apparently, leads to full sync every several seconds. Obviously, the more contacts you have, the harder you're hit.
An interesting point in all this is that I'm not 100% sure the logic is working properly even on Samsung devices, so it might well be that the same issue is affecting people with high number of contacts using Samsung phones as well. I'd be really interested to see any feedbacks regarding this.
So, long story short, instead of fixing the logic (which is quite difficult in SMALI), I made a simple change which dilutes this logic invocations, right now 1:64. Since then I'm enjoying MUCH improved battery life.
The fixed APK is attached. You're welcome to give it a try at your own risk (you need to enable installation from untrusted sources + reboot and clean dalvik cache).
mpogr said:
So, long story short, instead of fixing the logic (which is quite difficult in SMALI), I made a simple change which dilutes this logic invocations, right now 1:64. Since then I'm enjoying MUCH improved battery life.
Click to expand...
Click to collapse
Could you please explain your "logic invocations, right now 1:64" change?
JimSmith94 said:
Could you please explain your "logic invocations, right now 1:64" change?
Click to expand...
Click to collapse
In the fixed APK the logic is actually invoked 1 time out of 64 attempts. It makes its frequency about every 40 minutes instead of every 30 seconds.
mpogr said:
In the fixed APK the logic is actually invoked 1 time out of 64 attempts. It makes its frequency about every 40 minutes instead of every 30 seconds.
Click to expand...
Click to collapse
Thanks, I understand now. Congratulations on your find and fix! I'm going to try it.
mpogr said:
The fixed APK is attached. You're welcome to give it a try at your own risk (you need to enable installation from untrusted sources + reboot and clean dalvik cache).
Click to expand...
Click to collapse
Someone who knows where this should be shared and divulged to the rest of the community should do so! It sounds like this is a pretty bad bug that should be addressed officially, but BIG TIME props to you for figuring this all out!!
Thank you!!!
Im on samsung f/w (note3) yesterday ive experience on severe battery drain .. in a few hours it was completely drained.. I wasnt even wearing it.. so that logic aint the only faulty one .. thx for tgat fix.. il see if it helps
Sent from my SM-N900W8 using XDA Premium 4 mobile app
Guys, everyone with abnormal drain, it would be extremely helpful to troubleshoot your root cause if you could send me the log file from your watch that includes the affected time span. In order to do that:
Enable USB debugging on the watch (under settings->Gear Info)
Download and install Tizen SDK.
Connect your watch to the computer using its charging cradle.
Open the command line (cmd.exe), change to the folder where the SDK files are installed (the default is c:\tizen-sdk\tools) and then run the following command:
Code:
sdb pull /var/log/dlog_main
This will pull the log file to the same folder. Then send it to me via PM (ZIP first!), so I could have a look.
mpogr said:
Guys, everyone with abnormal drain, it would be extremely helpful to troubleshoot your root cause if you could send me the log file from your watch that includes the affected time span. In order to do that:
Download and install Tizen SDK.
Connect your watch to the computer using its charging cradle.
Open the command line (cmd.exe), change to the folder where the SDK files are installed (the default is c:\tizen-sdk\tools) and then run the following command:
Code:
sdb pull /var/log/dlog_main
This will pull the log file to the same folder. Then send it to me via PM (ZIP first!), so I could have a look.
Click to expand...
Click to collapse
well I decided to reformat my watch in case that woudl help but will surely grab a log next time somethign like this occurs.
Excellent work mpogr!! Will try this and report back
Sent from my GT-I9505 using Tapatalk
I think I too have this issue and I have an S5. Does the goproviders-signed.apk go onto the phone or the Gear2?
Are there some instructions on getting the goproviders-signed.apk file onto the Gear2?
apexhugger said:
I think I too have this issue and I have an S5. Does the goproviders-signed.apk go onto the phone or the Gear2?
Are there some instructions on getting the goproviders-signed.apk file onto the Gear2?
Click to expand...
Click to collapse
The APK file is installed on the phone. It is strongly advised to clear goproviders data before installing it.
I just made a new version of this APK corresponding to the new version of Gear Manager (2.1.14052101), it's attached to this post.
mpogr said:
The APK file is installed on the phone. It is strongly advised to clear goproviders data before installing it.
I just made a new version of this APK corresponding to the new version of Gear Manager (2.1.14052101), it's attached to this post.
Click to expand...
Click to collapse
Thanks for that. Is there a guide for getting this file onto the Gear2 (and clearing goproviders data)?
I'm quite new to this but good at following instructions
apexhugger said:
Thanks for that. Is there a guide for getting this file onto the Gear2 (and clearing goproviders data)?
I'm quite new to this but good at following instructions
Click to expand...
Click to collapse
Clearing data is usually available under "Settings->Apps" and then find the app (goproviders) and find "Clear Data" buton.
In terms of installing, you need to enable installation from untrusted sources first of all. Then, you can use any file manager software (e.g. "Root Explorer" or "Super Manager"), when you tap on an APK file, it will ask if you want to install it.
mpogr said:
Clearing data is usually available under "Settings->Apps" and then find the app (goproviders) and find "Clear Data" buton.
In terms of installing, you need to enable installation from untrusted sources first of all. Then, you can use any file manager software (e.g. "Root Explorer" or "Super Manager"), when you tap on an APK file, it will ask if you want to install it.
Click to expand...
Click to collapse
I'm having trouble getting this file to install, it doesn't let let me tap install (tapping Install does nothing). Does the phone need to be rooted?
Won't let me install, keeps failing.
Any ideas? I uninstalled with root uninstaller, still fails.
Do you think disabling Super User would temp fix the drain?
Sent from my SM-G900T using XDA Free mobile app
bubblebuddyi said:
Won't let me install, keeps failing.
Any ideas? I uninstalled with root uninstaller, still fails.
Do you think disabling Super User would temp fix the drain?
Sent from my SM-G900T using XDA Free mobile app
Click to expand...
Click to collapse
Please, check if installation from untrusted sources is enabled.
mpogr said:
Please, check if installation from untrusted sources is enabled.
Click to expand...
Click to collapse
It is.
Sent from my SM-G900T using XDA Free mobile app
bubblebuddyi said:
It is.
Sent from my SM-G900T using XDA Free mobile app
Click to expand...
Click to collapse
Actually, I think I faced it before. Gear Manager apparently checks if all of its components are installed and sometimes silently reinstalls them again.
Please, uninstall goproviders and install the alternative APK quickly afterwards.
I use Super Manager, one advantage of it is that you can see if the app is already installed (it show uninstall option when you tap on the APK in such case). I saw once, when I uninstalled the original app and then tried installing the new APK, it failed, but then, after tapping on it again, Super Manager showed that it was already installed. What I think happened was Gear Manager silently reinstalled the original app while I was trying to install the new one. Uninstalling (from Super Manager) and quickly installing again fixed it.
mpogr said:
Actually, I think I faced it before. Gear Manager apparently checks if all of its components are installed and sometimes silently reinstalls them again.
Please, uninstall goproviders and install the alternative APK quickly afterwards.
I use Super Manager, one advantage of it is that you can see if the app is already installed (it show uninstall option when you tap on the APK in such case). I saw once, when I uninstalled the original app and then tried installing the new APK, it failed, but then, after tapping on it again, Super Manager showed that it was already installed. What I think happened was Gear Manager silently reinstalled the original app while I was trying to install the new one. Uninstalling (from Super Manager) and quickly installing again fixed it.
Click to expand...
Click to collapse
I tried that with Root Uninstaller, it definitely silently installs it. Faster then I could install it. And apparently disabling Root in SU uninstalled it, because now I can't re-enable it. As long as I'm not rooted, I shouldn't have an issue right?
Sent from my SM-G900T using XDA Free mobile app
bubblebuddyi said:
I tried that with Root Uninstaller, it definitely silently installs it. Faster then I could install it. And apparently disabling Root in SU uninstalled it, because now I can't re-enable it. As long as I'm not rooted, I shouldn't have an issue right?
Sent from my SM-G900T using XDA Free mobile app
Click to expand...
Click to collapse
No idea mate. Just make sure you've got the right "goproviders" installed at the end of the process. The final APK will reside under /data/app and will be named "com.samsung.accessory.goproviders-N.apk" (where N is a number like 1, 2 etc.). Just grab it (e.g. by "adb pull") and do binary comparison with the file you installed ("diff" on Andoid/Linux or "fc /b" on Windows).

CPU Health: Warning

Hi, I have been using the CPU Monitor app to track my phone's health. Lately, I have been getting Good status. But recently, I get the Warning status.
According to the CPU Monitor, it is due to the CPU Usage and the space left on the SD card. My questions are is it possible to turn off background apps permantally? I have been using Greenify from Exposed, but every time I reboot. The apps I have hibernated.. Are no longer hibernated.
Also regarding the Clean Master app, when I free RAM. The apps I have selected not to free, must be reselected after reboot.
I just want to have certain apps to not run in the background. Also, is there a way to have CPU Monitor delete the history of my previous scans? Thank you in advance!
Sent from my A0001 using XDA Premium 4 mobile app
Don't use ram free.
use xposed framework and the boot manager to stop apps at from starting at boot.
To turn off apps permanently to have to freeze them or uninstall
Thank you, I will use boot manager, should I remove clean master app?
Sent from my A0001 using XDA Premium 4 mobile app
skyhonor said:
Thank you, I will use boot manager, should I remove clean master app?
Sent from my A0001 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Personally I don't use it. I don't understand why it needs to run in the background. To kill app? I don't think so, Android does not need it. I use SD Maid.
Sigh. Using task managers on Android with devices that have more than 512 mb RAM is useless, and slows your phone down...
TiVON said:
Sigh. Using task managers on Android with devices that have more than 512 mb RAM is useless, and slows your phone down...
Click to expand...
Click to collapse
Oh good to know. Thank you for your wisdom.
I have been reading this article: http://lifehacker.com/5650894/andro...ed-what-they-do-and-why-you-shouldnt-use-them
Should I also uninstall Battery Doctor? Thank you.
Sent from my A0001 using XDA Premium 4 mobile app
personally I've never use battery doctor, does it have profiles to enable, disable things like 3g, location or something could be good.
turn data to 2G while screen is off saves a lot of battery.
I like Juice Defender,
skyhonor said:
Thank you, I will use boot manager, should I remove clean master app?
Sent from my A0001 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
You can use the built in privacy guard and just deny autostart.
Sent from the One
skyhonor said:
Oh good to know. Thank you for your wisdom.
I have been reading this article: http://lifehacker.com/5650894/andro...ed-what-they-do-and-why-you-shouldnt-use-them
Should I also uninstall Battery Doctor? Thank you.
Sent from my A0001 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
My response had a bit of a know-it-all tone over it, sorry . But yeah, task managers aren't a very good thing to use.
Battery saving apps don't do any harm and if they have special power saving profiles(screen brightness low, signals off, GPS etc.), sure, use them if you want!
Hope that helps
TiVON said:
My response had a bit of a know-it-all tone over it, sorry . But yeah, task managers aren't a very good thing to use.
Battery saving apps don't do any harm and if they have special power saving profiles(screen brightness low, signals off, GPS etc.), sure, use them if you want!
Hope that helps
Click to expand...
Click to collapse
Since I am running franco.kernel with VomerTweaks now. The battery life is pretty good so far. I am running tasker with VomerTweaks.
Tasker is a bit complex because I get confused and overwhelmed easy. I am still learning and have a positive outlook on this Android device. However, lately it has been running slow. (when I run a game in landscape mode, it shifts the home screen to landscape then launches the game. Before, it would just launch. Also, some apps are glitchy now, and it wasn't like that before. (When I open an app, it shows a transparency of the app with the home screen as the background) and would have to re-launch to fix.
This all happened when I applied the VomerTweaks. I haven't done too much research on the VomerTweaks, but I hear everyone is saying it works great. I am having a different experience.
Also, the camera has been hot due to movie watching... but hasn't been doing this when I had battery doctor installed. I will install CPU monitor when I get back home to see what's up. I apologize if what I type is very choppy and unorganized.
My question is if I install VomerTweaks and Battery Doctor, will it conflict and change the system settings and confuse the Android device?
Thank you again.
Install the FKU app from Franco or per app settings then you can change the frequencies for individual apps. All my games I've put at stock settings with Vomer some games experience lag due to the low frequency of CPU and GPU with per app I've got them all on stock and they run just fine. I've even lowered the CPU on non CPU taxing apps like tapatalk for example.
Sent from the One
skyhonor said:
Hi, I have been using the CPU Monitor app to track my phone's health. Lately, I have been getting Good status. But recently, I get the Warning status.
According to the CPU Monitor, it is due to the CPU Usage and the space left on the SD card. My questions are is it possible to turn off background apps permantally? I have been using Greenify from Exposed, but every time I reboot. The apps I have hibernated.. Are no longer hibernated.
Also regarding the Clean Master app, when I free RAM. The apps I have selected not to free, must be reselected after reboot.
I just want to have certain apps to not run in the background. Also, is there a way to have CPU Monitor delete the history of my previous scans? Thank you in advance!
Sent from my A0001 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
My recommendation to you is to keep things simple. I have many apps, but I still always have around 1.7GBs of free RAM on average. I have my OPO overclocked to 2.880GHz and the battery still lasts me the entire day with a lot to spare. With time you'll learn to tweak the kernel and weed out and replace inefficient apps to keep the OPO at an optimal state. I now longer use memory or battery "management" apps, they just do more harm, and I find it absurd that a device such as this should get bogged down to such degree.
I just came from reading the "[Q] Wrong kernel : black screen, no fastboot, no adb, no factory reset" thread.
It was heart wrenching to read but as I got closer the page 14, there was light at the tunnel. This community is too awesome.
Anyways, I do not want to ever experience a hard bricked device, that would just destroy me. However, I do love tweaking my phone so that it runs with the least hiccups as possible.
So seeing the lags after installing the VomerTweak bothers me a little. I will keep an open mind and when the develop updates it, I will definately try it again. My question is there a way to uninstall VomerTweaks after flashing the zip file. Or is there a way to make it better with franco.kernel? If so, how? Thank you again.
P.S: I don't know why, but my gut tells me I should not uninstall the VomerTweak, I do not know why... Just a FYI. lol
rickyx32 said:
My recommendation to you is to keep things simple. I have many apps, but I still always have around 1.7GBs of free RAM on average. I have my OPO overclocked to 2.880GHz and the battery still lasts me the entire day with a lot to spare. With time you'll learn to tweak the kernel and weed out and replace inefficient apps to keep the OPO at an optimal state. I now longer use memory or battery "management" apps, they just do more harm, and I find it absurd that a device such as this should get bogged down to such degree.
Click to expand...
Click to collapse
How do you overclock your OPO to 2.880GHz? I watch 720p / 1080p Youtube videos for 3 hours using MX Player app and I play 20 minutes of Anomaly my battery life is 15% from a full charge. Also, OPO gets really hot after I play 20 minutes of Anomaly. I'm not sure if this is normal. Also, whenever I set my MX player app to play the Youtube videos in the background, I always have to wait 20~30 secs before it skips the next video. This would happen even before I flashed the VomerTweaks.
Thank you I am aware that the memory and battery apps do more harm. I uninstalled it too. Instead I use Greenify, CM Security, SD Maid, Boot Manager, BusyBox Free, Tasker with VomerTweaks, and Xposed Installer using Nova Launcher. I will post pictures on what's on my home screen.
This is a widget called Animated Photo Frame Widget+, also I blocked out the contacts I have.
The widget is called PowerAmp
This widget is called Weather & Clock Widget
This widget is called DigiCal.
This widget is Animated Photo Frame Widget+ again, but this one changes pictures every 20 secs. Again, I blacked out the contacts I have.
The background I am using is called Wave. I use Bluelight Filter so I don't get blind during the night.
Just a FYI, I bought and supported all the developers who created these apps and widgets. Also, there were no lags before I removed the Clean Master and Battery Doctor, it was only after I installed VomerTweaks.
skyhonor said:
How do you overclock your OPO to 2.880GHz? I watch 720p / 1080p Youtube videos for 3 hours using MX Player app and I play 20 minutes of Anomaly my battery life is 15% from a full charge. Also, OPO gets really hot after I play 20 minutes of Anomaly. I'm not sure if this is normal. Also, whenever I set my MX player app to play the Youtube videos in the background, I always have to wait 20~30 secs before it skips the next video. This would happen even before I flashed the VomerTweaks.
Thank you I am aware that the memory and battery apps do more harm. I uninstalled it too. Instead I use Greenify, CM Security, SD Maid, Boot Manager, BusyBox Free, Tasker with VomerTweaks, and Xposed Installer using Nova Launcher. I will post pictures on what's on my home screen.
Click to expand...
Click to collapse
We'll I'm just running a fully updated rooted stock ROM. I'm using AK kernel which is my favorite one for this device, and I use the Synapse kernel app that the dev tells you to use, I think that your will be impressed with allnthe things that app can do, thought I'm not sure it works with other kernels besides AK. You can't overclock on Franco's kernel but you can with AK. 2.880GHz is as high as it goes, and its safe and stable in my opinion. I've bought four OPO's already and its worked without issue on all of them.
rickyx32 said:
We'll I'm just running a fully updated rooted stock ROM. I'm using AK kernel which is my favorite one for this device, and I use the Synapse kernel app that the dev tells you to use, I think that your will be impressed with allnthe things that app can do, thought I'm not sure it works with other kernels besides AK. You can't overclock on Franco's kernel but you can with AK. 2.880GHz is as high as it goes, and its safe and stable in my opinion. I've bought four OPO's already and its worked without issue on all of them.
Click to expand...
Click to collapse
Is this the AK Kernel?
https://github.com/CyanogenMod/android_kernel_oneplus_msm8974
Also, should I remove franco.kernel first? Will I need VomerTweaks too?
I will wait before I do anything.
skyhonor said:
Is this the AK Kernel?
https://github.com/CyanogenMod/android_kernel_oneplus_msm8974
Also, should I remove franco.kernel first? Will I need VomerTweaks too?
I will wait before I do anything.
Click to expand...
Click to collapse
Here's the link bro, http://forum.xda-developers.com/oneplus-one/orig-development/kernel-ak-t2832168 not sure what the one you gave me was for. Anyway, I recommend you start fresh by doing a wipe and flashing the stock rom. After that, you just flash the AK kernel zip, make sure it's the one for CM11S, flash the UKM zip, your super su zip, and reboot and install the Synapse app from the play store app. I'm glad to help.
rickyx32 said:
Here's the link bro, http://forum.xda-developers.com/oneplus-one/orig-development/kernel-ak-t2832168 not sure what the one you gave me was for. Anyway, I recommend you start fresh by doing a wipe and flashing the stock rom. After that, you just flash the AK kernel zip, make sure it's the one for CM11S, flash the UKM zip, your super su zip, and reboot and install the Synapse app from the play store app. I'm glad to help.
Click to expand...
Click to collapse
I have questions before I wipe and flash the rom.
Whenever OnePlus releases an update will the AK kernel still be compatible?
skyhonor said:
I have questions before I wipe and flash the rom.
Whenever OnePlus releases an update will the AK kernel still be compatible?
Click to expand...
Click to collapse
Its been compatible with the recent updates, I've had no issues

[Q] Moto G too aggressive about freeing memory - related to swappiness setting?

I have had my Moto G LTE xt1045 since they first came out and have been very happy with it except for this issue. It is very aggressive about suspending/killing apps. You notice this when you try to switch back and forth between two apps and find that it is restarting the other app instead of resuming it. It's especially noticeable when switching between a browser and another app. Another example is that I was using navigation and tried to use the NPR app to listen to some programs, but it would only do one or the other.
I realize that the phone only has 1 GB of memory, but it seems over-aggressive at freeing memory - doesn't it? I'd like to hear feedback from others about this.
In my searches for further information, it seems that one thing that can be tuned is swappiness. On my stock phone, the swappiness is set to 60. Have people experimented with different values?
My phone is not rooted yet as I've been reasonably happy with the stock experience. But I'm willing to root if it will allow a solution to this problem.
Thanks!
yaconsult said:
I have had my Moto G LTE xt1045 since they first came out and have been very happy with it except for this issue. It is very aggressive about suspending/killing apps. You notice this when you try to switch back and forth between two apps and find that it is restarting the other app instead of resuming it. It's especially noticeable when switching between a browser and another app. Another example is that I was using navigation and tried to use the NPR app to listen to some programs, but it would only do one or the other.
I realize that the phone only has 1 GB of memory, but it seems over-aggressive at freeing memory - doesn't it? I'd like to hear feedback from others about this.
In my searches for further information, it seems that one thing that can be tuned is swappiness. On my stock phone, the swappiness is set to 60. Have people experimented with different values?
My phone is not rooted yet as I've been reasonably happy with the stock experience. But I'm willing to root if it will allow a solution to this problem.
Thanks!
Click to expand...
Click to collapse
I was facing the same problem, I really hated that it closed the apps so aggressively. This was one of the main reasons I rooted. I don't know about swappiness, but there is a file: sys/module/lowmemorykiller/minfree which handles when the OS will kill different types of apps. If you root and download MinFreeManager you can easily edit this file. If you want more information on this topic, just search for "minfree" here on the forums. After using this app I've been happier with how memory is handled, but of course it is still only 1GB. Also it's worth mentioning that the values in the minfree file are reverted to default on boot. There are workarounds for that, event MinFreeManager has an "Apply on boot" setting, but it doesn't work for me. However it takes like 3 taps to set the values manually.
I hope I could help you.
This sounds like just what I need! What settings have you tried? Have you decided what works best on the moto G?
Thanks!
Sent from my XT1045 using XDA Free mobile app
OK, I've been using MinFreeManager for a bit now and it has solved all my multitasking issues. I used this guide: Fine tuning the MinFree settings (improving on Android's multitasking) with the aggressive settings.
yaconsult said:
OK, I've been using MinFreeManager for a bit now and it has solved all my multitasking issues. .
Click to expand...
Click to collapse
I confirm it works.
Just flashing the Franco kernel won't fix things?
Also the Android one phones with just 1gb memory performs a lot better at multitasking than G
Somebody with the skills should really look into how google is managing ram in that phone.
Seriously it multitasks like a dream.
jaspreet997 said:
Just flashing the Franco kernel won't fix things?
Also the Android one phones with just 1gb memory performs a lot better at multitasking than G
Somebody with the skills should really look into how google is managing ram in that phone.
Seriously it multitasks like a dream.
Click to expand...
Click to collapse
No, the kernel is not the issue. It's a config file on the phone that tells android how much memory to keep free - if you follow the link in my previous post, you can read all about it and understand the issue.
It is a phone setting that Motorola changed in 4.4.4. With default settings, you will find that apps are killed by android when you switch to another app and the first app has to be restarted from scratch when you switch back to it. MinFreeManager fixes the issue - but you have to be rooted to use it. Your Android One just has less aggressive default minfree memory settings.
yaconsult said:
No, the kernel is not the issue. It's a config file on the phone that tells android how much memory to keep free - if you follow the link in my previous post, you can read all about it and understand the issue.
It is a phone setting that Motorola changed in 4.4.4. With default settings, you will find that apps are killed by android when you switch to another app and the first app has to be restarted from scratch when you switch back to it. MinFreeManager fixes the issue - but you have to be rooted to use it. Your Android One just has less aggressive default minfree memory settings.
Click to expand...
Click to collapse
I see. Also one more thing I observed on Android One was that google play services was using 1/4th the ram it uses on my G . there was always 500 mb free ram

Help, 5.0 702L boot up service issues

I have never had this issue on any other device with 5.0+ and wonder if it is unique to the X2
I can do any app that says start at boot up, e.g., Smart Unlock, and any autostart app, and oftentimes the service will not start at boot up
I have downloaded and tried a number of apps and utilities (about 4 init.d utilities and bootcomnand) and unfortunately no dice. "Autostart and Stay" is the latest.
Not only will the service not startup at boot, even manually started (which like Pavlov's dog I have trained myself to do), it does not "stay" ie keep the apps persistent or working in the background. Padlocking the apps (pulling down vs zooshing up in the multifinder/square box background tasks doesn't keep things executing.
This is a big hassle. I'm rooted and would do a single command line type command in boot shell pro, but don't have a command I can toss in to start the process or app and/or keep the process persistent.
Any help appreciated.
Rudolpht said:
I have never had this issue on any other device with 5.0+ and wonder if it is unique to the X2
I can do any app that says start at boot up, e.g., Smart Unlock, and any autostart app, and oftentimes the service will not start at boot up
I have downloaded and tried a number of apps and utilities (about 4 init.d utilities and bootcomnand) and unfortunately no dice. "Autostart and Stay" is the latest.
Not only will the service not startup at boot, even manually started (which like Pavlov's dog I have trained myself to do), it does not "stay" ie keep the apps persistent or working in the background. Padlocking the apps (pulling down vs zooshing up in the multifinder/square box background tasks doesn't keep things executing.
This is a big hassle. I'm rooted and would do a single command line type command in boot shell pro, but don't have a command I can toss in to start the process or app and/or keep the process persistent.
Any help appreciated.
Click to expand...
Click to collapse
Go into phone manager then settings then shortcuts and add the Dropzone shortcut to your home screen. Then open the shortcut and enable everything in dropzone.
That is great advice. There are still nuances about this phone I need to explore. The nuanced nuance was I needed to have the dropzone shortcut (the service was already turned). I also had to protect it so it would run in the background during sleep (?!?) and after that third reboot it booted the service correctly. It seems like a combo of science and mysticism. But it works & thank you!
Rudolpht said:
That is great advice. There are still nuances about this phone I need to explore. The nuanced nuance was I needed to have the dropzone shortcut (the service was already turned). I also had to protect it so it would run in the background during sleep (?!?) and after that third reboot it booted the service correctly. It seems like a combo of science and mysticism. But it works & thank you!
Click to expand...
Click to collapse
Let's check your energy saving level. Any level higher than lowest one makes problems with prematurely switching off apps.
Energy saving mechanizms are pretty nasty in X2. I have great issues with notifications from WhatsApp and other communicators till I switched energy saving level to the lowest.
trurl3 said:
Let's check your energy saving level. Any level higher than lowest one makes problems with prematurely switching off apps.
Energy saving mechanizms are pretty nasty in X2. I have great issues with notifications from WhatsApp and other communicators till I switched energy saving level to the lowest.
Click to expand...
Click to collapse
Thank you. I have the energy savings set to "Normal" as the next level seemed to save only 5%. I'm learning something new every day. Thank you.
I'm trying to research the wonders of dropzone. The best I can find is that it allows a small set of apps to allowing floating notifications. Doesn't really explain the ability to get autoboot things to work or other magic. I'm grateful that this and some of the protected app changes are making this androud work like it should (or like other phones) . A slight more battery drain but a worthy tradeoff for tearing my hair out.
Rudolpht said:
I'm trying to research the wonders of dropzone. The best I can find is that it allows a small set of apps to allowing floating notifications. Doesn't really explain the ability to get autoboot things to work or other magic. I'm grateful that this and some of the protected app changes are making this androud work like it should (or like other phones) . A slight more battery drain but a worthy tradeoff for tearing my hair out.
Click to expand...
Click to collapse
If you don't mind losing the No Disturb mode, you can delete the whole system manager app from system/app if you're rooted and you won't ever have to deal with the permission problems again.
I'm up for that. Would that kill the app lock also? Would a Titanium freeze do the same? Guess I can give it a shot.
And… it works. App Lock just as if it didn't exist. Will keep Phone Manager frozen for now. Thanks!
And it seems much faster/smoother, which is saying something since it was snappy to begin with.
Rudolpht said:
And it seems much faster/smoother, which is saying something since it was snappy to begin with.
Click to expand...
Click to collapse
Yeah when it's removed it even seems like the battery lasts a little longer. It's something I wish wasn't even included as just a task manager app would have sufficed. You can always delete the PhoneDiagnose and PowerGenieEngine as well. I can also remove them from the Super Slim KangVIP ROM as well if the majority would like that. My goal is a flashable ROM with no bloat that runs fast, gets great battery life and makes it easy for everyone. In fact, I'm going to remove them from my stock debloated ROM's and the KangVIP ROM's from now on due to the fact that a lot of us are having permission issues. I'll have three ROM's for each. A stock original bloated one, a medium debloated one with most of the Chinese apps we don't use removed but all the stock apps like Email will remain and a maximum debloated ROM and all the Huawei apps that can be removed will be.
ajsmsg78 said:
Yeah when it's removed it even seems like the battery lasts a little longer. It's something I wish wasn't even included as just a task manager app would have sufficed. You can always delete the PhoneDiagnose and PowerGenieEngine as well. I can also remove them from the Super Slim KangVIP ROM as well if the majority would like that. My goal is a flashable ROM with no bloat that runs fast, gets great battery life and makes it easy for everyone. In fact, I'm going to remove them from my stock debloated ROM's and the KangVIP ROM's from now on due to the fact that a lot of us are having permission issues. I'll have three ROM's for each. A stock original bloated one, a medium debloated one with most of the Chinese apps we don't use removed but all the stock apps like Email will remain and a maximum debloated ROM and all the Huawei apps that can be removed will be.
Click to expand...
Click to collapse
I really think the third option, thinnest + gaps + ROM switching would be my winner. Thanks.
I could find and freeze Power Genie 5.6.1.11 to freeze but no Phone Diagnose
Ditched (froze) Swype also
Rudolpht said:
I really think the third option, thinnest + gaps + ROM switching would be my winner. Thanks.
Click to expand...
Click to collapse
I updated the thread with an Ultra Slim KangVIP and SIM switching fix.
http://forum.xda-developers.com/mediapad-x2/development/rom-kangvip-5-1-1-b108-t3215851
Cool. I have transparent weather clock back working, without phone manager nonsense. This thread has really changed my X2 experience.
Rudolpht said:
That is great advice. There are still nuances about this phone I need to explore. The nuanced nuance was I needed to have the dropzone shortcut (the service was already turned). I also had to protect it so it would run in the background during sleep (?!?) and after that third reboot it booted the service correctly. It seems like a combo of science and mysticism. But it works & thank you!
Click to expand...
Click to collapse
I'm having the same problem with some services at boot (I'm not rooted yet). I'm not sure I understand what you're explaining here. I created the shortcut to the dropzone and made sure everything was allowed in there. What do you mean by "I also had to protect it so it would run in the background during sleep"? (How do i do that?) Thanks!
AJ is the expert. Freezing phonemanager was easiest, but may require root. Search under settings (there is a search bar at the top) for "protect" services you can unprotect services that don't need to run in the background. Protect the ones you want to run, but they will use battery. May be in the phone manager app if not under setting
Thanks, I already tried that but I still don't get all the services to start at boot. Looks like rooting and freezing phonemanager is gonna be the only way... Thanks anyway for the help!
Killing phonemanager was the best thing that returned the X2 to an actual android-like device. There are a couple other services to freeze you can go through thread that also help.

Apps getting killed

Hello
I'm tired of having my apps shut in my face because the system keeps killing them, or something...
I literally can't Alt-Tab from a browser to a notepad to copy a text, and the browser gets killed, and the page refreshes, and I lose what I wrote !*
And I have 3 GB of RAM, HALF OF IT IS CURRENTLY FREE ! I don't understand it ! Very few apps on the background.
The most up-to-date thread I could find was from 2013, when android 4.4 was still a thing. Everything there is obsolete.
There are suggestions, like Memory manager, or Memory Locker, or App Seetings (very old)
But again... Obsolete...
Also found some system managers that are installed via TWRP: Those currupted my system. Lost a day reflashing the ROM.
Althoug the idea behind them is good, I already forgot their names, and don't wanna hear them again !
Already tried full SDMaid on the phone, and trimming the NAND, etc
* Sometimes I think it's more a matter of behavior than memory. Sometimes it appears that the apps get "tired" and unresponsive... Then I reboot and they work better...
Is there a 2023 solution ? Any diagnose that can be done ?
Thanks in advance
Motorola G6, Android 9
TWRP+Magisk 26+LSPosed 1.8.6
LucasBS1 said:
Hello
I'm tired of having my apps shut in my face because the system keeps killing them, or Tutuapp 9Apps Showbox something...
I literally can't Alt-Tab from a browser to a notepad to copy a text, and the browser gets killed, and the page refreshes, and I lose what I wrote !
And I have 3 GB of RAM, HALF OF IT IS CURRENTLY FREE ! I don't understand it !
The most up-to-date thread I could find was from 2013, when android 4.4 was still a thing. Everything there is obsolete.
There are suggestions, like Memory manager, or Memory Locker, or App Seetings (very old)
But again... Obsolete...
And my phone is not new; it's Android 9, Rooted
Also found some system managers that are installed via TWRP: Those currupted my system. Lost a day reflashing the ROM.
Althoug the idea behind them is good, I already forgot their names, and don't wanna hear them again !
Already tried full SDMaid on the phone, and trimming the NAND, etc
Is there a 2023 solution ? Any diagnose that can be done ?
Thanks in advance
Click to expand...
Click to collapse
What phone do you have ?
Hello. Updated the question to include the model (bottom). But it's a Moto G6
LucasBS1 said:
Hello
I'm tired of having my apps shut in my face because the system keeps killing them, or something...
I literally can't Alt-Tab from a browser to a notepad to copy a text, and the browser gets killed, and the page refreshes, and I lose what I wrote !*
Click to expand...
Click to collapse
Do a LOGCAT to get the very reason why apps in question get killed.
jwoegerbauer said:
Do a LOGCAT to get the very reason why apps in question get killed.
Click to expand...
Click to collapse
Alright
I'll upload the log next time this thing starts acting up
Thanks for now

Categories

Resources