Created
June 30, 2021 23:36
-
-
Save AndroPlus-org/a788c9c3f82fd624a8b287a521f363d6 to your computer and use it in GitHub Desktop.
modem-backup
This file contains 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
su | |
cd /dev/block/bootdevice/by-name/ | |
for file in *; do | |
if [[ "${file}" == "modem" || "${file}" == "modemst1" || "${file}" == "modemst2" || "${file}" == "fsg" ]]; then dd if=/dev/block/bootdevice/by-name/"${file}" of=/sdcard/"${file}".img ; else continue ; fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run these commands line by line.
It will create modem backup to /sdcard