Commit Graph

3561 Commits

Author SHA1 Message Date
Todd Kennedy
40c74514df Merge "enable/disable dexopt for instant apps remotely" into oc-dev am: 5d969b9862
am: 3586115ae5

Change-Id: I2a8093b966e246ad77ee4257b81bf819443e94c2
2017-06-16 18:29:27 +00:00
Todd Kennedy
3586115ae5 Merge "enable/disable dexopt for instant apps remotely" into oc-dev
am: 5d969b9862

Change-Id: Ica29f01779c2bb504d682a2b457f861264cc00b0
2017-06-16 18:19:45 +00:00
TreeHugger Robot
5d969b9862 Merge "enable/disable dexopt for instant apps remotely" into oc-dev 2017-06-16 18:07:53 +00:00
qingxi
0ca328f420 Add API from EuiccManager to wipe eUICC data
Use EuiccManager#eraseSubscriptions(PendingIntent) to erase all the
carrier data from eUICC chip if the user choose to "Erase eSIMs" from
the system setting.

Bug: 37475183
Test: E2E
Change-Id: Iaab2640c98576fdc87ca626765329ae0398724e4
2017-06-16 00:16:14 +00:00
Dianne Hackborn
92cc8d3816 Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev
am: ef0554438f

Change-Id: I5d25640507d4c4cf61f64638d27ddf0cac67f880
2017-06-15 18:52:18 +00:00
Dianne Hackborn
84795f778b Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev
am: ef0554438f

Change-Id: I39ad3ffce83c1817bdc8aa7ab9f623d1b683d983
2017-06-15 18:52:07 +00:00
Todd Kennedy
133c5da0d9 enable/disable dexopt for instant apps remotely
Change-Id: I997b8ae515f7bf2570edca4ed7ab4b46198148a5
Fixes: 62591398
Test: Manual; install instant app and see that it doesn't dexopt
Test: Manua; update gservices flag, install instant app and see that it does dexopt
2017-06-15 09:44:34 -07:00
Dianne Hackborn
cb01563d7e Work on issue #36891897: Need to ensure foreground services...
...can't hide themselves

Tune the policies for when we tell about apps running in the
background after their services have stopped.

- If it ran while the screen was on, the time we require for it
to be running is much shorter (a couple seconds) as well as the
time we tell about it having run (with another tunable for the
minimum time we tell about this).

- If it has only run while the screen is off and stops a sufficient
amount of time before the screen goes on (currently a second) then
we will not show anything when the screen goes on.

- If it stops when the screen turns on, we will make sure the user
sees about it for a short period of time (currently 5 seconds).

Also includes some improved debug output about handler message
queues.

Test: manual

Change-Id: Iab438410d7182b2dfe4f9c1cce7069b26b34834c
2017-06-14 17:33:41 -07:00
Kevin Chyn
809393740f Add assist gesture silence and wake settings
Bug: 37427306

Test: make -j56
Change-Id: I36da4d689a2aecf0cdd5e0549ede6d3e31f0e630
2017-06-12 16:02:28 -07:00
Svetoslav Ganov
50859b50a6 Merge "Ensure only test print services enabled - framework" into oc-dev
am: 053fb9120e

Change-Id: I70220ead15eabfe58727ab5c3b0a9c92e8c508a8
2017-06-08 16:04:17 +00:00
Svetoslav Ganov
62031b8937 Merge "Ensure only test print services enabled - framework" into oc-dev
am: 053fb9120e

Change-Id: I5f07488ba286cb3d01c75d96e1003edba845daf8
2017-06-08 16:01:54 +00:00
Kevin Chyn
4fddc9fa4d Add setting and permission for assist gesture
Bug: 37427306

Test: manual
Merged-In: I659fa43fb085575df4d62e7765d88c6fd615fb7d
Change-Id: I659fa43fb085575df4d62e7765d88c6fd615fb7d
2017-06-07 21:42:55 -07:00
Svetoslav Ganov
2dcedc1276 Ensure only test print services enabled - framework
Test: cts-tradefed run cts-dev -m CtsPrintTestCas

bug:62232727

Change-Id: I1050272586d1c03dc1b1dfdb8b10e258912a249b
2017-06-07 18:50:05 -07:00
Daniel Sheng
834e5728e6 Changed camera lift trigger to default-on.
Bug: 62102062
Test: RunSettingsLibRoboTests
Change-Id: I312c07881b769968ca9fd01751778eeb947bba6e
2017-06-05 15:28:05 -07:00
TreeHugger Robot
ca8a3f49f2 Merge "Enforce call log length limit on a per PhoneAccount basis." 2017-06-05 19:17:17 +00:00
Tyler Gunn
cf264547be Enforce call log length limit on a per PhoneAccount basis.
Performing the auto delete based on the PhoneAccount of the new entry.
This ensures no one CS can cause the removal of entries by another.

Test: Manual
Bug: 38196259
Change-Id: I382cb62a1b2b7e482c49ece05f90fc982b797add
2017-06-01 14:12:54 -07:00
Erik Kline
726fd9085c Merge "Add a tethering offload settings kill switch" am: 7cf3086f37 am: 503a6952b2 am: 03941982dc
am: 9d2abb4b40

Change-Id: Ibeddc103a63702096972fa505071dcad4bb47a28
2017-06-01 08:18:25 +00:00
Erik Kline
9d2abb4b40 Merge "Add a tethering offload settings kill switch" am: 7cf3086f37 am: 503a6952b2
am: 03941982dc

Change-Id: I7e15919817c59579ff6e7b28e858f13c3090ee5c
2017-06-01 08:10:51 +00:00
Erik Kline
03941982dc Merge "Add a tethering offload settings kill switch" am: 7cf3086f37
am: 503a6952b2

Change-Id: I6be567bb315a5797bbc71f5f48efc522b947f678
2017-06-01 08:04:20 +00:00
Erik Kline
92c4db04e5 Add a tethering offload settings kill switch
Check for tether_offload_disabled (defaulting to false if not present)
before starting the OffloadController.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 29337859
Bug: 32163131
Bug: 34361337
Change-Id: Ifcc0eb1a41f09ad9e717c9252d2d55e69789669b
2017-05-31 20:33:05 +09:00
Svet Ganov
5d1ea59573 Prune unused static libs and instant apps if space needed am: f36d53cbfc
am: a8505b5448

Change-Id: I27762e5bf5141f7cc14a43163e67fcef13785419
2017-05-31 03:59:35 +00:00
Svet Ganov
a8505b5448 Prune unused static libs and instant apps if space needed
am: f36d53cbfc

Change-Id: I0fdca2a5069b6f3572a9cb5fe0d3ead0442b7b46
2017-05-31 03:52:16 +00:00
Svet Ganov
f36d53cbfc Prune unused static libs and instant apps if space needed
We are caching unused static shared libs and instant apps
(installed and uninstalled) opportunistically. If space is
needed we delete these to free up space.

Test: manual

bug:62045000

Change-Id: Id992dee5c7c6e36b8e8b81050602dbc4eeafb0f9
2017-05-31 02:30:41 +00:00
Peter Qiu
421018f44b Merge changes from topic 'hide_passpoint_r2' into oc-dev
am: 4bd47fce86

Change-Id: I71fe905c7842384d7700f02f923b12cdae9bf594
2017-05-30 18:55:37 +00:00
Renat Aksitov
931983d607 Voice Messaging Intent API.
Removing EXTRA_SENDER_ACCOUNT_HASH, needs more work.

Bug 37747843

Test: make -j11 docs

Change-Id: I3046611510f85cf69ceff7c2274cda3b692581b9
(cherry picked from commit 2c4201448e)
2017-05-30 09:47:42 -07:00
TreeHugger Robot
a216aa29e3 Merge "Add a way to clear cached provider for tests in Settings class." 2017-05-26 20:29:24 +00:00
Sudheer Shanka
aa3c30dfa2 Add a way to clear cached provider for tests in Settings class.
Bug: 38437704
Bug: 38433611
Test: manual
Change-Id: Id2803359644bd68a158294b6d801fc9cd316fc9f
2017-05-26 18:53:06 +00:00
Jeff Davidson
dff393339b Add setting to indicate whether the eUICC is provisioned.
This bit will only be set to true after a profile has been downloaded
to the eUICC. It will be used to suppress UI and messages about the
eUICC for users who have never used it.

Bug: 38460669
Test: TreeHugger
Change-Id: I056f131381ba4cb6f3fc32bc9915269337dd839d
2017-05-19 17:07:48 -07:00
Christine Franks
33a16a93f6 Merge "Don't back up night display state settings" 2017-05-18 16:04:37 +00:00
Christine Franks
61c68a71e2 Don't back up night display state settings
Bug: 38352336
Test: Turn on night display, then run 'adb shell bmgr transport
android/com.android.internal.backup.LocalTransport && adb shell bmgr
backupnow com.android.providers.settings'. Turn night display off, then
run 'adb shell bmgr restore com.android.providers.settings'. Night display
should not turn back on.
Change-Id: I9ca9474cba9b195850af04ce9d89cbbbd200673b
2017-05-17 16:51:45 -07:00
Lei Yu
64766b86ab Merge "Add settings constants for anomaly detection" 2017-05-17 21:10:34 +00:00
Philip Quinn
b6d00c3fd4 Remove unused settings.
Bug: 38164441
Test: make -j
Change-Id: I8194f1937c74b93c442153cea19c622877fb8a5b
2017-05-17 18:44:54 +00:00
jackqdyulei
7a5e06f456 Add settings constants for anomaly detection
Bug: 36924669
Test: Build
Change-Id: I7ca6745dedada8948ed0296cadb20b62a19c8fb3
2017-05-16 16:12:59 -07:00
Garfield Tan
71d10aba0f Merge "Specify behavior around DocumentsProvider#openDocument()." into oc-dev am: 146e8f415f
am: 3cd801dc24

Change-Id: I28724a4c556a9a132054eb730c09fff9b6eaed8c
2017-05-16 22:46:24 +00:00
Garfield Tan
3cd801dc24 Merge "Specify behavior around DocumentsProvider#openDocument()." into oc-dev
am: 146e8f415f

Change-Id: I014761972a0803a1865dd6c18a95cfeacec7beb4
2017-05-16 22:39:04 +00:00
Garfield Tan
af03e5a322 Specify behavior around DocumentsProvider#openDocument().
Add supported modes and contracts on receiving unsupported modes.
Test: Builds.
Bug: 11279339

Change-Id: I8c403f6168baadb354813d4c1e630bb8662ddb34
2017-05-16 13:13:23 -07:00
Jeff Davidson
91c3d07fd9 Implement remaining core eUICC APIs.
Includes:

-getDefaultDownloadableSubscriptionList, which returns a list of
default subscriptions available for the device.
-getEuiccInfo, which returns an EuiccInfo object containing
non-sensitive information about the eUICC device.
-deleteSubscription, to delete a subscription.
-switchToSubscription, to switch to (or away from) a subscription.
-updateSubscriptionNickname, to update the nickname of a subscription
which is saved to the eUICC.
-eraseSubscriptions, to factory reset the eUICC.
-Settings.Global#DEFAULT_SM_DP_PLUS, a default SM-DP+ server which is
used to query for default subscriptions in
getDefaultDownloadableSubscriptionList.

These APIs follow the template of the APIs which have already been
implemented.

This completes the baseline implementation as designed; any additional
APIs or tweaks to the APIs will be tracked as separate bugs.

Fixes: 33075886
Test: Build/boot
Change-Id: I8057757c874f94e0c816af1ca071d656c8f145b9
2017-05-14 10:57:00 -07:00
Stanley Tng
873b5708d1 Add Save and Restore of BluetoothOn setting
This change will automatically save the Bluetooth On setting when
the user chooses to backup the phone settings into the cloud. This
setting is restored by the Setup Wizard (SUW) when configuring the
phone and this change will enable or disable the Bluetooth based
on this restored setting.

Bug: 35657817
Test: Manual test with Sailfish
Change-Id: Ie4518593af63f96f8c363f98941ca5260a3ec4bb
(cherry picked from commit 767f05feea)
2017-05-12 18:00:55 +00:00
Chris Wren
e96b36922f Merge changes from topic 'b/36021111' into oc-dev am: 69ab8e1d56
am: 68c7ccc94d

Change-Id: Iaa6782cb3354c7ac0219ea18b254577ecf0d9733
2017-05-12 08:44:46 +00:00
Chris Wren
68c7ccc94d Merge changes from topic 'b/36021111' into oc-dev
am: 69ab8e1d56

Change-Id: I4bf9b7425c86a8725e9d7c055ab4c4f389fe3a2b
2017-05-12 05:57:40 +00:00
Chris Wren
89aa226190 add a global control for badging
Content observer callbacks don't specify the user,
so scan all the users we know about. User switches
will also trigger an update which will explicitly
check the setting for the (now) current user.

Migrate tests to TestableContext to allow the test
to safely override secure settings.

Bug: 36021111
Test: runtest systemui-notification
Change-Id: I588068382912955da114cc351df7a1e7b4f0733f
2017-05-11 17:19:01 -04:00
Jeremy Joslin
f4491b7103 Merge "Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev am: b569eedf37" into oc-dev-plus-aosp
am: 3f3a19183e

Change-Id: I01a5285918e355004d25cc9fbb04c70926a28cfa
2017-05-11 06:18:28 +00:00
Makoto Onuki
70dfa834ee Merge "Reconnect to DAService after binding is dead" into oc-dev am: ef5700667f
am: 0d9425e3e4

Change-Id: I597a3a5382ebf9798b322fc8bb3c88749d117170
2017-05-11 06:09:05 +00:00
Stanley Tng
09dae065c5 Merge "Merge "Add Save and Restore of BluetoothOn setting" am: bbcc641317 am: 1755a4af45 am: 6682651b2b" into oc-dev-plus-aosp
am: 4c47458094

Change-Id: I5a19fd8f898c726d8d94df7a15cfac0161fd28b0
2017-05-11 04:09:24 +00:00
Jeremy Joslin
fb94305b33 Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev
am: b569eedf37

Change-Id: Id4e9f4644bc470d1a3b8813502eb3e1e2ca45f05
2017-05-11 00:18:48 +00:00
Makoto Onuki
0d9425e3e4 Merge "Reconnect to DAService after binding is dead" into oc-dev
am: ef5700667f

Change-Id: I03049914406ed38f92c3a6a43a82f55504c6e518
2017-05-11 00:15:47 +00:00
TreeHugger Robot
b569eedf37 Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev 2017-05-11 00:05:52 +00:00
Stanley Tng
508f9bcb9d Merge "Add Save and Restore of BluetoothOn setting" am: bbcc641317 am: 1755a4af45
am: 6682651b2b

Change-Id: I6dd36520e8a0cf09c75788eda2e03b4309acea9e
2017-05-10 22:32:32 +00:00
Stanley Tng
6682651b2b Merge "Add Save and Restore of BluetoothOn setting" am: bbcc641317
am: 1755a4af45

Change-Id: I6a143760d9acef0fb5f28680ca1538e346ebd81f
2017-05-10 22:04:24 +00:00
Makoto Onuki
09c529a9bc Reconnect to DAService after binding is dead
- When the DO/PO process crashes twice with a short interval, AM gives up
and the binding will be "died".  Once binding is in this state it'll never
be re-connected.

(Still, DO/PO can disable and re-enable their DAS to force DPMS to bind again
though.)

- Detect this and re-connect after one hour.

- Back-off time will be exponentially increased and never reset until DPMS
explicitly re-connects, which happens when:
-- the device rebooted,
-- the user stopped and re-started, or
-- the DAS is disabled and re-enabled.

Test: adb shell am instrument -e class com.android.server.am.PersistentConnectionTest -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyConstantsTest -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest -w com.android.frameworks.servicestests
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l VERBOSE -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceDeviceOwnerTest
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l VERBOSE -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceProfileOwnerTest

Bug 37711907

Change-Id: Ie0b227a94e6ce85d72a969a4dea1020baf734e2f
2017-05-10 11:57:19 -07:00