SAAF-Developers / saaf

The Static Android Analysis Framework.
Other
36 stars 18 forks source link

Daemon Mode/Watched Folder #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In order to integrate SAAF with existing infrastructure it must be possible to 
have it run as a daemon that watches a folder for new apks and kicks off an 
analysis for them.

The idea behind doing this via a watched folder and an output folder is that it 
requires far less effort than creating a full fledged client server design with 
an API. In addition it has very little requirements on the software that 
provides the samples.

Original issue reported on code.google.com by linux.ni...@gmail.com on 10 Jun 2013 at 1:02

GoogleCodeExporter commented 9 years ago
Since w already have a dependency on Commons IO this should work:
http://andreinc.net/2012/06/30/writing-a-simple-file-monitor-in-java-using-commo
ns-io/

Startup could be rewritten like this:
1. Have a Queue that contains the apks to analyze
2. Have it filled:
- from a file list
- from recursively walking a directory tree
- from a thread that watches a folder 
3. Take work from queue forever (daemon mode) or until everything has been 
processed (normal CLI mode)

Original comment by linux.ni...@gmail.com on 10 Jun 2013 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by linux.ni...@gmail.com on 20 Sep 2013 at 3:31