- have the system only send 10 events a second, instead of 1000
- don't scan the same package+class name more than once a second
- put each event view scanner on its own thread keyed by package+class
- don't scan if there is already an existing thread for the package+class
this can still cause high cpu usage on views with lots of text
especially if the user continually interacts with it
but is overall much better
to recap:
- a given package+class can only be scanned at most once a second
- a given package+class can only have one scanner at a time
- text to scan will not be scanned if already scanned
- domains to scan will not be scanned if already scanned
Signed-off-by: Tavi <tavi@divested.dev>
some enhanced descriptions added translations and some overall enhancements in terms of "making sure the descriptions aren't too generalized as possible" because some translated functions could need more depth to describe its actual function in a securely matter. Other descriptions could have a more simplified form.
- Fix signature count reseting on update but not changed
- Better handle reloads for extended
- Metered connection warning
- Block all actions when appropriate
- Use a wakelock instead of keeping the screen on
- Increase max scan sizes
- Always check if files can be read before scanning
- Resolve true paths to avoid duplicates from symlinks
- Scan more app paths
- Scan more system paths
- Bump version
Signed-off-by: Tad <tad@spotco.us>
Tested on Android 7.1.2, 8.1.0, 10, 11, and 13:
- Install app
- Update databases
- Write test files
- Enable system scan
- Run a scan
- Check signature count
- Enable realtime scanner
- Write test files
- Ignore a detection
- Look up a detection
- Delete a detection
- Copy file over MTP and confirm detection
Signed-off-by: Tad <tad@spotco.us>
- Fixup SHA1 hash calculation
- Show full notification text when expanded
- Make basic self test more robust
- Add a self test option that actually writes files
- Bump version to 3.0, since all previous versions are basically completely broken garbage
Signed-off-by: Tad <tad@spotco.us>