yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
no, i'ts just a txt you can use to copy build.prop tweaks more easily.

about the .sh tell me if you have the logs at /data because i wasn't having them (neither the scripts running) until i deleted and pressed enter at every line of the files (i dont understand why that fixed the issue)
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
UPDATE V3​

Reupdated V2 with scripts working correctly now
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] gwilly3301:
No, no logs. Does that mean scripts aren't running then?
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
yes. please try with v3 i just uploaded. im sure they are working fine now
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] gwilly3301:
Should I re-download? Also with the, .txt file, I need to copy what's in there to my build.prop or do the scripts already do that?

---------- Post added at 11:55 PM ---------- Previous post was at 11:54 PM ----------

Do I need to clear dalvik again?
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
redownload, delete previous files (from v2) at su.d, and copy new ones and give them 777 permission (all rwx). add .txt lines at the end of build.prop (remember to leave a blank line at the end), delete dalvik cache and reboot. it will take a while to boot after deleting dalvik (5-10min or so)
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] gwilly3301:
Okay device booted and logs are there! Just have to let it settle and see how it handles the day tmrw! Thank you for your work!

Question, do you use L-Speed or anything similar to it with these scripts installed?
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
Im not using anything else right now. I think lspeed and those kind of app have settings which are vastly generic so they can work with many phones. But in this case we are dealing with a eng kernel and it's crazyness so i prefer to investigate what can be made to improve, test it by myself, and implement it if it gives good results

As for frequencies, i tuned the CpuSolution to work with stock ones (307-2150mhz). But setting big core max to 1996/1824mhz may give you some extra battery
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Can I put those tweaks inside one tweak? Or is it normal to put them all in one script?
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
Im not sure what do you mean

If you want to create a mod or tweak (like kitana or FlyOnMod) just attach a link to my post in yours so people know im behind this (like i do with the links at my explanantions)

If you want to create only one script containing all the separate tweaks, yes you can. but keep a log at the end so you can easily know its working. I keep them separate as i think it makes op easier to read and lets user choose not to include something if they want
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Thank you so much for this detailed explanation, that's exactly what I mean
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Can I still use /system/xbin/"Zipalign, SQlite, Ext4, Tune2fs", Tweaks while Dalvik Solution Tweak is applied? Or should I delete them and it's not recommended to use them while the Dalvik Solution Tweak is applied?
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
There shouldn't be any problem
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
But the Dalvik values are located in /default.prop, if we add the new Dalvik Solution values to /system/built.prop, the old Dalvik values still present in /default.prop? Should we edit the default.prop and not the build.prop so we get the Tweak works properly?
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
Editing default.prop is the same as nothing as it resets when you reboot

As far as i know default.prop is stored at boot.img ramdisk. To edit it we should be able to flash kernels first..

The best we can do is apply the build.prop values
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
UPDATE V4​

Some Cpu Solution tweaks were not applying, now they do

Added More Solutions

Added Extra build.prop tweaks

Added Apps solution

Let me know how it worked for you. My phone feels like it wasn't rooted :D
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
After applying the App Solution method, can I delete Titanium Backup app? Or all my frozen apps will be defrosted just after the installation, I just won't that app runs in the background
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
Yes you can, your apps will still be frozen
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Thanks man, everything works as well, to fix the Entropy values you can set them like this:

echo "1024" > /proc/sys/kernel/random/read_wakeup_threshold

echo "1024" > /proc/sys/kernel/random/read_wakeup_threshold

echo "2048" > /proc/sys/kernel/random/write_wakeup_threshold

echo "2048" > /proc/sys/kernel/random/write_wakeup_threshold

#Or like this:

echo "1024" > /proc/sys/kernel/random/read_wakeup_threshold

echo "1024" > /proc/sys/kernel/random/read_wakeup_threshold

echo "4096" > /proc/sys/kernel/random/write_wakeup_threshold

echo "4096" > /proc/sys/kernel/random/write_wakeup_threshold

#These are the only highest supported values especially for /read_wakeup_threshold values, to get them more higher I think it requires a ^^custom kernel^^
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
Actually the deal i found with that is that if you enter with root explorer to /proc/sys/kernel/random you'll find all failes are 0kb, and if you open one, its blank. Also after applying any of that lines via adb shell/terminal emulator. the file is still 0kb and if you look at kernel adiutor stats, they haven't changed. Thats why i think this doesnt work in our phones. Anyways its included in More Solutions, just in case it makes something
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] gwilly3301:
To update from v3 to v4 we just delete old files and replace?
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
yes, If you don't delete the old ones they'll get overwritten by new ones as they have the same name
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Why Qualcomm did this for us? All others S7 edge models got unlocked bootloaders including the Qualcomm Chinese version, with this engineering kernel my friend's older Chinese phone with 2Gb of ram is more faster than mine in term of apps opening and much more others things, Qualcomm spent years of engineering hard work just to lock that bootloader, somebody should tell them that this is the worst ever thing that they could do and blame them in anyway
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
[Deleted]
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
I fixed you latest tweak "More CPU Solution", it makes Flashfire not working and provides some lags, try it by yourself then you will get noticed, try to flash something through FlashFire with that tweak enabled then your phone will stuck on the Samsung boot logo until you hold power button + volume down rocker + home button then it will boot normally, so to get it working as well without any errors delete these lines from your "More CPU solution tweak", then I hope I helped you:

So the last lines are the problem here:

echo Y > /sys/module/app_setting/parameters/use_32bit_app_setting_pro;

echo 0 > /proc/sys/vm/block_dump;

echo 0 > /proc/sys/vm/overcommit_memory;
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
Its strange since my flashfire is working without problems and i didnt noticed any lag whatsoever. Anyways, those lines were test lines so i will erase them in next update (i will have it done in a couple of hours) since the idea is to make this work as well as possible for everyone.

Thanks for working out the problem :good:
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
UPDATE V5​

Cpu Solution: Little changes done

More Solutions: Added Scheduler tweaks. Little changes at VM and Entropy. Gpu governor set to 'cpufreq'. Some trouble lines removed

Thanks to [MENTION=9071111]TheDevelopper[/MENTION] for finding flashfire bug and the line that caused it
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Would you like to explain why you changed the /sys/module/zswap/parameters/enabled from 0644 to 0777?
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
I thought it may relieve the system a little. as well as compaction_interval, compaction_pages and pool percents. I set them to 0 because even though we dont use those parameters (we have 0 swappiness) we still 2gb of swap active. So there must be some system process/service/wakelock that searches for compaction pages, at x interval and checks pool percents. the "enabled" file is 'Y' and has 0644 permissions by defalt, to change it to 'N' we have to add write permission. I change it to 0777 so i can see easier if the script has touched that file or not when im investigating /sys for new things (its rare to se a 0777 permission file there). Anyways that wont make any issue since we are changing things we are not using (because of swappiness=0)
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Thanks for your deep explanation, then you can add this tweak to yours, of course if you wanted that, this is it:

# Various settings

#Disable BCL

echo -n disable > /sys/devices/soc/soc:qcom,bcl/mode

#Tweak HMP Scheduler

echo 2 > /proc/sys/kernel/sched_window_stats_policy

echo 45 > /proc/sys/kernel/sched_downmigrate

echo 65 > /proc/sys/kernel/sched_upmigrate

echo 3 > /proc/sys/kernel/sched_spill_nr_run

echo 100 > /proc/sys/kernel/sched_spill_load

echo 5 > /proc/sys/kernel/sched_upmigrate_min_nice

echo 950000 > /proc/sys/kernel/sched_rt_runtime_us

echo 1000000 > /proc/sys/kernel/sched_rt_period_us

echo 5 > /proc/sys/kernel/sched_ravg_hist_size

echo 5 > /proc/sys/kernel/sched_new_task_windows

echo 100 > /proc/sys/kernel/sched_init_task_load

echo 0 > /proc/sys/kernel/sched_restrict_cluster_spill

echo 33 > /proc/sys/kernel/sched_rr_timeslice_ms

#Log

echo "Various settings script is working!" > /data/95Various_settings.log;

echo "Last time applied on "`date`"" >> /data/95Various_settings.log;
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
Thanks! I'll see what can be done with that
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] OneOnline:
I have a question. In the "/system/su.d" folder there are already files, they are without .sh, do not touch or delete them?

And further. Using additional tweaks in build.prop I got bootloop, twice with a clean install.
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Have you any idea about a init.d or su.d script that allows us to set the RNG service profile to aggressive?
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
I suggest you to backup those files, and delete them from su.d

I have those tweaks in my build prop right now and im not having bootloop. try this: copy the lines, set the cursor at the begining of any of those lines and delete the "enter". see if there is a space between that line and the one before that (both lines should be one next to the other after doing this). try that with some of the lines. if you find a space, delete it and press enter again. i had this problem once before and the solution was to do that
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
actually modifying /proc/sys/kernel/random/write_wakeup_threshold makes entropy increase. the agressive profile is just a denomination given by someone for x value of write wakeup thresold

Also i've investigated what you told me about BCL an HMP. i couldnt find anything related to BCL and the lines of HMP you wrote many of them were invalid (we dont have those files, so at least we can't modify that)

I have made some testing with the things that were changeable, im trying to make all app opening start on big cluster (in order to take advantage of its power) and then be moved to little cluster if they are not resourse hungry (like whatsapp). I attached a test.sh file (i added .apk extension so it would allow me to upload it, just delete apk extension) in case you or anyone wants to try. please tell me how do you feel the phone behaves with vs without this
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Thank you man, ok, I tested the script and just let me tell you that it's incredible, the phone's startup lag is almost gone away, I noticed that I can uninstall any app easily after 1 min when the device turns on, for the apps opening, it's almost the same as it was before but I think there's no solutions for that because I tested the performance cpu governor then the results still the same, thank you then good luck for your next update

For the Entropy I have found a way to set it to aggressive but you have to delete its proper lines from the script then reboot, after that just install the seeder apk, set it to aggressive then hit ON, you will get an error but just dismiss it because it's working
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] OneOnline:
Well, I'll try again. But if it does not work out, what is the best way to return the old file back? At installation I saved safestrap, it will be possible through it? Or I can break something, there's a complicated instruction, plus then I need to install root again.
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
If you have safestrap you can boot in there and via its file manager restore your build.prop backup. I haven't tried it yet because when I had that problem I flashed stock ap from odin and re rooted before realizing I could do that, but I'm 99% sure it will work
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] OneOnline:
Thanks, all worked well.

I have more questions... :)

In the "SD Maid" application, it is possible to modify receivers from applications that have already been frozen. Does it make sense to turn them off? There are switches such as BOOT_COMPLETE and others. I just wanted to ask what you think about it.

Is there any application you use to understand how disabling applications affects the system? I know some cases of increased battery consumption after freezing. I followed your screenshots, but t-mobile has additional programs that you do not have, plus I looked at the bloatware list in the "package disabler pro" and blocked the missing ones. Now I do not know how this will affect the system. Just cleared dalvik-cache and now I'll wait a couple of days.

If the system is stable, I'll post here a list of the frozen applications for t-mobile phones.

In the standard application "Device maintenance", in the "System and apps" line, I have 1.6 gb after cleaning. Is this too much? Previously, using various programs for freezing, I got 1.2 gb and less. Maybe I missed something? Or should I ignore these values?

I'm waiting for your next update v6 :)
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
[MENTION=5703916]Maxissc[/MENTION], i want to disable the "CPU rendering" but if only i can find the "0 1 Adreno530" line in the "libGLES_android.so" file in /system/lib/gles in order to delete all its content and keep only the "0 1 Adreno530" line the rename then file from libGLES_android.so to "egl.cfg" with 0644 permissions, i think this can reduce lag and improve performance
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
Oh i didnt knew about that. I investigated a little and i suggest you to only disable boot_complete receiver for those user running apps after a reboot you dont want to be running, like firefox (so they dont have extra load on startup). As for frozen apps, i saw a couple of them with "running" label so i fc them and disabled their boot_complete receiver and in some cases all of them. i haven't reboot yet but changing this shouldn't lead into a bootloop

mmm not really. I lean on all i've learnt since eclair/froyo days, searching about the apps i want to disable and the ones i think may have a system improvement. My app to understand how things affect system is google, i search and read a lot in order to have the best idea of how something works. And if i cant find enough information i just test (and flash system again a lot of times because of that :p) since we have a locked bootloader, it's somewhat difficult to brick our phones and that gives me more confidence and encourages me to testing anything i find out there

And yes, i read about that battery consumption after freezing too. I tried having many of these apps unfrozen and honestly i feel the system a lot snappier with them frozen. I didn't find any crazy battery consumption increase so far (I think it's mainly because of deleting frozen apps data)

i rarely use device maintenance, just to delete cache files from time to time. I also have app power monitor off, and im about to freeze device maintenance soon too :p. Anyways It is important to have cache files, they speed up actions. But as time passes our habits change and trash is kept. I can say i clean cache files once a month maybe

I would ignore those values, and use sd maid to clean (install it, clean, and uninstall)

V6 is just round the corner!!:cowboy:
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
I tried the egl.cfg modification some time ago, but couldn't find the file so i left it as is. If you take a look, libGLES_android.so is at system/lib and system/lib64 whereas many other .so files are at system/vendor/lib and lib64. but in vendor there is no libGLES_android.so

I have a theory that maybe creating the egl.cfg with the "0 1 Adreno530" line could disable cpu rendering. but i dont know where it should be placed, i would try pasting it at /lib /lib64 /vendor/lib and vendor/lib64 (yes, everywhere), reboot and see if any change can be perceived. then discard not useful routes one by one

I read also this at some oreo commits

Remove the obsolete egl.cfg. Now the EGL loader detects the libraries automatically. The egl.cfg is unnecessary.

here device-generic-common: List of commits In that case, renaming libGLES_android.so should make the EGL loader unable to detect software rendering libraries and stick with only hardware ones, thus disabling cpu rendering. I will surely test this later
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
UPDATE V6​

Cpu Solution:

added app scheduler tweaks (thanks to [MENTION=9071111]TheDevelopper[/MENTION] again :D)

added workqueue power-efficient mode (its like trading -5% performance (not smoothness) for +10% battery)

More Solutions:

Increased entropy by some amounts and linked random to urandom

Changed internal scheduler to noop (simpler, linear, less battery consumption, better overall) and increased nr_requests to 1024

More slight changes to VM (gentle 'dirty' ram room increase)

Added a must-have build.prop line (less scroll lag)

disabled more debug and various things (lot less jitter)
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Thanks for explaining that and for the update, if only we can freeze the Google play services app without getting errors, we'll save too much of battery life and improve performance, but some apps require it and disabling it will cause some unwanted problems
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] slimcyril:
V6 is corrupt, bad zip errors!
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
Maybe a bad download. Try downloading it again. The file is ok
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
for google play services i know this exists [MAGISK 16][Battery Saver][6.0+] ENABLE DOZE on Google Play Services
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
For the Play services doze, it's actually available in KITANA, I used to apply it, of course, after enabling init.d then now I'm using both su.d and init.d ( just for some tweak like KITANA)
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
I tried what i told you and i feel the phone very well, very snappy

Just changed "libGLES_android.so" to "libGLES_android.bak" and set 444 permissions. The file is at

/system/lib/egl

and

/system/lib64/egl

The highest difference is when it has just finished turning on, there are almost no redraws
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Oh thanks man! I'll do it right now :)

Edit: i did it

if it's deleted completely, will it stuck in bootloop?

I have also added these lines in build.prop to fix some lags:

ENFORCE_PROCESS_LIMIT=false MAX_SERVICE_INACTIVITY=false

MIN_HIDDEN_APPS=false

MAX_HIDDEN_APPS=false

CONTENT_APP_IDLE_OFFSET=false EMPTY_APP_IDLE_OFFSET=false

MAX_ACTIVITIES=false ACTIVITY_INACTIVITY_RESET_TIME=false MAX_RECENT_TASKS=false

MIN_RECENT_TASKS=false

APP_SWITCH_DELAY_TIME=false

MAX_PROCESSES=false

PROC_START_TIMEOUT=false CPU_MIN_CHECK_DURATION=false

GC_TIMEOUT=false

SERVICE_TIMEOUT=false

MIN_CRASH_INTERVAL=false
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
no, it won't.

there is also a "eglSubDriverAndroid.so" at /vendor/lib/egl and lib64 but deleting that does give bootloop

Do you feel any difference after adding that?
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
A little bit, i noticed when i try to install an app it takes less time than before and also the Google chrome app doesn't crash at all, but the apps opening still as before

I have actually tried a tweak cpu frequency then i don't really know if this can do something for apps opening, if you want to try i attached the script below (.apk for uploading it)

Edit: i edited the script, now it's working
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] slimcyril:
These lines did nothing after lollipop, will cause more issues than good.
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Thanks, for this engineering kernel, everything is almost tested, blame Qualcomm

But i think these lines will improve something:

# disable spcm

sys.config.samp_spcm_enable=false

sys.config.spcm_db_enable=false

sys.config.spcm_db_launcher=false

sys.config.spcm_preload_enable=false

# max gpu

dalvik.vm.dexopt-flags=m=y

debug.sf.hw=1

debug.composition.type=c2d

debug.composition.type=gpu

debug.egl.profiler=1

debug.egl.hw=1

debug.enabletr=true

debug.overlayui.enable=1

debug.performance.tuning=1

debug.qc.hardware=true

debug.qctwa.statusbar=1

debug.qctwa.preservebuf=1

debug.sf.hw=1

dev.pm.dyn_samplingrate=1

hw3d.force=1

hwui.render_dirty_regions=false

hwui.disable_vsync=true

persist.sampling_profiler=0

persist.service.pcsync.enable=0

persist.service.lgospd.enable=0

persist.sys.composition.type=c2d

persist.sys.composition.type=gpu

persist.sys.purgeable_assets=1

persist.sys.ui.hw=1

persist.sys.use_16bpp_alpha=1

persist.sys.NV_FPSLIMIT=60

persist.sys.NV_POWERMODE=1

persist.sys.NV_PROFVER=15

persist.sys.NV_STEREOCTRL=0

persist.sys.NV_STEREOSEPCHG=0

persist.sys.NV_STEREOSEP=20

ro.config.disable.hw_accel=false

ro.fb.mode=1

ro.product.gpu.driver=1

ro.sf.compbypass.enable=0

ro.vold.umsdirtyratio=20

video.accelerate.hw=1

# for tweaking unstable kernel and more

ro.kernel.android.checkjni=0

ro.kernel.checkjni=0

ro.HOME_APP_ADJ=1

ro.config.hw_quickpoweron=true

persist.sys.shutdown.mode=hibernate

persist.sys.use_dithering=1

persist.sys.scrollingcache=3

persist.android.strictmode=0
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] Maxissc:
I think that tweak will make big and little cpus stay at high freqs a lot and increase battery consumption while there wont be many benefits, but i'll do some testing with tem
[Verizon Samsung Galaxy S7 Edge Themes, Apps, and M] TheDevelopper:
Yes, more performances but less battery, try to modify it so we get faster apps opening