Commit graph

218 commits

Author SHA1 Message Date
Tavi
52b79bf526
LinkScannerService: don't repeatedly scan
- 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>
2024-05-25 18:49:56 -04:00
Tavi
7dfa3a7267
Typo
Signed-off-by: Tavi <tavi@divested.dev>
2024-05-24 09:33:02 -04:00
Tavi
8fb829ca6d
LinkScanner: performance improvements
Signed-off-by: Tavi <tavi@divested.dev>
2024-05-23 11:39:27 -04:00
Tavi
ff2e34e49e
Tweaks
Signed-off-by: Tavi <tavi@divested.dev>
2024-05-23 09:11:26 -04:00
Tavi
02dd4f624e
Ability to scan screen content for malicious links
Signed-off-by: Tavi <tavi@divested.dev>
2024-05-22 20:09:16 -04:00
Tavi
cde1d8ff69
Fixup credits, missed in previous bump
Signed-off-by: Tavi <tavi@divested.dev>
2024-05-17 10:00:37 -04:00
Tavi
8d9314ef97
Add the Cloudflare mirror and bump version
Signed-off-by: Tavi <tavi@divested.dev>
2024-05-17 09:20:56 -04:00
SkewedZeppelin
2ca21ff08a
Merge pull request #81 from t1011/stable
Update strings.xml
2024-05-05 15:09:34 +00:00
t1011
17a941d875
Update strings.xml
updated translation into Russian

Signed-off-by: t1011 <31567272+t1011@users.noreply.github.com>
2024-05-05 11:16:04 +03:00
lucasmz
ca5dd5a8b6
Add back random empty line 2024-05-04 19:47:34 -03:00
lucasmz
2a56497f9c
`` 2 2024-05-04 19:42:38 -03:00
lucasmz
508a3f0147
Actually, leave the colonizers alone 2024-05-04 19:35:55 -03:00
lucasmz
433df31650 Fix missing \n 2024-04-21 16:09:25 -03:00
lucasmz
a2da80d906 Translate new lines in arrays.xml 2024-04-21 15:57:49 -03:00
lucasmz
56b76a4de1 Update credits to reference Portuguese instead of Brazilian PT 2024-04-21 15:51:18 -03:00
lucasmz
36e1309d47 Remove PT-BR translations (again) 2024-04-21 15:46:56 -03:00
lucasmz
0f0e9f7267 Merge remote-tracking branch 'refs/remotes/origin/stable' into stable 2024-04-21 15:43:29 -03:00
lucasmz
d94cca8647 Replace the removed PT translation with the PT-BR translation 2024-04-21 15:31:44 -03:00
lucasmz
f7830aff9a Remove PT translation 2024-04-21 15:30:16 -03:00
lucasmz
e04b10f78f Correction - 2 2024-04-21 15:29:33 -03:00
lucasmz
08d3bae567 Corrections to PT-BR app translations 2024-04-21 15:27:18 -03:00
Tavi
7d51ea5896
Reduce size of app
Signed-off-by: Tavi <tavi@divested.dev>
2024-04-21 14:08:08 -04:00
Tavi
595dbc306c
Add the Galician tranlsations from @ghose
+ bump version
+ enable pt-rBR
+ closes https://gitlab.com/divested-mobile/hypatia/-/issues/51

Signed-off-by: Tavi <tavi@divested.dev>
2024-04-20 20:47:47 -04:00
lucasmz
d1506260c6 Add credits for PT-BR 2024-04-20 02:39:21 -03:00
lucasmz
59ac3a1319 Add PT-BR translations for the app 2024-04-20 02:17:47 -03:00
Tavi
8ab60efed9
Fixup
Signed-off-by: Tavi <tavi@divested.dev>
2024-04-11 12:13:21 -04:00
SkewedZeppelin
f3a65a521c
Merge pull request #74 from Tomoms/stable
Update Italian translations
2024-03-11 15:33:38 +00:00
Tommaso Fonda
c529e6ad0d Update Italian translations 2024-03-11 16:31:25 +01:00
thereisnoanderson
357ac70e44 add & change to german translations
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.
2024-03-04 17:55:29 +00:00
Tavi
44d544305f
Typo fix
Fixes https://github.com/Divested-Mobile/Hypatia/issues/72

Signed-off-by: Tavi <tavi@divested.dev>
2024-02-28 07:19:17 -05:00
Tavi
898af0ecfd
Bump for release
Signed-off-by: Tavi <tavi@divested.dev>
2024-02-27 01:46:45 -05:00
Fjuro
b3e0b78832 Add Czech strings translation 2024-02-26 15:14:12 +00:00
Fjuro
f6d64104ca Add Czech arrays translation 2024-02-26 15:13:54 +00:00
Fjuro
d1510b0937 Create values-cs 2024-02-26 15:13:26 +00:00
t1011
d6eda648fd
Update strings.xml
Signed-off-by: t1011 <31567272+t1011@users.noreply.github.com>
2024-02-12 23:41:29 +03:00
t1011
e51fcba496
Update russian translate
Signed-off-by: t1011 <31567272+t1011@users.noreply.github.com>
2024-02-11 15:49:30 +03:00
Tavi
24bfbec9ae
Updated Spanish translations from @gallegonovato
Closes https://codeberg.org/divested-mobile/hypatia/issues/1

Signed-off-by: Tavi <tavi@divested.dev>
2024-02-01 15:03:01 -05:00
cardpuncher
2e8cf0e18f
Add files via upload
Update French & Turkish translations.

Signed-off-by: cardpuncher <64688741+cardpuncher@users.noreply.github.com>
2024-01-13 18:13:33 +03:00
Tad
fedca835d6
Crash fixes
Also adds an icon
Closes https://gitlab.com/divested-mobile/hypatia/-/issues/37

Signed-off-by: Tad <tad@spotco.us>
2023-12-30 14:39:09 -05:00
Tad
a0f6a00244
Many changes
- 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>
2023-12-29 00:57:58 -05:00
Tad
486d96e10c
Extended database option
Signed-off-by: Tad <tad@spotco.us>
2023-12-27 16:26:36 -05:00
Tad
c242c1fa75
Restore support for Jelly Bean
+ code cleanup

Signed-off-by: Tad <tad@spotco.us>
2023-12-26 19:34:33 -05:00
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