Archiving ClockworkMod Backups on Android 4.2

On my Samsung Galaxy Nexus, I have CyanogenMod 10.1, which is based on Android 4.2. In previous versions of Android, I would copy the ClockworkMod backups from /data/media/clockworkmod/backup to my PC. In Android 4.2, connecting with adb shell won’t let you look at the data directory. To fix this, you need to set root permission in Settings > Developer Options > Root access. (If you don’t see Developer Options, it’s because it’s hidden by default in 4.2 and up. Go to Settings > About phone and tap Build number seven times to enable it.) Once in Root Access, select either ADB only or Apps and ADB. Then run adb root before adb shell. Now you’ll have permissions to see the /data directory.

The ClockworkMod backups are still in the same location, so you can get them with adb pull /data/media/clockworkmod/backup.