#!/sbin/sh # # Backup and restore proprietary Android system files # C=/tmp/backupdir S=/system V=KalimAz PROCEED=1; check_prereq() { if ( ! grep -q "^ro.modversion=.*$V.*" /system/build.prop ); then echo "Not backing up files from incompatible version."; PROCEED=0; fi } check_installscript() { if [ -f "/tmp/.installscript" ]; then echo "/tmp/.installscript found. Skipping backuptool." PROCEED=0; fi } get_files() { cat < $C/fixed_custom_backup_list.txt L=`cat $C/fixed_custom_backup_list.txt` cat <