Issue
I need to push a folder which contains a video into Android /sdcard
and will use it as a new photo gallery.
It works well in Android 10, but I couldn't get this photo gallery in Google Pixel 4(Android 11)
$ tree newcase
newcase
└── jet_half.mp4
$ adb push newcase /sdcard
newcase/: 1 file pushed, 0 skipped. 31.7 MB/s (365194876 bytes in 10.983s)
$ adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///sdcard/newcase/jet_half.mp4
Broadcasting: Intent { act=android.intent.action.MEDIA_SCANNER_SCAN_FILE dat=file:///sdcard/newcase/jet_half.mp4 flg=0x400000 }
Broadcast completed: result=0
Solution
Android 11 will not let you touching root of external storage.
Try
/sdcard/Documents/newcase/...
Answered By - blackapps
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.