backup/install android app from adb

search elsewhere for how to enable developer mode, and how to enable usb debugging.

#then find the fullname of the app

$adb shell 'pm list packages' |grep i foo

#Then find the path to the app

$ adb shell pm path

# then download the app

$ adb pull /data/app/

#then later or on another device restore the app

$ adb install -r base.apk