yashsingh1/xdaforums huggingface dataset:
[General Topics] Kris_b1104:
Try looking at the first page of this thread, it has some pretty important information!!!​

Jokes aside, I feel like people don't read the ADB commands, they just copy and paste them. Then they're like "omg why is my gestures not working?!!" well... It's because you copy and pasted all the commands to disable gestures...

This is not towards the person I'm replying to, just a pet peeve of mine from this thread in general.
[General Topics] Kris_b1104:
On another note, battery life seems pretty stable and identical to the firmware I was on before One UI 5. From 100% down to 40% with 5 hours SOT. It would be 6 hours, which is the norm for me, if it wasn't for my gaming lol. About 10%/hour on average. I can live with that.
[General Topics] maor23:
Can you tell please what is that all adb commands are doing?
[General Topics] Hamid Chikh:
It's on by default, can't disable that
[General Topics] sapanag:
i guess:- adb shell settings put global zram_enabled 1
[General Topics] skovv:
please let me know how to restore the side panel?

adb shell pm install-existing com.samsung.android.app.clipboardedge ??
[General Topics] Guan Yu:
can you test it by disable zram and test it with ram plus on and off ? since ram plus exist to prevent oom not free cpu/gpu booster
[General Topics] Haruu1416:
pm install-existing com.samsung.android.app.cocktailbarservice

After restore him go recovery clear cache and repair apps
[General Topics] Macusercom:
I did that, I've disabled zRAM completely and had RAM Plus enabled. There was no other swap to be found
[General Topics] rodken:
You can literally type the suffix of each and every command utilizing your favorite search engine if you feel the need to exploit.

Spoiler content hidden.
[General Topics] sapanag:
In oneui 5 we can disaable both. Turned ram plus off in device care and used (adb shell settings put global zram_enabled 0) to disable Zram also
[General Topics] skovv:
działa, bardzo dziękuję
[General Topics] skovv:
Haruu1416 works, thank you very much​
[General Topics] Haruu1416:
It is an honor to be able to help you in any way I can. If you need something or have a question, ask here that not only I but others can help as we can. have a good morning
[General Topics] serene_sky:
is it better when you disable zram? i'm already disable ramplus btw.
[General Topics] sapanag:
yes phone runs smoother
[General Topics] Hamid Chikh:
I thought disabling zram would require root
[General Topics] serene_sky:
but in your first post have a adb command to disable zram?
[General Topics] sapanag:
So what this command does (adb shell settings put global zram_enabled 0 ) 🥲
[General Topics] sapanag:
Looks like samsung is not done with the stable release of s22 oneui 5. Some regions are getting new beta/stable builds which are more refined then current stable release😂
[General Topics] Hamid Chikh:
Makes you feel like it's disabled 😂
[General Topics] Hamid Chikh:
Include the source
[General Topics] Hamid Chikh:
Search through the thread, we already made a full analysis of the subject, including ramplus
[General Topics] serene_sky:
I'm quite satish with my phone now. but I see in your list has GOS to be disabled, so your phone ever be overheat?
[General Topics] sapanag:
Obviously i thought its all set😂😂
[General Topics] sapanag:
https://twitter.com/i/web/status/1586286450362191872

he is very reliable in case of software update infos specially with oneui 5

https://twitter.com/i/web/status/1585077408751050752

everyone knows iceuniverse so explanation needed
[General Topics] Haruu1416:
I don't know if it was the cause but, the gos after I re-activated I noticed that my smartphone almost never heats up, even indoors and it didn't affect anything in performance, not to mention that took 10 minutes to go down 1%
[General Topics] bodomfan:
What settings,same as op?
[General Topics] bodomfan:
Why is adaptive battery better being off?
[General Topics] sapanag:
but GOS only runs when game is played right???
[General Topics] Guan Yu:
then does ram plus prevent oom when using all of ram or not
[General Topics] Hamid Chikh:
ADB Camera Shutter Sound​

Are you guys interested in disabling/enabling camera shutter sound using ADB ? I don't know if it's a setting restricted by regions.
[General Topics] Hamid Chikh:
Hmm, so you're saying GOS might be a good guy after all ?
[General Topics] Kris_b1104:
Idk about that, I have GOS uninstalled and my phone doesn't heat up, and can also take 10 minutes to go down 1% as well, however, my game performance is horrible with GOS installed.

So I guess it's a preference thing, I like it disabled.
[General Topics] Hamid Chikh:
Obviously, there's a reason for that whole controversy. But i honestly like it when people try things alone and report back with results and notes, it helps make this thing more interactive.

Why are you "just" disabling GOS and not uninstalling it completely ?
[General Topics] Hamid Chikh:
Google Phone App​

I had my phone freeze and force-reboot while screen sharing streaming 1080p after i received a call

Are you guys experiencing any problems ?
[General Topics] Hamid Chikh:
I'm testing some new adb tweaks​

What do you guys think ? It's still S22 exynos
[General Topics] Kris_b1104:
No reason actually, I'll try uninstalling it later today. I'm worried that if I enable it, I won't be able to uninstall it lol, that's why I leave it disabled.

Is there really a difference?

And I don't use Google Phone app so I can't comment on that bug.
[General Topics] Hamid Chikh:
Try uninstalling GOS, even though it's a persistent app, it will try to come back, so you'll have to try multiple times. I did the same, it never works the first time. If it doesn't want to be removed, you can always disable it again.
[General Topics] sapanag:
i uninstalled after factory reset on oneui 5 but it came back next day. if again i try it gets uninstalled but comes back after 5mins
[General Topics] sapanag:
ok thats the trick
[General Topics] sapanag:
huge boost in multi core bench scores 😍😍😍
[General Topics] nocio:
Base S21 with your preset
[General Topics] Haruu1416:
bro my cell phone is an a107m and normally it doesn't have this kind of result since it is an entry level smartphone, but i was very surprised by it.

Not to mention that when it was turned off, some apps like youtube or even the browser got hot after 10 minutes (I use youtube at 720p)
[General Topics] proku:
Thank you! companion device manager did the job
[General Topics] Hamid Chikh:
Yes, haven't you noticed when going thru apps before deleting ?
[General Topics] Hamid Chikh:
Hi, thanks for your input. Device services has never been deleted on my preset configuration
[General Topics] Hamid Chikh:
Yes, smart connectivity is deleted. You should restore device companion as well as wearable manager and other connectivity services needed. You can search thru the thread to see the full list of what to restore.
[General Topics] nocio:
No I did not look in the settings for that. I usually check once or twice in month for software update
[General Topics] abbastefan005:
Sadly the new Update doesn't fix the Photo Editor issue. Whenever I try to edit or share a photo from my gallery the editor instantly crashes.
[General Topics] klemen241:
Search bar not working for apps
[General Topics] Hamid Chikh:
Restore finder
[General Topics] Hamid Chikh:
Excuse me, what's your problem exactly ?
[General Topics] Hamid Chikh:
SmartSuggestions isn't deleted on my preset, did you delete it yourself ?
[General Topics] Hamid Chikh:
##### LAST EDITED: 14-02-2021 ##### REASONABLE PRESET V2

- Fixed Network problems for some

- Restored Photo editor

- Managed other apps

Waiting for your feedback

We're now at:

- 299 Deleted apps.

-2 Disabled apps.

- 118 Kept system apps.

*REVIEW APPS BEFORE APPLYING PRESETS

*APPLY ALL 3 OF THE NEW PRESETS

*REBOOT INTO RECOVERY, CLEAR CACHE PARTITION 3 TIMES, THEN REPAIR APPS.
[General Topics] NozGojira:
Strange. Having same problem before but after restoring photo editor already worked well.
[General Topics] klemen241:
The debloat list messed something up, my phone was hot all day lol. I restored now. Something is off on fold 3
[General Topics] NozGojira:
have you clear cache and repair app after all?
[General Topics] Mashio:
Hey

First of all thank you for the list, It is of tremendous help. I have one question: are you aware of any 'Power Saving Mode' apps that have been deleted/disabled in your list? I'm setting my phone to always be in power saving mode to save battery but am worried it might be just a 'placebo' effect if the apps have been deleted.

Thank you!
[General Topics] abbastefan005:
It was deleted, now I restored it, cleared cache partition 3 times and did app repair.

Now, from the gallery when I click on a photo I can share it, however, whenever I click the Pen button to edit the photo, the app crashes and I'm being sent back to the home page. Weird. Other than that all is very good with the new update.
[General Topics] Hamid Chikh:
You're sure you did restore photos editor ? If yes, then the problem doesn't come from debloating. To make sure, go to the deleted tab, load kept preset apply restore to the selected apps
[General Topics] Hamid Chikh:
After debloating, there's no need for power saving mode, you can use your phone to the fullest. I'd advise you to try it and come back with the results in a few days.

Read all of OP and apply everything in there, and don't enable power saving mode
[General Topics] AdiSimpson:
why we should clear cache partition after debloat ? i never does it before, had never problems.
[General Topics] Hamid Chikh:
##### LAST EDITED: 15-02-2021 ##### REASONABLE PRESET V3

- Managed some apps

Waiting for your feedback

We're now at:

- 311 Deleted apps.

-2 Disabled apps.

- 102 Kept system apps.

*REVIEW APPS BEFORE APPLYING PRESETS

*APPLY ALL 3 OF THE NEW PRESETS

*REBOOT INTO RECOVERY, CLEAR CACHE PARTITION 3 TIMES, THEN REPAIR APPS.
[General Topics] Haruu1416:
Usually this device I use doesn't have the gos but a while ago when I got it I wanted to test the game tuner (in the greatest innocence because it was my first samsung)

And i install from APK mirror and here still on my phone (my phone don't Supports game launcher or game plugins)
[General Topics] Haruu1416:
I don't know if the version changes anything but I'm on 3.5.04
[General Topics] Haruu1416:
I think it's a great idea, I'm going back to using the vanilla camera, this will help
[General Topics] Haruu1416:
I don't use transmission but I can test and report if I have any problems here

Are you using the beta version of google phone?
[General Topics] yojan.weber:
hello bro, I did almost all the steps of your configuration it gave me about 8 hours on my s22 snapdragon, but I was curious to try the adb commands and I only got 5 hours, I don't know which of them gave me problems and I don't know some commands what do they do I don't know if you could help me please

and another thing you know the solution for the text to be totally black is that I see it gray I tried to activate the high contrast but it does not work very well and it is not still totally black

ADB OPTIMISATIONS

Boost Battery​

adb shell settings put system adaptive_fast_charging 1

adb shell settings put system super_fast_charging 1

adb shell settings put system wireless_fast_charging 1

adb shell settings put global adaptive_battery_management_enabled 0

adb shell settings put global app_standby_enabled 1

adb shell settings put global cached_apps_freezer enabled

adb shell settings put global enhanced_processing 0

adb shell settings put global preferred_network_mode 9,26

adb shell settings put global sem_enhanced_cpu_responsiveness 1

Performance Boost​

adb shell settings put system android.wallpaper.settings_systemui_transparency 0

adb shell settings put system min_refresh_rate 0.1

adb shell settings put system peak_refresh_rate 0.1

adb shell settings put secure long_press_timeout 250

adb shell settings put secure multi_press_timeout 250

adb shell settings put global accessibility_reduce_transparency 1

adb shell settings put global animator_duration_scale 0.5

adb shell settings put global transition_animation_scale 0.5

adb shell settings put global window_animation_scale 0.5

adb shell settings put global ram_expand_size 0

adb shell settings put global zram_enabled 0

Display Settings​

adb shell wm reset

adb shell wm disable-blur

adb shell settings put system screen_auto_brightness_adj 0.7

adb shell settings put secure accessibility_captioning_font_scale 0.7

adb shell settings put secure odi_captions_volume_ui_enabled 0

apply only these and the battery lasts less
[General Topics] Macusercom:
Yes, it does. I have a rooted device

I don't know. I leave zRAM enabled now as I had some strange lags whenever too many apps were open. I just use the device as-is and tend to forget about any of that stuff. OneUI can be very intransparent about how it works and changing one thing leads to several other strange behaviours
[General Topics] ouixd:
Hello,

Thanks for making this guide. I will apply most of the recommendations on my new s22 :)

One question, why is it recommended to factory reset and not to use smart switch?

Sorry if it has been asked before
[General Topics] Neeko72:
what does preferred_network_mode 9,26 do?
[General Topics] Neeko72:
can I actually set ram plus to 0 or will I get bootloop and won't turn back on like other usera set to a few MB and their phone needed factory reset afterwards.
[General Topics] Neeko72:
is this a good idea? to set ram plus to 64mb? afaik value 0 just resets back to stock(4GB) without having personally tested myself, but that was the case with any other value under 2GB(would revert back to stock 4GB) from my tests. https://r2.community.samsung.com/t5...-to-do-if-I-don-t-want-RAM-Plus/td-p/11426126
[General Topics] dominicstg2:
with your uninstall list i looked at it and you have phone and camera disabled why? what did you replace it with?
[General Topics] sapanag:
Smart switch is causing serious battery drain issues. Mainly cozz of direct installing apps from old device to new one.
[General Topics] :
In Kept13.txt and Uninstalled13.txt i can found com.samsung.gamedriver.ex2200

Now, my question is: keep or uninstall the driver? I'm confused.
[General Topics] Hamid Chikh:
Thanks for reporting back, I'd like to dig into that.

Did you give your phone a few reboots and time to settle?
[General Topics] Hamid Chikh:
ADB Commands Correction V2​

After @yojan.weber reported a battery drain, i cleaned some of the commands i think are responsible. They're out of OP now and here's how to delete them and revert the problem. Please, report back if any changes.

adb shell settings delete global sem_low_heat_mode

adb shell settings delete system android.wallpaper.settings_systemui_transparency

adb shell settings delete system min_refresh_rate

adb shell settings delete system peak_refresh_rate
[General Topics] Hamid Chikh:
Forgot to update the presets, sorry. Will update soon
[General Topics] Hamid Chikh:
UPDATED PRESETS NOW​

Restored Samsung phone app (Google's gave me some issues)
[General Topics] Hamid Chikh:
Try this

adb shell settings put system csc_pref_camera_forced_shuttersound_key 0
[General Topics] :
For Android 13: is it really necessary to uninstall all this apps from your txt-file or can i "only" disable them?
[General Topics] Hamid Chikh:
You can check now and do the remediation steps i gave you
[General Topics] Hamid Chikh:
I think RAM plus adds more swap on top of zRAM. But, as you said, it can be mysterious
[General Topics] Hamid Chikh:
Yes it's recommended to factory reset

Yes it's NOT recommended to use smart switch

Please, search the thread
[General Topics] Hamid Chikh:
Disables 5G
[General Topics] Hamid Chikh:
0 Yes,

GB yes

MB no
[General Topics] Hamid Chikh:
No, 0 is disabled. Set it to 0 LIKE STATED IN OP. There's a setting for it, if you don't have it, there's an ADB command to set it to 0 too
[General Topics] Macusercom:
The thing is, it does not. Here is a list of what RAM plus changes in zRAM: https://xdaforums.com/t/noroot-samsung-galaxy-one-ui-optimization-guide.4376755/post-86618845

No matter what you set RAM plus to, zRAM will be enabled and the only swap that can be detected is zRAM. So whatever RAM plus adds on top of the set zRAM size, it is either snake oil or something that is undetectable via common terminal commands like "free -m" and "cat /proc/swap"
[General Topics] Hamid Chikh:
Camera isn't disabled, you can't/shouldn't you any other camera on a Samsung phone

Phone was removed and replaced with Google phone app, but in the latest update i restored it. It's just a personal preference.
[General Topics] Hamid Chikh:
Exactly, changing ramplus doesn't affect zram, which made me think it was added on top of stock zram
[General Topics] Macusercom:
As seen on the linked post it does affect zRAM. But not linearly: RAM Plus sizes of 2, 4, 6 and 8 GB scale zRAM up accordingly to 3, 4, 6 or 8 GB respectively.

RAM Plus values lower than 2 or higher than 8 GB seem to change zRAM up or down in the opposite way. But Values lower than 2 or higher than 8 GB are out of spec as Samsung limits it from 2–8 GB.

But still, there the system doesn't report any kind of swap despite zRAM. I find it suspicious that there is no information to be found on how RAM plus should work and where the disk swap for it should be located. Hence, I do not believe that RAM Plus changes anything besides zRAM and its value in GB is arbitrary. Also using zram_enabled = 0 doesn't disable zRAM at all. That value seems to be ignored by the system. The only way that I know is via root access.

The reason I doubt it personally is, that if someone advertises a car as "10% faster" I want to know why it is that way. And if not, I want at least independent proof that it actually can be 10% faster. If they don't let me check their maximum speed and only make claims about their +10% while everything looks like it is the same vehicle as before, there is something strange going on.

That's why I believe it only changes the zRAM size as this is what I observe and nobody can proof that it changes anything else. I'd be happy to have that proof though and to be wrong here. But as of now, nobody could prove anything despite seeing a number in settings that doesn't match observed zRAM size nor makes observable changes anywhere else.

Here is a table of the RAM Plus/zRAM values. Red marks the out-of-spec scenarios while green are the intended, default ones:

RAM Plus	zRAM
0	4
1	2
2	3
4	4
6	6
8	8
12	4
16	4

Source: https://xdaforums.com/t/noroot-samsung-galaxy-one-ui-optimization-guide.4376755/post-86618845
[General Topics] yojan.weber:
I have 1007 single core score and 3139 multi core s22 snapdragon score and 2626 overall score in 3dmark wild life extreme. I think cell phones are already too powerful there are only two games and an emulator that require so much power I think the battery and general stability are more important
[General Topics] yojan.weber:
ready, I already put all the commands, I will tell you at the end of the day how it went
[General Topics] dominicstg2:
Oh it just shows camera in debloat list
[General Topics] Hamid Chikh:
Still a mystery
[General Topics] Hamid Chikh:
Check again
[General Topics] Hamid Chikh:
Thank you for this amazing analysis
[General Topics] caingatcarl:
With that being said, what can you recommend about the ramplus? Should i set it to 2gb while im still running on UI 4.1?
[General Topics] Macusercom:
I have set it to 2 GB as I want zRAM to be as low as possible. But this is just my preference :)
[General Topics] simoyellow27:
Is there an adb command to force stop all the application all at once?
[General Topics] Hamid Chikh:
Yes, but it's more complicated than that
[General Topics] Hamid Chikh:
Abandon ADB Commands?​

I've been trying to find anything on what causes the battery drain that some people are having, and couldn't guess what it was.

Some pointed to some commands, but after testing and troubleshooting, i couldn't find which could cause any damage as they're already created automatically by the system.

I might just remove them all together from OP, react to answer:

- REMOVE ADB COMMANDS 😍

- DON'T REMOVE ADB COMMANDS😢
[General Topics] sapanag:
Lets get a feedback from ones who are not getting battery drain. Like which commands they didn't use. It will be easier to catch the culprit.
[General Topics] Haruu1416:
didn't work, is this a command from a recent camera version?
[General Topics] Hamid Chikh:
I'm personally using all of them and even more commands from my testing script, and i don't see that problem really.
[General Topics] Hamid Chikh:
Thanks for the feedback back, if it didn't work than please delete it from your phone
[General Topics] Haruu1416:
Have you tried to see if the bloatwares have settings enable?, and causing log making the device to drain battery

Example: adb shell settings put system samsung_pay 1
[General Topics] Haruu1416:
Yes sir.
[General Topics] Hamid Chikh:
That's what those adb commands are for actually, i don't have such setting in my config
[General Topics] Hamid Chikh:
UPDATED ADB COMMANDS​

- Removed some default commands that are auto generated by the system

- Removed some personal preferences
[General Topics] Hamid Chikh:
Updated the Fix​
[General Topics] sapanag:
same here. No issues of drain for me.

I personally think the issue is not properly applying steps and another is applying commands with some models doesn't support.
[General Topics] simoyellow27:
How's that?
[General Topics] simoyellow27:
Personally I'm alright with my S10 lite. I'm still able to do 6 to 7 hours of SOT after 2 years (at 15-10%) and without resetting since Android 11. I do every week a wipe cache, enabled high responsiveness through your adb commands and debloating a lot of apps thanks to Universal Android Debloater
[General Topics] Hamid Chikh:
That's exactly what i'm thinking, but i just cleaned up more commands to make sure
[General Topics] Hamid Chikh:
You'll have to make a .bat file containing a list of this command:

- adb shell am force-stop com.package.name

For all apps present in your phone, including uninstalled, disabled, system and user.
[General Topics] simoyellow27:
Ah alright the same I saw here. I thought there was something like "force-stop all apps"
[General Topics] Hamid Chikh:
Presets are made using AppControl, as recommended in OP, not sure they'll work with UAD.
[General Topics] Hamid Chikh:
UPDATED PRESETS​

- Restored Samsung Call/Phone App

- Restored Samsung Messages

- Restored Samsung Contacts

- Removed Game Driver
[General Topics] Hamid Chikh:
It's NOT
[General Topics] simoyellow27:
In fact I didn't follow your preset as it's so aggressive. Instead, I've decided to see what every app do and uninstall
[General Topics] sapanag:
I was getting excited about your new testing commands😢. Just a small suggestion keep one red zone where we regular ones can try and test new commands
[General Topics] Hamid Chikh:
These standard ones are causing issues, I can't add to that more commands that might cause problems.

I'll DM you what i have tho, test at your own risk
[General Topics] Haruu1416:
a question, Why don't you have com.google.android.ext.shared

com.google.android.ext.services

They are responsible for the adapted notifications, and to be honest, absolutely nothing changed when I removed them.
[General Topics] Haruu1416:
Can you send a list of all commands removed, please.
[General Topics] sapanag:
thanks would love to try them out
[General Topics] sapanag:
we never removed this both apps. even in uninstalled13 and 12 both are unticked
[General Topics] Hamid Chikh:
They seemed to cause battery drain last time i removed them, i didn't know it's no longer the case. Can you carry on testing and see if it hits the battery life ? If not, i'll add them back to the uninstall list.

Software changes a lot each time, and i always have to test stuff back and forth, so it's not always obvious when a change is made.
[General Topics] Hamid Chikh:
They're in the battery fix post
[General Topics] Hamid Chikh:
They used to be removed, back when i had the S21, until i think someone pointed out they caused battery drain when uninstalled