-
Notifications
You must be signed in to change notification settings - Fork 929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate AppTP with privacy remote config #1832
Integrate AppTP with privacy remote config #1832
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything working as expected 👍 🚢 🇮🇹
d9d7ad9
to
18f24b0
Compare
319c40a
to
705fd39
Compare
705fd39
to
8031eba
Compare
8031eba
to
66b9ea0
Compare
@marcosholgado after the last commit that added the support for default values, I have added to the description one more test case to run to ensure it works as expected. |
LGTM! |
Task/Issue URL: https://app.asana.com/0/72649045549333/1202005414608950/f
Description
NOTE: originally stacked PR onto #1830 -> #1829
Integrates AppTP with privacy remote config
Steps to test this PR
Test internal builds
apptp_remote_config.db
contains a table dubbedvpn_config_toggles
vpn_config_toggles
table containsipv6Support
,privateDnsSupport
,networkSwitchHandling
andbadHealthMitigation
entries0
) for bothenabled
andisManualOverride
columns except forbadHealthMitigation
that should haveenabled
set to true (1
)VPN debug logging
,Bad health monitoring
andBad health mitigation action
toggles are ON, remaining ones should be OFFDropping ipv6
private dns
Private DNS provider hostname
toone.one.one.one
Private DNS support is disabled...skip
appearPrivate DNS support is disabled...skip
appearPrivate DNS support
ONPrivate DNS provider hostname
toone.one.one.one
Setting private DNS: ...
appear and VPN is restarted (look at the key icon in the status bar)Setting private DNS: ...
DO NOT appear and VPN is restarted (look at the key icon in the status bar)IPv6 Support
andprivate DNS support
ONprivacy_config.json
file and set theversion
to1648641758000
to force reload the remote settings on app launchAppTpFeatureConfigImpl
Skip setEnabled...
appear for bothIpv6Support
andPrivateDnsSupport
Dropping ipv6...
message in logcatTest PLAY build
AppTPHealthMonitor:simulateHealthStatusIfEnabled
method, so that the firstif
condition isif (!appBuildConfig.isDebug)
Private DNS support is disabled...skip
appears when trying to set private DNS from Android settings= [ ] filter logcat by
AppBadHealthStateHandler
BAD HEALTH
buttonAppBadHealthStateHandler: Restarting the VPN....
message appears in logcat after a whileGOOD HEALTH
and wait forno alerts
messageCRITICAL HEALTH
Restarting the VPN...
meessage appears and the diagnostics screen is killed (becauase we killed that process)Test app update
apptp_remote_config.db
databaseVPN debug logging
andBad health monitoring
andBad health mitigation
toggles are ONView diagnostics Data
CRITICAL HEALTH
apptp_remote_config.db
exists and it has an EMPTYvpn_config_toggles
tableVPN debug logging
andBad health monitoring
andBad health mitigation
toggles are ONView diagnostics Data
CRITICAL HEALTH
IPv6 support
vpn_config_toggles
db table contains theipv6Support
entry withenabled
andisManuallyOverride
columns set to1
ipv6 support
toggle is still ONvpn_config_toggles
db table contains theipv6Support
entry withenabled
andisManuallyOverride
columns set to1
Test remote config updates
CONFIG
section are OFFvpn_config_toggles
table in theapptp_remote_config.db
also has entries for all toggles (only badHealthMitigation` entry is enabled)vpn_config_toggles
table in theapptp_remote_config.db
also has the ipv6 config as enabled and withisManuallyOverride
set to0