OOS battery optimization fix. - OnePlus 7 Pro Questions & Answers

Hi all,
I think I speak for more people when I say the battery optimization issue is really annoying.
I've looked for many ways to stop apps being optimized, now I found this simple script that's supposed to turn it off just for Gmail?
https://github.com/Magisk-Modules-Repo/OnePlusGmailBatteryFix
My idea is to use this script to create something which could be used more widely to do this to more apps.
However, when I'm trying to understand that script it seems a bit of a mess, as this would be my first module I am going to try to create I would appreciate just a little help.
Could someone tell me which of those files are needed at least and why? Some of them, or most of them seem completely useless to me, I guess it would be done with one xml file and one script?
I'm not sure, I hope someone could explain me a bit.
Thanks

Related

Hey DEVS, I found something....something to help our HERO's right now

So I've been noticing that after a certain amount of use my Hero eventually slows down to the point where typing on the keyboard is frustrating because of the slow response. I did some searching and I came across this online
http://code.google.com/p/android/issues/detail?id=3453
since I'm no where near the level of a dev, I figured I'd put this out there and see if anyone can make heads or tails of it, and possibly create a signed-zip so we can just use the update feature in the recovery screen to flash it to our system.
Seems legit as a fix, and apparently this was something that was a known problem with Android 1.5 that I guess has been fixed with 2.0.
Any Dev help would be hot.
Excellent. Thank you for tracking that down.
The TL;DNR explanation: Location services are causing multiple "heartbeats" on the phone all on top of each other. One guy counted as many as 253 in 5 seconds. This consumes the CPU. I will look at the patch.
Would disabling location services be a temporary fix?
kynetx said:
Would disabling location services be a temporary fix?
Click to expand...
Click to collapse
Yes. We're pretty close to 2.1 though so shouldn't need more then that.
ive seen this problem too but not until recently, it lags the phone and drains the battery amazingly fast.
abcdfv said:
Yes. We're pretty close to 2.1 though so shouldn't need more then that.
Click to expand...
Click to collapse
I'm taking a wait and see approach on the 2.1 progress right now, what's there looks very promising but without the camera, accel., & (for me anyway because I do have alot of apps that i use) a2sd, I'm content with Fresh 1.0, just wanna get help get that issue solved cuz I'm sure I'm not the only one who is experiencing it.
PS: I know I said I have alot of apps, but I know that's not the cause because the same thing happened when I did a wipe and just left things "stock" with Fresh Rom 1.0 for a few days
If they got the accel and wifi tether working, I'd make the jump to 2.1, but I need the accel for work, and the wifi tether for internet.
What app can be used to show the system_server process? I use task manager but it isn't listed. I want to monitor this process.
Also, does anyone know about the patch? How Do you apply it?
1) I can't answer the first question. I just took the advice here and turned all location services off. My phone is back to its snappy self. The only way I'm really impacted by having to do this right now (I'm sure I'll use this phone for more after 2.1) is using google maps. I already kept GPS off when I wasn't using it but having to go into the settings and allow Location Setting before using gmaps is a PITA.
2) I know very little about android and ROM DEV but think the "patch" is programming code, only useful to people who know how to read and write it.
jdlumley said:
What app can be used to show the system_server process? I use task manager but it isn't listed. I want to monitor this process.
Also, does anyone know about the patch? How Do you apply it?
Click to expand...
Click to collapse
RoboTop???
You can use DDMS from the Android SDK toolkit to monitor processes running on the phone. Should be able to pull up a process list from there.
Now, I'm using Locale but not with Location settings for my different profiles. I also have Location settings turned on for use with Google Maps as well as the HTC Flip Clock / Beautiful Widgets Home. Surprisingly, my system_server process is sitting at 0% right now, and the phone has been on for over a day. Both DDMS and running "top -n 1" in the adb shell confirm this. If there's much of a change over the day, I'll be sure to let you know. So, it's possible that HTC found and fixed this issue with their SenseUI CDMA 1.5 build. Unlikely, but possible.
So I was seeing this issue even with the modified services.jar from that thread. Granted I didn't test it very long and it was only maxing out at 1%, but it was enough for me to feel that it wasn't working.
I have since removed HTC's location service. After rebooting it looks as if because the phone couldn't find HTC's service anymore it installed the stock one. Time to see if it makes any difference.
with my BB for example there was an application which rebooted your phone at a custom time that u have set .. is there an application that can be used to do the same with the hero? ... reboot device while u are sleeping.. so it runs nice and quick for u the next day?
flipzmode said:
So I was seeing this issue even with the modified services.jar from that thread. Granted I didn't test it very long and it was only maxing out at 1%, but it was enough for me to feel that it wasn't working.
I have since removed HTC's location service. After rebooting it looks as if because the phone couldn't find HTC's service anymore it installed the stock one. Time to see if it makes any difference.
Click to expand...
Click to collapse
On the Fresh ROM thread I thought you said that it was using 16% previously... and is this an issue that's apparent immediately or is it something that gets worse with time?
Any chance of including the modified services.jar in the next release even if it doesn't immediately appear to make a difference? I mean, if it's not crashing things and is supposed to be an improvement, then why not stick it in there, right?
Just read nearly that entire chain of messages. now somebody (fresh, ima callin you out!) dooo eeeet!
What's the word on progress for this in Fresh ROM? I have found it to be a very significant issue for me (and apparently so has my roommate), as I use location services quite a lot. GMaps being most in particular, but some other apps as well (Aloqa, Sprint Navigation). I'm really glad there's a workaround that doesn't involve a reboot!
I looked at the other link and I have downloaded both the services.jar file and the LocationManagerService.patch. Which one should I apply and do I apply it? I am having problems with this now.
bcellis said:
On the Fresh ROM thread I thought you said that it was using 16% previously... and is this an issue that's apparent immediately or is it something that gets worse with time?
Any chance of including the modified services.jar in the next release even if it doesn't immediately appear to make a difference? I mean, if it's not crashing things and is supposed to be an improvement, then why not stick it in there, right?
Click to expand...
Click to collapse
The bug is that it gets worse over time. I can include it for sure. I believe the reason it's not working is because our hero's code is all stored in services.odex, not services.jar. And I haven't been able to deodex that file yet. But I'll include it regardless because it can't hurt.
scirio said:
Just read nearly that entire chain of messages. now somebody (fresh, ima callin you out!) dooo eeeet!
Click to expand...
Click to collapse
patches11 said:
What's the word on progress for this in Fresh ROM? I have found it to be a very significant issue for me (and apparently so has my roommate), as I use location services quite a lot. GMaps being most in particular, but some other apps as well (Aloqa, Sprint Navigation). I'm really glad there's a workaround that doesn't involve a reboot!
Click to expand...
Click to collapse
I'm working on testing whether disabling HTC's location service will fix our issue. However with the release of the kitchen I was rebooting my phone non-stop. Impossible for me to know if it was working or not.
ElAguila said:
I looked at the other link and I have downloaded both the services.jar file and the LocationManagerService.patch. Which one should I apply and do I apply it? I am having problems with this now.
Click to expand...
Click to collapse
The patch is designed to apply to the source, so that won't help you. The services.jar would replace the one that's already there.
turning off location has been a dramatic difference in speed. its obvious theres something to that. it would get so bad the whole phone would lag

Going to town with disabling apps...

Hello,
I just recently got my htc sensation temp. rooted and have been disabling apps. So far, I have just taken care of the obvious ones, but I see people going to TOWN on this phone! I also see people talking about having huge increases in performance. I have seen slight improvment, but nothing great. Are there any particular apps that people are stopping that I should be aware of, or is it due to people nearly clearing the phone of everything on it?
Ive been going through the task manager, and looking for things running that I dont need. (Found apps such as google maps running little sub programs that I dont want for instance). I try to find the name of the program, and then pm disable. Is this what everyone is doing, or are you guys just wiping stuff and seeing what happens?
BTW-I have zero experience with this sort of thing, yet still figured out how to get where I am, thanks this forum.
Matt
http://files.virtuousrom.com/~rmk/pyramid_apk_details.txt
Please search next time. This was in the first "Remove bloat" thread in development section.
No offense, but I wasnt asking for any lists...I was asking for something much more specific.
I saw that list...
What I asked was whether or not there is a method to the madness, or are people just removing EVERYTHING that they can despite whether or not they want it? I saw several apps in there that id like to have, such as the calculator.
Matt
I think people are just disabling what they don't want: carrier apps & other preloaded crap
Hello,
I am now running into a snag...Everything I try to disable, only says "killed". I can still enable a process that I disabled, and then disable it again, but no new disabled processes? Is this due to the root being weak, like it is, or something else?
Thanks,
Matt

Just a tiny issue with TB101's everything mod...

Hope there is still someone checking in here that could give me some ideas about a little problem I'm having. Running an (obviously) rooted continuum,Ciscogee's deodexed EC09. Everything seems to work just fine, really well in fact, until I flash Trailblazer101's EC09 Everything_SpearoidBLUESOFTKEY.zip. After flashing this, I have problems with the browser FC'ing when trying to open HTTPS links, and I get a Nullpointerexception on a couple apps that working fine before.It seems to have something to do with the CertificateChainValidator. I've tried different Browsers from the Market, and they will open the HTTPS links, but I still get the nullpointerexception on the two apps, one is my mobile banking app and the other is a mobile app for Microsoft Outlook. It's not critical that I have these apps working, but it would be handy! I'm hoping that one of you "code gurus" know a relatively easy fix for this. I think I've attached a screenshot of the crash report, but I'm kinda new at this whole forum thing, so forgive me if I didn't get something right. If anyone has time to look into this and needs more information just let me know! I appreciate any help I can get!!
On a side note: Don't want anyone to think I'm complaining about either of these mods, in fact, even if I can't get this problem fixed I'm still going to use them...the "coolness" factor outweights not having a couple apps working!
roaddog665 said:
Hope there is still someone checking in here that could give me some ideas about a little problem I'm having. Running an (obviously) rooted continuum,Ciscogee's deodexed EC09. Everything seems to work just fine, really well in fact, until I flash Trailblazer101's EC09 Everything_SpearoidBLUESOFTKEY.zip. After flashing this, I have problems with the browser FC'ing when trying to open HTTPS links, and I get a Nullpointerexception on a couple apps that working fine before.It seems to have something to do with the CertificateChainValidator. I've tried different Browsers from the Market, and they will open the HTTPS links, but I still get the nullpointerexception on the two apps, one is my mobile banking app and the other is a mobile app for Microsoft Outlook. It's not critical that I have these apps working, but it would be handy! I'm hoping that one of you "code gurus" know a relatively easy fix for this. I think I've attached a screenshot of the crash report, but I'm kinda new at this whole forum thing, so forgive me if I didn't get something right. If anyone has time to look into this and needs more information just let me know! I appreciate any help I can get!!
On a side note: Don't want anyone to think I'm complaining about either of these mods, in fact, even if I can't get this problem fixed I'm still going to use them...the "coolness" factor outweights not having a couple apps working!
Click to expand...
Click to collapse
The way that I fixed this issue personally was to go into Browser, then Settings, go to the Search Providers, and click "Bing". Let me know if that worked for you!
Thanks Trailblazer, that did fix the browser issue, but still having the FC with the apps. Do you know if the Everything mod changed/moved/removed anything concerning SSL or the Certificate Chain Validator? From what I can see the apps are complaining about something either not being there or already being used by another process, but I can’t even find where it is. To say I know nothing about Linux/Android programming is an understatement, so I'm kinda shooting in the dark Thanks for the help, and I appreciate the work you've done on this phone!
Sent from my SCH-I400
This has been brought up before by other people, and I can assure you that I didn't change anything to do with that, haha... There are a few guesses: I did change the Browser App to remove the "frozen" links and bing as the search provider as default... That modified apk is sometimes included in my packages... You can try restoring the original, but I don't think it'll help.... What fixed everything for me was doing what I said above... The other guess is that there may be something wrong with permissions, idk...
But I can promise you this: I didn't do anything to the Certificate Chain Validator, which in fact is a smali (source) file within the framework file...
Oh well, it's just my mobile banking app... get tired off looking at how much money I DON'T have anyway... and my work email, so no big deal. I have other secured apps that work fine, so it must be something about those two. It's worth not having those just so I'm not always accidentally hitting the ticker history and weather! :thumbup:
Sent from my SCH-I400

Bloatware and how to get rid of it.

I thought that I would ask this question and then see what everyone has to offer.
I recently rooted my LG Volt phone and all is well. My next step is to take off some of the 'Bloatware' that came installed on the phone from VM.
My Question is HOW? and WHAT?
I know I would like to remove CHROME browser but not sure how. I know there are a lot of other apps that could come off that I'm not aware of that just slow down the phone and take up space. Has anyone ever developed a definitive list of the 'possible' bloatware that is installed on phones.
I'm afraid to remove some things incase it is required to operate the phone. So something that is critical to the phone operation should not be included on the list.
Once a list is developed than I could check against it to see what it is possible to remove.
Second part is how. Since my phone is rooted it should be fairly easy but not sure exactly how and to make sure I got all of a piece of software removed or am I leaving something behind that is more wasted space.
This, I would think, would be very useful to amateurs like myself.
JimReid said:
I thought that I would ask this question and then see what everyone has to offer.
I recently rooted my LG Volt phone and all is well. My next step is to take off some of the 'Bloatware' that came installed on the phone from VM.
My Question is HOW? and WHAT?
I know I would like to remove CHROME browser but not sure how. I know there are a lot of other apps that could come off that I'm not aware of that just slow down the phone and take up space. Has anyone ever developed a definitive list of the 'possible' bloatware that is installed on phones.
I'm afraid to remove some things incase it is required to operate the phone. So something that is critical to the phone operation should not be included on the list.
Once a list is developed than I could check against it to see what it is possible to remove.
Second part is how. Since my phone is rooted it should be fairly easy but not sure exactly how and to make sure I got all of a piece of software removed or am I leaving something behind that is more wasted space.
This, I would think, would be very useful to amateurs like myself.
Click to expand...
Click to collapse
install app called (system app remover) ....about WHAT : you need to un-install the apps that you don't need but doesn't harm the phone ....like if you are on Samsung phone or sony....you need to un-install chrome and Samsung store ....play groups...
simply my man you can un-install all the apps that shows in your app drawer ...else than that don't remove any thing
good luck :good:

BLU STUDIO X5 (S390U) Stock ROM infected.

Hello guys, as you probably see I'm new at this forums, there's only one reason I joined and is because I own the BLU STUDIO X5 (S390U) since while ago.
I noticed that this phone has built-in somewhat thing of malware on the system APKs of it. What do I mean? Don't matter how many times you do a clean, use anti-malware apps, hard-reset, even flashing to a new stock ROM or a CROM made from the original one: The problem is going to persist.
So... Tell us, which would be the solution? Well I was analysing all the possibilities, even evolving a CROM of it, however this infection it seems to be part of other APKs components, as it is visible through Anti-MalwareBytes, that Settings.APK is corrupted with it.
The solution it seems to be easy but it could be complex, even knowing that other APKs could be infected but are not listed on the scanns: Erasing Settings.APK and try to replace it with a non-infected one, but this is complex as I said.
Before I continue I need to explain what this infection does: After you use the smartphone for first time (counting resets, flashes, etc.) the smartphone is just good, even if your not using internet.
After sometime you will notice some new apps installed on your smartphone, what this infection does is to install them under what it could be called a "Silence mode", PlayStore is not needed to download such apps, either a Web Browser.
But, hey, this doesn't sound bad as it just sounds annoying lad... Aye, this sounds as if the problem is only something redundantly annoying, but not is only that, this malware is found as a Hijack and doesn't sound bad too, however, if someone with enough knowledge knows how to manage a Hijack it can even steal info from your smartphone.
But probably you're thinking, well you can fix it not allowing Unknown Sources APKs to install on it, well...
This is what it takes me to the second point of it: This malware changes the settings of your smartphone whatever the times it wants by itself, don't matter which app you use to not allow this change by itself, it is going to do it anyway.
But why? It seems that the infection has Root Access, what this mean is that it has a higher level access (is running under an Administrator mode).
And we're back again to the solution, you'll think: Maybe if I root it and replace the Settings.APK is going to be fixed, well is not that easy, apart of wasting your time, the smartphone can be even more vulnerable and unstable.
The best solution that is going to work and that's why I posted this here:
To fix this the Stock ROM must be re-built from zero. I'd do this on my own, the problem is that I'm not an advanced user, and I still learning programming and coding at my degree, every help with this would be flawlessly.

Categories

Resources