📜  adb 将图像推送到画廊 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:31.937000             🧑  作者: Mango

代码示例1
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}