Samsung Galaxy Optimization Guide (Battery/Performance/Stability/Heat)

Search This thread

SEParas Jasal

Member
Aug 14, 2014
21
33
It's not related at all, check your sleeping apps and notification settings
I checked everything
Everything is default as it used to be
The only thing i did was clear data and cache and uninstall updates for google apps and it broke notifications. Other than that everything is same as it used to be.
Any other fixes? I think google play services is responsible for push notifications so there's something related.
Sorry for bothering you but please let me know if it can be somehow fixed apart from factory reset ofc. 😅
 

lucas_54

Member
Nov 11, 2012
30
14
Idk if it's the issue with debloat but after setting mu s21 ultra navigation bar to use swipe gestures instead of buttons i cannot revert back to using buttons. When i try i get a "settings keep stopping" message and nothing happens. Any ideas?

Edit:
I've solved it by restoring the 3 Button Navigation Bar (com.android.internal.systemui.navbar.threebutton) package.
 
Last edited:
  • Like
Reactions: Hamid Chikh

ThanosMit

Member
Aug 8, 2018
8
1
Hey, before seeing your thread I had all of these "useless" apps set to disabled, but after running your adb preset on my s22 all of these apps have been "enabled" again (on the app settings the disable box is not checked). Is this normal? Should I just disable them again or let them be? Thanks !
 
  • Like
Reactions: Hamid Chikh

DonKarleon95

Member
May 4, 2022
5
4
Good afternoon! You have new options for battery optimization and I have new questions:

1) adb shell wm reset - does this setting restart the system interface? What is this parameter for?

2) adb shell settings put global app_standby_enabled 1 - what does this parameter do?

3) adb shell settings put global app_restriction_enabled true - what is this parameter for and how does it differ from adb shell settings put global app_standby_enabled 1?

4) adb shell settings put secure long_press_timeout 250 - how is this parameter related to battery consumption?

5) adb shell settings put secure multi_press_timeout 250 - how is this parameter related to battery consumption?
 
  • Like
Reactions: Hamid Chikh

Hamid Chikh

Senior Member
Nov 15, 2016
1,918
1,239
Oran
www.youtube.com
Google Pixel 6
Hey, before seeing your thread I had all of these "useless" apps set to disabled, but after running your adb preset on my s22 all of these apps have been "enabled" again (on the app settings the disable box is not checked). Is this normal? Should I just disable them again or let them be? Thanks !
You just didn't know how to execute the process, try again and follow instructions in OP
 

Hamid Chikh

Senior Member
Nov 15, 2016
1,918
1,239
Oran
www.youtube.com
Google Pixel 6
mate how can i retrieve the older guides? there were some things really useful but now i can't find them anymore, like the ones that makes the app open faster and to disable GOS, and other things concerning the speed of the phone
Some have been deprecated since most of them are already found in settings, some have been rearranged in other categories. For gos, just disable the package like any other
 
Last edited:

heshmatbaab

New member
Jul 8, 2022
1
1
On the contrary, it's as all debloating, good for battery


I can confirm your preset are awesome for 21+ and gave me almost 1 day 17h and 9 hours the screen on.

could you help me with Samsung dex?

I reinstalled the package below but Dex after confirming for PC connect permission will crash, do you have any idea what else I'm missing to restore?

com.sec.android.app.desktoplauncher
com.sec.android.app.dexonpc
com.sec.android.desktopmode.uiservice
com.samsung.desktopsystemui
 
  • Like
Reactions: Hamid Chikh

Hamid Chikh

Senior Member
Nov 15, 2016
1,918
1,239
Oran
www.youtube.com
Google Pixel 6
I can confirm your preset are awesome for 21+ and gave me almost 1 day 17h and 9 hours the screen on.

could you help me with Samsung dex?

I reinstalled the package below but Dex after confirming for PC connect permission will crash, do you have any idea what else I'm missing to restore?

com.sec.android.app.desktoplauncher
com.sec.android.app.dexonpc
com.sec.android.desktopmode.uiservice
com.samsung.desktopsystemui
I almost never used DEX, but i think you can just restore everything with "DEX" and "Desktop" in the name and you'll be fine, also restore samsung services, might be relevant.
 

Hamid Chikh

Senior Member
Nov 15, 2016
1,918
1,239
Oran
www.youtube.com
Google Pixel 6
Good afternoon! You have new options for battery optimization and I have new questions:

1) adb shell wm reset - does this setting restart the system interface? What is this parameter for?

2) adb shell settings put global app_standby_enabled 1 - what does this parameter do?

3) adb shell settings put global app_restriction_enabled true - what is this parameter for and how does it differ from adb shell settings put global app_standby_enabled 1?

4) adb shell settings put secure long_press_timeout 250 - how is this parameter related to battery consumption?

5) adb shell settings put secure multi_press_timeout 250 - how is this parameter related to battery consumption?
1- It's a hardware reset for the screen, doesn't change system settings
2- Power saving feature for apps
3- Forces app restrictions in an app level
4- It's not, it just makes the phone faster
5- It's not, it just makes the phone faster
 

Roei.e

Senior Member
May 5, 2022
143
39

Attachments

  • 1657295694500.png
    1657295694500.png
    8.9 KB · Views: 64
  • Like
Reactions: Hamid Chikh

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Here's my personal comparison review from switching from S21 exynos to Pixel 6:

    What's better on Pixel 6 (After full optimisation):​

    - Battery.
    - Camera processing and rough situations handling.
    - Clean and smooth software (Been on Android 13 since April).
    - Performance/Heat management.

    What's better on Galaxy S21 (After full optimisation):​

    - Build Hardware & structure.
    - Telephoto lens, i miss that zoom capability.
    - The screen experience in general.
    - The form factor, in hand feel and ergonomics.
    - Software options (i miss some OneUI features).
    - Speakers.
    Still updating ...
    4
    If you want a striped out Samsung you can go nuts and disable every apk in sight but I don't see a good reason to do this for most users.
    Case in point, Finder uses no resources unless used. It's a very useful app when you need it.
    Screenshot_20220721-083150_Package Disabler Pro.jpgScreenshot_20220721-082747_Settings.jpg

    Target the power and resource hogs that serve you no purpose. Dependencies... are there any for the apk you're killing?
    Otherwise you'll at the best you'll spend a lot of time back stepping, at the worst never realize some of the devices capabilities or ease of operation.
    If you have hundreds of disabled apks, you likely killed a lot of useful features.
    3
    As a rule of thumb

    Google Play Services is usually set to "Not Optimized" by default because it provides some core functionality that you may not want to lose when your phone enters 'Doze Mode'. Most notably, FCM, the service many apps use for notifications, is bundled in with Google Play Services.​
    This means that if you use this mod to enable Battery Optimization (and thus, Doze) for Google Play Services, you may not receive prompt notifications from certain apps in certain circumstances. When your phone enters Doze Mode to preserve battery life while the screen is off, apps like Gmail and Social Media 'fluff' apps may take longer than normal to notify you of new messages.​
    N.B.: You are free to choose which apps to bypass doze within the app.
    Google play Services, something I wuv to hate.
    It's always nibbling at the battery.
    Normally I disable it and enable only to get Gmail, use a few parasite apps that need it, or even more rarely to go to Playstore.

    Samsung Text Messages apk works fine with it disabled on my N10+'s but they are on Android 9 and 10. On higher versions may not work but likely will unless you disabled a needed dependency. Don't disable anything that isn't hogging the battery. Junk Digital Wellbeing, Emergency Alerts... just kill em.
    If you need notifications for more than text messages... Houston we have a Google Play Services power drain.
    Pick your poison.
    3
    Has anyone tried Naptime, specifically (Doze Google Play Services) to optimize battery life?

    I'm on S22, and I seem to have delayed notifications. Wonder if this is obsolete anymore, or are there fixes/workarounds for this.

    Thanks
    As a rule of thumb

    Google Play Services is usually set to "Not Optimized" by default because it provides some core functionality that you may not want to lose when your phone enters 'Doze Mode'. Most notably, FCM, the service many apps use for notifications, is bundled in with Google Play Services.​
    This means that if you use this mod to enable Battery Optimization (and thus, Doze) for Google Play Services, you may not receive prompt notifications from certain apps in certain circumstances. When your phone enters Doze Mode to preserve battery life while the screen is off, apps like Gmail and Social Media 'fluff' apps may take longer than normal to notify you of new messages.​
    N.B.: You are free to choose which apps to bypass doze within the app.
    3
    Hello,

    i think its Off Topic.. but i have called with an Samsung Guy because my batter is draining so much with my S22 Ultra. He have found out that a service called IMS Service draind my battery.. in App Info i have here an value from 12% used since last full recharge, and i think thats why i can see this service kill my battery.. is this service necessary? i don't want to make calls via LTE etc..

    thanks for help :)
    IMS is a general-purpose, open industry standard for voice and multimedia communications over packet-based IP networks. It is a core network technology, that can serve as a low-level foundation for technologies like Voice over IP (VoIP), Push-To-Talk (PTT), Push-To-View, Video Calling, and Video Sharing.

    Arguably, IMS suppose to be a good thing. It is required for SIP over 4G, which is digital voice, or VOLTE. Conventional voice calls are made over 4G but fall back to 3G for the voice component. To create greater bandwidth for digital protocols, with 3G pretty much eliminated for use in cellular telephone, and might be reserved for low-bandwidth, legacy IoT communication in critical applications such as security, medical, seismic, mining, remote control, and emergency alert, including 911, 311, 988 services.

    Sometime this year - if not already, no cellular device lacking IMS will register on any US nationwide carrier network. Some countries are now forcing devices to have IMS.

    N.B.: Even though it's not a Samsung property - I do not recommend removing/disabling this.
  • 116
    Some of these tweaks are shared with my other thread:
    Google Pixel Optimization Guide

    RECOMMENDED SETTINGS

    To Start With

    - Factory Reset.
    - Follow setup OFFLINE (DON'T restore anything during setup)
    - Restart
    - Add your account from settings app, then continue setup
    - DON'T use Smart Switch

    System Settings

    - Adaptive Battery: DISABLED.
    - Synchronization: DISABLED (turn it off again when not in use).
    - Location: DISABLED (turn it off again when not in use).
    - Advanced features/Gestures: DISABLED
    - Auto download System Update over Wi-Fi: DISABLED
    - Auto optimize daily: ENABLED
    - Auto restart at set times: ENABLED
    - Bluetooth Scanning (Location services): DISABLED
    - Usage & Diagnostics: DISABLED
    - Advertising ID: DELETE
    - System Sound/Vibration Control: ALL OFF
    - Network Mode: 2G/3G/4G
    - Always On Display (AoD): DISABLED
    - System-Wide Dark Mode: ENABLED

    Background Usage Limits

    - Put unused apps to Sleep: DISABLED
    - Sleeping Apps: All apps except apps you need instant notifications from.
    - Deep Sleeping Apps: All your inactive apps.

    Google Settings

    - Nearby connections: DISABLED
    - Devices: DISABLED
    - Nearby Share: DISABLED (turn it off again when not in use).
    - Location Services: ALL DISABLED

    Accessibility Settings

    - Reduce Blur: ENABLED

    Developer Options:

    - Background Check: DISABLED
    - Multicore Packet Scheduler: ENABLED
    - Suspend execution of Cached apps (under developer options): ENABLED
    - Animation scale (3 entries) : x0.5
    - Bluetooth AVRCP Version: 1.6
    - Bluetooth MAP version: 1.4

    RECOMMENDED FIXES

    Battery Calibration

    - Use your phone normally till it turns off automatically.
    - Plug it into the charger and leave it charging for 2h while it's still off.
    OPTIONAL *(Don't plug it out, turn it on, apply calibration using Battery Calibration Pro, then turn it off)*
    - Turn it on, then unplug your phone and use it normally until it dies again.
    - Plug it into the charger and leave it charging for 2h while it's still off.
    - Turn it on, unplug it, enjoy

    Fix General Battery Leak

    - Go to Permission Manager, check for any excess permissions, especially hardware like location, camera or nearby devices.

    Fix Google Apps Battery drain

    Go to Settings, Apps. Enable "show system apps" then look for each of:
    "Google Play Store"
    "Google Services Framework"
    "Google Play Services", "Chrome"
    "Google Android System WebView"
    "Google App".
    - Clear data & cache
    - Uninstall Updates
    - Force Stop
    - Reboot, let them update and follow setup.

    Fix Camera Experience

    - Uninstall updates from App Info page
    - Wipe Data & Cache of Camera app, reboot to Safe mode, do it again, then reboot normally.
    - Turn off location tags, and location permission for the camera app.
    - Move all camera modes (portrait, food, etc ..) to the "More" section.
    - Video Stabilization: DISABLED

    Fix Google Play Store Experience

    Under Google Play Store settings
    - Autoplay: DISABLED
    - Auto Update Apps: DISABLED
    - App Install Optimization: DISABLED

    Fix Google Chrome

    Settings
    - Page Preloading: DISABLED
    Chrome Flags
    - Smooth Scrolling: ENABLED
    - Parallel Downloading: ENABLED

    Fix Social Media Apps

    - Theme: AMOLED
    - Autoplay videos: DISABLED
    Under security
    - Log out of all Old sessions.

    Fix Spotify Battery Drain

    - Under settings, turn off "Spotify connect in the background"

    Remove Ads System-Wide

    Go to settings, connections, more connections settings, look for Private DNS.
    - Set: dns.adguard.com as custom dns & save.
    - Close all apps then reboot.

    Fix OLED Burn-in/Ghosting

    - Download LCD Burn-in Wiper
    - Disable Auto-brightness & set Brightness to 100%
    - Launch at least 1 hour

    Fix Speaker crackling

    - Download Speaker cleaner
    - Set your volume to max
    - Put your phone face down & launch

    SAMSUNG RECOMMENDED FIXES

    Fix General Performance

    - Boot into recovery
    - Clear cache partition

    - Repair apps.

    Fix OneUI Lag

    Go to Settings, Apps. Enable "show system apps" then look for each of:
    "OneUI Home", "Your Keyboard", "Android System", "System UI", & all the "Gesture" apps.
    - Under app info, Battery, set to UNRESTRICTED

    Fix UI Frame Drop/Stutter

    Settings, Apps, show system apps.
    - Clear App Data & Cache of "Always-on Display"

    Fix Slow App Launch

    - Download & install latest versions of Galaxy App Booster & Samsung Good Guardians.
    - Launch Good Guardian & select Galaxy App booster
    - Launch it and leave your phone till it's done.

    Fix Fingerprint Experience

    Go to Settings, Biometrics and security, fingerprints:
    - Turn on "Fingerprint always on"
    - Turn off "Show animation when unlocking"
    Go to Settings, Biometrics and security, more biometrics settings:
    - Turn off "Show unlock transition effect"
    Under Settings, Apps.
    - Set battery usage to "Unrestricted" for "com.samsung.android.biometrics.app.setting".

    Unlock More Gallery Features

    - Go to Gallery App, Settings, About.
    - Tap version number multiple times
    - You'll find more options under "Labs"

    DEBLOAT

    You're gonna need:
    - ADB AppControl (Windows)
    - Samsung USB Drivers
    - ADB Drivers
    - Latest presets attached at the bottom of this post
    - Enable USB debugging and "Always authorize" on your phone

    !!DISCLAIMER!!

    - The preset has been tested by me and other users, you will NOT get a boot loop.
    - This preset contains the list of ALL APPS THAT CAN BE REMOVED
    - You don't have to remove all of the apps in the preset bellow.
    - Inspect all what's going to be removed then unselect apps & features you need.
    - You can always go to "Uninstall" section of AppControl and restore the apps you need.
    - Keep in mind that deleted apps stay in the phone and will all be restored after factory reset.
    -
    Restore all apps before updating your phone

    How to

    In AppControl
    - Load attached preset to "System" tab.
    - Scroll though all the selected apps and uncheck the apps you want to keep.
    - Apply Uninstall (with wipe app data checked automatically).
    - Restart your phone, then apply the after update section of tweaks bellow.

    RECOMMENDED ADB OPTIMIZATIONS

    #BACKUP YOUR SETTINGS FIRST

    - adb devices
    - adb shell settings list global > global_stock.txt
    - adb shell settings list system > system_stock.txt
    - adb shell settings list secure > secure_stock.txt
    If you want to check parameter's state, replace "put" with "get" and remove value.
    Ex: For "animator_duration_scale"
    - adb shell settings get global animator_duration_scale

    Improve Display Performance

    - adb shell wm reset
    - adb shell settings put system screen_auto_brightness_adj 1.0
    - adb shell settings put system peak_refresh_rate 120.0
    - adb shell settings put system min_refresh_rate 1.0
    - adb shell settings put global window_animation_scale 0.4
    - adb shell settings put global transition_animation_scale 0.4
    - adb shell settings put global animator_duration_scale 0.4

    Improve Power Management

    - adb shell settings put global cached_apps_freezer enabled
    - adb shell settings put global app_standby_enabled 1
    - adb shell settings put global adaptive_battery_management_enabled 0
    - adb shell settings put secure long_press_timeout 250
    - adb shell settings put secure multi_press_timeout 250
    - adb shell settings put global app_restriction_enabled true
    - adb shell settings put system intelligent_sleep_mode 0
    - adb shell settings put secure adaptive_sleep 0

    Disable Google Stuff

    - adb shell settings put secure smartspace 0
    - adb shell settings put secure systemui.google.opa_enabled 0
    - adb shell settings put system gearhead:driving_mode_settings_enabled 0
    - adb shell settings put global hotword_detection_enabled 0

    Disable Gestures

    - adb shell settings put global ambient_enabled 0
    - adb shell settings put secure aware_enabled 0
    - adb shell settings put secure doze_enabled 0
    - adb shell settings put secure double_tap_to_sleep 0
    - adb shell settings put secure double_tap_to_wake 0
    - adb shell settings put secure double_tap_to_wake_up 0
    - adb shell settings put system lift_to_wake 0
    - adb shell settings put secure hush_gesture_used 0
    - adb shell settings put secure volume_hush_gesture 0
    - adb shell settings put secure silence_gesture 0
    - adb shell settings put secure skip_gesture 0
    - adb shell settings put secure wake_gesture_enabled 0
    - adb shell settings put secure one_handed_mode_activated 0
    - adb shell settings put secure one_handed_mode_enabled 0
    - adb shell settings put system master_motion 0
    - adb shell settings put system motion_engine 0
    - adb shell settings put system air_motion_engine 0
    - adb shell settings put system air_motion_wake_up 0

    Disable Sound & Vibration Feedback

    - adb shell settings put global power_sounds_enabled 0
    - adb shell settings put secure charging_sounds_enabled 0
    - adb shell settings put system charging_vibration_enabled 0
    - adb shell settings put system lockscreen_sounds_enabled 0
    - adb shell settings put system sound_effects_enabled 0
    - adb shell settings put system dtmf_tone 0
    - adb shell settings put system haptic_feedback_enabled 0
    - adb shell settings put system haptic_feedback_intensity 0
    - adb shell settings put system hardware_haptic_feedback_intensity 0
    - adb shell settings put system media_vibration_intensity 0
    - adb shell settings put system notification_light_pulse 0

    Improve Vibrations

    - adb shell settings put system vibrate_when_ringing 1
    - adb shell settings put system ring_vibration_intensity 3
    - adb shell settings put system notification_vibration_intensity 3

    Disable Screen Saver

    - adb shell settings put secure screensaver_enabled 0
    - adb shell settings put secure screensaver_activate_on_sleep 0
    - adb shell settings put secure screensaver_activate_on_dock 0

    Enable Progressive Ringtone

    - adb shell settings put global apply_ramping_ringer 1

    Disable Samsung Cross-Device Sync

    - adb shell settings put system mcf_continuity 0
    - adb shell settings put system mcf_continuity_permission_denied 1
    - adb shell settings put system mcf_permission_denied 1

    RAM Plus Configurations

    - adb shell settings put global ram_expand_size_list 0,1,2,4,6,8,12,16
    Reboot and select desired RAM PLUS size from Settings, Battery section.

    RECOMMENDED AFTER UPDATE

    Boost Apps (Same as Galaxy App Booster)

    - adb shell cmd package compile -m speed-profile -a

    Boost Battery

    - adb shell cmd package bg-dexopt-job

    Clear All Apps Cache (Enter multiple times)

    - adb shell pm trim-caches 999999999999999999

    Force Stop Apps

    - adb shell am force-stop com.package.name (Create .bat file containing all packages)


    #I'M NOT RESPONSIBLE FOR ANY DAMAGE CAUSED TO YOUR DEVICE
    13
    Epic! Please describe all of the ADB commands you followed?
    I did however, follow all the ADB commands that are suggested in OP. I'm running on FHD+, Adaptive Motion Smoothness (via Galaxy Max Hz app), Processing speed set to Optimized. Enabled CPU Responsiveness, enabled performance limit. I know it sounds crazy, but I get the best of both worlds with the performance limit ON and CPU Responsiveness ON, the phone is insanely fast and battery is great. I tried different combinations and this has been my best result in terms of battery life and I'm still at 42%. My benchmarks are still 1200, 3400.

    No power saving. No adaptive power saving. Adaptive battery off. No adaptive brightness. I have a bunch of apps in sleep and deep sleep. Mostly WiFi since I work remotely and some light LTE usage. I turned off 5G. I manually set RAM Plus to 1GB. Dark Mode and my Location are on at all times.

    S22 Ultra US Unlocked Snapdragon 512gb.

    Here are all the commands I used:

    2 - Disable Background Scanning​

    - adb shell settings put global ble_scan_always_enabled 0
    - adb shell settings put system nearby_scanning_enabled 0

    3 - Unlock RAM Plus Configurations​

    - adb shell settings put global ram_expand_size_list 0,1,2,4,6,8,12,16
    Reboot then go to settings and set RAM Plus to 1GB.

    5 - Disable Motion Engines​

    - adb shell settings put system master_motion 0
    - adb shell settings put system motion_engine 0
    - adb shell settings put system air_motion_engine 0
    - adb shell settings put system air_motion_wake_up 0

    7 - Disable User Manual​

    - adb shell settings put global online_manual_url 0

    8 - Extra battery​

    - adb shell settings put global app_standby_enabled 1
    - adb shell settings put system mcf_continuity 0

    IV-B - EXTREME BATTERY OPTIMISATION

    3 - Enable Performance Limit​

    - adb shell settings put global restricted_device_performance 1,1

    IV-P - EXTREME PERFORMANCE OPTIMISATION

    2 - Enable Improved App Responsiveness​

    Changing processing speed in settings disables this
    - adb shell settings put global sem_enhanced_cpu_responsiveness 1
    12
    NO BLOATWARE REMOVED. I reinstalled all the bloatware I previously removed and then updated my phone to One UI 4.1 AVC8. This is with no bloatware removed, so imagine what it'll be when I disable over 100 system apps.

    I did however, follow all the ADB commands that are suggested in OP. I'm running on FHD+, Adaptive Motion Smoothness (via Galaxy Max Hz app), Processing speed set to Optimized. Enabled CPU Responsiveness, enabled performance limit. I know it sounds crazy, but I get the best of both worlds with the performance limit ON and CPU Responsiveness ON, the phone is insanely fast and battery is great. I tried different combinations and this has been my best result in terms of battery life and I'm still at 42%. My benchmarks are still 1200, 3400.

    No power saving. No adaptive power saving. Adaptive battery off. No adaptive brightness. I have a bunch of apps in sleep and deep sleep. Mostly WiFi since I work remotely and some light LTE usage. I turned off 5G. I manually set RAM Plus to 1GB. Dark Mode and my Location are on at all times.

    I think the adb commands help more than debloating the phone based on my results.

    S22 Ultra US Unlocked Snapdragon 512gb.
    11

    I made the switch to Google Pixel 6 today

    Pretty sure @Dj daudi , @Kris_b1104 and the others are plenty capable of answering all th questions. I'll make a modified copy of this thread for Pixel too. Good bye guys, take care of this thread for me.
    9
    Some of those apks on the block list just sit there and do nothing unless needed.
    You need to know what you're blocking and if it really needs/should to blocked.
    Dependencies, dependencies, dependencies, the app names and functions can be deceiving.
    Samsung's have so many features you may never realize what you lost and for little or no gain.

    The Google system and user apps are some of the worst offenders.
    1- I have been uninstalling apps over adb for a long time now, and from a functionality standpoint, they don't interfere with the user experience, but on the contrary, uninstalling them improves the experience.
    2- There are no apps that "just sit there", they all will consume power and resources on the background, only noticeable on the long run.
    3- This is an extensive, maxed out and extreme list of bloatware, you can of course choose to skip some of those apps if you need them, your use case may be different then mine.