Credits to LoveDoLove
use this code in ladb to unlock global table:adb shell pm grant by4a.setedit22
[Link].WRITE_SECURE_SETTINGS
[Global Table]
1) [For Gaming]
restricted_device_performance "0,0"
sem_enhanced_cpu_responsiveness "1"
ram_expand_size "2048"
zram_enabled "1"
fstrim_mandatory_interval "1"
[Link].use_opengl "true"
[Link].use_vulkan "true"
FPSTUNER_SWITCH "true"
GPUTUNER_SWITCH "true"
GPUTURBO_SWITCH "true"
game_driver_all_apps "1"
game_driver_opt_in_apps "add ur game package"
2) [For Wifi]
private_dns_specifier "[Link]"
[System Table]
1) [For Gaming]
user_refresh_rate = "90"
peak_refresh_rate = "1"
windowsmgr.max_events_per_sec = "150"
ro.min_pointer_dur = "8"
[Link].fling_velocity = "12000"
[Link].fling_velocity = "8000"
[Link] "0"
[Link] "0"
[Link] "true"
[Link] "1"
[Link].dyn_samplingrate "1"
[Link] "1"
[Link] "1"
[Link] "1"
[Link] "1"
[Link] "1"
[Link] "c2d"
[Link] "gpu"
[Link] "1"
[Link] "true"
[Link] "1"
[Link] "1"
[Link] "1"
hwui.render_dirty_regions "false"
hwui.disable_vsync "true"
[Link] "false"
[Link]-data-only "1"
[Link] "5m"
[Link] "48m"
[Link] "64m"
[Link]-bytecode "false"
[Link]-mode "int:jit"
[Link] "250"
[Link]-flags "m=v,o=y"
[Link]-trace-file "/data/anr/[Link]"
[Link] "forcecopy"
2) [For Wifi]
wifi.supplicant_scan_interval "120"
hw_networkmode_preference "9,6,3,2,1,11,5,7,8,20,28,38,40"
lte_mode_switch "1"
[Link] "4096,87380,256960,4096,16384,256960"
[Link] "4096,87380,256960,4096,16384,256960"
[Link] "4096,87380,256960,4096,16384,256960"
[Link] "4096,87380,256960,4096,16384,256960"
[Link] "4096,87380,256960,4096,16384,256960"
[Link] "6144,87380,524288,6144,16384,262144"
[Link] "524288,1048576,2097152,524288,1048576,2097152
[Link] "6144,87380,1048576,6144,87380,1048576"
[Link].evdo_b "6144,87380,1048576,6144,87380,1048576"
net.rmnet0.dns1 "[Link]"
net.rmnet0.dns2 "[Link]"
net.dns1 "[Link]"
net.dns2 "[Link]"
net.ppp0.dns1 "[Link]"
net.ppp0.dns2 "[Link]"
net.wlan0.dns1 "[Link]"
net.wlan0.dns2 "[Link]"
net.eth0.dns1 "[Link]"
net.eth0.dns2 "[Link]"
[Link].dns1 "[Link]"
[Link].dns2 "[Link]"
net.ipv4.ip_no_pmtu_disc=0
[Link]=1
net.ipv4.tcp_ecn=0
net.ipv4.tcp_fack=1
net.ipv4.tcp_mem=187000 187000 187000
net.ipv4.tcp_moderate_rcvbuf=1
net.ipv4.tcp_no_metrics_save=1
net.ipv4.tcp_rfc1337=1
net.ipv4.tcp_rmem=4096 39000 187000
net.ipv4.tcp_sack=1
net.ipv4.tcp_timestamps=1
net.ipv4.tcp_window_scaling=1
net.ipv4.tcp_wmem=4096 39000 18700
3) [For Scrolling]
custom_user_screen_resolution "1280x720"
windowsmgr.max_events_per_sec "100"
fod_animation_type "4"
[Link] "0.001"
[Link] "1"
4) [For Startup]
[Link].hw_quickpoweron "true"
[Link] "25"
[Link] "1"
haptic_feedback_enabled "0"
[Link] "disable"
5) [For Battery]
pm.sleep_mode "1"
power_supply.wakeup "enable"
high_performance_mode_on "1"
6) [For Video / Sound / Media]
[Link] "255"
[Link] "true"
[Link]-player "true"
[Link]-meta "true"
[Link]-scan "true"
[Link]-http "true"
[Link]-aac "true"
[Link]-qcp "true"
[Link]-record "true"
No Working
[Secure Table]
1) [Wifi 5G]
wifi_ap_chip_support5g_baseon_country "true"
wifi_ap_chip_maxclient "10"
wifi_ap_chip_support5g "true"
wifi_ap_5G_checked "1"
wifi_ap_customer "ALL"
wifi_ap_dual_popup "1"
wifi_ap_last_2g_channel "0"
wifi_ap_pmf_checked "0"