add commit 'Turn auto attach on/off when we attach/detach' from CyanogenMod/android_frameworks_base