5538 notifications for fake loc ipscrambling
Description
Fake location and Hide My IP have side effects. To reminder the user about that, when Fake location
and Hide my IP
are enabled, display a notification to the user. It will remind them that there is something "not real" on the device. The user has the possibility to read the whole notification if it is cut before tapping on it. The notification is removable.
Fake location:
- text:
Fake location is on, all apps using your location including your navigation app are now using this fake location.
- icon:
- action when tapping the notification: send the user to the
Manage my Internet address
screen
Hide my IP:
- text:
Real IP hidden, this could impact the functioning of some applications.
- icon:
- action when tapping the notification: send the user to the
Manage my location
screen
Screenshots
Technical details
This MR is dependant on this other MR : privacymoduletor!12 (merged) on PrivacyModuleTor (to fix an orbotservice "bug").
We use here ongoing notifications (so that they stay while the feature is running). To offer the user the possibility to hide them with the system notification settings, there is a dedicated notification channel for the fake location and one for the ipscrambling feature, and we also use a private API (setBlockable), to unblock this feature for Advanced Privacy which is a system app.
Tests
Add test cases:
Update following test cases, adding notification presence check :
- Activate Ip Scrambling from 'Manage my internet address' screen
- Activate fake location from Manage my location screen
- Activate Ip Scrambling from widget screen
- Activate fake location from widget
- Activate Ip Scrambling from main screen
- Activate fake location from main screen