Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to apply Battery Optimisation on GMS #59

Open
selfmusing opened this issue Nov 28, 2024 · 54 comments
Open

Unable to apply Battery Optimisation on GMS #59

selfmusing opened this issue Nov 28, 2024 · 54 comments

Comments

@selfmusing
Copy link

selfmusing commented Nov 28, 2024

I don't understand why but the module isn't working for me .
Is there any way to troubleshoot?
Screenshot_20241128-203216_Termux

I'm using KernelSU v11991 , Android 15 ( November Security Patch ) AOSP

@selfmusing selfmusing changed the title Unable to apply Batter Optimisation on GMS Unable to apply Battery Optimisation on GMS Nov 28, 2024
@gloeyisk
Copy link
Owner

I don't understand but the module isn't working for me . Is there any way to troubleshoot?

Try with clean install (if you've done a dirty update before).

@selfmusing
Copy link
Author

I don't understand but the module isn't working for me . Is there any way to troubleshoot?

Try with clean install (if you've done a dirty update before).

I've just performed a clean installation of the module tho.

@gloeyisk
Copy link
Owner

I've just performed a clean installation of the module tho.

After a reboot, have you wait around 100 seconds before you open your lockscreen?
The script can't be executed that fast, it's kindly need time compared to other modules.

@selfmusing
Copy link
Author

I've just performed a clean installation of the module tho.

After a reboot, have you wait around 100 seconds before you open your lockscreen? The script can't be executed that fast, it's kindly need time compared to other modules.

Yeah , the result is the same even after an hour..
I can't add the gms into deviceidle whitelist even after using that command manually..

( I also tried to clear gms data )

@selfmusing
Copy link
Author

I've just performed a clean installation of the module tho.

After a reboot, have you wait around 100 seconds before you open your lockscreen? The script can't be executed that fast, it's kindly need time compared to other modules.

screen-20241128-211057.mp4

@kKuteKuto
Copy link

I don't understand why but the module isn't working for me . Is there any way to troubleshoot? Screenshot_20241128-203216_Termux

I'm using KernelSU v11991 , Android 15 ( November Security Patch ) AOSP

Try delete module
Reboot
And reinstall the module , the issue solved

@selfmusing
Copy link
Author

I don't understand why but the module isn't working for me . Is there any way to troubleshoot? Screenshot_20241128-203216_Termux
I'm using KernelSU v11991 , Android 15 ( November Security Patch ) AOSP

Try delete module Reboot And reinstall the module , the issue solved

Tried several times before writing this issue 😅

I guess goolag messed up something on November Security patch ..

@selfmusing
Copy link
Author

Unfortunately, this issue persists even after clean flashing the ROM & I am sure it wasn't the case on the October security patch.

@gloeyisk
Copy link
Owner

gloeyisk commented Dec 6, 2024

Unfortunately, this issue persists even after clean flashing the ROM & I am sure it wasn't the case on the October security patch.

Could you send me the patched XML by the module from its directory (/data/adb/modules)?

@selfmusing
Copy link
Author

Unfortunately, this issue persists even after clean flashing the ROM & I am sure it wasn't the case on the October security patch.

Could you send me the patched XML by the module from its directory (/data/adb/modules)?

google.xml.txt
pixel.xml.txt

@asizon
Copy link

asizon commented Dec 7, 2024

Same issue here, November security patch and Android 15

@parasgargexx20
Copy link

parasgargexx20 commented Dec 9, 2024

Unfortunately, this issue persists even after clean flashing the ROM & I am sure it wasn't the case on the October security patch.

Could you send me the patched XML by the module from its directory (/data/adb/modules)?

XML helpful in solving issues?? (Are they as good as logs?)

@gitdine
Copy link

gitdine commented Dec 10, 2024

Uninstalling and reinstalling the module fixed it for me (confirmed with gmsc terminal command).

Not sure why it stopped working in the first place.

@parasgargexx20
Copy link

Uninstalling and reinstalling the module fixed it for me (confirmed with gmsc terminal command).

Not sure why it stopped working in the first place.

So should I uninstall module (as im in 14 now) and then reinstall when I clean flash android 15?

@parasgargexx20
Copy link

Or still uninstall and reinstall after installing android 15

Uninstalling and reinstalling the module fixed it for me (confirmed with gmsc command).

Not sure why it stopped working in the first place.

Or clean flash android 15 then

  1. install module,
  2. try, if fails,
  3. uninstall and reinstall the module and try again?

@selfmusing
Copy link
Author

Uninstalling and reinstalling the module fixed it for me (confirmed with gmsc terminal command).

Not sure why it stopped working in the first place.

Already tried this several times . Even clean flashed the rom, but still no luck 🕊️

@parasgargexx20
Copy link

parasgargexx20 commented Dec 10, 2024

Uninstalling and reinstalling the module fixed it for me (confirmed with gmsc terminal command).
Not sure why it stopped working in the first place.

Already tried this several times . Even clean flashed the rom, but still no luck 🕊️

If you have telegram contact this guy (xity is his name) @ender4ity

https://t.me/clarencekopitiam/548490

Reply on xity message

He claimed for him it works

@gloeyisk
Copy link
Owner

Anyone can confirm with these hotfix build? Whether the GMS is optimized or not especially in Android 15.
gms_1.9.2-hotfix.zip

   File: gms_1.9.2-hotfix.zip
  SHA-1: 552259875bd380eafe621d0455f3f11e1b51af44
SHA-256: e8879d73363c383d0fe2169812417b57e178f4311588ce9c4e15f0dff0cd3f63

@asizon
Copy link

asizon commented Dec 10, 2024

Anyone can confirm with these hotfix build? Whether the GMS is optimized or not especially in Android 15. gms_1.9.2-hotfix.zip

   File: gms_1.9.2-hotfix.zip
  SHA-1: 552259875bd380eafe621d0455f3f11e1b51af44
SHA-256: e8879d73363c383d0fe2169812417b57e178f4311588ce9c4e15f0dff0cd3f63

Tried here,but same result,play services not optimized,uninstalled the old one and install this one,waiting more than 1 minut after boot
Using Crdroid 11 A15 with nickgapps elite for a15

@parasgargexx20
Copy link

parasgargexx20 commented Dec 10, 2024

Anyone can confirm with these hotfix build? Whether the GMS is optimized or not especially in Android 15. gms_1.9.2-hotfix.zip

   File: gms_1.9.2-hotfix.zip
  SHA-1: 552259875bd380eafe621d0455f3f11e1b51af44
SHA-256: e8879d73363c383d0fe2169812417b57e178f4311588ce9c4e15f0dff0cd3f63

How to capture logs which might be useful for you

@gloeyisk
Copy link
Owner

How to capture logs which might be useful for you

Module installation logs should be good too.

@asizon
Copy link

asizon commented Dec 10, 2024

How to capture logs which might be useful for you

Module installation logs should be good too.

KernelSU_install_log_2024-12-10-17-02-54.zip

@selfmusing
Copy link
Author

How to capture logs which might be useful for you

Module installation logs should be good too.

KernelSU_install_log_2024-12-11-15-32-00.log
google.xml.txt
pixel.xml.txt

Google Play services is Not Optimized.

@gloeyisk
Copy link
Owner

In these build I tried to search and patch the google.xml directly instead of checking the whole XML files.
gms_1.9.2-hotfix2.zip

   File: gms_1.9.2-hotfix2.zip
  SHA-1: 9a5ab4fc82345fd04bc6e3c72fdeafb54d5679d2
SHA-256: 72c62b8f84de1e7cba63daabd6bb092a349228a2f05ffd4587aed841be2d97da

@asizon
Copy link

asizon commented Dec 11, 2024

In these build I tried to search and patch the google.xml directly instead of checking the whole XML files. gms_1.9.2-hotfix2.zip

   File: gms_1.9.2-hotfix2.zip
  SHA-1: 9a5ab4fc82345fd04bc6e3c72fdeafb54d5679d2
SHA-256: 72c62b8f84de1e7cba63daabd6bb092a349228a2f05ffd4587aed841be2d97da

Still not optimized :(
Can you use _ instead of - for the name to allow KSU flash directly?

@selfmusing
Copy link
Author

selfmusing commented Dec 11, 2024

In these build I tried to search and patch the google.xml directly instead of checking the whole XML files. gms_1.9.2-hotfix2.zip

   File: gms_1.9.2-hotfix2.zip
  SHA-1: 9a5ab4fc82345fd04bc6e3c72fdeafb54d5679d2
SHA-256: 72c62b8f84de1e7cba63daabd6bb092a349228a2f05ffd4587aed841be2d97da

google.xml.txt

KernelSU_install_log_2024-12-11-18-15-29.log

Screenshot_20241211-180834_Termux

@Pritkumar566
Copy link

Pritkumar566 commented Dec 13, 2024

Screenshot_20241213-225517
In my phone gms doze not working
Android 14 October patch
Kernalsu latest

@parasgargexx20
Copy link

Screenshot_20241213-225517 In my phone gms doze not working Android 14 October patch Kernalsu latest

Im so lucky clinging on to apr build of android 14

@Pritkumar566
Copy link

.

Screenshot_20241213-225517 In my phone gms doze not working Android 14 October patch Kernalsu latest

Im so lucky clinging on to apr build of android 14

I am just flash the module two times but same result not working

@gloeyisk
Copy link
Owner

In my phone gms doze not working Android 14 October patch Kernalsu latest

Android 14 should work, you need to wait (a little longer) after your phone rebooted.

@parasgargexx20
Copy link

.

Screenshot_20241213-225517 In my phone gms doze not working Android 14 October patch Kernalsu latest

Im so lucky clinging on to apr build of android 14

I am just flash the module two times but same result not working

You got screwed man untill module fixed, time to switch to voltage os with sandboxing

@Pritkumar566
Copy link

In my phone gms doze not working Android 14 October patch Kernalsu latest

Android 14 should work, you need to wait (a little longer) after your phone rebooted.

Okay brother

@parasgargexx20
Copy link

In my phone gms doze not working Android 14 October patch Kernalsu latest

Android 14 should work, you need to wait (a little longer) after your phone rebooted.

Did you find root cause of android 15 not universally compatible with module?

Were logs really helpful? Or did google add protection to gms making it harder to patch it successfully

@zenin1504
Copy link

Screenshot_2024-12-14-09-26-52-053_com termux
Screenshot_2024-12-14-09-27-05-428_com android settings

Working properly Android 15 HyperOS 2.0

@parasgargexx20
Copy link

Same issue here, November security patch and Android 15

Try su -c gmsc

@parasgargexx20
Copy link

Screenshot_2024-12-14-09-26-52-053_com termux Screenshot_2024-12-14-09-27-05-428_com android settings

Working properly Android 15 HyperOS 2.0

Is that termux?

@parasgargexx20
Copy link

parasgargexx20 commented Dec 14, 2024

Screenshot_2024-12-14-09-26-52-053_com termux Screenshot_2024-12-14-09-27-05-428_com android settings

Working properly Android 15 HyperOS

Which termux version

@zenin1504
Copy link

Screenshot_2024-12-14-09-26-52-053_com termux Screenshot_2024-12-14-09-27-05-428_com android settings
Working properly Android 15 HyperOS

Which termux version

I'm using this https://github.com/termux/termux-app

@parasgargexx20
Copy link

Screenshot_2024-12-14-09-26-52-053_com termux Screenshot_2024-12-14-09-27-05-428_com android settings
Working properly Android 15 HyperOS

Which termux version

I'm using this https://github.com/termux/termux-app

Can you use termux (fdroid variant and try)?
Screenshot_20241214-160021_Cromite
https://f-droid.org/en/packages/com.termux/

I know this may sound silly but still

@selfmusing
Copy link
Author

selfmusing commented Dec 14, 2024

Screenshot_2024-12-14-09-26-52-053_com termux Screenshot_2024-12-14-09-27-05-428_com android settings
Working properly Android 15 HyperOS 2.0

Is that termux?

He just installed rxfetch package.
You can also do it on any termux app :

pkg install rxfetch && rxfetch

@parasgargexx20
Copy link

Screenshot_2024-12-14-09-26-52-053_com termux Screenshot_2024-12-14-09-27-05-428_com android settings
Working properly Android 15 HyperOS 2.0

Is that termux?

He just installed rxfetch package. You can also do it on any termux app :

pkg install rxfetch && rxfetch

Ok

@parasgargexx20
Copy link

Screenshot_2024-12-14-09-26-52-053_com termux Screenshot_2024-12-14-09-27-05-428_com android settings

Working properly Android 15 HyperOS 2.0

Screenshot_20241214-162932_Termux

@parasgargexx20
Copy link

parasgargexx20 commented Dec 14, 2024

Why incomplete info in my termux @sora-1504

Even after
Screenshot_20241214-163337_KernelSU

@zenin1504
Copy link

Why incomplete info in my termux @sora-1504

Even after Screenshot_20241214-163337_KernelSU

Restart your termux

@privacyguy123
Copy link

privacyguy123 commented Dec 15, 2024

Seems absolutely unrelated to A15 as it doesn't work on my Samsung S20 FE A13 stock either

EDIT: KSU seems to be an important common denominator

@gloeyisk
Copy link
Owner

Anyone who running Android 15 (Stock ROMs or any custom ROMs) can send me the stock (unmodified) google.xml here?
Make sure to remove the module first (if you've installed before) then send me the needed file.
I want to check them one by one.

@selfmusing
Copy link
Author

selfmusing commented Dec 15, 2024

Anyone who running Android 15 (Stock ROMs or any custom ROMs) can send me the stock (unmodified) google.xml here? Make sure to remove the module first (if you've installed before) then send me the needed file. I want to check them one by one.

google.xml.txt
pixel.xml.txt
nexus.xml.txt

I have these three xml files on my rom .

DerpFest A15 QPR0 - December Security patch

@Pritkumar566
Copy link

Screenshot_20241216-140742
Gms doze not working bro in android 14 I am waiting from 2 days same result in kernalsu

@Pritkumar566
Copy link

Screenshot_20241216-141140
I am using kernalsu latest version.
Android 14 October patch.
And I try multiple times
But the result is same in my phone.

@CharlieCoops7
Copy link

I had this issue. Downgrading KernalSU to the previous version (1.0.1) fixed it. I believe its an issue with the most recent version.

@CharlieCoops7
Copy link

CharlieCoops7 commented Dec 21, 2024

Looking at previously closed issues and what happened to my phone after getting this to work, I don't think its now advisable to run google services in optimimised mode anymore in recent versions of Android (you can but it breaks things and random apps will crash in the background).

@Syntist
Copy link

Syntist commented Jan 1, 2025

KSU uses
/data/adb/ksu/bin/busybox
while the script is built for magisk that's one of the reason it's not working also, don't go through every xml, cause bindhosts is also in modules and the .xml file have thousands of entries. which slows it too damn slow.

Though I wasn't able to get it working just letting you know issues i faced.

@codeinekris
Copy link

codeinekris commented Jan 11, 2025

Its dont work for me too.
Oneplus 12 Android 15
OxygenOS 15.0.0.406

Using find / -type f -name google.xml give me that results.

/mnt/vendor/my_product/etc/preferred-apps/google.xml
/mnt/vendor/my_product/etc/sysconfig/google.xml
/my_product/etc/preferred-apps/google.xml
/my_product/etc/sysconfig/google.xml
/product/etc/sysconfig/google.xml

And ur module patched only this one from /product/etc/sysconfig/google.xml

Maybe problem is with this? If u want i can send you all xml files.

@kanyewast3
Copy link

Not working for me either on Oxygen OS 12, Android 15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests