python image_extract.py
- Be sure to update settings.py with local paths to RSA keys and copy destination
- Rooted Android device, with setup granting superuser permissions (via Magisk, SuperSu, etc), connected via USB and in File Transfer mode
- Generally follows a similar process to how Android Studio copies files from a device to a connected PC but using adb_shell in python
- These steps include (see also: How Device File Explorer on Android Studio works)
- Create a temporary directory on device in a location accessible by
adb pull
(uses /sdcard/ by default) - Get a list of files and copy them to temp directory
- Use
adb pull
in adb_shell to copy files to PC destination - After files are transferred, deletes temporary directory on device to clean up
- Create a temporary directory on device in a location accessible by