diff --git a/builds/zip-OneUIS/common/META-INF/com/google/android/aroma/changelog_en.txt b/builds/zip-OneUIS/common/META-INF/com/google/android/aroma/changelog_en.txt index 4955550a6572..2bc972bcd278 100755 --- a/builds/zip-OneUIS/common/META-INF/com/google/android/aroma/changelog_en.txt +++ b/builds/zip-OneUIS/common/META-INF/com/google/android/aroma/changelog_en.txt @@ -2,8 +2,8 @@ KERNEL INFORMATION: NAME : <#selectbg_g>ThundeRStormS-Kernel-OneUI R - VERSION : <#selectbg_g>v4.2 - DATE : <#selectbg_g>31/03/2022 + VERSION : <#selectbg_g>v4.5 + DATE : <#selectbg_g>08/04/2023 AUTHOR : <#selectbg_g>ThundeRStormS Team <#53a6f4> Only For Galaxy S10/N10 | OneUI S Roms | @@ -12,18 +12,66 @@ CHANGELOG: -------------------------------------------------------------------------- -<#selectbg_g>ThunderStorms-Kernel-S-v4.2 : 31.03.2022 -<*>Samsung source : HVC6 OneUI 4.1 +<#selectbg_g>ThunderStorms-Kernel-S-v4.5 : 08.04.2023 +<*>Samsung source : HVJ5 OneUI 4.1 +<*>Linux source : upstreamed to 4.14.269 +<*>Samsung os patch level: 2022-03 +<*>Zram default +<*>Changed some initial settings +<*>Added some backported stuff from Multi LRU +<*>Support Init.d scripts: /vendor/etc/init.d +<*>ThunderTweaks v1.1.1.5 +<*>Magisk 26.1 Offcial build in kernel - thx to CruelKernel Team + Thanks to Corsicanu for help with Zygisk support. +<*>Compiled via Clang 14.01 +<*>Rest like in realease 4.4 +-------------------------------------------------------------------------- +-------------------------------------------------------------------------- +<#selectbg_g>ThunderStorms-Kernel-S-v4.4 : 03.11.2022 +<*>Samsung source : HVJ5 OneUI 4.1 +<*>Linux source : upstreamed to 4.14.269 +<*>Samsung os patch level: 2022-03 +<*>Zram default +<*>Changed some initial settings +<*>Support Init.d scripts: /vendor/etc/init.d +<*>ThunderTweaks v1.1.1.5 +<*>Magisk 25.2 Offcial build in kernel - thx to CruelKernel Team + Thanks to Corsicanu for help with Zygisk support. +<*>Compiled via Clang 14.01 +<*>Rest like in realease 4.3 +-------------------------------------------------------------------------- +-------------------------------------------------------------------------- +<#selectbg_g>ThunderStorms-Kernel-S-v4.3 : 31.05.2022 +<*>Samsung source : HVE1 OneUI 4.1 +<*>Linux source : upstreamed to 4.14.269 +<*>Samsung os patch level: 2022-03 +<*>HZ tick set at 250HZ +<*>Zram default +<*>Changed some initial settings +<*>Added CPU BOOST by Sultan K +<*>Removed Alternative Battery Store +<*>Fixed low charging for some users +<*>Support Init.d scripts: /vendor/etc/init.d +<*>ThunderTweaks v1.1.1.4 +<*> Added OC for little, mid and big CPU +<*>Magisk 25.2 Offcial build in kernel - thx to CruelKernel Team + Thanks to Corsicanu for help with Zygisk support. +<*>Compiled via Clang 14.01 +<*>Rest like in realease 4.2 +-------------------------------------------------------------------------- +-------------------------------------------------------------------------- +<#selectbg_g>ThunderStorms-Kernel-S-v4.2 : 21.05.2022 +<*>Samsung source : HVE1 OneUI 4.1 <*>Linux source : upstreamed to 4.14.269 <*>Samsung os patch level: 2022-03 <*>HZ tick set at 100HZ -<*>S10, S10+, N10 Zram set at 2,0GB +<*>Zram default <*>Changed some initial settings <*>Added MALI GPU drivers r36p0 ValHall <*>Backported Game Misc Control from Samsung S20 <*>Support Init.d scripts: /vendor/etc/init.d -<*>ThunderTweaks v1.1.1.0 -<*>Magisk 24.2 Offcial build in kernel - thx to CruelKernel Team +<*>ThunderTweaks v1.1.1.2 +<*>Magisk 24.3 Offcial build in kernel - thx to CruelKernel Team Thanks to Corsicanu for help with Zygisk support. <*>Compiled via Clang 14.01 <*>Rest like in realease 4.1 diff --git a/builds/zip-OneUIS/common/ts/dtb/G970F-dtb.img b/builds/zip-OneUIS/common/ts/dtb/G970F-dtb.img index 0afb6f0b3d41..95535dd947fb 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G970F-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/G970F-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G970F-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/G970F-dtbo.img index d97bb2621c7b..3c37d0870b43 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G970F-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/G970F-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G970N-dtb.img b/builds/zip-OneUIS/common/ts/dtb/G970N-dtb.img index 0afb6f0b3d41..95535dd947fb 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G970N-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/G970N-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G970N-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/G970N-dtbo.img index f5bc4b606583..460ee90d1f0b 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G970N-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/G970N-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G973F-dtb.img b/builds/zip-OneUIS/common/ts/dtb/G973F-dtb.img index 0afb6f0b3d41..95535dd947fb 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G973F-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/G973F-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G973F-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/G973F-dtbo.img index b939a2c56cb4..5bf582556cde 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G973F-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/G973F-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G973N-dtb.img b/builds/zip-OneUIS/common/ts/dtb/G973N-dtb.img index 0afb6f0b3d41..95535dd947fb 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G973N-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/G973N-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G973N-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/G973N-dtbo.img index 31ed6713ed39..d9371f921894 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G973N-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/G973N-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G975F-dtb.img b/builds/zip-OneUIS/common/ts/dtb/G975F-dtb.img index 0afb6f0b3d41..95535dd947fb 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G975F-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/G975F-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G975F-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/G975F-dtbo.img index 062fed826542..2915b86216f3 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G975F-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/G975F-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G975N-dtb.img b/builds/zip-OneUIS/common/ts/dtb/G975N-dtb.img index 0afb6f0b3d41..95535dd947fb 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G975N-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/G975N-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G975N-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/G975N-dtbo.img index e5077a5058ef..06147aeb8838 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G975N-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/G975N-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G977B-dtb.img b/builds/zip-OneUIS/common/ts/dtb/G977B-dtb.img index 0afb6f0b3d41..95535dd947fb 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G977B-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/G977B-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G977B-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/G977B-dtbo.img index 2933a6536fb3..e6abd1645d35 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G977B-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/G977B-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G977N-dtb.img b/builds/zip-OneUIS/common/ts/dtb/G977N-dtb.img index 0afb6f0b3d41..95535dd947fb 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G977N-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/G977N-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/G977N-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/G977N-dtbo.img index 107630ba8330..3dac03a279f6 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/G977N-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/G977N-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/N970F-dtb.img b/builds/zip-OneUIS/common/ts/dtb/N970F-dtb.img index 572856b82fe2..a279390b8a3c 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/N970F-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/N970F-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/N970F-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/N970F-dtbo.img index f4de66d4a195..9b19ffad68e8 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/N970F-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/N970F-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/N971N-dtb.img b/builds/zip-OneUIS/common/ts/dtb/N971N-dtb.img index 572856b82fe2..a279390b8a3c 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/N971N-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/N971N-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/N971N-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/N971N-dtbo.img index b709aa267570..9074d892874f 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/N971N-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/N971N-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/N975F-dtb.img b/builds/zip-OneUIS/common/ts/dtb/N975F-dtb.img index 572856b82fe2..a279390b8a3c 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/N975F-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/N975F-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/N975F-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/N975F-dtbo.img index e02dea8d8cf2..dba11543acb0 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/N975F-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/N975F-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/N976B-dtb.img b/builds/zip-OneUIS/common/ts/dtb/N976B-dtb.img index 572856b82fe2..a279390b8a3c 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/N976B-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/N976B-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/N976B-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/N976B-dtbo.img index a41213ad89dd..6de15bf4a716 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/N976B-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/N976B-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/N976N-dtb.img b/builds/zip-OneUIS/common/ts/dtb/N976N-dtb.img index 572856b82fe2..a279390b8a3c 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/N976N-dtb.img and b/builds/zip-OneUIS/common/ts/dtb/N976N-dtb.img differ diff --git a/builds/zip-OneUIS/common/ts/dtb/N976N-dtbo.img b/builds/zip-OneUIS/common/ts/dtb/N976N-dtbo.img index e92471986c64..b277aa03d332 100755 Binary files a/builds/zip-OneUIS/common/ts/dtb/N976N-dtbo.img and b/builds/zip-OneUIS/common/ts/dtb/N976N-dtbo.img differ diff --git a/builds/zip-OneUIS/common/ts/install_script.sh b/builds/zip-OneUIS/common/ts/install_script.sh index f51cd5f5ec18..70e95663f70c 100755 --- a/builds/zip-OneUIS/common/ts/install_script.sh +++ b/builds/zip-OneUIS/common/ts/install_script.sh @@ -144,8 +144,8 @@ if [ $MODEL == $MODEL10 ]; then MODEL_DESC=$MODEL10_DESC; fi if [ $MODEL == $MODEL11 ]; then MODEL_DESC=$MODEL11_DESC; fi if [ $MODEL == $MODEL12 ]; then MODEL_DESC=$MODEL12_DESC; fi if [ $MODEL == $MODEL13 ]; then MODEL_DESC=$MODEL13_DESC; fi -BASE="HVC6" -VERSION="v4.2" +BASE="HWJ5" +VERSION="v4.5" ANDROID="OneUI-S" ## FLASH KERNEL diff --git a/builds/zip-OneUIS/common/ts/system1/init.custom.rc b/builds/zip-OneUIS/common/ts/system1/init.custom.rc old mode 100755 new mode 100644 index 9e55a80b5a10..f5b389511dc2 --- a/builds/zip-OneUIS/common/ts/system1/init.custom.rc +++ b/builds/zip-OneUIS/common/ts/system1/init.custom.rc @@ -2,7 +2,6 @@ # # IMPORTANT: Do not create world writable files or directories. # This is a common source of Android security bugs. -# on early-init @@ -21,7 +20,7 @@ service kernelinit /system/etc/init/hw/ts-kernel.sh disabled on init - # EAS stune boosting interfaces + # EAS stune boosting interfaces, CPUSET(9820/9825) chown system system /dev/stune/top-app/schedtune.boost chown system system /dev/stune/top-app/schedtune.prefer_idle chown system system /dev/stune/top-app/schedtune.prefer_perf @@ -38,7 +37,6 @@ on init chown system system /dev/stune/schedtune.prefer_idle chown system system /dev/stune/schedtune.prefer_perf chown system system /dev/stune/cgroup.procs - # CPUSET(9820/9825) chown system system /dev/cpuset/top-app/cpus chown system system /dev/cpuset/foreground/cpus chown system system /dev/cpuset/background/cpus @@ -110,32 +108,26 @@ on init on boot + setprop ro.boot.veritymode disabled write /sys/bus/workqueue/devices/writeback/cpumask 1 # I/O sched settings - write /sys/block/sda/queue/nr_requests 256 + write /sys/block/sda/queue/nr_requests 64 write /sys/block/mmcblk0/queue/nr_requests 128 write /sys/block/sda/queue/iostats 0 write /sys/block/mmcblk0/queue/iostats 0 # VM - write /proc/sys/vm/dirty_expire_centisecs 3000 - write /proc/sys/vm/dirty_writeback_centisecs 3000 - write /proc/sys/vm/vfs_cache_pressure 100 - # MISC + write /sys/block/zram0/max_comp_streams 1 + setprop dalvik.vm.heapstartsize 16m + setprop dalvik.vm.heapminfree 16m + setprop dalvik.vm.heapmaxfree 32m + setprop dalvik.vm.heaptargetutilization 0.50 +## MISC write > /sys/module/mmc_core/parameters/use_spi_crc N - # Boeffla wakelocks - chmod 0644 /sys/devices/virtual/misc/boeffla_wakelock_blocker/wakelock_blocker - write /sys/devices/virtual/misc/boeffla_wakelock_blocker/wakelock_blocker 'wlan_pm_wake;wlan_rx_wake;wlan_wake;wlan_ctrl_wake;wlan_txfl_wake;BT_bt_wake;BT_host_wake;nfc_wake_lock;rmnet0;nfc_wake_lock;bluetooth_timer;event0;GPSD;umts_ipc0;NETLINK;ssp_comm_wake_lock;epoll_system_server_file:[timerfd4_system_server];epoll_system_server_file:[timerfd7_system_server];epoll_InputReader_file:event1;epoll_system_server_file:[timerfd5_system_server];epoll_InputReader_file:event10;epoll_InputReader_file:event0;epoll_InputReader_epollfd;epoll_system_server_epollfd' - ## Build.prop settings setprop hw3d.force 1 setprop hw2d.force 1 setprop debug.composition.type gpu setprop persist.sys.composition.type gpu - # setprop debug.egl.profiler 1 - # setprop debug.egl.hw 1 - # setprop debug.sf.hw 1 - # setprop ro.debuggable 0 - # setprop hwui.render_dirty_regions false setprop debug.gr.numframebuffers 3 setprop debug.egl.swapinterval -60 setprop debug.gr.swapinterval 0 @@ -153,7 +145,6 @@ on boot setrpop persist.sys.force_highendgfx true setprop debug.hwui.renderer o setprop ro.product.gpu.driver 1 - # setprop persist.sys.scrollingcache 3 setprop ro.config.hw_quickpoweron true setprop ro.config.hw_power_saving 1 setprop power.saving.mode 1 @@ -189,99 +180,90 @@ on boot ## Native VM bridges setprop ro.enable.native.bridge.exec 1 setprop ro.enable.native.bridge.exec64 1 -## Mobile Data Tweaks - setprop ro.ril.hsxpa=5 - setprop ro.ril.hspa=36 - setprop ro.ril.lte=5 - setprop ro.ril.ltea=5 - setprop ro.ril.hep=0 - setprop ro.ril.def.agps.mode=2 - setprop ro.ril.enable.3g.prefix=1 - setprop ro.ril.enable.4g.prefix=1 - setprop ro.ril.htcmaskw1.bitmask=4294967295 - setprop ro.ril.htcmaskw1=14449 - setprop ro.ril.enable.dtm=1 - setprop ro.ril.hspaclass=12 - setprop ro.ril.lteclass=12 - setprop ro.ril.gprsclass=12 - setprop ro.ril.hsupa.category=8 - setprop ro.ril.hsdpa.category=28 - setprop ro.ril.lte.category=8 - setprop ro.ril.ltea.category=28 - setprop ro.ril.enable.a51=1 - setprop ro.ril.enable.a52=1 - setprop ro.ril.enable.a53=1 - setprop ro.ril.enable.a54=1 - setprop ro.ril.enable.a55=1 + setprop ro.config.dha_tunnable 1 + setprop ro.slmk.dha_lmk_scale 0.272 + setprop ro.slmk.2nd.dha_lmk_scale 0.272 + setprop ro.slmk.dha_th_rate 3.0 + setprop ro.config.pageboost.io_prefetch.enabled true + setprop ro.config.pageboost.io_prefetch.level 3 + setprop ro.config.pageboost.vramdisk.enabled true + setprop ro.config.pageboost.vramdisk.hotfile.enabled true + setprop ro.config.pageboost.vramdisk.fixedapp.enabled true + setprop ro.config.pageboost.vramdisk.shrink_scale 150 + setprop dalvik.vm.dexopt.thermal-cutoff 2 + setprop ro.iorapd.enable true + setprop iorapd.readahead.enable true + setprop dalvik.vm.dexopt-flags m=v,o=y,u=n ## Signal Tweaks - setprop persist.cust.tel.eons=1 - setprop ro.config.hw_fast_dormancy=1 - setprop ro.config.combined_signal=true - setprop telephony.lteOnCdmaDevice=1 + setprop persist.cust.tel.eons 1 + setprop ro.config.hw_fast_dormancy 1 + setprop ro.config.combined_signal true + setprop telephony.lteOnCdmaDevice 1 ## Support For IPV4 and IPV6 - setprop persist.telephony.support.ipv6=1 - setprop persist.telephony.support.ipv4=1 + setprop persist.telephony.support.ipv6 1 + setprop persist.telephony.support.ipv4 1 ## DNS Tweaks - setprop net.rmnet0.dns1=1.1.1.1 - setprop net.rmnet0.dns2=1.0.0.1 - setprop net.rmnet1.dns1=1.1.1.1 - setprop net.rmnet1.dns2=1.0.0.1 - setprop net.dns1=1.1.1.1 - setprop net.dns2=1.0.0.1 - setprop net.gprs.dns1=1.1.1.1 - setprop net.gprs.dns2=1.0.0.1 - setprop net.wcdma.dns1=1.1.1.1 - setprop net.wcdma.dns2=1.0.0.1 - setprop net.hspa.dns1=1.1.1.1 - setprop net.hspa.dns2=1.0.0.1 - setprop net.hsdpa.dns1=1.1.1.1 - setprop net.hsdpa.dns2=1.0.0.1 - setprop net.lte.dns1=1.1.1.1 - setprop net.lte.dns2=1.0.0.1 - setprop net.ltea.dns1=1.1.1.1 - setprop net.ltea.dns2=1.0.0.1 - setprop net.ppp0.dns1=1.1.1.1 - setprop net.ppp0.dns2=1.0.0.1 - setprop net.pdpbr1.dns1=1.1.1.1 - setprop net.pdpbr1.dns2=1.0.0.1 - setprop net.wlan0.dns1=1.1.1.1 - setprop net.wlan0.dns2=1.0.0.1 - setprop net.eth0.dns1=1.1.1.1 - setprop net.eth0.dns2=1.0.0.1 + setprop net.rmnet0.dns1 1.1.1.1 + setprop net.rmnet0.dns2 1.0.0.1 + setprop net.rmnet1.dns1 1.1.1.1 + setprop net.rmnet1.dns2 1.0.0.1 + setprop net.dns1 1.1.1.1 + setprop net.dns2 1.0.0.1 + setprop net.gprs.dns1 1.1.1.1 + setprop net.gprs.dns2 1.0.0.1 + setprop net.wcdma.dns1 1.1.1.1 + setprop net.wcdma.dns2 1.0.0.1 + setprop net.hspa.dns1 1.1.1.1 + setprop net.hspa.dns2 1.0.0.1 + setprop net.hsdpa.dns1 1.1.1.1 + setprop net.hsdpa.dns2 1.0.0.1 + setprop net.lte.dns1 1.1.1.1 + setprop net.lte.dns2 1.0.0.1 + setprop net.ltea.dns1 1.1.1.1 + setprop net.ltea.dns2 1.0.0.1 + setprop net.ppp0.dns1 1.1.1.1 + setprop net.ppp0.dns2 1.0.0.1 + setprop net.pdpbr1.dns1 1.1.1.1 + setprop net.pdpbr1.dns2 1.0.0.1 + setprop net.wlan0.dns1 1.1.1.1 + setprop net.wlan0.dns2 1.0.0.1 + setprop net.eth0.dns1 1.1.1.1 + setprop net.eth0.dns2 1.0.0.1 ## Internet Buffer Tweaks - setprop net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960 - setprop net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960 - setprop net.tcp.buffersize.lte=524288,1048576,2097152,524288,1048576,2097152 - setprop net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960 - setprop net.tcp.buffersize.evdo=4096,87380,563200,4096,16384,262144 + setprop net.tcp.buffersize.default 4096,87380,256960,4096,16384,256960 + setprop net.tcp.buffersize.wifi 4096,87380,256960,4096,16384,256960 + setprop net.tcp.buffersize.lte 524288,1048576,2097152,524288,1048576,2097152 + setprop net.tcp.buffersize.umts 4096,87380,256960,4096,16384,256960 + setprop net.tcp.buffersize.evdo 4096,87380,563200,4096,16384,262144 setprop net.tcp.buffersize.evdo_b=6144,262144,1048576,6144,262144,1048576 - setprop net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960 - setprop net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960 - setprop net.tcp.buffersize.hsdpa=6144,87380,1048576,6144,87380,1048576 - setprop net.tcp.buffersize.hspa=6144,87380,524288,6144,16384,262144 - setprop net.tcp.buffersize.hspap=4096,87380,1220608,4096,16384,393216 - setprop net.tcp.buffersize.hsupa=4096,87380,704512,4096,16384,262144 + setprop net.tcp.buffersize.gprs 4096,87380,256960,4096,16384,256960 + setprop net.tcp.buffersize.edge 4096,87380,256960,4096,16384,256960 + setprop net.tcp.buffersize.hsdpa 6144,87380,1048576,6144,87380,1048576 + setprop net.tcp.buffersize.hspa 6144,87380,524288,6144,16384,262144 + setprop net.tcp.buffersize.hspap 4096,87380,1220608,4096,16384,393216 + setprop net.tcp.buffersize.hsupa 4096,87380,704512,4096,16384,262144 ## Internet Tweaks - setprop net.ipv4.icmp_echo_ignore_all=1 - setprop net.ipv4.icmp_ignore_bogus_error_responses=1 - # setprop net.ipv4.tcp_window_scaling=1 - setprop net.ipv4.tcp_timestamps=1 - setprop net.core.rmem_default=31457280 - setprop net.core.rmem_max=12582912 - setprop net.core.wmem_default=31457280 - setprop net.core.wmem_max=12582912 - setprop net.core.somaxconn=4096 - setprop net.core.netdev_max_backlog=65536 - setprop net.core.optmem_max=25165824 - setprop net.ipv4.tcp_mem=65536 131072 262144 - setprop net.ipv4.udp_mem=65536 131072 262144 - setprop net.ipv4.tcp_rmem=8192 87380 16777216 - setprop net.ipv4.udp_rmem_min=16384 - setprop net.ipv4.tcp_wmem=8192 65536 16777216 - setprop net.ipv4.udp_wmem_min=16384 - setprop net.ipv4.tcp_max_tw_buckets=1440000 - setprop net.ipv4.tcp_tw_recycle=1 - setprop net.ipv4.tcp_tw_reuse=1 + setprop net.ipv4.icmp_echo_ignore_all 1 + setprop net.ipv4.icmp_ignore_bogus_error_responses 1 + # setprop net.ipv4.tcp_window_scaling 1 + setprop net.ipv4.tcp_timestamps 1 + setprop net.core.rmem_default 31457280 + setprop net.core.rmem_max 12582912 + setprop net.core.wmem_default 31457280 + setprop net.core.wmem_max 12582912 + setprop net.core.somaxconn 4096 + setprop net.core.netdev_max_backlog 65536 + setprop net.core.optmem_max 25165824 + setprop net.ipv4.tcp_mem 65536 131072 262144 + setprop net.ipv4.udp_mem 65536 131072 262144 + setprop net.ipv4.tcp_rmem 8192 87380 16777216 + setprop net.ipv4.udp_rmem_min 16384 + setprop net.ipv4.tcp_wmem 8192 65536 16777216 + setprop net.ipv4.udp_wmem_min 16384 + setprop net.ipv4.tcp_max_tw_buckets 1440000 + setprop net.ipv4.tcp_tw_recycle 1 + setprop net.ipv4.tcp_tw_reuse 1 + setprop ro.telephony.iwlan_operation_mode AP-assisted ## Game tweaks setprop persist.sys.NV_FPSLIMIT 160 setprop persist.sys.NV_POWERMODE 1 @@ -289,11 +271,40 @@ on boot setprop persist.sys.NV_STEREOCTRL 0 setprop persist.sys.NV_STEREOSEPCHG 0 setprop persist.sys.NV_STEREOSEP 20 + setprop persist.mm.sta.enable 0 + setprop enforce_process_limit false ## FPS Lock setprop ro.fps_enable 1 - setprop ro.fps.capsmin 70 + setprop ro.fps.capsmin 65 setprop ro.fps.capsmax 160 - + setprop debug.gr.swapinterval 0 + setprop cpu.fps 65 + setprop gpu.fps 65 + setprop ro.vendor.dfps.enable false + setprop ro.vendor.smart_dfps.enable false + setprop ro.vendor.display.default_fps 65 + setprop persist.vendor.dfps.level 65 +## FPS stabilizer + setprop debug.sf.showupdates 0 + setprop debug.sf.showcpu 0 + setprop debug.sf.showbackground 0 + setprop debug.sf.showfps 0 +## Battery save + setprop pm.sleep_mode 1 + setprop power_supply.wakeup enable + setprop ro.mot.eri.losalert.delay 1000 + setprop ro.vold.umsdirtyratio 20 + setprop ro.config.hw_quickpoweron true + setprop ro.config.hw_power_saving 1 + setprop power.saving.mode 1 + setprop persist.radio.add_power_save 1 + setprop ro.ril.sensor.sleep.control 1 +## Sensor Sleep Control + setprop ro.ril.sensor.sleep.control 1 + setprop ro.wifi.hotspotUI 1 + setprop ro.tether.denied false +## Disable Sending Usage Data + setprop ro.config.htc.nocheckin 1 # stop logd on property:sys.boot_completed=1 resetprop ro.build.selinux 1 diff --git a/builds/zip-OneUIS/common/ts/system1/ts-kernel.sh b/builds/zip-OneUIS/common/ts/system1/ts-kernel.sh old mode 100755 new mode 100644 index db344c473e20..296b737b2e56 --- a/builds/zip-OneUIS/common/ts/system1/ts-kernel.sh +++ b/builds/zip-OneUIS/common/ts/system1/ts-kernel.sh @@ -6,14 +6,6 @@ TS_DIR="/data/.tskernel" LOG="$TS_DIR/tskernel.log" -## VARIABLES -BL=`getprop ro.bootloader` -MODEL=${BL:0:5} -MODEL1=G970F -MODEL1_DESC="G970F" -MODEL2=G970N -MODEL2_DESC="G970N" - sleep 5 rm -f $LOG @@ -22,7 +14,6 @@ rm -f $LOG if [ ! -d $TS_DIR ]; then mkdir -p $TS_DIR; fi - # Create init.d folder mkdir -p /vendor/etc/init.d; chown -R root.root /vendor/etc/init.d; @@ -30,7 +21,6 @@ rm -f $LOG echo $(date) "TS-Kernel LOG" >> $LOG; echo " " >> $LOG; - # SafetyNet # SELinux (0 / 640 = Permissive, 1 / 644 = Enforcing) echo "## -- SafetyNet permissions" >> $LOG; @@ -41,7 +31,6 @@ rm -f $LOG # deepsleep fix echo "## -- DeepSleep Fix" >> $LOG; - dmesg -n 1 -C echo "N" > /sys/kernel/debug/debug_enabled echo "N" > /sys/kernel/debug/seclog/seclog_debug @@ -54,7 +43,6 @@ rm -f $LOG echo "0" > /sys/module/xt_qtaguid/parameters/debug_mask echo "0" > /sys/module/lowmemorykiller/parameters/debug_level echo "0" > /sys/module/kernel/parameters/initcall_debug - # disable cpuidle log echo "0" > /sys/module/cpuidle_exynos64/parameters/log_en @@ -76,272 +64,7 @@ rm -f $LOG echo " " >> $LOG; - # Initial ThundeRStormS settings - # for SM-G970 F and N - RAM is only 6GB - if [ $MODEL == $MODEL1_DESC ] || [ $MODEL == $MODEL2_DESC ]; then - - echo "## -- Initial settings by ThundeRStormS" >> $LOG; - - # Kernel Panic off (0 = Disabled, 1 = Enabled) - echo "0" > /proc/sys/kernel/panic - - # POWER EFFCIENT WORKQUEUE (0/N = Disabled, 1/Y = Enabled) - echo "N" > /sys/module/workqueue/parameters/power_efficient - - # CPU SUSPEND FREQ (0/N = Disabled, 1/Y = Enabled) - echo "N" > /sys/module/exynos_acme/parameters/enable_suspend_freqs - - # FINGERPRINT BOOST (0 = Disabled, 1 = Enabled) - echo "1" > /sys/kernel/fp_boost/enabled - - # BATTERY SAVER (0/N = Disabled, 1/Y = Enabled) - echo "Y" > /sys/module/battery_saver/parameters/enabled - - # CPU set at max/min freq - # Little CPU - echo "ts_schedutil" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor - echo "650000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq - echo "1950000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq - echo "2000" > /sys/devices/system/cpu/cpu0/cpufreq/ts_schedutil/down_rate_limit_us - echo "4000" > /sys/devices/system/cpu/cpu0/cpufreq/ts_schedutil/up_rate_limit_us - echo "0" > /sys/devices/system/cpu/cpu0/cpufreq/ts_schedutil/iowait_boost_enable - echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ts_schedutil/fb_legacy - - # Midle CPU - echo "ts_schedutil" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor - echo "377000" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq - echo "2314000" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq - echo "2000" > /sys/devices/system/cpu/cpu4/cpufreq/ts_schedutil/down_rate_limit_us - echo "4000" > /sys/devices/system/cpu/cpu4/cpufreq/ts_schedutil/up_rate_limit_us - echo "0" > /sys/devices/system/cpu/cpu4/cpufreq/ts_schedutil/iowait_boost_enable - echo "1" > /sys/devices/system/cpu/cpu4/cpufreq/ts_schedutil/fb_legacy - - # BIG CPU - echo "ts_schedutil" > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor - echo "520000" > /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq - echo "2730000" > /sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq - echo "2000" > /sys/devices/system/cpu/cpu6/cpufreq/ts_schedutil/down_rate_limit_us - echo "4000" > /sys/devices/system/cpu/cpu6/cpufreq/ts_schedutil/up_rate_limit_us - echo "0" > /sys/devices/system/cpu/cpu6/cpufreq/ts_schedutil/iowait_boost_enable - echo "1" > /sys/devices/system/cpu/cpu6/cpufreq/ts_schedutil/fb_legacy - - # Wakelock settigs - echo "N" > /sys/module/wakeup/parameters/enable_sensorhub_wl - echo "N" > /sys/module/wakeup/parameters/enable_ssp_wl - echo "N" > /sys/module/wakeup/parameters/enable_bcmdhd4359_wl - echo "Y" > /sys/module/wakeup/parameters/enable_bluedroid_timer_wl - echo "N" > /sys/module/wakeup/parameters/enable_wlan_wake_wl - echo "N" > /sys/module/wakeup/parameters/enable_wlan_ctrl_wake_wl - echo "N" > /sys/module/wakeup/parameters/enable_wlan_rx_wake_wl - echo "N" > /sys/module/wakeup/parameters/enable_wlan_wd_wake_wl - echo "Y" > /sys/module/wakeup/parameters/enable_mmc0_detect_wl - echo "6" > /sys/module/sec_battery/parameters/wl_polling - echo "1" > /sys/module/sec_nfc/parameters/wl_nfc - - # Entropy - echo "512" > /proc/sys/kernel/random/write_wakeup_threshold - echo "64" > /proc/sys/kernel/random/read_wakeup_threshold - - # VM - echo "100" > /proc/sys/vm/vfs_cache_pressure - echo "140" > /proc/sys/vm/swappiness - echo "3000" > /proc/sys/vm/dirty_writeback_centisecs - echo "3000" > /proc/sys/vm/dirty_expire_centisecs - echo "50" > /proc/sys/vm/overcommit_ratio - echo "25" > /proc/sys/vm/dirty_ratio - echo "10" > /proc/sys/vm/dirty_background_ratio - - # Battery - echo "1700" > /sys/devices/platform/battery/wc_input - echo "2100" > /sys/devices/platform/battery/wc_charge - echo "1650" > /sys/devices/platform/battery/ac_input - echo "2300" > /sys/devices/platform/battery/ac_charge - echo "1700" > /sys/devices/platform/battery/ps_input - echo "2300" > /sys/devices/platform/battery/ps_charge - echo "1650" > /sys/devices/platform/battery/usb_input - echo "2300" > /sys/devices/platform/battery/usb_charge - - # Better DeepSleep - # echo "mem" > /sys/power/autosleep - echo "deep" > /sys/power/mem_sleep - - # ZRAM - # for SM-G970 F and N - ZRAM is ON because RAM is only 6GB - swapoff /dev/block/zram0 > /dev/null 2>&1 - echo "1" > /sys/block/zram0/reset - echo "2684354560" > /sys/block/zram0/disksize # 2,5 GB - chmod 644 /dev/block/zram0 - mkswap /dev/block/zram0 > /dev/null 2>&1 - swapon /dev/block/zram0 > /dev/null 2>&1 - - # GPU set at max/min freq - # echo "702000" > /sys/kernel/gpu/gpu_max_clock - # echo "100000" > /sys/kernel/gpu/gpu_min_clock - # echo "coarse_demand" > /sys/devices/platform/18500000.mali/power_policy - # echo "1" > /sys/devices/platform/18500000.mali/dvfs_governor - echo "433000" > /sys/devices/platform/18500000.mali/highspeed_clock - echo "94" > /sys/devices/platform/18500000.mali/highspeed_load - echo "1" > /sys/devices/platform/18500000.mali/highspeed_delay - - # Misc settings : bbr2, bbr, cubic or westwood - echo "westwood" > /proc/sys/net/ipv4/tcp_congestion_control - echo "N" > /sys/module/mmc_core/parameters/use_spi_crc - echo "1" > /sys/module/sync/parameters/fsync_enabled - echo "0" > /sys/kernel/sched/gentle_fair_sleepers - echo "3" > /sys/kernel/power_suspend/power_suspend_mode - # echo "1" > /sys/kernel/power_suspend/power_suspend_mode - # echo "1" > /sys/kernel/power_suspend/power_suspend_state - - # I/O sched settings - echo "noop" > /sys/block/sda/queue/scheduler - # echo "256" > /sys/block/sda/queue/read_ahead_kb - echo "noop" > /sys/block/mmcblk0/queue/scheduler - # echo "256" > /sys/block/mmcblk0/queue/read_ahead_kb - echo "0" > /sys/block/sda/queue/iostats - echo "0" > /sys/block/mmcblk0/queue/iostats - echo "1" > /sys/block/sda/queue/rq_affinity - echo "1" > /sys/block/mmcblk0/queue/rq_affinity - echo "256" > /sys/block/sda/queue/nr_requests - echo "128" > /sys/block/mmcblk0/queue/nr_requests - echo "24" > /sys/block/mmcblk0/queue/iosched/fifo_batch - echo "500" > /sys/block/sda/queue/iosched/target_latency - - #Devfreq - # default 2093 MHz - # echo "1794000" > /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/max_freq - - # Initial ThundeRStormS Stune and CPU set settings - echo "## -- Initial Stune settings by ThundeRStormS" >> $LOG; - - ## Kernel Stune DEFAULT VALUES - # GLOBAL - echo "6" > /dev/stune/schedtune.boost # 0 - echo "0" > /dev/stune/schedtune.band # 0 - echo "0" > /dev/stune/schedtune.prefer_idle # 0 - echo "0" > /dev/stune/schedtune.prefer_perf # 0 - echo "1" > /dev/stune/schedtune.util_est_en # 0 - echo "0" > /dev/stune/schedtune.ontime_en # 0 - - # TOP-APP - echo "6" > /dev/stune/top-app/schedtune.boost # 20 - echo "0" > /dev/stune/top-app/schedtune.band # 0 - echo "1" > /dev/stune/top-app/schedtune.prefer_idle # 1 - echo "0" > /dev/stune/top-app/schedtune.prefer_perf # 0 - echo "1" > /dev/stune/top-app/schedtune.util_est_en # 1 - echo "1" > /dev/stune/top-app/schedtune.ontime_en # 1 - - # RT - echo "6" > /dev/stune/rt/schedtune.boost # 0 - echo "0" > /dev/stune/rt/schedtune.band # 0 - echo "0" > /dev/stune/rt/schedtune.prefer_idle # 0 - echo "0" > /dev/stune/rt/schedtune.prefer_perf # 0 - echo "0" > /dev/stune/rt/schedtune.util_est_en # 0 - echo "0" > /dev/stune/rt/schedtune.ontime_en # 0 - - # FOREGROUND-APP - echo "0" > /dev/stune/foreground/schedtune.boost # 0 - echo "0" > /dev/stune/foreground/schedtune.band # 0 - echo "0" > /dev/stune/foreground/schedtune.prefer_idle # 0 - echo "0" > /dev/stune/foreground/schedtune.prefer_perf # 0 - echo "1" > /dev/stune/foreground/schedtune.util_est_en # 1 - echo "1" > /dev/stune/foreground/schedtune.ontime_en # 1 - - # BACKGROUND-APP - echo "0" > /dev/stune/background/schedtune.boost # 0 - echo "0" > /dev/stune/background/schedtune.band # 0 - echo "1" > /dev/stune/background/schedtune.prefer_idle # 0 - echo "0" > /dev/stune/background/schedtune.prefer_perf # 0 - echo "1" > /dev/stune/background/schedtune.util_est_en # 0 - echo "1" > /dev/stune/background/schedtune.ontime_en # 0 - - # CPU SET - # RESTRICKTED - echo "0-7" > /dev/cpuset/restricted/cpus # 0-7 - # ABNORMAL - echo "0-3" > /dev/cpuset/abnormal/cpus # 0-3 - # GLOBAL - echo "0-7" > /dev/cpuset/cpus # 0-7 - # TOP-APP - echo "0-7" > /dev/cpuset/top-app/cpus # 0-7 - # FOREGROUND - echo "0-3,4-6" > /dev/cpuset/foreground/cpus # 0-3,4-6 - # BACKGROUND - echo "0-2" > /dev/cpuset/background/cpus # 0-2 - # SYSTEM-BACKGROUND - echo "0-2" > /dev/cpuset/system-background/cpus # 0-2 - # MODERATE - echo "0-3,4-5" > /dev/cpuset/moderate/cpus # 0-3,4-6 - # DEXOPT - echo "0-7" > /dev/cpuset/dexopt/cpus # 0-3 - - - ## CPU Fluid RT - echo "5" > sys/kernel/ems/frt/coregroup0/active_ratio - echo "10" > sys/kernel/ems/frt/coregroup0/active_ratio_boost - echo "15" > sys/kernel/ems/frt/coregroup0/coverage_ratio - echo "20" > sys/kernel/ems/frt/coregroup0/coverage_ratio_boost - - echo "20" > sys/kernel/ems/frt/coregroup1/active_ratio - echo "30" > sys/kernel/ems/frt/coregroup1/active_ratio_boost - echo "5" > sys/kernel/ems/frt/coregroup1/coverage_ratio - echo "10" > sys/kernel/ems/frt/coregroup1/coverage_ratio_boost - - echo "30" > sys/kernel/ems/frt/coregroup2/active_ratio - echo "37" > sys/kernel/ems/frt/coregroup2/active_ratio_boost - echo "10" > sys/kernel/ems/frt/coregroup2/coverage_ratio - echo "15" > sys/kernel/ems/frt/coregroup2/coverage_ratio_boost - - ## Kernel Scheduler - echo "## -- Kernel scheduler settings" >> $LOG; - echo "3000000" > /proc/sys/kernel/sched_wakeup_granularity_ns - #echo "10000000" > /proc/sys/kernel/sched_latency_ns - #echo "950000" > /proc/sys/kernel/sched_min_granularity_ns - #echo "1000000" > /proc/sys/kernel/sched_migration_cost_ns - #echo "1000000" > /proc/sys/kernel/sched_rt_period_us - echo "10" > /proc/sys/kernel/perf_cpu_time_max_percent #25 - echo "30" > /proc/sys/kernel/sched_rr_timeslice_ms #30 - echo "64" > /proc/sys/kernel/sched_nr_migrate - echo "1" > /sys/module/cpuidle/parameters/off # 0 - echo "performance" > /sys/module/pcie_aspm/parameters/policy - # policy - default performance powersave powersupersave - echo "ff" > /proc/irq/default_smp_affinity #01 - echo "ff" > /sys/bus/workqueue/devices/writeback/cpumask # f0 - echo "ff" > /sys/devices/virtual/workqueue/cpumask # ff - echo "0" > /dev/cpuset/sched_load_balance # 0 - - # Fs - echo "0" > /proc/sys/fs/dir-notify-enable - echo "10" > /proc/sys/fs/lease-break-time - echo "131072" > /proc/sys/fs/aio-max-nr - - # CPU EFF_mode - echo "0" > /sys/kernel/ems/eff_mode # 0 - - # CPU Energy Aware - echo "1" > /proc/sys/kernel/sched_energy_aware # 0 - echo "0" > /proc/sys/kernel/sched_tunable_scaling # 0 - - # Thermal Governors - # BIG Cluster - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone0/policy - # MID Cluster - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone1/policy - # LITTLE Cluster - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone2/policy - # GPU - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone3/policy - # ISP - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone4/policy - # AC - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone5/policy - # BATTERY - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone6/policy - - else - - # for SM-G97x F,B and N - RAM is 8GB echo "## -- Initial settings by ThundeRStormS" >> $LOG; - # Kernel Panic off (0 = Disabled, 1 = Enabled) echo "0" > /proc/sys/kernel/panic @@ -360,10 +83,10 @@ rm -f $LOG # CPU set at max/min freq # Little CPU echo "ts_schedutil" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor - echo "650000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq + echo "442000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq echo "1950000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq echo "2000" > /sys/devices/system/cpu/cpu0/cpufreq/ts_schedutil/down_rate_limit_us - echo "4000" > /sys/devices/system/cpu/cpu0/cpufreq/ts_schedutil/up_rate_limit_us + echo "3000" > /sys/devices/system/cpu/cpu0/cpufreq/ts_schedutil/up_rate_limit_us echo "0" > /sys/devices/system/cpu/cpu0/cpufreq/ts_schedutil/iowait_boost_enable echo "1" > /sys/devices/system/cpu/cpu0/cpufreq/ts_schedutil/fb_legacy @@ -372,7 +95,7 @@ rm -f $LOG echo "377000" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq echo "2314000" > /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq echo "2000" > /sys/devices/system/cpu/cpu4/cpufreq/ts_schedutil/down_rate_limit_us - echo "4000" > /sys/devices/system/cpu/cpu4/cpufreq/ts_schedutil/up_rate_limit_us + echo "3000" > /sys/devices/system/cpu/cpu4/cpufreq/ts_schedutil/up_rate_limit_us echo "0" > /sys/devices/system/cpu/cpu4/cpufreq/ts_schedutil/iowait_boost_enable echo "1" > /sys/devices/system/cpu/cpu4/cpufreq/ts_schedutil/fb_legacy @@ -381,7 +104,7 @@ rm -f $LOG echo "520000" > /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq echo "2730000" > /sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq echo "2000" > /sys/devices/system/cpu/cpu6/cpufreq/ts_schedutil/down_rate_limit_us - echo "4000" > /sys/devices/system/cpu/cpu6/cpufreq/ts_schedutil/up_rate_limit_us + echo "3000" > /sys/devices/system/cpu/cpu6/cpufreq/ts_schedutil/up_rate_limit_us echo "0" > /sys/devices/system/cpu/cpu6/cpufreq/ts_schedutil/iowait_boost_enable echo "1" > /sys/devices/system/cpu/cpu6/cpufreq/ts_schedutil/fb_legacy @@ -403,13 +126,15 @@ rm -f $LOG echo "64" > /proc/sys/kernel/random/read_wakeup_threshold # VM - echo "100" > /proc/sys/vm/vfs_cache_pressure - echo "100" > /proc/sys/vm/swappiness - echo "3000" > /proc/sys/vm/dirty_writeback_centisecs - echo "3000" > /proc/sys/vm/dirty_expire_centisecs + echo "80" > /proc/sys/vm/vfs_cache_pressure + echo "60" > /proc/sys/vm/swappiness + echo "2000" > /proc/sys/vm/dirty_writeback_centisecs + echo "2000" > /proc/sys/vm/dirty_expire_centisecs echo "50" > /proc/sys/vm/overcommit_ratio - echo "25" > /proc/sys/vm/dirty_ratio - echo "10" > /proc/sys/vm/dirty_background_ratio + echo "55" > /proc/sys/vm/dirty_ratio + echo "15" > /proc/sys/vm/dirty_background_ratio + echo "750" > /proc/sys/vm/extfrag_threshold + echo "20" > /proc/sys/vm/stat_interval # Battery echo "1700" > /sys/devices/platform/battery/wc_input @@ -425,27 +150,14 @@ rm -f $LOG # echo "mem" > /sys/power/autosleep echo "deep" > /sys/power/mem_sleep - # ZRAM - # for another SM-G97x - ZRAM is OFF because RAM is 8GB (no needed) - swapoff /dev/block/zram0 > /dev/null 2>&1 - echo "1" > /sys/block/zram0/reset - # echo "1073741824" > /sys/block/zram0/disksize # 1,0 GB - # echo "1610612736" > /sys/block/zram0/disksize # 1,5 GB - echo "2147483648" > /sys/block/zram0/disksize # 2,0 GB - # echo "2684354560" > /sys/block/zram0/disksize # 2,5 GB - # echo "3221225472" > /sys/block/zram0/disksize # 3,0 GB - chmod 644 /dev/block/zram0 - mkswap /dev/block/zram0 > /dev/null 2>&1 - swapon /dev/block/zram0 > /dev/null 2>&1 - # GPU set at max/min freq # echo "702000" > /sys/kernel/gpu/gpu_max_clock # echo "100000" > /sys/kernel/gpu/gpu_min_clock # echo "coarse_demand" > /sys/devices/platform/18500000.mali/power_policy # echo "1" > /sys/devices/platform/18500000.mali/dvfs_governor echo "433000" > /sys/devices/platform/18500000.mali/highspeed_clock - echo "94" > /sys/devices/platform/18500000.mali/highspeed_load - echo "1" > /sys/devices/platform/18500000.mali/highspeed_delay + echo "90" > /sys/devices/platform/18500000.mali/highspeed_load + echo "0" > /sys/devices/platform/18500000.mali/highspeed_delay # Misc settings : bbr2, bbr, cubic or westwood echo "westwood" > /proc/sys/net/ipv4/tcp_congestion_control @@ -457,7 +169,7 @@ rm -f $LOG # echo "1" > /sys/kernel/power_suspend/power_suspend_state # I/O sched settings - echo "noop" > /sys/block/sda/queue/scheduler + echo "cfq" > /sys/block/sda/queue/scheduler # echo "256" > /sys/block/sda/queue/read_ahead_kb echo "noop" > /sys/block/mmcblk0/queue/scheduler # echo "256" > /sys/block/mmcblk0/queue/read_ahead_kb @@ -465,10 +177,19 @@ rm -f $LOG echo "0" > /sys/block/mmcblk0/queue/iostats echo "1" > /sys/block/sda/queue/rq_affinity echo "1" > /sys/block/mmcblk0/queue/rq_affinity - echo "256" > /sys/block/sda/queue/nr_requests - echo "128" > /sys/block/mmcblk0/queue/nr_requests + echo "128" > /sys/block/sda/queue/nr_requests + echo "64" > /sys/block/mmcblk0/queue/nr_requests echo "24" > /sys/block/mmcblk0/queue/iosched/fifo_batch - echo "500" > /sys/block/sda/queue/iosched/target_latency + echo "600" > /sys/block/sda/queue/iosched/target_latency + + if [ -e /proc/sys/kernel/sched_schedstats ]; then + echo 0 > /proc/sys/kernel/sched_schedstats + fi + echo off > /proc/sys/kernel/printk_devkmsg + for queue in /sys/block/*/queue + do + echo 0 > "$queue/iostats" + done #Devfreq # default 2093 MHz @@ -479,23 +200,23 @@ rm -f $LOG ## Kernel Stune DEFAULT VALUES # GLOBAL - echo "6" > /dev/stune/schedtune.boost # 0 + echo "3" > /dev/stune/schedtune.boost # 0 echo "0" > /dev/stune/schedtune.band # 0 echo "0" > /dev/stune/schedtune.prefer_idle # 0 echo "0" > /dev/stune/schedtune.prefer_perf # 0 - echo "1" > /dev/stune/schedtune.util_est_en # 0 + echo "0" > /dev/stune/schedtune.util_est_en # 0 echo "0" > /dev/stune/schedtune.ontime_en # 0 # TOP-APP - echo "6" > /dev/stune/top-app/schedtune.boost # 20 + echo "3" > /dev/stune/top-app/schedtune.boost # 20 echo "0" > /dev/stune/top-app/schedtune.band # 0 - echo "1" > /dev/stune/top-app/schedtune.prefer_idle # 1 + echo "0" > /dev/stune/top-app/schedtune.prefer_idle # 1 echo "0" > /dev/stune/top-app/schedtune.prefer_perf # 0 echo "1" > /dev/stune/top-app/schedtune.util_est_en # 1 echo "1" > /dev/stune/top-app/schedtune.ontime_en # 1 # RT - echo "6" > /dev/stune/rt/schedtune.boost # 0 + echo "0" > /dev/stune/rt/schedtune.boost # 0 echo "0" > /dev/stune/rt/schedtune.band # 0 echo "0" > /dev/stune/rt/schedtune.prefer_idle # 0 echo "0" > /dev/stune/rt/schedtune.prefer_perf # 0 @@ -536,7 +257,7 @@ rm -f $LOG # MODERATE echo "0-3,4-5" > /dev/cpuset/moderate/cpus # 0-3,4-6 # DEXOPT - echo "0-7" > /dev/cpuset/dexopt/cpus # 0-3 + echo "0-5" > /dev/cpuset/dexopt/cpus # 0-3 ## CPU Fluid RT echo "5" > sys/kernel/ems/frt/coregroup0/active_ratio @@ -554,27 +275,28 @@ rm -f $LOG echo "10" > sys/kernel/ems/frt/coregroup2/coverage_ratio echo "15" > sys/kernel/ems/frt/coregroup2/coverage_ratio_boost - ## Kernel Scheduler - echo "3000000" > /proc/sys/kernel/sched_wakeup_granularity_ns - #echo "10000000" > /proc/sys/kernel/sched_latency_ns - #echo "950000" > /proc/sys/kernel/sched_min_granularity_ns - #echo "1000000" > /proc/sys/kernel/sched_migration_cost_ns - #echo "1000000" > /proc/sys/kernel/sched_rt_period_us - echo "10" > /proc/sys/kernel/perf_cpu_time_max_percent #25 - echo "30" > /proc/sys/kernel/sched_rr_timeslice_ms #30 + echo "5000000" > /proc/sys/kernel/sched_wakeup_granularity_ns + echo "400000" > /proc/sys/kernel/sched_latency_ns + echo "1500000" > /proc/sys/kernel/sched_min_granularity_ns + echo "500000" > /proc/sys/kernel/sched_migration_cost_ns + echo "1000000" > /proc/sys/kernel/sched_rt_period_us + echo "3" > /proc/sys/kernel/perf_cpu_time_max_percent #25 + echo "10" > /proc/sys/kernel/sched_rr_timeslice_ms #30 echo "64" > /proc/sys/kernel/sched_nr_migrate - echo "1" > /sys/module/cpuidle/parameters/off # 0 - echo "performance" > /sys/module/pcie_aspm/parameters/policy + echo "0" > /sys/module/cpuidle/parameters/off # 0 + echo "default" > /sys/module/pcie_aspm/parameters/policy # policy - default performance powersave powersupersave echo "ff" > /proc/irq/default_smp_affinity #01 - echo "ff" > /sys/bus/workqueue/devices/writeback/cpumask # f0 + echo "f0" > /sys/bus/workqueue/devices/writeback/cpumask # f0 echo "ff" > /sys/devices/virtual/workqueue/cpumask # ff - echo "0" > /dev/cpuset/sched_load_balance # 0 + echo "0" > /dev/cpuset/sched_load_balance # 0 + echo "0" > /proc/sys/kernel/timer_migration # 1 + echo "0" > /proc/sys/kernel/sched_schedstats # 1 # Fs echo "0" > /proc/sys/fs/dir-notify-enable - echo "10" > /proc/sys/fs/lease-break-time + echo "20" > /proc/sys/fs/lease-break-time echo "131072" > /proc/sys/fs/aio-max-nr # CPU EFF_mode @@ -584,24 +306,6 @@ rm -f $LOG echo "1" > /proc/sys/kernel/sched_energy_aware # 0 echo "0" > /proc/sys/kernel/sched_tunable_scaling # 0 - # Thermal Governors - # BIG Cluster - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone0/policy - # MID Cluster - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone1/policy - # LITTLE Cluster - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone2/policy - # GPU - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone3/policy - # ISP - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone4/policy - # AC - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone5/policy - # BATTERY - echo "step_wise" > /sys/devices/virtual/thermal/thermal_zone6/policy - - fi # end of variable devices - # Boeffla wakelocks chmod 0644 /sys/devices/virtual/misc/boeffla_wakelock_blocker/wakelock_blocker echo 'wlan_pm_wake;wlan_rx_wake;wlan_wake;wlan_ctrl_wake;wlan_txfl_wake;BT_bt_wake;BT_host_wake;nfc_wake_lock;rmnet0;nfc_wake_lock;bluetooth_timer;event0;GPSD;umts_ipc0;NETLINK;ssp_comm_wake_lock;epoll_system_server_file:[timerfd4_system_server];epoll_system_server_file:[timerfd7_system_server];epoll_InputReader_file:event1;epoll_system_server_file:[timerfd5_system_server];epoll_InputReader_file:event10;epoll_InputReader_file:event0;epoll_InputReader_epollfd;epoll_system_server_epollfd' > /sys/devices/virtual/misc/boeffla_wakelock_blocker/wakelock_blocker @@ -609,40 +313,12 @@ rm -f $LOG # echo "## -- Sched features Fix" >> $LOG; - ## Enhanched SlickSleep - echo "NO_NORMALIZED_SLEEPER" > /sys/kernel/debug/sched_features - echo "NO_GENTLE_FAIR_SLEEPERS" > /sys/kernel/debug/sched_features - echo "NO_NORMALIZED_SLEEPER" > /sys/kernel/debug/sched_features - echo "NO_NEW_FAIR_SLEEPERS" > /sys/kernel/debug/sched_features - echo "NO_START_DEBIT" > /sys/kernel/debug/sched_features - echo "NO_HRTICK" > /sys/kernel/debug/sched_features - echo "NO_CACHE_HOT_BUDDY" > /sys/kernel/debug/sched_features - echo "NO_LB_BIAS" > /sys/kernel/debug/sched_features - echo "NO_OWNER_SPIN" > /sys/kernel/debug/sched_features - echo "NO_DOUBLE_TICK" > /sys/kernel/debug/sched_features - echo "NO_AFFINE_WAKEUPS" > /sys/kernel/debug/sched_features - echo "NO_NEXT_BUDDY" > /sys/kernel/debug/sched_features - echo "NO_WAKEUP_OVERLAP" > /sys/kernel/debug/sched_features - - ## Kernel no debugs - echo "NO_AFFINE_WAKEUPS" >> /sys/kernel/debug/sched_features - echo "NO_ARCH_POWER" >> /sys/kernel/debug/sched_features - echo "NO_CACHE_HOT_BUDDY" >> /sys/kernel/debug/sched_features - echo "NO_DOUBLE_TICK" >> /sys/kernel/debug/sched_features - echo "NO_FORCE_SD_OVERLAP" >> /sys/kernel/debug/sched_features - echo "NO_GENTLE_FAIR_SLEEPERS" >> /sys/kernel/debug/sched_features - echo "NO_HRTICK" >> /sys/kernel/debug/sched_features - echo "NO_LAST_BUDDY" >> /sys/kernel/debug/sched_features - echo "NO_LB_BIAS" >> /sys/kernel/debug/sched_features - echo "NO_LB_MIN" >> /sys/kernel/debug/sched_features - echo "NO_NEW_FAIR_SLEEPERS" >> /sys/kernel/debug/sched_features - echo "NO_NEXT_BUDDY" >> /sys/kernel/debug/sched_features - echo "NO_NONTASK_POWER" >> /sys/kernel/debug/sched_features - echo "NO_NORMALIZED_SLEEPERS" >> /sys/kernel/debug/sched_features - echo "NO_OWNER_SPIN" >> /sys/kernel/debug/sched_features - echo "NO_RT_RUNTIME_SHARE" >> /sys/kernel/debug/sched_features - echo "NO_START_DEBIT" >> /sys/kernel/debug/sched_features - echo "NO_TTWU_QUEUE" >> /sys/kernel/debug/sched_features + ## Noatime settings + echo "## -- Noatime mount settings" >> $LOG; + busybox mount -o remount,nosuid,nodev,noatime,nodiratime -t auto /; + busybox mount -o remount,nosuid,nodev,noatime,nodiratime -t auto /proc; + busybox mount -o remount,nosuid,nodev,noatime,nodiratime -t auto /sys; + busybox mount -o remount,nodev,noatime,nodiratime,barrier=0,noauto_da_alloc,discard -t auto /system; echo " " >> $LOG; # Init.d support diff --git a/builds/zip-OneUIS/common/ts/ttweaks/ThunderTweaks_v1.1.1.0.apk b/builds/zip-OneUIS/common/ts/ttweaks/ThunderTweaks_v1.1.1.5.apk old mode 100755 new mode 100644 similarity index 59% rename from builds/zip-OneUIS/common/ts/ttweaks/ThunderTweaks_v1.1.1.0.apk rename to builds/zip-OneUIS/common/ts/ttweaks/ThunderTweaks_v1.1.1.5.apk index b34b714884c3..90292edc90e6 Binary files a/builds/zip-OneUIS/common/ts/ttweaks/ThunderTweaks_v1.1.1.0.apk and b/builds/zip-OneUIS/common/ts/ttweaks/ThunderTweaks_v1.1.1.5.apk differ diff --git a/builds/zip-OneUIS/common/ts/ttweaks/version.txt b/builds/zip-OneUIS/common/ts/ttweaks/version.txt index fa98bbfbcc79..62e45e8c8e3f 100755 --- a/builds/zip-OneUIS/common/ts/ttweaks/version.txt +++ b/builds/zip-OneUIS/common/ts/ttweaks/version.txt @@ -1,2 +1,2 @@ -ThunderTweaks v1.1.1.0 +ThunderTweaks v1.1.1.5 diff --git a/kernel/configs/ts_config-aosp.conf b/kernel/configs/ts_config-aosp.conf index faccde90602d..bcee54837ba2 100755 --- a/kernel/configs/ts_config-aosp.conf +++ b/kernel/configs/ts_config-aosp.conf @@ -11,10 +11,10 @@ CONFIG_LOCALVERSION="-$KERNEL_VERSION" # CONFIG_LOCALVERSION_AUTO is not set # CONFIG_MALI_GATOR_SUPPORT is not set # CONFIG_MALI_FENCE_DEBUG is not set -# CONFIG_SECURITY_SELINUX_SWITCH is not set +CONFIG_SECURITY_SELINUX_SWITCH=y # CONFIG_CPU_FREQ_GOV_PERFORMANCE is not set # CONFIG_ALWAYS_ENFORCE is not set -CONFIG_ALWAYS_PERMIT=y +# CONFIG_ALWAYS_PERMIT is not set # CONFIG_DTC is not set # CONFIG_RD_BZIP2 is not set # CONFIG_RD_LZMA is not set diff --git a/kernel/configs/ts_config.conf b/kernel/configs/ts_config.conf index 6b75d3b787cf..3bf4733eac04 100755 --- a/kernel/configs/ts_config.conf +++ b/kernel/configs/ts_config.conf @@ -47,14 +47,6 @@ CONFIG_SECURITY_SELINUX_SWITCH=y # CONFIG_PHY_EXYNOS_DEBUGFS is not set # CONFIG_PHY_EXYNOS_DP_DEBUGFS is not set -## STOP DEBUG -# CONFIG_KALLSYMS_ALL is not set -# CONFIG_DEBUG_INFO is not set -# CONFIG_SCHED_DEBUG is not set -# CONFIG_SCHED_STACK_END_CHECK is not set -# CONFIG_DEBUG_PREEMPT is not set -# CONFIG_DEBUG_LIST is not set - ## GPU # CONFIG_MALI_EXYNOS_WAKEUP_CLOCK_WA is not set CONFIG_MALI_DDK_VERSION=y diff --git a/ts-build-clang-14-m23.sh b/ts-build-clang-14-m23.sh new file mode 100755 index 000000000000..a5a82053d163 --- /dev/null +++ b/ts-build-clang-14-m23.sh @@ -0,0 +1,315 @@ +#!/bin/bash +# +# Kernel Build Script v1.0 by ThunderStorms Team +# + +LOG=compile_build.log +RDIR=$(pwd) +export K_VERSION="v4.0.2" +export K_NAME="ThundeRStormS-Kernel" +export K_BASE="GULB" +export ANDROID_VERSION=110000 +export PLATFORM_VERSION=11 +export ANDROID_MAJOR_VERSION=r +export CURRENT_ANDROID_MAJOR_VERSION=r +export BUILD_PLATFORM_VERSION=11 +ANDROID=OneUI-S + +# export BUILD_CROSS_COMPILE=/home/nalas/kernel/AiO-S10-TS/toolchain/gcc-cfp/gcc-cfp-jopp-only/aarch64-linux-android-4.9/bin/aarch64-linux-android- +# export CROSS_COMPILE=$BUILD_CROSS_COMPILE +OUTDIR=$RDIR/arch/arm64/boot +DTSDIR=$RDIR/arch/arm64/boot/dts/exynos +DTBDIR=$OUTDIR/dtb +DTBTOOL=$RDIR/tools/dtb +DTCTOOL=$RDIR/scripts/dtc/dtc +INCDIR=$RDIR/include +PAGE_SIZE=2048 +DTB_PADDING=0 + +# MAIN PROGRAM +# ------------ + +MAIN() +{ +( + ## COPY BACK CAMERA FILES FOR OneUI 4.x + cp -rf /home/nalas/kernel/AiO-S10-TS/builds/camera-oneui4/. /home/nalas/kernel/AiO-S10-TS/drivers/media/platform/exynos/fimc-is2 + + START_TIME=`date +%T` + if [ $MODEL = "G970F" ]; then + ./build mkimg model=G970F name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v23.0 +dtb + #elif [ $MODEL = "G970N" ]; then + #./build mkimg model=G970N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk +dtb + elif [ $MODEL = "G973F" ]; then + ./build mkimg model=G973F name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v23.0 +dtb + #elif [ $MODEL = "G973N" ]; then + #./build mkimg model=G973N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk +dtb + elif [ $MODEL = "G975F" ]; then + ./build mkimg model=G975F name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v23.0 +dtb + #elif [ $MODEL = "G975N" ]; then + #./build mkimg model=G975N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk +dtb + elif [ $MODEL = "G977B" ]; then + ./build mkimg model=G977B name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v23.0 +dtb + #elif [ $MODEL = "G977N" ]; then + #./build mkimg model=G977N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk +dtb + elif [ $MODEL = "N970F" ]; then + ./build mkimg model=N970F name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v23.0 +dtb + #elif [ $MODEL = "N971N" ]; then + #./build mkimg model=N971N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk +dtb + elif [ $MODEL = "N975F" ]; then + ./build mkimg model=N975F name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v23.0 +dtb + #elif [ $MODEL = "N976N" ]; then + #./build mkimg model=N976N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk +dtb + elif [ $MODEL = "N976B" ]; then + ./build mkimg model=N976B name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v23.0 +dtb + fi + + END_TIME=`date +%T` + echo "Start compile time is $START_TIME" + echo "End compile time is $END_TIME" + echo "" + echo "Your flasheable release can be found in the builds folder with name :" + echo "$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION-`date +%Y-%m-%d`.img" + echo "" +) 2>&1 | tee -a ./$LOG +} + +BUILD_FLASHABLES() +{ + cd $RDIR/builds + mkdir temp2 + cp -rf zip-OneUIS/common/. temp2 + cp -rf *.img temp2/ + cd temp2 + echo "" + echo "Compressing kernels..." + tar cv *.img | xz -9 > kernel.tar.xz + echo "Copying kernels to ts folder..." + mv kernel.tar.xz ts/ + # mv *.img ts/ + + rm -rf *.img + zip -9 -r ../$ZIP_NAME * + + cd .. + rm -rf temp2 +} + +RUN_PROGRAM() +{ + MAIN + # BUILD_DTBO + # BUILD_DTB + cp -f boot-$MODEL.img builds/$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION.img + cp -f $MODEL-dtb.img builds/zip-OneUIS/common/ts/dtb/$MODEL-dtb.img + cp -f $MODEL-dtbo.img builds/zip-OneUIS/common/ts/dtb/$MODEL-dtbo.img +} + +RUN_PROGRAM2() +{ + MAIN + # BUILD_DTBO + # BUILD_DTB + cp -f boot-$MODEL.img builds/$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION.img + cp -f $MODEL-dtb.img builds/zip-OneUIS/common/ts/dtb/$MODEL-dtb.img + cp -f $MODEL-dtbo.img builds/zip-OneUIS/common/ts/dtb/$MODEL-dtbo.img +} + +BUILD_DTBO() +{ +python tools/dtbo/mkdtboimg.py create /home/nalas/kernel/AiO-S10-TS/arch/arm64/boot/dts/samsung/dtbo.img /home/nalas/kernel/AiO-S10-TS/arch/arm64/boot/dts/samsung/*.dtbo +} + +BUILD_DTB() +{ + echo "Processing dts files." +for dts in $DTSFILES; do + echo "=> Processing: ${dts}.dts" + "${CROSS_COMPILE}cpp" -nostdinc -undef -x assembler-with-cpp -I "$INCDIR" "$DTSDIR/${dts}.dts" > "$DTBDIR/${dts}.dts" + echo "=> Generating: ${dts}.dtb" + $DTCTOOL -p $DTB_PADDING -i "$DTSDIR" -O dtb -o "$DTBDIR/${dts}.dtb" "$DTBDIR/${dts}.dts" + # dtc -p $DTB_PADDING -i "$DTSDIR" -O dtb -o "$DTBDIR/${dts}.dtb" "$DTBDIR/${dts}.dts" +done + + echo "Generating dtb.img." +tools/dtbo/mkdtboimg.py create /home/nalas/kernel/AiO-S10-TS/arch/arm64/boot/dtb/exynos9820.img --id=0 --rev=0 --custom1=0xff000000 arch/arm64/boot/dts/exynos/exynos9820.dtb + + echo "Done." +} + + +# RUN PROGRAM +# ----------- + +# PROGRAM START +# ------------- +clear +echo "*****************************************" +echo "* ThunderStorms Kernel Build Script *" +echo "*****************************************" +echo "" +echo " CUSTOMIZABLE STOCK SAMSUNG KERNEL" +echo " CLANG 14.00" +echo " Build Kernel for" +echo "-----------------------------------------" +echo "| S10 / N10 family for OneUI S ROMs |" +echo "-----------------------------------------" +echo "(1) SM-G970F" +echo "(2) SM-G970N" +echo "(3) SM-G973F/N" +echo "(4) SM-G975F/N" +echo "(5) SM-G977B/N" +echo "(6) SM-N970F" +echo "(7) SM-N971N" +echo "(8) SM-N975F" +echo "(9) SM-N976N" +echo "(10) SM-N976B" +echo "(11) All variants" +echo "" +read -p "Select an option to compile the kernel: " prompt + + +if [ $prompt = "1" ]; then + MODEL=G970F + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G970F Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "2" ]; then + MODEL=G970N + ZIP_DATE=`date +%Y%m%d` + #ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G973N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "3" ]; then + MODEL=G973F + ZIP_DATE=`date +%Y%m%d` + # ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G973F Selected" + RUN_PROGRAM + MODEL=G973N + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-F-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G973N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "4" ]; then + MODEL=G975F + ZIP_DATE=`date +%Y%m%d` + # ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G975F Selected" + RUN_PROGRAM + MODEL=G975N + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-F-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G975N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "5" ]; then + MODEL=G977B + ZIP_DATE=`date +%Y%m%d` + # ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G977B Selected" + RUN_PROGRAM + MODEL=G977N + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-F-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G977N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "6" ]; then + MODEL=N970F + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-N970F Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "7" ]; then + MODEL=N971N + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-N971N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "8" ]; then + MODEL=N975F + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-N975F Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "9" ]; then + MODEL=N976N + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-N976N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "10" ]; then + MODEL=N976B + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-N976B Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "11" ]; then + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-S10-N10-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "All variants Selected" + MODEL=G970F + echo "Compiling SM-G970F ..." + RUN_PROGRAM2 + MODEL=G973F + echo "Compiling SM-G973F ..." + RUN_PROGRAM2 + MODEL=G975F + echo "Compiling SM-G975F ..." + RUN_PROGRAM2 + MODEL=G975N + echo "Compiling SM-G975N ..." + RUN_PROGRAM2 + MODEL=G970N + echo "Compiling SM-G970N ..." + RUN_PROGRAM2 + MODEL=G973N + echo "Compiling SM-G973N ..." + RUN_PROGRAM2 + MODEL=G977N + echo "Compiling SM-G977N ..." + RUN_PROGRAM2 + MODEL=G977B + echo "Compiling SM-G977B ..." + RUN_PROGRAM2 + MODEL=N970F + echo "Compiling SM-N970F ..." + RUN_PROGRAM2 + MODEL=N975F + echo "Compiling SM-N975F ..." + RUN_PROGRAM2 + MODEL=N971N + echo "Compiling SM-N971N ..." + RUN_PROGRAM2 + MODEL=N976N + echo "Compiling SM-N976N ..." + RUN_PROGRAM2 + MODEL=N976B + echo "Compiling SM-N976B ..." + RUN_PROGRAM2 + BUILD_FLASHABLES +fi diff --git a/ts-build-clang-14-m252.sh b/ts-build-clang-14-m252.sh new file mode 100755 index 000000000000..80cff5ee5331 --- /dev/null +++ b/ts-build-clang-14-m252.sh @@ -0,0 +1,319 @@ +#!/bin/bash +# +# Kernel Build Script v1.0 by ThunderStorms Team +# + +LOG=compile_build.log +RDIR=$(pwd) +export K_VERSION="v4.5" +export K_NAME="ThundeRStormS-Kernel" +export K_BASE="HWJ5" +export ANDROID_VERSION=110000 +export PLATFORM_VERSION=11 +export ANDROID_MAJOR_VERSION=r +export CURRENT_ANDROID_MAJOR_VERSION=r +export BUILD_PLATFORM_VERSION=11 +ANDROID=OneUI-S + +# export BUILD_CROSS_COMPILE=/home/nalas/kernel/AiO-S10-TS/toolchain/gcc-cfp/gcc-cfp-jopp-only/aarch64-linux-android-4.9/bin/aarch64-linux-android- +# export CROSS_COMPILE=$BUILD_CROSS_COMPILE +OUTDIR=$RDIR/arch/arm64/boot +DTSDIR=$RDIR/arch/arm64/boot/dts/exynos +DTBDIR=$OUTDIR/dtb +DTBTOOL=$RDIR/tools/dtb +DTCTOOL=$RDIR/scripts/dtc/dtc +INCDIR=$RDIR/include +PAGE_SIZE=2048 +DTB_PADDING=0 + +# MAIN PROGRAM +# ------------ + +MAIN() +{ +( + ## COPY BACK CAMERA FILES FOR OneUI 4.x + # cp -rf /home/nalas/kernel/AiO-S10-TS/builds/camera-oneui4/. /home/nalas/kernel/AiO-S10-TS/drivers/media/platform/exynos/fimc-is2 + + #rm $(pwd)/arch/arm64/configs/tmp_defconfig + #make clean + + START_TIME=`date +%T` + if [ $MODEL = "G970F" ]; then + ./build mkimg model=G970F name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "G970N" ]; then + ./build mkimg model=G970N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "G973F" ]; then + ./build mkimg model=G973F name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "G973N" ]; then + ./build mkimg model=G973N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "G975F" ]; then + ./build mkimg model=G975F name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "G975N" ]; then + ./build mkimg model=G975N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "G977B" ]; then + ./build mkimg model=G977B name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "G977N" ]; then + ./build mkimg model=G977N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "N970F" ]; then + ./build mkimg model=N970F name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "N971N" ]; then + ./build mkimg model=N971N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "N975F" ]; then + ./build mkimg model=N975F name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "N976N" ]; then + ./build mkimg model=N976N name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + elif [ $MODEL = "N976B" ]; then + ./build mkimg model=N976B name="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" toolchain=clang-14 +magisk=v25.2 +dtb + fi + + END_TIME=`date +%T` + echo "Start compile time is $START_TIME" + echo "End compile time is $END_TIME" + echo "" + echo "Your flasheable release can be found in the builds folder with name :" + echo "$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION-`date +%Y-%m-%d`.img" + echo "" +) 2>&1 | tee -a ./$LOG +} + +BUILD_FLASHABLES() +{ + cd $RDIR/builds + mkdir temp2 + cp -rf zip-OneUIS/common/. temp2 + cp -rf *.img temp2/ + cd temp2 + echo "" + echo "Compressing kernels..." + tar cv *.img | xz -9 > kernel.tar.xz + echo "Copying kernels to ts folder..." + mv kernel.tar.xz ts/ + # mv *.img ts/ + + rm -rf *.img + zip -9 -r ../$ZIP_NAME * + + cd .. + rm -rf temp2 +} + +RUN_PROGRAM() +{ + MAIN + # BUILD_DTBO + # BUILD_DTB + cp -f boot-$MODEL.img builds/$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION.img + cp -f $MODEL-dtb.img builds/zip-OneUIS/common/ts/dtb/$MODEL-dtb.img + cp -f $MODEL-dtbo.img builds/zip-OneUIS/common/ts/dtb/$MODEL-dtbo.img +} + +RUN_PROGRAM2() +{ + MAIN + # BUILD_DTBO + # BUILD_DTB + cp -f boot-$MODEL.img builds/$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION.img + cp -f $MODEL-dtb.img builds/zip-OneUIS/common/ts/dtb/$MODEL-dtb.img + cp -f $MODEL-dtbo.img builds/zip-OneUIS/common/ts/dtb/$MODEL-dtbo.img +} + +BUILD_DTBO() +{ +python tools/dtbo/mkdtboimg.py create /home/nalas/kernel/AiO-S10-TS/arch/arm64/boot/dts/samsung/dtbo.img /home/nalas/kernel/AiO-S10-TS/arch/arm64/boot/dts/samsung/*.dtbo +} + +BUILD_DTB() +{ + echo "Processing dts files." +for dts in $DTSFILES; do + echo "=> Processing: ${dts}.dts" + "${CROSS_COMPILE}cpp" -nostdinc -undef -x assembler-with-cpp -I "$INCDIR" "$DTSDIR/${dts}.dts" > "$DTBDIR/${dts}.dts" + echo "=> Generating: ${dts}.dtb" + $DTCTOOL -p $DTB_PADDING -i "$DTSDIR" -O dtb -o "$DTBDIR/${dts}.dtb" "$DTBDIR/${dts}.dts" + # dtc -p $DTB_PADDING -i "$DTSDIR" -O dtb -o "$DTBDIR/${dts}.dtb" "$DTBDIR/${dts}.dts" +done + + echo "Generating dtb.img." +tools/dtbo/mkdtboimg.py create /home/nalas/kernel/AiO-S10-TS/arch/arm64/boot/dtb/exynos9820.img --id=0 --rev=0 --custom1=0xff000000 arch/arm64/boot/dts/exynos/exynos9820.dtb + + echo "Done." +} + + +# RUN PROGRAM +# ----------- + +# PROGRAM START +# ------------- +clear +echo "*****************************************" +echo "* ThunderStorms Kernel Build Script *" +echo "*****************************************" +echo "" +echo " CUSTOMIZABLE STOCK SAMSUNG KERNEL" +echo " CLANG 14.00" +echo " Build Kernel for" +echo "-----------------------------------------" +echo "| S10 / N10 family for OneUI S ROMs |" +echo "-----------------------------------------" +echo "(1) SM-G970F" +echo "(2) SM-G970N" +echo "(3) SM-G973F/N" +echo "(4) SM-G975F/N" +echo "(5) SM-G977B/N" +echo "(6) SM-N970F" +echo "(7) SM-N971N" +echo "(8) SM-N975F" +echo "(9) SM-N976N" +echo "(10) SM-N976B" +echo "(11) All variants" +echo "" +read -p "Select an option to compile the kernel: " prompt + + +if [ $prompt = "1" ]; then + MODEL=G970F + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G970F Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "2" ]; then + MODEL=G970N + ZIP_DATE=`date +%Y%m%d` + #ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G973N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "3" ]; then + MODEL=G973F + ZIP_DATE=`date +%Y%m%d` + # ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G973F Selected" + RUN_PROGRAM + MODEL=G973N + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-F-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G973N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "4" ]; then + MODEL=G975F + ZIP_DATE=`date +%Y%m%d` + # ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G975F Selected" + RUN_PROGRAM + MODEL=G975N + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-F-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G975N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "5" ]; then + MODEL=G977B + ZIP_DATE=`date +%Y%m%d` + # ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G977B Selected" + RUN_PROGRAM + MODEL=G977N + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-B-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-G977N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "6" ]; then + MODEL=N970F + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-N970F Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "7" ]; then + MODEL=N971N + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-N971N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "8" ]; then + MODEL=N975F + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-N975F Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "9" ]; then + MODEL=N976N + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-N976N Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "10" ]; then + MODEL=N976B + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-$MODEL-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "SM-N976B Selected" + RUN_PROGRAM + BUILD_FLASHABLES +elif [ $prompt = "11" ]; then + ZIP_DATE=`date +%Y%m%d` + ZIP_NAME=$K_NAME-S10-N10-$ANDROID-$K_VERSION-CLANG14-$ZIP_DATE.zip + export KERNEL_VERSION="$K_NAME-$K_BASE-$ANDROID-$MODEL-$K_VERSION" + echo "All variants Selected" + MODEL=G970F + echo "Compiling SM-G970F ..." + RUN_PROGRAM2 + MODEL=G973F + echo "Compiling SM-G973F ..." + RUN_PROGRAM2 + MODEL=G975F + echo "Compiling SM-G975F ..." + RUN_PROGRAM2 + MODEL=G977B + echo "Compiling SM-G977B ..." + RUN_PROGRAM2 + MODEL=N970F + echo "Compiling SM-N970F ..." + RUN_PROGRAM2 + MODEL=N975F + echo "Compiling SM-N975F ..." + RUN_PROGRAM2 + MODEL=N976B + echo "Compiling SM-N976B ..." + RUN_PROGRAM2 + MODEL=G970N + echo "Compiling SM-G970N ..." + RUN_PROGRAM2 + MODEL=G973N + echo "Compiling SM-G973N ..." + RUN_PROGRAM2 + MODEL=G975N + echo "Compiling SM-G975N ..." + RUN_PROGRAM2 + MODEL=G977N + echo "Compiling SM-G977N ..." + RUN_PROGRAM2 + MODEL=N971N + echo "Compiling SM-N971N ..." + RUN_PROGRAM2 + MODEL=N976N + echo "Compiling SM-N976N ..." + RUN_PROGRAM2 + BUILD_FLASHABLES +fi + diff --git a/ts-build-clang-14.sh b/ts-build-clang-14.sh index 1dbc0707e11b..5aa7fc8902a2 100755 --- a/ts-build-clang-14.sh +++ b/ts-build-clang-14.sh @@ -5,9 +5,9 @@ LOG=compile_build.log RDIR=$(pwd) -export K_VERSION="v4.3" +export K_VERSION="v4.5" export K_NAME="ThundeRStormS-Kernel" -export K_BASE="HVE1" +export K_BASE="HWJ5" export ANDROID_VERSION=110000 export PLATFORM_VERSION=11 export ANDROID_MAJOR_VERSION=r