monitor changes in a file or directory?

前端 未结 2 1676

In Android, how do I monitor changes made by others (app, internet, bluetooth, dll) to a file or directory

相关标签:
2条回答
  • 2021-02-08 18:00

    No, in standard android, you don't monitor for activities of others, app, internet etc.

    Your program can only track and access your data directory. Others uses its own directories.

    But, if you have rooted a telephone, you can write/start a root process or suid process. But this solution is only valid for rooted telephones..

    0 讨论(0)
  • 2021-02-08 18:07

    I think FileObserver is what you are looking for

    0 讨论(0)
提交回复
热议问题