Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0b6e6b4 authored by Thiébaud Weksteen's avatar Thiébaud Weksteen
Browse files

Keep existing policy when calling setCleartextTrafficPermitted

When calling setCleartextTrafficPermitted, the NetworkSecurityPolicy is
replaced with a new policy, with a specific value for
cleartextTrafficPermitted. It means that any other attribute of the
policy is dropped (i.e., isCertificateTransparencyVerificationRequired).

Update setCleartextTrafficPermitted to overlay the current policy
instead of replacing it. Rename FrameworkNetworkSecurityPolicy to
OverlayNetworkSecurityPolicy to better reflect the behaviour of this
class.

Bug: 354824117
Test: presubmit
Test: atest CtsSecurityTestCases:android.security.cts.StagefrightTest
Flag: EXEMPT bugfix
Change-Id: I653f4cf78ee34b0a9b1ccaf21a8137c4a39365bb
parent e0150b49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment