-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGalaxy-OPTool-v1.0.5.bat
120 lines (120 loc) · 4.4 KB
/
Galaxy-OPTool-v1.0.5.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
::CONFIGURATION PHASE OF THE TOOL TOOL
@Echo Off
echo WELCOME ON ONEUI OPTIMIZER
echo version 1.0.5
echo by @blast752
echo Press "ENTER", otherwise "Ctrl+C" for CLOSE
echo.
pause
echo Checking for Devices...
adb devices
echo Is device present and connected?
echo Press "ENTER", otherwise "Ctrl+C" for CLOSE
echo.
pause
::INITIATION PHASE OF THE TOOL
echo -------------------------------------
echo STARTING OPTIMIZATION TOOL FOR ONE UI
echo -------------------------------------
echo.
echo Optimizing animations...
adb shell settings put global window_animation_scale 0.6
adb shell settings put global transition_animation_scale 0.6
adb shell settings put global window_animation_scale 0.6
echo.
echo Disabling GOS...
adb shell pm uninstall --user 0 com.samsung.android.game.gos
adb shell pm disable-user --user 0 com.samsung.android.game.gos
adb shell pm clear --user 0 com.samsung.android.game.gos
adb shell settings put secure game_auto_temperature_control 0
echo.
echo Setting lowest RAM Plus...
adb shell settings put global ram_expand_size_list 1
echo.
echo Disabling useless settings item...
adb shell settings put global online_manual_url 0
adb shell settings put system remote_control 0
echo.
echo Improving audio quality...
adb shell settings put system tube_amp_effect 1
adb shell settings put system k2hd_effect 1
echo.
echo Disabling useless touch sound...
adb shell settings put system sound_effects_enabled 0
echo.
echo Disabling motions engines...
adb shell settings put system master_motion 0
adb shell settings put system motion_engine 0
adb shell settings put system air_motion_engine 0
adb shell settings put system air_motion_wake_up 0
echo.
echo Disabling background scanning...
adb shell settings put global ble_scan_always_enabled 0ù
echo.
echo Improving general usage...
adb shell settings put system multicore_packet_scheduler 1
adb shell settings put global cached_apps_freezer enabled
adb shell settings put secure tap_duration_threshold 0.0
adb shell settings put secure touch_blocking_period 0.0
echo.
echo Enabling adpative battery...
adb shell settings put global adaptive_battery_management_enabled 1
echo.
echo Disabling useless gestures...
adb shell settings put secure double_tap_to_wake 0
adb shell settings put secure double_tap_to_wake_up 0
adb shell settings put secure double_tap_to_sleep 0
adb shell settings put secure wake_gesture_enabled 0
adb shell settings put system lift_to_wake 0
adb shell settings put secure volume_hush_gesture 0
adb shell settings put secure hush_gesture_used 0
adb shell settings put secure silence_gesture 0
adb shell settings put secure skip_gesture 0
echo.
echo Improving apps launch...
adb shell settings put system rakuten_denwa 0
adb shell settings put system remote_control 0
adb shell settings put system send_security_reports 0
echo.
echo Disabling screen saver...
adb shell settings put secure screensaver_enabled 0
adb shell settings put secure screensaver_activate_on_sleep 0
adb shell settings put secure screensaver_activate_on_dock 0
echo.
echo Disabling smart stay...
adb shell settings put system intelligent_sleep_mode 0
adb shell settings put secure adaptive_sleep 0
echo.
echo Enabling processing speed hack...
adb shell settings put global sem_enhanced_cpu_responsiveness 1
echo.
echo Enabling performance limit (less heat)...
adb shell settings put global restricted_device_performance 1,1
echo.
echo Disabling cross-device sync...
adb shell settings put system mcf_continuity 0
adb shell settings put system mcf_continuity_permission_denied 1
adb shell settings put system mcf_permission_denied 1
echo.
echo Debloating stuffs...
adb shell pm uninstall --user 0 com.sec.android.smartfpsadjuster
adb shell pm uninstall --user 0 com.samsung.android.game.gametools
adb shell pm uninstall --user 0 com.samsung.android.game.gamehome
echo.
echo Doing Battery optimizations...
adb shell cmd package bg-dexopt-job
echo.
echo Trimming cache (more times)
adb shell pm trim-caches 999999999999999999
adb shell pm trim-caches 999999999999999999
adb shell pm trim-caches 999999999999999999
echo.
echo Doing Performance optimizations...
adb shell cmd package compile -m speed-profile -a
echo.
echo --------------------------------------
echo TOOL HAS COMPLETED ALL TASKS
echo THANKS FOR USING MY TOOL by @blast752
echo --------------------------------------
echo.
::END OF TOOL AND CLOSURE OF TERMINAL