Commit graph

292 commits

Author SHA1 Message Date
Tad
f1d747b739
Better handle notifcation actions
Signed-off-by: Tad <tad@spotco.us>
2023-12-25 22:43:39 -05:00
Tad
5b423016dc
Small crash fix
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>
2023-12-25 20:54:29 -05:00
Tad
72d1f97a96
More fixes
- 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>
2023-12-25 16:43:34 -05:00
Tad
71cc9157a7
Fixup signature count miscalculation when database already loaded
Signed-off-by: Tad <tad@spotco.us>
2023-12-25 14:39:48 -05:00
Tad
ee3b4fed72
Tweaks
- Add signature count back to notification too
- Ignore hashes of empty content

Signed-off-by: Tad <tad@spotco.us>
2023-12-25 14:30:03 -05:00
Tad
a323b45373
Show the approximate signature count
Signed-off-by: Tad <tad@spotco.us>
2023-12-25 14:10:40 -05:00
Tad
6de29e5a40
Handle all detections via notifications
Also add actions to lookup, delete/uninstall, or ignore the detection

Signed-off-by: Tad <tad@spotco.us>
2023-12-24 18:19:11 -05:00
Tad
dfabf6b9ff
Normalize all strings to lower-case and add self-test function
Signed-off-by: Tad <tad@spotco.us>
2023-12-22 19:07:01 -05:00
Tad
fa25395a08
Database downloader changes
- Store the new database separately and move into place
- Check for network connection before trying to download
- Don't immediately delete the database on download start
- Only delete new database on download failure
- Wait until all downloads complete before attempting reload

Signed-off-by: Tad <tad@spotco.us>
2023-12-22 16:05:03 -05:00
Tad
55305f88f1 Declare QUERY_ALL_PACKAGES
Signed-off-by: Tad <tad@spotco.us>
2023-12-22 14:59:47 -05:00
Tad
1c29038125
Directly load the pre-processed bloom filters
No more conversion, much quicker loading, much smaller downloads

Signed-off-by: Tad <tad@spotco.us>
2023-12-21 23:30:41 -05:00
Tad
a004d22c07
Fixup
Signed-off-by: Tad <tad@spotco.us>
2023-12-21 20:07:14 -05:00
Tad
7ae8069c1b
Overhaul to use a bloom filter instead of a HashMap
Signed-off-by: Tad <tad@spotco.us>
2023-12-21 20:02:03 -05:00
Tad
3bd703d6b8
Add support for the MalwareBazaar database
Signed-off-by: Tad <tad@spotco.us>
2023-12-19 17:06:22 -05:00
Manuel-Senpai
47d2f58b67
Update arrays.xml
Updated arrays.xml file

Signed-off-by: Manuel-Senpai <120992090+Manuel-Senpai@users.noreply.github.com>
2023-12-12 17:11:09 +00:00
cardpuncher
795d0af79a Update strings.xml
No biggie, simplify a string.

Signed-off-by: cardpuncher <64688741+cardpuncher@users.noreply.github.com>
2023-08-12 20:12:40 +00:00
Tad
d2c37470e0
Bump for release
Signed-off-by: Tad <tad@spotco.us>
2023-07-09 10:41:13 -04:00
Dimitris Vagiakakos
53160d8748 Create arrays.xml in Greek folder
Signed-off-by: Dimitris Vagiakakos <50751574+sv1sjp@users.noreply.github.com>
2023-07-09 14:32:36 +00:00
Dimitris Vagiakakos
ac68981425 Greek Translation of Hypatia has been added in values-el
Signed-off-by: Dimitris Vagiakakos <50751574+sv1sjp@users.noreply.github.com>
2023-07-09 14:32:36 +00:00
Tad
1d8fdfb4cf
Bump
Signed-off-by: Tad <tad@spotco.us>
2023-05-27 00:07:41 -04:00
Tad
591205b332
Bump for release
Signed-off-by: Tad <tad@spotco.us>
2023-05-22 11:41:52 -04:00
Tommaso Fonda
3c1cbca920 Update and improve the Italian translations
Add three missing strings, remove useless and plain wrong capitalization of
letters, and fix existing ugly translations.
2023-05-22 15:35:09 +00:00
Tad
22cc72ab87
Fix the downloader
With all databases enabled the ThreadPool queue is exceed (25>16).
This normally isn't an issue for other users of the pool as it will get pushed onto the main thread.
But Android prohibits network activity on the main thread, which the downloader runs from.

Increase it 32 which should be suitable for now.
Maybe consider adding a separate pool in future.

Fixes https://github.com/Divested-Mobile/Hypatia/issues/34
Fixes https://gitlab.com/divested-mobile/hypatia/-/issues/31

Signed-off-by: Tad <tad@spotco.us>
2023-05-15 23:54:59 -04:00
Tad
e018000c46
Tweak
Signed-off-by: Tad <tad@spotco.us>
2023-05-15 23:52:00 -04:00
t1011
4b7e259f56 Update strings.xml
add russian translate

Signed-off-by: t1011 <31567272+t1011@users.noreply.github.com>
2023-05-14 15:48:10 +00:00
Tad
61bf212e17
Bump version for new translations
Closes https://github.com/Divested-Mobile/Hypatia/pull/18
Closes https://github.com/Divested-Mobile/Hypatia/pull/28
Closes https://github.com/Divested-Mobile/Hypatia/pull/35
Closes https://gitlab.com/divested-mobile/hypatia/-/merge_requests/10

Signed-off-by: Tad <tad@spotco.us>
2023-05-04 16:36:14 -04:00
cardpuncher
3c0cde0bde Updated French and added Turkish translations
Signed-off-by: cardpuncher <64688741+cardpuncher@users.noreply.github.com>
2023-05-04 16:07:38 -04:00
Manuel-Senpai
86f7a265c3 Updated Spanish translation
Updated Spanish translation.
Is there a way to notify when translatable strings are added, so that they can be translated in time for the release of a new version?
Best regards

Signed-off-by: Manuel-Senpai <120992090+Manuel-Senpai@users.noreply.github.com>
2023-05-04 15:56:36 -04:00
Manuel-Senpai
4bfe0a8654 Updated strings.xml in Spanish
Updated translation of the last added strings.
Greetings

Signed-off-by: Manuel-Senpai <120992090+Manuel-Senpai@users.noreply.github.com>
2023-05-04 15:56:36 -04:00
Manuel-Senpai
0bf900230b Corrections in the Spanish translation 2023-05-04 15:56:36 -04:00
Sdarfeesh Sdarfeesh
46523b883b Simplified Chinese Translation 2023-05-04 15:56:16 -04:00
Balthazar1234
354fc0b285 Update German translations
I corrected and inserted a few translations, i hope I've done everything correctly because it's my first time using github. Thanks for your wonderful app!
2023-05-04 15:55:54 -04:00
Tad
b547d6cc82
Downgrade Apache Commons
To fix compatbility with ancient Android versions
Closes https://gitlab.com/divested-mobile/hypatia/-/issues/30

Signed-off-by: Tad <tad@spotco.us>
2023-04-24 18:09:51 -04:00
Tad
944985e894
Bump for release
Signed-off-by: Tad <tad@spotco.us>
2023-04-19 15:12:17 -04:00
Tad
46a71362af
Missing in-app credits
Signed-off-by: Tad <tad@spotco.us>
2023-04-16 13:27:27 -04:00
Tad
44d2d1c905
GPG signature verification for databases
TODO: inform user if verification fails or key is unavailable

Signed-off-by: Tad <tad@spotco.us>
2023-04-16 13:08:25 -04:00
Tad
76d06b504f
Add support for the Echap stalkerware database
Signed-off-by: Tad <tad@spotco.us>
2023-03-06 20:16:32 -05:00
Tad
d052fff807
Small tweaks
Signed-off-by: Tad <tad@spotco.us>
2023-02-07 11:58:17 -05:00
Tad
1fcaab82b8
Make the app smaller
Signed-off-by: Tad <tad@spotco.us>
2023-02-07 11:30:30 -05:00
Tad
1ab21d949a Small update
Import keys when gradle can't:
gpg --no-default-keyring --keyring ./verification-keyring.gpg --recv-keys

Signed-off-by: Tad <tad@spotco.us>
2023-01-31 22:34:51 -05:00
Tad
4c65d96a81
Increase hash length due to false positive repots
Signed-off-by: Tad <tad@spotco.us>
2023-01-31 14:48:09 -05:00
Tad
833eae3841 Don't trim hashes as much
Collisions

Signed-off-by: Tad <tad@spotco.us>
2022-12-15 06:39:03 -05:00
Tad
745d70ced5
Various optimizations
- Trim hashes to 8 characters instead of 12. Saves ~10MB by default.
- Optimized databases. Saves ~8MB by default.
- Deduplicated strings. Saves ~12MB by default.

idle usage on arm64
- With defaults: ~165MB, previously ~195MB
- With all databases: ~350MB, previously ~650MB

Signed-off-by: Tad <tad@spotco.us>
2022-12-15 06:29:35 -05:00
Tad
7d774092c6
Add support for the Amnesty International Investgations database
Signed-off-by: Tad <tad@spotco.us>
2022-12-06 12:53:48 -05:00
Tad
58e35b7488
Refine the Spanish translations, credit @senpai33
Closes https://gitlab.com/divested-mobile/hypatia/-/issues/25

Also removes a unused string

Signed-off-by: Tad <tad@spotco.us>
2022-12-04 11:20:37 -05:00
Tad
0940066459
Fixup inability to fully scan on Android 11 and higher
Signed-off-by: Tad <tad@spotco.us>
2022-12-03 16:09:15 -05:00
Tad
6149166f6b
Themed app icon support
Signed-off-by: Tad <tad@spotco.us>
2022-10-17 21:01:24 -04:00
Tad
3c0307c1fc Crash fix
Fixes https://gitlab.com/divested-mobile/hypatia/-/issues/23
Fixes https://gitlab.com/divested-mobile/hypatia/-/issues/20

Signed-off-by: Tad <tad@spotco.us>
2022-08-21 20:48:09 -04:00
Tad
63811cc62b Update dependencies
Signed-off-by: Tad <tad@spotco.us>
2022-08-21 19:42:41 -04:00
Tad
2b878f2058 Bump version for translations
Signed-off-by: Tad <tad@spotco.us>
2022-07-14 00:27:51 -04:00