#Commands:
4166666
#Copy everything, and add in brevent
#####
settings delete global debug.gles.layers
settings delete global debug.vulkan.layers
settings delete global enable_gpu_debug_layers
settings delete global gpu_debug_layers
settings delete global gpu_debug_layers_gles
settings delete global gpu_debug_app
settings delete global gpu_debug_layer_app
settings put global angle_gl_driver_all_angle 0
settings put global skia_use_gl false
settings put global skia_use_vulkan true
setprop debug.sf.force_refresh_rate 240
settings put system user_refresh_rate 240
settings put system max_refresh_rate 240.0
settings put system min_refresh_rate 240.0
settings put system peak_refresh_rate 240.0
settings put global max_refresh_rate 240.0
settings put global min_refresh_rate 240.0
settings put global peak_refresh_rate 240.0
setprop debug.sf.enable_hwc_vds 0
setprop debug.sf.latch_unsignaled 1
setprop debug.sf.kernel_idle_timer_update_overlay true
setprop debug.sf.support_kernel_idle_timer_enabled true
setprop debug.sf.max_igbp_list_size 7236
setprop debug.sf.high_fps.early.app.duration 4166666
setprop debug.sf.high_fps.early.sf.duration 5208333
setprop debug.sf.high_fps.earlyGl.app.duration 4166666
setprop debug.sf.high_fps.earlyGl.sf.duration 5208333
setprop debug.sf.high_fps.hwc.min.duration 3333333
setprop debug.sf.high_fps.late.app.duration 4166666
setprop debug.sf.high_fps.late.sf.duration 5208333
setprop debug.graphics.gpu.profiler.support true
setprop debug.egl.force_msaa false
setprop debug.egl.force_fxaa false
setprop debug.egl.force_taa false
setprop debug.composition.type gpu
setprop debug.mdpcomp.maxlayer 32
setprop debug.mdpcomp.idletime 80
setprop debug.fb.rgb565 1
setprop debug.rs.max-threads 8
setprop debug.rs.min-threads 4
setprop debug.performance.tuning 1
setprop debug.systemuicompilerfilter speed
setprop debug.show_refresh_rate_overlay_spinner 0
settings put global activity_manager_constants max_cached_processes=256
settings put global activity_manager_max_phantom_processes 128
settings put system pointer_speed 7
setprop debug.sys.sf.disable_drop_shadow 1
setprop debug.sf.disable_luma_blur true
setprop debug.hwui.render_dirty_regions false
setprop debug.hwui.overdraw false
setprop debug.hwui.webview_overlays_enabled false
settings put global foreground_service_starts_logging_enabled 0
settings put global activity_starts_logging_enabled 0
# Habilita o pipeline de vsync via device_config
adb shell device_config put surfaceflinger surfaceflinger.vsync.enable true
device_config put surfaceflinger surfaceflinger.vsync_phase_offset_ns -500000
device_config put surfaceflinger surfaceflinger.vsync_sf_phase_offset_ns -833333
device_config put surfaceflinger surfaceflinger.vsync.event_phase_offset_ns -500000
device_config put surfaceflinger surfaceflinger.vsync_sf_event_phase_offset_ns -
833333
device_config put surfaceflinger surfaceflinger.present_fence_timeout 450
settings put global windowsmgr.max_events_per_sec 240
device_config put activity_manager max_phantom_processes 2147483647
device_config set_sync_disabled_for_tests persistent
device_config put activity_manager binder_heavy_hitter_watcher_enabled false
device_config put activity_manager binder_heavy_hitter_auto_sampler_enabled false
device_config put activity_manager network_access_timeout_ms 3000
device_config put activity_manager
no_kill_cached_processes_post_boot_completed_duration_millis 600000
device_config put jobscheduler max_non_active_job_batch_delay_ms 600000
device_config put jobscheduler min_ready_non_active_jobs_count 6
device_config put jobscheduler conn_congestion_delay_frac 1.0
device_config put jobscheduler conn_prefetch_relax_frac 0.0
device_config put jobscheduler enable_api_quotas true
device_config put jobscheduler aq_schedule_count 250
device_config put jobscheduler aq_schedule_window_ms 60000
device_config put window_manager system_gesture_exclusion_log_debounce_millis 0
#####
#Apply all commands in brevent. Being placed, one, by one.
(setprop debug.hwui.renderer skiavk;for a in $(pm list packages|grep -v ia.mo|cut -
f2 -d:);do am force-stop "$a"&done)>/dev/null 2>&1&
(setprop debug.hwui.skia_backend vk;for a in $(pm list packages|grep -v ia.mo|cut -
f2 -d:);do am force-stop "$a"&done)>/dev/null 2>&1&
(setprop debug.hwui.disable_vulkan 0;for a in $(pm list packages|grep -v ia.mo|cut
-f2 -d:);do am force-stop "$a"&done)>/dev/null 2>&1&
(setprop debug.hwui.use_vulkan 1;for a in $(pm list packages|grep -v ia.mo|cut -f2
-d:);do am force-stop "$a"&done)>/dev/null 2>&1&
(setprop debug.sf.enable_gl_backpressure 1;for a in $(pm list packages|grep -v
ia.mo|cut -f2 -d:);do am force-stop "$a"&done)>/dev/null 2>&1&
(setprop debug.renderengine.backend skiavk;for a in $(pm list packages|grep -v
ia.mo|cut -f2 -d:);do am force-stop "$a"&done)>/dev/null 2>&1&
#ByZyx