README.md
以下内容由 AI 翻译,如有问题请点此提交 issue 反馈
Android 的 Melody 脚本 优化 Android 手机。
需求
Android 手机,操作系统版本为 7.1.1 或更高。 适用于操作系统版本为 9 或更高的三星手机(仅限 OneUI)。 已安装 ADB 及驱动程序(ADB 安装程序将包含在发布版本和源代码管理中)。
命令
你可以从这些命令中创建一个 BAT 文件。 命令列表如下
提升系统性能
禁用窗口模糊效果和动画
adb shell settings put global accessibility_reduce_transparency 1adb shell settings put global disable_window_blurs 1adb shell settings put global window_animation_scale 0.0adb shell settings put global transition_animation_scale 0.0adb shell settings put global animator_duration_scale 0.0adb shell settings put system screen_auto_brightness_adj 1.0(这将屏幕设置为 48Hz 刷新率,如果不想这样,请勿将其放入 bat 列表中。)
adb shell settings put system peak_refresh_rate 48.0adb shell settings put system min_refresh_rate 1.0提升移动网络性能
改进网络数据传输 (3G/4G/5G) 同时,它将在无 root 的情况下屏蔽 90-95% 的广告和色情网站。 禁用某些节流,默认在启动时启用移动数据并启用辅助 GPS
adb shell settings put global network_recommendations_enabled 0adb shell settings put global network_scoring_ui_enabled 0adb shell settings put global tether_offload_disabled 0adb shell settings put global wifi_power_save 0adb shell settings put global enable_cellular_on_boot 1adb shell settings put global mobile_data_always_on 0adb shell settings put global ble_scan_always_enabled 0adb shell settings put global private_dns_specifier family.adguard-dns.com通过修复信号质量来提升网络速度(不适用于所有设备)
adb shell settings put global preferred_network_mode 9,9提升手机电源管理
通过禁用自适应睡眠算法来改进手机的睡眠方式。 如果你收到消息应用程序的通知延迟,请前往设置,应用,进入消息应用,电池并设置为 无限制。 不要使用第三方或 OEM 应用程序来执行此操作。我不建议这样做,因为效果不会如预期。 建议:移除所有第三方清理或设备护理应用程序,以便算法正确工作。
adb shell settings put global sem_enhanced_cpu_responsiveness 0adb shell settings put global enhanced_processing 0adb shell settings put global app_standby_enabled 0adb shell settings put global adaptive_battery_management_enabled 0adb shell settings put global app_restriction_enabled trueadb shell settings put system intelligent_sleep_mode 0adb shell settings put secure adaptive_sleep 0adb shell settings put global automatic_power_save_mode 0禁用 Android 省电模式,如果想重新启用,请前往设置或在命令中将 low_power 设置为 1。
adb shell settings put global low_power 0adb shell settings put global dynamic_power_savings_enabled 0adb shell settings put global dynamic_power_savings_disable_threshold 20禁用 Android 屏幕保护程序以获得更好的电池续航
adb shell settings put secure screensaver_enabled 0adb shell settings put secure screensaver_activate_on_sleep 0adb shell settings put secure screensaver_activate_on_dock 0加快长按延迟
adb shell settings put secure long_press_timeout 250adb shell settings put secure multi_press_timeout 250通话功能。启用额外的通话音量和降噪
增加通话音量
adb shell settings put system call_extra_volume 1在通话中启用降噪
adb shell settings put system call_noise_reduction 1禁用接听电话时的振动
adb shell settings put system call_answer_vib 0禁用结束通话时的振动
adb shell settings put system call_end_vib 0禁用从 Samsung Contacts 应用中滑动拨打电话/发送消息
adb shell settings put global swipe_to_call_message 0更改手机名称
adb shell settings put secure bluetooth_name "device name"adb shell settings put global device_name "device name"adb shell settings put global synced_account_name "device name"系统声音和振动
禁用一些系统控制声音和振动,例如: 导航
adb shell settings put system navigation_gestures_vibrate 0锁屏
adb shell settings put system lockscreen_sounds_enabled 0相机
adb shell settings put system camera_feedback_vibrate 0adb shell settings put system sound_effects_enabled 0
启用与铃声同步的振动
adb shell settings put system sync_vibration_with_ringtone 1adb shell setting put system sync_vibration_with_ringtone_2 1启用与通知同步的振动
adb shell settings put system sync_vibration_with_notification 1通用振动
adb shell settings put system haptic_feedback_enabled 0adb shell settings put system SEM_VIBRATION_FORCE_TOUCH_INTENSITY 0adb shell settings put system SEM_VIBRATION_NOTIFICATION_INTENSITY 0adb shell settings put system SEM_VIBRATION_RING_INTENSITY 5adb shell settings put system vibrate_when_ringing 0adb shell settings put system vibration_sound_enabled 0adb shell settings put system VIB_FEEDBACK_MAGNITUDE 0adb shell settings put system VIB_RECVCALL_MAGNITUDE 0电源音效
adb shell settings put global power_sounds_enabled 0充电
adb shell settings put secure charging_vibration_enabled 0adb shell settings put secure charging_sounds_enabled 0adb shell settings put secure adaptive_charging_enabled 0蓝牙音频编解码器
adb shell settings put secure bluetooth_a2dp_bt_uhq_state 1adb shell settings put secure bluetooh_a2dp_uhqa_support 1
Disabling Google Features, if you want to enable change 0 to 1
Android Auto
adb shell settings put system gearhead:driving_mode_settings_enabled 0GSM Tweak
adb shell settings put secure assistant 0adb shell settings put secure smartspace 0adb shell settings put global google_core_control 0adb shell settings put secure adaptive_connectivity_enabled 0adb shell settings put secure systemui.google.opa_enabled 0Disable Android's Motion Engine Sensor (can save some battery) also disables some adaptive sleep bad features
adb shell settings put system master_motion 0adb shell settings put system motion_engine 0adb shell settings put system air_motion_engine 0adb shell settings put system air_motion_wake_up 0adb shell settings put system intelligent_sleep_mode 0adb shell settings put secure adaptive_sleep 0Disabling Online Manual URL and Remote Support (Samsung ONE UI, All version with/o Tips Installed)
adb shell settings put global online_manual_url 0adb shell settings put system remote_control 0Improve app launch times for Samsung Phones (and telemetry in Vanilla Android)
adb shell settings put global activity_starts_logging_enabled 0adb shell settings put secure send_action_app_error 0adb shell settings put global bixby_pregranted_permissions 0adb shell settings put system send_security_reports 0adb shell settings put system rakuten_denwa 0Audio Quality Improving in phones
adb shell settings put system tube_amp_effect 1adb shell settings put system k2hd_effect 1Enable Multimedia Packet Scheduler (Also you can do by going in Developer Options from Settings)
adb shell settings put system multicore_packet_scheduler 1Killing Game Optimizing Service (GOS in Samsung) 👆GOS
adb shell settings put secure game_auto_temperature_control 0adb shell pm clear --user 0 com.samsung.android.game.gosadb shell settings put secure gamesdk_version 0adb shell settings put secure game_home_enable 0adb shell settings put secure game_bixby_block 1Block Galaxy System Updates (Policy and/or Device Update) (not interference with Galaxy Store Update or with F/OTA Updates)
adb shell settings put global galaxy_system_update_block 1OLED Screen Tweak
adb shell settings put global burn_in_protection 1Improve Touchscreen Responsiness and Latency on Android Phones
adb shell settings put secure tap_duration_threshold 0.0adb shell settings put secure touch_blocking_period 0.0Disable Background Scanning for Devices (Bluetooth, Nearby Devices)
adb shell settings put system nearby_scanning_permission_allowed 0adb shell settings put system nearby_scanning_enabled 0adb shell settings put global ble_scan_always_enabled 0Disable hotword detection (OK Google, or Hey Google) in-background detection (improves baterry)
adb shell settings put global hotword_detection_enabled 0Another Samsung Phone Settings
Samsung 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 1Disable RAM Plus
adb shell settings put global ram_expand_size_list 0adb shell settings put global zram_enabled 0Refresh phone commands (these helps to refresh phone apps by a bit of boost)
adb shell cmd package compile -m speed-profile -a adb shell cmd package bg-dexopt-job adb shell pm trim-caches 999999999999999999Developer Options
adb shell settings put global development_settings_enabled 1Wifi Tweaks
adb shell settings put global wifi_poor_connection_warning 0 adb shell