OSDN Git Service

Reapply "Notify the user and turn off tethering when the service is disallowed."
authorAlexandru-Andrei Rotaru <rotaru@google.com>
Mon, 26 Jun 2017 16:31:35 +0000 (17:31 +0100)
committerAndreas Gampe <agampe@google.com>
Tue, 27 Mar 2018 18:07:58 +0000 (11:07 -0700)
commitbe8e056d0e51b69ed56e58fde8be4f369937fd89
treeb19e29a5695f0602f51c74ee1a5578825deebad1
parenta2640b6f5142697162d4f02b4134e78b268f4a4b
Reapply "Notify the user and turn off tethering when the service is disallowed."

Added UserRestrinctionListener for turning the service off one the
DISALLOW_CONFIG_TETHERING is on into Tethering.  Added notification about
tethering being turned off. Also added Unit Tests to test the functionality
of the UserRestrictionListener added.

(cherry picked from commit f8f3fbbd016d12f80c02e136ab4684da807792a1)

Bug: 27936525
Test: Turn the tehering service on (either wifi, usb or bluetooth).
Automatically the system should send a notification about the service
being active.Close settings from recents. From TestDPC User Restrictions
switch on DISALLOW_CONFIG_TETHERING. The tethering should be turned off
and a notification should appear informing that the service is inactive.

Merged-In: Ib7ea8885cedc2a842ebd4487c8b366a6666996bc
Change-Id: I500e51fb44a93e943f8566b544e7ad4983ac6a6e
core/res/res/values/strings.xml
core/res/res/values/symbols.xml
services/core/java/com/android/server/connectivity/Tethering.java