title: How to detect that android finished downloading in adb?
body: <p>I have a script that does some things on an android phone.. one of the things is to download some files - which I need to wait for them to download before going to the next stage..</p>
  
  <p>I tried to wait a static amount of time... didn't work because download time varies
  I tried to search if the downloaded file exists with a loop, but the filename is not constant...</p>
  
  <p>I'm looking for the way to detect if a download process from a certain process (or activity) is ongoing - via adb.. is that possible?</p>
  
  <p>Thanks </p>