monitor changes in a file or directory?

前端 未结 2 817
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-08 17:32

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

相关标签:
2条回答
  • 2021-02-08 17:57

    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:01

    I think FileObserver is what you are looking for

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