Script to backup Google Authenticator secrets as QR-codes

Requirements

A rooted phone and a google authenticator full of secrets, connected with an USB cable to a computer with:
  • python3
  • adb (Android SDK)
  • qrencode
  • ImageMagick (+ ghostview for the labels if using brew)

Usage

Connect the phone, run, save or print or acquire the codes.

Sources