You are here: Configuring Your Computer > Install platform SDKs and their emulators > Android SDK > Android 9 Behavioral Changes

Android 9 Behavioral Changes

In this document, we will explain the various Android 9 (version Pie and API Level 28) behavioral changes that are observed when apps use Android targetSDK version 28 and run on Android 9.0 devices.

Network Security

Android Pie recommends using secure https connections henceforth. Network connections with scheme as http do not work on apps targeting Android Pie.

HTTP connections will fail with the following exception message: Cleartext HTTP traffic to * not permitted

Consequently, you must migrate all http URLs to https URLs used in (Undefined variable: MyVariables.MADP) Android application.

If your app needs to enable cleartext for specific domains, you must explicitly set cleartextTrafficPermitted to true for those domains in your app's Network Security Configuration.

For example, if you want to permit clear text traffic to google.com and its sub-domains, use the following network_security_config.xml.

<?xml version = "1.0" encoding = "utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted = "true">
<domain includeSubdomains = "true">
google.com </domain> </domain-config> </network-security-config>

For more information, click here.

Restrictions on the Use of non-SDK Interfaces

For apps running on Android 9 (API level 28), Android introduces new restrictions on the use of non-SDK interfaces, whether directly, via reflection, or via JNI. For more information on these restrictions, click here.

For more information on the types of SDK interfaces and their descriptions, click here.

Copyright © 2013 Kony, Inc. All rights reserved.