0% found this document useful (0 votes)
3K views

Performancescript

shell (sh) file for android to get performance.

Uploaded by

Mehtab gul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views

Performancescript

shell (sh) file for android to get performance.

Uploaded by

Mehtab gul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 11

#!

/system/bin/sh

settings put global cpu_boost_enabled 1


settings put global boost_cpu 1
setprop debug.performance.tuning 1
cmd power set-mode 0
cmd power set-fixed-performance-mode-enabled true
cmd power set-fixed-performance-mode-enabled 1
cmd power set-adaptive-power-saver-enabled false
settings put global low_power 0
settings put global dynamic_power_savings_enabled 0
settings put global automatic_power_save_mode 0
settings put secure adaptive_sleep 0
settings put system intelligent_sleep_mode 0
settings put secure adaptive_sleep 0
settings put global app_standby_enabled 0
settings put global pm.sleep_mode 0
settings put system pm.sleep_mode 0
settings put secure pm.sleep_mode 0
setprop pm.sleep_mode 0
settings put system minimal_battery_use 0
settings put global low_power 0
settings put global adaptive_battery_management_enabled 0
settings put system intelligent_sleep_mode 0
settings put secure adaptive_sleep 0
settings put global automatic_power_save_mode 0
settings put system performance_mode_on 1
device_config put app_hibernation app_hibernation_enabled 1
settings put system refresh_rate_mode 1
settings put secure refresh_rate_mode 1
settings put system peak_refresh_rate 120.0
settings put system min_refresh_rate 120.0
settings put secure user_refresh_rate 120.0
settings put global dynamic_power_savings_enabled 0
settings put global dynamic_power_savings_disable_threshold 10
settings put global cpu_frequency_scaling_enabled 1
settings put global sys_uidcpupower 0
settings put system persist.sys_emc_mode performance

sysctl -w kernel.sched_features=15834233;
sysctl -w kernel.panic=0;
sysctl -w kernel.panic_on_oops=1;
sysctl -w kernel.sched_latency_ns=5000000;
sysctl -w kernel.sched_min_granularity_ns=1000000;
sysctl -w kernel.sched_wakeup_granularity_ns=1000000
sysctl -w kernel.sched_compat_yield=1;
sysctl -w kernel.sched_child_runs_first=0;

tune2fs -o journal_data_writeback /block/path/to/system


tune2fs -O ^has_journal /block/path/to/system
tune2fs -o journal_data_writeback /block/path/to/cache
tune2fs -O ^has_journal /block/path/to/cache
tune2fs -o journal_data_writeback /block/path/to/data
tune2fs -O ^has_journal /block/path/to/data

settings put system persist.sys.dalvik.multithread true


settings put system persist.sys.dalvik.hyperthreading true
device_config put activity_manager max_cached_processes 512 #32 3-4GB RAM
device_config put activity_manager max_phantom_processes 1024 #32
device_config put activity_manager kill_bg_restricted_cached_idle false
device_config put activity_manager oomadj_update_policy 1 #1 0=slow 1=quick
device_config put activity_manager use_compaction true #Less than 6GB: App
compactor reclaims background apps without killing them
device_config put wifi rx_tput_sufficient_high_thr_kbps 2000 #8000 exclamation mark
on wifi if below this?
device_config put wifi tput_sufficient_high_thr_kbps 2000 #8000
device_config put wifi rx_tput_sufficient_low_thr_kbps 20 #2000 switch to mobile
below this?
device_config put wifi tput_sufficient_low_thr_kbps 20 #2000
device_config put wifi data_stall_rx_tput_thr_kbps 20 #2000
device_config put wifi data_stall_tx_tput_thr_kbps 20 #2000
device_config put wifi data_stall_tx_per_thr 95 #90
device_config put wifi data_stall_cca_level_thr 100 # 80%
device_config set_sync_disabled_for_tests persistent
device_config put device_idle light_after_inactive_to 0
device_config put device_idle light_pre_idle_to 15000
device_config put device_idle light_idle_to_initial_flex 0
device_config put device_idle light_idle_to 15000
device_config put device_idle light_idle_factor 2
device_config put device_idle light_max_idle_to 30000
device_config put device_idle flex_time_short 0
device_config put device_idle light_max_idle_to_flex 0
device_config put device_idle light_idle_maintenance_min_budget 15000
device_config put device_idle light_idle_maintenance_max_budget 30000
device_config put device_idle min_light_maintenance_time 5000
device_config put device_idle min_deep_maintenance_time 30000
device_config put device_idle inactive_to 10000
device_config put device_idle sensing_to 0
device_config put device_idle locating_to 0
device_config put device_idle motion_inactive_to 0
device_config put device_idle motion_inactive_to_flex 0
device_config put device_idle idle_after_inactive_to 0
device_config put device_idle idle_pending_to 30000
device_config put device_idle idle_pending_factor 2
device_config put device_idle max_idle_pending_to 60000
device_config put device_idle quick_doze_delay_to 10000
device_config put device_idle idle_to 7200000
device_config put device_idle idle_factor 2
device_config put device_idle max_idle_to 86400000
device_config put device_idle min_time_to_alarm 1800000
device_config put device_idle max_temp_app_allowlist_duration_ms 20000
device_config put device_idle wait_for_unlock true
device_config put device_idle mms_temp_app_allowlist_duration_ms 20000
device_config put device_idle notification_allowlist_duration_ms 20000
device_config put device_idle pre_idle_factor_long 0
device_config put device_idle pre_idle_factor_short 0
dumpsys deviceidle enable
dumpsys deviceidle force-idle

settings put system multicore_packet_scheduler 1


settings put global sem_power_mode_limited_apps_and_home_screen 1
settings put global apm_enhancement_enabled 0
settings put global ble_scan_always_enabled 0
settings put system nearby_scanning_enabled 0
settings put system nearby_scanning_permission_allowed 0
settings put system master_motion 0
settings put system motion_engine 0
settings put system air_motion_engine 0
settings put system air_motion_wake_up 0
settings put system mcf_continuity 0
settings put system mcf_continuity_permission_denied 1
settings put system mcf_permission_denied 1
settings put system remote_control 0
settings put system send_security_reports 0
settings put global restricted_device_performance 1,1
settings put global zram 0
settings put global zram_enabled 0
settings put global ram_expand_size 0
settings put global master_sync_status 0
settings put global auto_wifi 0
settings put global app_standby_enabled 1
device_config put activity_manager bg_prompt_fgs_on_long_running 1
device_config put activity_manager
bg_current_drain_auto_restrict_abusive_apps_enabled 1
settings put global battery_saver_constants
"advertise_is_enabled=true,datasaver_disabled=false,enable_night_mode=true,launch_b
oost_disabled=true,vibration_disabled=true,animation_disabled=true,soundtrigger_dis
abled=true,fullbackup_deferred=true,keyvaluebackup_deferred=true,firewall_disabled=
true,gps_mode=0,adjust_brightness_disabled=false,adjust_brightness_factor=2,force_a
ll_apps_standby=true,force_background_check=true,optional_sensors_disabled=true,aod
_disabled=false,quick_doze_enabled=true"
settings put global default_restrict_background_data 1
settings put global cached_apps_freezer enabled
settings put global sem_enhanced_cpu_responsiveness 0
settings put global enhanced_processing 0
settings put global app_restriction_enabled 1
settings put global zram_enabled 0
settings put global accessibility_reduce_transparency 1
settings put global disable_window_blurs 1
settings put global window_animation_scale 0.0
settings put global transition_animation_scale 0.0
settings put global animator_duration_scale 0.0
settings put system screen_auto_brightness_adj 1.0
settings put global network_recommendations_enabled 0
settings put global network_scoring_ui_enabled 0
settings put global tether_offload_disabled 1
settings put global wifi_power_save 1
settings put global mobile_data_always_on 0
settings put global ble_scan_always_enabled 0
settings put system call_noise_reduction 1
settings put system call_extra_volume 1
settings put system gearhead:driving_mode_settings_enabled 0
settings put secure assistant 0
settings put secure smartspace 0
settings put global activity_starts_logging_enabled 0
settings put secure send_action_app_error 0
settings put global bixby_pregranted_permissions 0
settings put system send_security_reports 0
settings put system rakuten_denwa 0
settings put system tube_amp_effect 1
settings put system k2hd_effect 1
settings put system multicore_packet_scheduler 1
settings put secure game_auto_temperature_control 0
settings put secure gamesdk_version 0
settings put secure game_home_enable 0
settings put secure game_bixby_block 1
settings put global galaxy_system_update_block 1
settings put global burn_in_protection 1
settings put secure tap_duration_threshold 0.0
settings put secure touch_blocking_period 0.0
settings put system nearby_scanning_permission_allowed 0
settings put system nearby_scanning_enabled 0
settings put global ble_scan_always_enabled 0
settings put system mcf_continuity 0
settings put global wfc_ims_mode 2
settings put global sem_low_heat_mode 1
settings put global sys.gpu_renderer_enhance_set 0mhz
settings put global ro.config.low_ram 1
settings put global activity_manager_constants "max_cached_processes=0"
settings put global job_scheduler_quota_controller_constants
"max_job_count_working=1,max_job_count_rare=0"

echo 1 > /sys/module/bluetooth/parameters/disable_ertm

cmd wifi set-ipreach-disconnect disabled


settings put global netstats_enabled 0 # bandwidth monitoring, some apps need this
pm trim-caches 4096G
setprop persist.log.tag E
settings delete global show_processes
settings delete global sys_storage_threshold_max_bytes
settings delete global sys_storage_cache_max_bytes
settings delete global wifi_network_show_rssi
settings delete keep_profile_in_background
settings put global HIC_enable 0
settings put global activity_manager_constants
"max_cached_processes=48,power_check_max_cpu_1=50" # time<=5min 25%cpu? then
kill,now 50% dumpsys activity for config
settings put global activity_starts_logging_enabled 0
settings put global adaptive_battery_management_enabled 1 #also app_standby_enabled
settings put global adb_enabled 1
settings put global always_finish_activities 0 # Don't do this when you want to use
Widgets!!!
settings put global animator_duration_scale 0.0 #to see some anim

settings put global app_auto_restriction_enabled 1


settings put global app_standby_enabled 1
settings put global assisted_gps_enabled 0
settings put global ble_scan_always_enabled 0
settings put global bluetooth_disabled_profiles 0
settings put global charging_vibration_enabled 0
settings put global connectivity_metrics_buffer_size 1000 #2000 max=10*2000
settings put global default_dns_server 1.1.1.1
settings put global development_settings_enabled 1
settings put global dropbox_age_seconds 1
settings put global dropbox_max_files 1
settings put global enable_automatic_system_server_heap_dumps 0
#settings put global enable_cellular_on_boot 0 #no gsm radio after boot
settings put global enable_diskstats_logging 0
settings put global enable_ephemeral_feature 0 # short time users
settings put global enable_freeform_support 0
settings put global force_resizable_activities 0
settings put global foreground_service_starts_logging_enabled 0
settings put global fstrim_mandatory_interval 604800000 #def 3days now 7 days
settings put global heads_up_notifications_enabled 1
#settings put global keep_profile_in_background 0 # AndroidTV
settings put global location_background_throttle_interval_ms 3600000 #def 30min
30*60*1000
#settings put global mobile_data 0 #no mobile then 0
settings put global tcp_default_init_rwnd 20 #60, kernel 4-20 MAJOR network
speedup!
settings put global wifi_bounce_delay_millis 10000 #def 60*1000 1 minute
settings put global wifi_country_code GB
settings put global wifi_coverage_extend_feature_enabled 0
settings put global wifi_display_on 0 #miracast on, no chromecast?
settings put global wifi_enhanced_auto_join 0
settings put global wifi_ephemeral_out_of_range_timeout_ms 60000 #60*1000 1min
settings put global wifi_framework_scan_interval_ms 0 # 5*60*1000 5min 0=don't scan
when connected, we are stationary/screen on!
settings put global wifi_frequency_band 2 #0=auto 1=5 2=2.4
settings put global wifi_idle_ms 300000 #5min def 15min
settings put global wifi_max_dhcp_retry_count 0
settings put global wifi_networks_available_notification_on 0
settings put global wifi_poor_connection_warning 0
settings put global wifi_scan_always_enabled 0
settings put global wifi_scan_throttle_enabled 0
settings put global wifi_score_params rssi2=-95:-85:-73:-60,rssi5=-85:-82:-70:-57
settings put global wifi_sleep_policy 0 # 0=def 1=never while plugged 2=never sleep
settings put global wifi_suspend_optimizations_enabled 1
settings put global wifi_supplicant_scan_interval_ms 5000 #15000 15sec search while
connected for connect, roaming or open network, screen on, not wakeup scan (5sec is
min)
settings put global wifi_verbose_logging_enabled 0
settings put global wifi_wakeup_available 0 #doesn't show, enable wifi at location
settings put global wifi_wakeup_enabled 0
settings put global wifi_watchdog_poor_network_test_enabled 0
settings put global window_animation_scale 0.0
settings put global zram_enabled 0
settings put global ram_expand_size_list 0
settings put global hotword_detection_enabled 0
settings put global ble_scan_always_enabled 0
settings put system nearby_scanning_enabled 0
settings put system nearby_scanning_permission_allowed 0
settings put secure touch_blocking_period 0.0
settings put secure tap_duration_threshold 0.0
settings put system master_motion 0
settings put system motion_engine 0
settings put system air_motion_engine 0
settings put system air_motion_wake_up 0
settings put global preferred_network_mode 9,9
settings put system dalvik.vm.checkjni false
settings put system dalvik.vm.dexopt-data-only 1
settings put system dalvik.vm.heapstartsize 5m
settings put system dalvik.vm.heapgrowthlimit 48m
settings put system dalvik.vm.heapsize 64m
settings put system dalvik.vm.verify-bytecode false
settings put system dalvik.vm.execution-mode int:jit
settings put system dalvik.vm.lockprof.threshold 250
settings put system dalvik.vm.dexopt-flags m=v,o=y
settings put system dalvik.vm.stack-trace-file /data/anr/traces.txt
settings put system dalvik.vm.jmiopts forcecopy
settings put system net.ipv4.tcp_low_latency 1
settings put system net.ipv4.ip_no_pmtu_disc 0
settings put system net.ipv4.route.flush 1
settings put system net.ipv4.tcp_ecn 0
settings put system net.ipv4.tcp_fack 1
settings put system net.ipv4.tcp_mem 187000,187000,187000
settings put system net.ipv4.tcp_moderate_rcvbuf 1
settings put system net.ipv4.tcp_no_metrics_save 1
settings put system net.ipv4.tcp_rfc1337 1
settings put system net.ipv4.tcp_rmem 4096,39000,187000
settings put system net.ipv4.tcp_sack 1
settings put system net.ipv4.tcp_timestamps 1
settings put system net.ipv4.tcp_window_scaling 1
settings put system net.ipv4.tcp_wmem 4096,39000,18700

settings put system net.ipv4.tcp_mtu_probing 0


settings put system net.ipv4.tcp_fin_timeout 60
settings put system net.ipv4.tcp_wmem 4096,65536,16777216
settings put system net.ipv4.tcp_rmem 4096,87380,16777216
settings put system net.core.wmem_max 16777216
settings put system net.core.rmem_max 16777216
settings put system net.ipv4.tcp_moderate_rcvbuf 1
settings put system net.ipv4.tcp_no_metrics_save 1
settings put system net.ipv4.tcp_no_ssthresh_metrics_save 1
settings put system net.ipv4.tcp_notsent_lowat 4294967295
settings put system net.ipv4.tcp_max_syn_retransmissions 2
settings put system net.ipv4.tcp_ecn 0
settings put system net.ipv4.tcp_keepalive_intvl 60
settings put system net.ipv4.tcp_min_tso_segs 2
settings put system net.ipv4.tcp_max_tw_buckets 3000
settings put system net.ipv4.tcp_netdma 1
settings put system net.ipv4.tcp_dca 1
settings put system net.ipv4.conf.eth0.mc_forwarding 0
settings put system net.ipv4.conf.all.mc_forwarding 0
settings put system net.ipv4.conf.default.mc_forwarding 0
settings put system net.ipv6.conf.all.disable_ipv6 1
settings put system net.ipv6.conf.default.disable_ipv6 1
settings put system net.ipv6.conf.wlan0.autoconf 0
settings put system net.ipv6.conf.wlan0.accept_ra 0
settings put system net.ipv6.conf.wlan0.disable_ipv6 1
settings put system net.ipv4.tcp_congestion_control cubic
settings put system net.ipv4.tcp_default_congestion_control cubic

settings put system dalvik.vm.startheapsize 32


settings put system ro.ril.disable.power.collapse 0
settings put system windowsmgr.max_events_per_sec 100
settings put system Logcat.live disable
settings put system net.tcp.buffersize.default 4096,87380,256960,4096,16384,256960
settings put system net.tcp.buffersize.wifi 4096,87380,256960,4096,16384,256960
settings put system net.tcp.buffersize.evdo_b 6144,87380,1048576,6144,87380,1048576
settings put system net.tcp.buffersize.hsdpa 6144,87380,1048576,6144,87380,1048576
settings put system net.tcp.buffersize.lte
524288,1048576,2097152,524288,1048576,2097152
settings put system net.tcp.buffersize.hspa 6144,87380,524288,6144,16384,262144
settings put system net.tcp.buffersize.edge 4096,87380,256960,4096,16384,256960
settings put system net.tcp.buffersize.gprs 4096,87380,256960,4096,16384,256960
settings put system net.tcp.buffersize.umts 4096,87380,256960,4096,16384,256960
settings put system advanced_settings 1 #google settings
settings put system auto_caps 0
settings put system auto_punctuate 0
settings put system auto_replace 0
settings put system bluetooth_discoverability 1 # 2=always 1=only connect 0=off,
improve wifi!
settings put system bluetooth_discoverable_timeout 60
settings put system font_scale 1.0
settings put system haptic_feedback_enabled 0
#settings put system notification_light_pulse 0 #blink LED, if no led 0
settings put system pointer_speed 4 # -7 0 +7
settings put system sound_effects_enabled 0
settings put system support_dolby 1
settings put system time_12_24 24
settings put system vibrate_input_devices 0
settings put system volume_bluetooth_sco 15
settings put system volume_music_bt_a2dp 15

settings put global dalvik.vm.checkjni false


settings put global dalvik.vm.dexopt-data-only 1
settings put global dalvik.vm.heapstartsize 5m
settings put global dalvik.vm.heapgrowthlimit 48m
settings put global dalvik.vm.heapsize 64m
settings put global dalvik.vm.verify-bytecode false
settings put global dalvik.vm.execution-mode int:jit
settings put global dalvik.vm.lockprof.threshold 250
settings put global dalvik.vm.dexopt-flags m=v,o=y
settings put global dalvik.vm.stack-trace-file /data/anr/traces.txt
settings put global dalvik.vm.jmiopts forcecopy
settings put global net.ipv4.tcp_low_latency 1
settings put global net.ipv4.ip_no_pmtu_disc 0
settings put global net.ipv4.route.flush 1
settings put global net.ipv4.tcp_ecn 1
settings put global net.ipv4.tcp_fack 1
settings put global net.ipv4.tcp_mem 187000,187000,187000
settings put global net.ipv4.tcp_moderate_rcvbuf 1
settings put global net.ipv4.tcp_no_metrics_save 1
settings put global net.ipv4.tcp_rfc1337 1
settings put global net.ipv4.tcp_rmem 4096,39000,187000
settings put global net.ipv4.tcp_sack 1
settings put global net.ipv4.tcp_timestamps 1
settings put global net.ipv4.tcp_window_scaling 1
settings put global net.ipv4.tcp_wmem 4096,39000,18700
settings put global dalvik.vm.startheapsize 32
settings put global ro.ril.disable.power.collapse 0
settings put global windowsmgr.max_events_per_sec 100
settings put global Logcat.live disable
settings put global net.tcp.buffersize.default 4096,87380,256960,4096,16384,256960
settings put global net.tcp.buffersize.wifi 4096,87380,256960,4096,16384,256960
settings put global net.tcp.buffersize.evdo_b 6144,87380,1048576,6144,87380,1048576
settings put global net.tcp.buffersize.hsdpa 6144,87380,1048576,6144,87380,1048576
settings put global net.tcp.buffersize.lte
524288,1048576,2097152,524288,1048576,2097152
settings put global net.tcp.buffersize.hspa 6144,87380,524288,6144,16384,262144
settings put global net.tcp.buffersize.edge 4096,87380,256960,4096,16384,256960
settings put global net.tcp.buffersize.gprs 4096,87380,256960,4096,16384,256960
settings put global net.tcp.buffersize.umts 4096,87380,256960,4096,16384,256960

settings put secure automatic_storage_manager_enabled 0


settings put secure backup_enabled 1
settings put secure camera_gesture_disabled 1
settings put secure clock_seconds 0
settings put secure double_tap_to_wake 0
settings put secure doze_enabled 0
settings put secure immersive_mode_confirmations 1
settings put secure instant_apps_enabled 0
settings put secure long_press_timeout 500
settings put secure mount_ums_autostart 0 # mount usb mass storage doesn't work
settings put secure mount_ums_notify_enabled 1
settings put secure multi_press_timeout 400
settings put secure night_display_activated 0
settings put secure night_display_auto_mode 0
settings put secure parental_control_enabled 0
settings put secure spell_checker_enabled 0
settings put secure swipe_up_to_switch_apps_enabled 1
settings put secure system_navigation_keys_enabled 1
settings put secure sysui_do_not_disturb 1 #volume down=not disturb (no
notification/alarm sounds etc)
settings put secure sysui_volume_down_silent 1
settings put secure sysui_volume_up_silent 1
settings put secure theme_mode 1 #0=auto 1=light 2=dark
settings put secure upload_debug_log_pref 0
settings put secure upload_log_pref 0
settings put secure usb_audio_automatic_routing_disabled 1
settings put secure wake_gesture_enabled 0
settings put secure dalvik.vm.checkjni false
settings put secure dalvik.vm.dexopt-data-only 1
settings put secure dalvik.vm.heapstartsize 5m
settings put secure dalvik.vm.heapgrowthlimit 48m
settings put secure dalvik.vm.heapsize 64m
settings put secure dalvik.vm.verify-bytecode false
settings put secure dalvik.vm.execution-mode int:jit
settings put secure dalvik.vm.lockprof.threshold 250
settings put secure dalvik.vm.dexopt-flags m=v,o=y
settings put secure dalvik.vm.stack-trace-file /data/anr/traces.txt
settings put secure dalvik.vm.jmiopts forcecopy
settings put secure net.ipv4.tcp_low_latency 1
settings put secure net.ipv4.ip_no_pmtu_disc 0
settings put secure net.ipv4.route.flush 1
settings put secure net.ipv4.tcp_ecn 1
settings put secure net.ipv4.tcp_fack 1
settings put secure net.ipv4.tcp_mem 187000,187000,187000
settings put secure net.ipv4.tcp_moderate_rcvbuf 1
settings put secure net.ipv4.tcp_no_metrics_save 1
settings put secure net.ipv4.tcp_rfc1337 1
settings put secure net.ipv4.tcp_rmem 4096,39000,187000
settings put secure net.ipv4.tcp_sack 1
settings put secure net.ipv4.tcp_timestamps 1
settings put secure net.ipv4.tcp_window_scaling 1
settings put secure net.ipv4.tcp_wmem 4096,39000,18700
settings put secure dalvik.vm.startheapsize 32
settings put secure ro.ril.disable.power.collapse 0
settings put secure windowsmgr.max_events_per_sec 100
settings put secure Logcat.live disable
settings put secure net.tcp.buffersize.default 4096,87380,256960,4096,16384,256960
settings put secure net.tcp.buffersize.wifi 4096,87380,256960,4096,16384,256960
settings put secure net.tcp.buffersize.evdo_b 6144,87380,1048576,6144,87380,1048576
settings put secure net.tcp.buffersize.hsdpa 6144,87380,1048576,6144,87380,1048576
settings put secure net.tcp.buffersize.lte
524288,1048576,2097152,524288,1048576,2097152
settings put secure net.tcp.buffersize.hspa 6144,87380,524288,6144,16384,262144
settings put secure net.tcp.buffersize.edge 4096,87380,256960,4096,16384,256960
settings put secure net.tcp.buffersize.gprs 4096,87380,256960,4096,16384,256960
settings put secure net.tcp.buffersize.umts 4096,87380,256960,4096,16384,256960
setprop dalvik.vm.startheapsize 32
setprop ro.ril.disable.power.collapse 0
setprop power_supply.wakeup enable
setprop wifi.supplicant_scan_interval 150
setprop windowsmgr.max_events_per_sec 100
setprop Logcat.live disable
setprop af.resampler.quality 255
setprop mpq.audio.decode true
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.evdo_b 6144,87380,1048576,6144,87380,1048576
setprop net.tcp.buffersize.hsdpa 6144,87380,1048576,6144,87380,1048576
setprop net.tcp.buffersize.lte 524288,1048576,2097152,524288,1048576,2097152
setprop net.tcp.buffersize.hspa 6144,87380,524288,6144,16384,262144
setprop net.tcp.buffersize.edge 4096,87380,256960,4096,16384,256960
setprop net.tcp.buffersize.gprs 4096,87380,256960,4096,16384,256960
setprop net.tcp.buffersize.umts 4096,87380,256960,4096,16384,256960
setprop touch.pressure.scale 0.001
setprop touch.presure.scale 0.001
setprop debug.egl.profiler 1
setprop dalvik.vm.checkjni false
setprop dalvik.vm.dexopt-data-only 1
setprop dalvik.vm.heapstartsize 5m
setprop dalvik.vm.heapgrowthlimit 48m
setprop dalvik.vm.heapsize 64m
setprop dalvik.vm.verify-bytecode false
setprop dalvik.vm.execution-mode int:jit
setprop dalvik.vm.lockprof.threshold 250
setprop dalvik.vm.dexopt-flags m=v,o=y
setprop dalvik.vm.stack-trace-file /data/anr/traces.txt
setprop dalvik.vm.jmiopts forcecopy
setprop net.ipv4.tcp_low_latency 1
setprop net.ipv4.ip_no_pmtu_disc 0
setprop net.ipv4.route.flush 1
setprop net.ipv4.tcp_ecn 0
setprop net.ipv4.tcp_fack 1
setprop net.ipv4.tcp_mem 187000,187000,187000
setprop net.ipv4.tcp_moderate_rcvbuf 1
setprop net.ipv4.tcp_no_metrics_save 1
setprop net.ipv4.tcp_rfc1337 1
setprop net.ipv4.tcp_rmem 4096,39000,187000
setprop net.ipv4.tcp_sack 1
setprop net.ipv4.tcp_timestamps 1
setprop net.ipv4.tcp_window_scaling 1
setprop net.ipv4.tcp_wmem 4096,39000,18700
setprop net.ipv4.tcp_mtu_probing 0
setprop net.ipv4.tcp_fin_timeout 60
setprop net.ipv4.tcp_wmem 4096,65536,16777216
setprop net.ipv4.tcp_rmem 4096,87380,16777216
setprop net.core.wmem_max 16777216
setprop net.core.rmem_max 16777216
setprop net.ipv4.tcp_moderate_rcvbuf 1
setprop net.ipv4.tcp_no_metrics_save 1
setprop net.ipv4.tcp_no_ssthresh_metrics_save 1
setprop net.ipv4.tcp_notsent_lowat 4294967295
setprop net.ipv4.tcp_max_syn_retransmissions 2
setprop net.ipv4.tcp_ecn 0
setprop net.ipv4.tcp_keepalive_intvl 60
setprop net.ipv4.tcp_min_tso_segs 2
setprop net.ipv4.tcp_max_tw_buckets 3000
setprop net.ipv4.tcp_netdma 1
setprop net.ipv4.tcp_dca 1
setprop net.ipv4.conf.eth0.mc_forwarding 0
setprop net.ipv4.conf.all.mc_forwarding 0
setprop net.ipv4.conf.default.mc_forwarding 0
setprop net.ipv6.conf.all.disable_ipv6 1
setprop net.ipv6.conf.default.disable_ipv6 1
setprop net.ipv6.conf.wlan0.autoconf 0
setprop net.ipv6.conf.wlan0.accept_ra 0
setprop net.ipv6.conf.wlan0.disable_ipv6 1
setprop net.ipv4.tcp_congestion_control cubic
setprop net.ipv4.tcp_default_congestion_control cubic

setprop debug.hwui.level 0
setprop debug.hwui.overdraw 0
setprop debug.hwui.profile 0
setprop debug.hwui.show.layers_updates 0
setprop debug.hwui.skia.atrace_enabled 0
setprop debug.layout false
setprop debug.log false
setprop debug.hwui.skip_empty_damage 1
setprop debug.hwui.use_partial_updates 0
setprop debug.hwui.vulkan.validation 0
setprop debug.perfmond.atrace 0
setprop debug.performance.profile 1
setprop debug.generate-debug-info false
setprop debug.rs.debug 0
setprop debug.rs.script false
setprop debug.rs.shader false
setprop debug.rs.shader.attributes false
setprop debug.rs.shader.uniforms false
setprop debug.rs.visual false
setprop debug.sensors false
setprop debug.sf.enable_egl_image_tracker false
setprop debug.sf.set_idle_timer_ms 30
setprop debug.sf.disable_backpressure 1
setprop debug.sf.latch_unsignaled 1
setprop debug.sf.enable_hwc_vds 1
setprop debug.sf.early_phase_offset_ns 500000
setprop debug.sf.early_app_phase_offset_ns 500000
setprop debug.sf.early_gl_phase_offset_ns 3000000
setprop debug.sf.early_gl_app_phase_offset_ns 15000000
setprop debug.sf.high_fps_early_phase_offset_ns 6100000
setprop debug.sf.high_fps_late_sf_phase_offset_ns 8000000
setprop debug.sf.high_fps_early_gl_phase_offset_ns 9000000
setprop debug.sf.high_fps_late_app_phase_offset_ns 1000000
setprop debug.sf.high_fps_late_sf_phase_offset_ns 8000000
setprop debug.sf.high_fps_early_gl_phase_offset_ns 9000000
setprop debug.sf.phase_offset_threshold_for_next_vsync_ns 6100000
setprop debug.sf.showfps 0
setprop debug.sf.showcpu 0
setprop debug.sf.showbackground 0
setprop debug.sf.shoupdates 0
setprop debug.egl.callstack false
setprop debug.stagefright.fps false
setprop debug.stagefright.omx-debug false
setprop debug.stagefright.profilecodec false
cmd notification post -S messaging --conversation "Mad Script" --message
"Performance mode activated" "Mad" "activation successful"
am force-stop me.piebridge.brevent

You might also like