OSDN Git Service

Fix MMS delivery issue by permitting HTTP from Settings app.
authorAlex Klyubin <klyubin@google.com>
Mon, 21 Sep 2015 19:02:46 +0000 (12:02 -0700)
committerAlex Klyubin <klyubin@google.com>
Mon, 21 Sep 2015 19:29:32 +0000 (12:29 -0700)
commitf41fffb8d28d1547654ea96129d8778c97568c71
tree394aa7e09c05ed008b3f27e35acbf0e6a3f728d1
parent2d0db3098ebdbe20a0cbe4a8afc7b8e593317d3b
Fix MMS delivery issue by permitting HTTP from Settings app.

MMS delivery may fail on carriers which use cleartext HTTP for MMS,
due to an issue introduced in Android M. The cause is that the
platform-provided HTTP stack refuses cleartext HTTP from the MMS
service process because other packages (Settings app,
TelephonyProvider) loaded into the com.android.phone process declare
a policy that cleartext network traffic is not permitted. The issue
might be non-deterministic because the policy depends on the order in
which packages are loaded into the process.

From the perspective of platform-provided HTTP stacks, whether
cleartext HTTP traffic is permitted is a per-process setting. It is
set by the framework based on the policy of the package due to which
the process is started. Further packages loaded into the process do
not affect the per-process policy. This means all packages which may
be loaded into the same process must use the same cleartext network
traffic policy.

This fix relaxes the network security policy of the Settings app to
permit cleartext network traffic, so that all packages loaded into
the com.android.phone process uses the same policy.

Bug: 24222050
Change-Id: Id6d0018b30782c349963d92799d74266e5001729
AndroidManifest.xml