Created
September 2, 2024 22:53
-
-
Save tytydraco/2f0b01812af8bff608a404cda8a17461 to your computer and use it in GitHub Desktop.
Disable or enable OTA updates for Samsung phones.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
PKGS=( | |
com.sec.android.soagent | |
com.wssyncmldm | |
com.samsung.sdm | |
) | |
MODE="$1" | |
for pkg in "${PKGS[@]}"; | |
do | |
if [[ "$MODE" == "enable" ]]; then | |
echo "pm enable-user $pkg" | |
pm enable "$pkg" | |
else | |
echo "pm disable-user $pkg" | |
pm disable-user "$pkg" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment