|
@@ -181,13 +181,13 @@ suspend fun optimize() {
|
|
|
"cmd netpolicy add restrict-background-blacklist ${info.uid}",
|
|
"cmd netpolicy add restrict-background-blacklist ${info.uid}",
|
|
|
"pm grant ${BuildConfig.APPLICATION_ID} android.permission.POST_NOTIFICATIONS",
|
|
"pm grant ${BuildConfig.APPLICATION_ID} android.permission.POST_NOTIFICATIONS",
|
|
|
)
|
|
)
|
|
|
-// if (Build.MODEL.startsWith("SM-F707") || Build.MODEL.startsWith("SM-F711")) {
|
|
|
|
|
-// shellRun(
|
|
|
|
|
-// "settings put global window_animation_scale 1",
|
|
|
|
|
-// "settings put global transition_animation_scale 1",
|
|
|
|
|
-// "settings put global animator_duration_scale 1"
|
|
|
|
|
-// )
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ if (Build.MODEL.startsWith("SM-F707") || Build.MODEL.startsWith("SM-F711")) {
|
|
|
|
|
+ shellRun(
|
|
|
|
|
+ "settings put global window_animation_scale 0",
|
|
|
|
|
+ "settings put global transition_animation_scale 0",
|
|
|
|
|
+ "settings put global animator_duration_scale 0"
|
|
|
|
|
+ )
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
suspend fun syncTime() {
|
|
suspend fun syncTime() {
|