thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Application & OT Security · Advanced

Android Network Security Configuration

An XML file that declares an Android app's network security settings, such as cleartext policy, trusted CAs and certificate pins.

Definition

Since Android 9 cleartext traffic is disabled by default for apps targeting it; apps can also restrict trust to specific CAs, exclude user-installed CAs and pin certificates per domain without code changes.

Example

A network_security_config.xml pins the API domain to two public key hashes and sets cleartextTrafficPermitted to false.

Exam tip

Declarative alternative to custom TrustManager code on Android.

Related terms