Sync local audiobook folders to an Android phone over adb and verify integrity. Use when a user wants audiobook transfer to /sdcard/Audiobooks, when MTP is unreliable, or when transfer correctness must be confirmed with local-vs-phone file and byte checks.
Use adb as the primary transfer path for Android audiobook sync. Prefer deterministic transfer + verification over best-effort copy.
adb devices -l.unauthorized, stop and ask user to unlock phone and accept USB debugging prompt.device.adb shell 'mkdir -p /sdcard/Audiobooks'.adb push "<local-folder>" "/sdcard/Audiobooks/"
files pushed, bytes, duration).find "<local-folder>" -type f | wc -l
find "<local-folder>" -type f -exec stat -c%s {} \; | awk '{s+=$1} END {print s+0}'
adb shell "find '/sdcard/Audiobooks/<folder>' -type f | wc -l"
adb shell "find '/sdcard/Audiobooks/<folder>' -type f -exec stat -c%s {} \\; | awk '{s+=\$1} END {print s+0}'"
OK only when both values match.Return:
files local/phone, bytes local/phone, OK|DIFF)ALL_OK or HAS_DIFF