How To Guide Extend your battery life - Smart debloat and optimize (works too on all S20, S21 and S22, except S22U). [no root]

Search This thread

Sita021

New member
Dec 18, 2022
2
1
I'm uploading the new version with this two packages selectables (you dont need run it). To restore this two disabled packages (wellbeing and game launcher) you need run this scripts:
Wellbeing reenable:

Game Launcher reenable: https://drive.google.com/file/d/12lzbApvl66zlEMSlWhveVx3rh88wCE2U/view?usp=share_link

PS: thanks for your feedback :D
Cool 😁! Your scripts are life saving. One question though, they don't drain battery that much?
 
Cool 😁! Your scripts are life saving. One question though, they don't drain battery that much?
They consume quite a bit. For those who don't use it, is worth keeping off. For those who use it, there are no big problems to keep it. (I mean wellbeing and game launcher). I noticed in some tests that GOS slows games down to maintain thermal stability, but I haven't found a simple way to disable it by script only.
 
  • Like
Reactions: Sita021

codkan

New member
Jan 15, 2023
2
1
Hey, I am trying to run this script (V3) to debloat my S21 Ultra, but not having any luck. There is no error or message output after "daemon started successfully", so I am not sure the issue. I have USB debugging enabled in developer options, but is there something else I'm missing? Any help would be greatly appreciated!
 
  • Like
Reactions: danilomazzaro
Hey, I am trying to run this script (V3) to debloat my S21 Ultra, but not having any luck. There is no error or message output after "daemon started successfully", so I am not sure the issue. I have USB debugging enabled in developer options, but is there something else I'm missing? Any help would be greatly appreciated!
Unplug your device, go to developer settings, click on revoke USB authorizations, disable and reenaable USB debugging.
Run the script and when you got "demon started successfully" plug your device.
Your device will show a authorization asking for USB debugging access, just grant and all will run properly now.
 

Solega

New member
May 28, 2019
2
0
Hey, when I run the script it shows me that "The system cannot find the path specified." you know why that is?
 

PsyClip-R

Senior Member
Dec 19, 2009
301
96
Warsaw
One more bloat package should be added to the existing list:
`de.axelspringer.yana.zeropage` This is annoying UpDay + Samsung Free.
it's better to remove it manually without `-k` arg. So the app data will be removed too.
1. `adb shell`
2. `pm clear --user 0 de.axelspringer.yana.zeropage` `pm uninstall --user 0 com.samsung.android.app.spage`
3. just to reensure no dex code left `pm delete-dexopt de.axelspringer.yana.zeropage` `pm delete-dexopt com.samsung.android.app.spage`

Also I wonder why script author didn't include this command
`pm delete-dexopt [package-name]`
This shoud also save us extra space.
 
Last edited:

asetmumin99

Senior Member
May 7, 2016
51
14
Greetings, thank you so much for this!

I'm on UI 5 and getting an exception when it tries to disable the camera light sensor:
Screenshot 2023-02-09 213252.png

These are my answers:
answers.png

theEnd.png

Did it fail to disable the camera light sensor? It's kinda sad, coz it seems to be the biggest contributor to battery draining.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    sot.jpg


    ***Works on ONE UI 4, 4.1 and 5 for all versions of s20, s21 and s22 (now works on S22U too)***
    Due to some bad optimizations by Samsung , we are facing a lot of battery issues and a couple of random lags. With this script, I have got something between 7h and 9h of SOT.
    In a few tests in Brasil, the users are getting a much better battery life. This script have some things like:
    => Removing items that can sometimes be undesirable according to the user, so you can select wich services will be disabled, such as bixby, AR camera features, microsoft apps, google apps (not the main like gmail and photos, but the secondary ones like bookmar provider, docs), ANT (there are people who don't even know what it is so this is usually useless here in Brazil).
    => Disable the Camera Light Sensor which is a bug on One UI 4.0 and 4.1, galaxy S have a light sensor to calculate the automatic brightness, however, since One UI 4.0 it ends up using the front camera for this, annihilating the screen time of the device. When camera light sensor are disbled, the device will properly use the dedicated light sensor and the automatic brightness be more responsive and battery friendly.
    => Enable the option to disable Ram Plus, where the 0GB option will appear in the options above 2GB, which you can disable if you want (Recomended only on ONE UI 4, because One UI5 comes with disable RAM Plus option available) .

    Throughout the script, it will ask which item you want to be removed, so if you use DEX, just answer "n" when it asks if you want to remove it.
    Resetting the device to factory defaults will completely reverse everything the script does, so it is not permanent and does not void your device's warranty.

    The procedure is simple:

    In your cellphone:
    1 - Enable Developer options and USB Debug:
    Go to Settings > About Phone > Software Information click on "build number" several times until it appears that developer mode is enabled.
    2 - Now go to Settings > Developer Options and click enable right at the top of the page and look for the USB Debugging option and enable it too.
    3 - Connect your phone to the computer and if a window appears asking for permission, grant it (you will be granting permission for your computer to access your phone in developer mode. If it doesn't appear now, no problem, this window may appear later when we run the script, but it usually appears right here.

    On your PC:
    4 - Download the script:
    ONE UI 4 and 5: Debloat and optimize Galaxy S20 S21 AND S22 for ONE UI 4-5

    5 - Extract it and run the "debloat and optimize" file (perhaps at that time the aforementioned window will appear on the cell phone asking for permission).

    The script will guide you asking for all possible options which are 10:

    Remove Microsoft apps?(You can reinstall the app later from the playstore)[Y/N]?
    Remove Netflix?(You can reinstall the app later from playstore)[Y/N]?
    Remove Facebook?(You can reinstall the app later from playstore)[Y/N]?
    Remove Google Apps?(You can reinstall the app later from playstore)[Y/N]?
    Remove DEX?(You will no longer have the DEX function)[Y/N]?
    Remove ANT?(If you don't know what it is, you can remove it without fear)[Y/N]?
    Remove Bixby?(You will still have the bixby routines, but no longer the voice assistant)[Y/N]?
    Remove Augmented Reality Functions from Camera?(You will no longer have AR Sticker in Camera)[Y/N]?
    Apply adaptive brightness correction? (by disabling the camera light sensor, improving auto brightness response and increasing battery life)[Y/N]?
    Enable Ram Plus extra options? (enable options to increase or disable Ram Plus in Settings, Device and Battery Support, Memory) [Y/N]?

    6 - When it finishes, the phone will restart. All options can somehow be reversed by downloading the apps from the Play Store again, except for DEX, Bixby and Sticker AR mode, but which can be reversed with another script that I'm still building or resetting your device to factory defaults.

    Any doubt I will be available

    My personal options are: ONE UI 4 - Y for all except dex (because I use dex, if you won't use, you can safe remove)
    ONE UI 5: Y for all except Dex
    After the script you can safe reinstall some apps back like Facebook and Google from Playstore, but now this will comes without Samsung bloatware.

    Edit1: the link are updated to a new version fixing one hand mode
    Edit2: release of a version to apply on ONE UI5.
    Edit3: Unifying One UI 4 and 5 scripts, added new options for Game Launcher, ledcover and Wellbeing, doesn't disable Android Auto anymore, and added fix for media provider Bug in all S21 series.
    and finaly the link to rollback the script: Rebloat ONE UI 4.1+ (works on ONE UI 5 too)
    1
    View attachment 5782457

    ***Works on ONE UI 4, 4.1 and 5 for all versions of s20, s21 and s22 (except for S22U)***

    Due to some bad optimizations by Samsung , we are facing a lot of battery issues and a couple of random lags. With this script, I have got something between 7h and 9h of SOT.

    In a few tests in Brasil, the users are getting a much better battery life. This script have some things like:

    => Removing items that can sometimes be undesirable according to the user, so you can select wich services will be disabled, such as bixby, AR camera features, microsoft apps, google apps (not the main like gmail and photos, but the secondary ones like bookmar provider, docs), ANT (there are people who don't even know what it is so this is usually useless here in Brazil).

    => Disable the Camera Light Sensor which is a bug on One UI 4.0 and 4.1, galaxy S have a light sensor to calculate the automatic brightness, however, since One UI 4.0 it ends up using the front camera for this, annihilating the screen time of the device. When camera light sensor are disbled, the device will properly use the dedicated light sensor and the automatic brightness be more responsive and battery friendly.

    => Enable the option to disable Ram Plus, where the 0GB option will appear in the options above 2GB, which you can disable if you want (Recomended only on ONE UI 4, because One UI5 comes with disable RAM Plus option available) .

    Throughout the script, it will ask which item you want to be removed, so if you use DEX, just answer "n" when it asks if you want to remove it.

    Resetting the device to factory defaults will completely reverse everything the script does, so it is not permanent and does not void your device's warranty. If you want, there are a Revert back script too.

    The procedure is simple:

    In your cellphone:

    1 - Enable Developer options and USB Debug:

    Go to Settings > About Phone > Software Information click on "build number" several times until it appears that developer mode is enabled.

    2 - Now go to Settings > Developer Options and click enable right at the top of the page and look for the USB Debugging option and enable it too.

    3 - Connect your phone to the computer and if a window appears asking for permission, grant it (you will be granting permission for your computer to access your phone in developer mode. If it doesn't appear now, no problem, this window may appear later when we run the script, but it usually appears right here.

    On your PC:

    4 - Download the script:

    ONE UI 4.1+: Debloat and optimize Galaxy S20 S21 AND S22 except S22U v2

    ONE UI 5: Debloat and optimize Galaxy S20 S21 AND S22 for ONE UI 5

    5 - Extract it and run the "debloat and optimize" file (perhaps at that time the aforementioned window will appear on the cell phone asking for permission).

    The script will guide you asking for all possible options which are 10:

    Remove Microsoft apps?(You can reinstall the app later from the playstore)[Y/N]?

    Remove Netflix?(You can reinstall the app later from playstore)[Y/N]?

    Remove Facebook?(You can reinstall the app later from playstore)[Y/N]?

    Remove Google Apps?(You can reinstall the app later from playstore)[Y/N]?

    Remove DEX?(You will no longer have the DEX function)[Y/N]?

    Remove ANT?(If you don't know what it is, you can remove it without fear)[Y/N]?

    Remove Bixby?(You will still have the bixby routines, but no longer the voice assistant)[Y/N]?

    Remove Augmented Reality Functions from Camera?(You will no longer have AR Sticker in Camera)[Y/N]?

    Apply adaptive brightness correction? (by disabling the camera light sensor, improving auto brightness response and increasing battery life)[Y/N]?

    Enable Ram Plus extra options? (enable options to increase or disable Ram Plus in Settings, Device and Battery Support, Memory) [Y/N]?

    6 - When it finishes, the phone will restart. All options can somehow be reversed by downloading the apps from the Play Store again, except for DEX, Bixby and Sticker AR mode, but which can be reversed with another script that I'm still building or resetting your device to factory defaults.

    Any doubt I will be available

    My personal options are: ONE UI 4 - Y for all except dex (because I use dex, if you won't use, you can safe remove)

    ONE UI 5: Y for all except Dex

    After the script you can safe reinstall some apps back like Facebook and Google from Playstore, but now this will comes without Samsung bloatware.

    Edit1: the link are updated to a new version fixing one hand mode

    Edit2: release of a version to apply on ONE UI5.

    and finaly the link to rollback the script: Rebloat ONE UI 4.1+ and 5 (works on ONE UI 5 too)
    Is this tips work's on S21 fe ?
    1
    Does this script disable samsung pay/wallet?
    1
    Does this script disable samsung pay/wallet?
    It didn't for me
    1
    I can't see any difference with battery life on my s21 fe after debloating by your guide. At least it didn't go wrong either.