如何通过lua脚本及时更新Android的MediaStore?

lua脚本将下载您Android手机上的图片和视频,您需要重新启动手机才能找到它。在搜索相关信息后,我发现它与MediaStore有关,但是lua脚本代码不知道如何编写它。您能帮助我吗?谢谢

点赞
用户14634788
用户14634788
一切取决于你:

path = userPath().."/res/1.mp4" os.execute("am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file://"..path)

```

2020-11-19 05:27:38