[Galaxy S II Android Development] HockeyDadNinja:
md5sum mismatch on QC2 mirror

Hi, first, thanks for your work.

I went to download and made sure to verify the md5sum as you said. However I noticed the file that came from the QC2 mirror did not have a md5sum of fdd5317c4d11843ff6a683b3ef53abca like the page said, it was 3341e69e03624e719762c3b3caaf8836. I tried another mirror (CA1) and that file did. I decided to unzip the archives and do a diff. Here's what I found. Should we be worried or was the wrong file copied up to some of the mirrors?

$ md5sum cm-11-20141108-MARKOX89-i9100-QC2.zip cm-11-20141108-MARKOX89-i9100-CA1.zip
3341e69e03624e719762c3b3caaf8836 cm-11-20141108-MARKOX89-i9100-QC2.zip
fdd5317c4d11843ff6a683b3ef53abca cm-11-20141108-MARKOX89-i9100-CA1.zip

$ diff -Nru cm-11-20141108-MARKOX89-i9100-CA1 cm-11-20141108-MARKOX89-i9100-QC2 > CA1-QC2.diff

Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/app/VideoEditor.apk and cm-11-20141108-MARKOX89-i9100-QC2/system/app/VideoEditor.apk differ
Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/app/WhisperPush.apk and cm-11-20141108-MARKOX89-i9100-QC2/system/app/WhisperPush.apk differ
Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/bin/aapt and cm-11-20141108-MARKOX89-i9100-QC2/system/bin/aapt differ
Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/bin/adb and cm-11-20141108-MARKOX89-i9100-QC2/system/bin/adb differ
diff -Nru cm-11-20141108-MARKOX89-i9100-CA1/system/bin/am cm-11-20141108-MARKOX89-i9100-QC2/system/bin/am
--- cm-11-20141108-MARKOX89-i9100-CA1/system/bin/am	1969-12-31 20:00:00.000000000 -0400
+++ cm-11-20141108-MARKOX89-i9100-QC2/system/bin/am	2008-02-29 03:33:46.000000000 -0400
@@ -0,0 +1,9 @@
+#!/system/bin/sh
+#
+# Script to start "am" on the device, which has a very rudimentary
+# shell.
+#
+base=/system
+export CLASSPATH=$base/framework/am.jar
+exec app_process $base/bin com.android.commands.am.Am "$@"
+
Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/bin/applypatch and cm-11-20141108-MARKOX89-i9100-QC2/system/bin/applypatch differ
Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/bin/app_process and cm-11-20141108-MARKOX89-i9100-QC2/system/bin/app_process differ
Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/bin/atrace and cm-11-20141108-MARKOX89-i9100-QC2/system/bin/atrace differ
Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/bin/auditd and cm-11-20141108-MARKOX89-i9100-QC2/system/bin/auditd differ
diff -Nru cm-11-20141108-MARKOX89-i9100-CA1/system/bin/backuptool.functions cm-11-20141108-MARKOX89-i9100-QC2/system/bin/backuptool.functions
--- cm-11-20141108-MARKOX89-i9100-CA1/system/bin/backuptool.functions	1969-12-31 20:00:00.000000000 -0400
+++ cm-11-20141108-MARKOX89-i9100-QC2/system/bin/backuptool.functions	2008-02-29 03:33:46.000000000 -0400
@@ -0,0 +1,37 @@
+#!/sbin/sh
+#
+# Functions for backuptool.sh
+#
+
+export C=/tmp/backupdir
+export S=/system
+export V=11
+
+backup_file() {
+ if [ -e "$1" ]; then
+ local F=`basename "$1"`
+ local D=`dirname "$1"`
+ # dont backup any apps that have odex files, they are useless
+ if ( echo "$F" | grep -q "\.apk$" ) && [ -e `echo "$1" | sed -e 's/\.apk$/\.odex/'` ]; then
+ echo "Skipping odexed apk $1";
+ else
+ mkdir -p "$C/$D"
+ cp -p $1 "$C/$D/$F"
+ fi
+ fi
+}
+
+restore_file() {
+ local FILE=`basename "$1"`
+ local DIR=`dirname "$1"`
+ if [ -e "$C/$DIR/$FILE" ]; then
+ if [ ! -d "$DIR" ]; then
+ mkdir -p "$DIR";
+ fi
+ cp -p "$C/$DIR/$FILE" "$1";
+ if [ -n "$2" ]; then
+ echo "Deleting obsolete file $2"
+ rm "$2";
+ fi
+ fi
+}
diff -Nru cm-11-20141108-MARKOX89-i9100-CA1/system/bin/backuptool.sh cm-11-20141108-MARKOX89-i9100-QC2/system/bin/backuptool.sh
--- cm-11-20141108-MARKOX89-i9100-CA1/system/bin/backuptool.sh	1969-12-31 20:00:00.000000000 -0400
+++ cm-11-20141108-MARKOX89-i9100-QC2/system/bin/backuptool.sh	2008-02-29 03:33:46.000000000 -0400
@@ -0,0 +1,101 @@
+#!/sbin/sh
+#
+# Backup and restore addon /system files
+#
+
+export C=/tmp/backupdir
+export S=/system
+export V=11
+
+# Preserve /system/addon.d in /tmp/addon.d
+preserve_addon_d() {
+ mkdir -p /tmp/addon.d/
+ cp -a /system/addon.d/* /tmp/addon.d/
+ chmod 755 /tmp/addon.d/*.sh
+}
+
+# Restore /system/addon.d in /tmp/addon.d
+restore_addon_d() {
+ cp -a /tmp/addon.d/* /system/addon.d/
+ rm -rf /tmp/addon.d/
+}
+
+# Proceed only if /system is the expected major and minor version
+check_prereq() {
+if ( ! grep -q "^ro.cm.version=$V.*" /system/build.prop ); then
+ echo "Not backing up files from incompatible version: $V"
+ return 0
+fi
+return 1
+}
+
+check_blacklist() {
+ if [ -f /system/addon.d/blacklist ];then
+ ## Discard any known bad backup scripts
+ cd /$1/addon.d/
+ for f in *sh; do
+ s=$(md5sum $f | awk {'print $1'})
+ grep -q $s /system/addon.d/blacklist && rm -f $f
+ done
+ fi
+}
+
+check_whitelist() {
+ found=0
+ if [ -f /system/addon.d/whitelist ];then
+ ## forcefully keep any version-independent stuff
+ cd /$1/addon.d/
+ for f in *sh; do
+ s=$(md5sum $f | awk {'print $1'})
+ grep -q $s /system/addon.d/whitelist
+ if [ $? -eq 0 ]; then
+ found=1
+ else
+ rm -f $f
+ fi
+ done
+ fi
+ return $found
+}
+
+# Execute /system/addon.d/*.sh scripts with $1 parameter
+run_stage() {
+for script in $(find /tmp/addon.d/ -name '*.sh' |sort -n); do
+ $script $1
+done
+}
+
+case "$1" in
+ backup)
+ mkdir -p $C
+ if check_prereq; then
+ if check_whitelist system; then
+ exit 127
+ fi
+ fi
+ check_blacklist system
+ preserve_addon_d
+ run_stage pre-backup
+ run_stage backup
+ run_stage post-backup
+ ;;
+ restore)
+ if check_prereq; then
+ if check_whitelist tmp; then
+ exit 127
+ fi
+ fi
+ check_blacklist tmp
+ run_stage pre-restore
+ run_stage restore
+ run_stage post-restore
+ restore_addon_d
+ rm -rf $C
+ sync
+ ;;
+ *)
+ echo "Usage: $0 {backup|restore}"
+ exit 1
+esac
+
+exit 0
Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/bin/bcm4330B1.hcd and cm-11-20141108-MARKOX89-i9100-QC2/system/bin/bcm4330B1.hcd differ
Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/bin/bcm4330B1_murata.hcd and cm-11-20141108-MARKOX89-i9100-QC2/system/bin/bcm4330B1_murata.hcd differ
Binary files cm-11-20141108-MARKOX89-i9100-CA1/system/bin/bcm4330B1_semcosh.hcd and cm-11-20141108-MARKOX89-i9100-QC2/system/bin/bcm4330B1_semcosh.hcd differ