adb image to gallery code example
Example: adb push image to gallery
Push picture
# {file_path} is the full path of the picture
adb push {file_path} /sdcard/DCIM/Camera/
Notify album refresh
# {file_name} is the image file name
adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///sdcard/DCIM/Camera/{file_name}