Commit Graph

2929 Commits

Author SHA1 Message Date
Fyodor Kupolov
539d36f23b Set secure setting when all preloaded apps are installed
Bug: 30280710
Change-Id: Id87b51c53b1e553a6ab0a257be93baf7d31b6fe5
2016-07-29 10:36:06 -07:00
Jeff Davidson
2862ed2541 Add support for carrier \\"associated\\" apps. am: 24b9d96007
am: 19af77d2cb

Change-Id: I089db772e37b7d07a5423793aced78f2b3a9a1ae
2016-07-27 21:40:17 +00:00
Jeff Davidson
19af77d2cb Add support for carrier \"associated\" apps.
am: 24b9d96007

Change-Id: I1de92977f3a0635d88e6517210f6bbb06ab3d0f0
2016-07-27 21:18:07 +00:00
Daniel Nishi
b91285fd32 Merge "Add a flag to toggle how much downloads to retain." 2016-07-27 16:52:57 +00:00
Jeff Davidson
24b9d96007 Add support for carrier "associated" apps.
The platform currently supports the notion of default carrier apps.
These apps are set to DISABLED_UNTIL_USED until a SIM is inserted
which grants them carrier privileges, at which point they are enabled.
Apps are not touched if they have been updated from the version on
/system or if their state has been modified externally (e.g. by the
user).

This CL extends this notion to associated apps, which may not have
carrier privileges themselves, but should be enabled/disabled
alongside a particular carrier app. This should include helper apps
that should not be visible to users who don't use the given carrier
unless the user explicitly enables the app.

As additional protection, we add a check to ensure that we never
disable apps after the first time we've run. Since we need to store
this information in secure settings, we also move the call site from
PackageManagerService#main() to PackageManagerService#systemReady(),
which enables use of secure settings but still occurs before
third-party apps can be started.

Bug: 30141427
Change-Id: Iee72ba4e70e5ca97999c9147a65af82c670a23e8
2016-07-26 14:54:53 -07:00
Justin Klaassen
fc9243b60f Add Settings#ACTION_NIGHT_DISPLAY_SETTINGS am: 06c0cb7acd
am: 194b3c49cb

Change-Id: Ic9a2a904d8ccb0a8ec807c045efca82bf525f6d9
2016-07-22 22:22:42 +00:00
Justin Klaassen
194b3c49cb Add Settings#ACTION_NIGHT_DISPLAY_SETTINGS
am: 06c0cb7acd

Change-Id: I7ea6ce28be43d519144ec9311e15334d35e2702f
2016-07-22 22:13:23 +00:00
Daniel Nishi
237c7072c2 Add a flag to toggle how much downloads to retain.
This flag will be used to set how many days of downloads the storage
manager will retain while clearing data.

Bug: 30304998
Change-Id: I188f4ed3aaebde62d0bf4fe2838d171f0594895c
2016-07-22 14:03:51 -07:00
Justin Klaassen
06c0cb7acd Add Settings#ACTION_NIGHT_DISPLAY_SETTINGS
- The ACTION_NIGHT_DISPLAY_SETTINGS action can be used to launch
  Night display settings directly.
- Updated NightDisplayTile to use ACTION_NIGHT_DISPLAY_SETTINGS.

Bug: 30291948
Change-Id: I6d912cf481f72ef5b52f53fa23942071fc795452
2016-07-21 19:22:09 -07:00
Allison Babick
06b8aa7199 Merge "Add user-modifiable downloads backup conditions." 2016-07-21 22:22:33 +00:00
Justin Klaassen
3fac1a8c5c Merge \\"Cleanup TwilightService\\" into nyc-mr1-dev am: e5aeca3dc9
am: 6c02076e73

Change-Id: Ib3aad9f409c01338ce9be5d433db55d87d511daf
2016-07-19 02:16:25 +00:00
Justin Klaassen
6c02076e73 Merge \"Cleanup TwilightService\" into nyc-mr1-dev
am: e5aeca3dc9

Change-Id: Iac61d988c3432b8f78eb7d06dd3bb8d706fec621
2016-07-19 02:11:00 +00:00
Justin Klaassen
6384878d69 Cleanup TwilightService
TwilightService now just reports the current twilight state, it's up to
clients to provide their own locking mechanism (e.g. always day or
night).

Bug: 29620105
Change-Id: I2a8bb544eab0f44d269c59f36a53fbdf842b423a
2016-07-18 16:57:15 -07:00
Mike Tsao
b933b9acd6 Merge \\"Back up Night Light settings\\" into nyc-mr1-dev am: 9a0e444c22
am: d4584a8fb5

Change-Id: I15db4e270c6306fc666c9f33914f242e9e21a1fd
2016-07-15 23:28:17 +00:00
Mike Tsao
d4584a8fb5 Merge \"Back up Night Light settings\" into nyc-mr1-dev
am: 9a0e444c22

Change-Id: I4bc968dfced4671fecb140c50ce759b02d78c4a1
2016-07-15 21:33:57 +00:00
Mike Tsao
fc47ba75e4 Back up Night Light settings
Bug: 30150787
Change-Id: I79697b41b68e0f123de20e7b8782c6058bef7977
2016-07-15 13:12:17 -07:00
Allison Babick
f0bc8660d2 Add user-modifiable downloads backup conditions.
Add the user-modifiable fields to Settings.Secure.

Bug: 29829743
Change-Id: Ic56523948974974b11b114fb5fca1517414f3728
2016-07-15 07:32:51 -07:00
Justin Klaassen
290c38567e Merge \\"Refactor display color transforms\\" into nyc-mr1-dev am: 94673f0b7c
am: 5f3bf63121

Change-Id: I06a60ef4a1fa23e0c1f5b6ab97462811b6aaf239
2016-07-14 20:09:52 +00:00
Justin Klaassen
5f3bf63121 Merge \"Refactor display color transforms\" into nyc-mr1-dev
am: 94673f0b7c

Change-Id: I7fdf83db6cbf26cdc5b8a9971fa48b7f8458474d
2016-07-14 19:33:35 +00:00
Justin Klaassen
22eb19939d Refactor display color transforms
- Removed Secure.ACCESSIBILITY_DISPLAY_COLOR_MATRIX, it's not desirable
  to persist the actual color transformation matrix.
- Refactored all SurfaceFlinger transforms to DisplayTransformManager,
  which allows color transforms to be set independently from the a11y
  manager service.

Bug: 30042357
Change-Id: Iefa477dedb66aac90e1218e327802a3fab6899ed
2016-07-14 11:28:07 -07:00
Tomasz Mikolajewski
af885e9fa2 Merge \\"Fix javadoc broken links in DocumentsContract.\\" into nyc-mr1-dev am: 0e7bb571fd
am: 0f2a7ca01e

Change-Id: I219e199647533a22eecf9cb0cdf29057f37798e6
2016-07-14 03:27:49 +00:00
Tomasz Mikolajewski
0f2a7ca01e Merge \"Fix javadoc broken links in DocumentsContract.\" into nyc-mr1-dev
am: 0e7bb571fd

Change-Id: I45a178f0897fd837307131007529286ca4af0025
2016-07-14 03:21:51 +00:00
Tomasz Mikolajewski
0e7bb571fd Merge "Fix javadoc broken links in DocumentsContract." into nyc-mr1-dev 2016-07-14 03:16:42 +00:00
Mahaver Chopra
e4ffde9cac Merge \\"Added UM.DISALLOW_OEM_UNLOCK, Removed Global.OEM_UNLOCK_DISALLOWED.\\" into nyc-mr1-dev am: 695a1c50a2
am: e64f60a455

Change-Id: Iedc9544179d3c3de8616375e51f7a60ddd1c8c3b
2016-07-13 12:41:16 +00:00
Mahaver Chopra
e64f60a455 Merge \"Added UM.DISALLOW_OEM_UNLOCK, Removed Global.OEM_UNLOCK_DISALLOWED.\" into nyc-mr1-dev
am: 695a1c50a2

Change-Id: I8976511deb994983abbb17b2830b98878c92631b
2016-07-13 12:33:59 +00:00
Tomasz Mikolajewski
90a753330d Fix javadoc broken links in DocumentsContract.
Bug: 30074847
Change-Id: I187ac7b8055be4bb313b2fea68c101d84e586b5d
2016-07-13 10:14:59 +09:00
Mahaver Chopra
3d9805d502 Added UM.DISALLOW_OEM_UNLOCK, Removed Global.OEM_UNLOCK_DISALLOWED.
Currently we used global setting to restrict user from enabling oem
unlock. As global settings can be chagned using adb, using user
restrictions instead.

Bug: 29893399
Change-Id: Ic83112a4838b8279bf50408a29ae205e0b8639ee
2016-07-12 19:29:14 +01:00
Doris Ling
531eb4e9f6 Merge \\"Add a secure setting for double twist gesture for camera flip.\\" into nyc-mr1-dev am: 3e869587e8
am: b8d3caf4b8

Change-Id: I9265956ac2253f8a19c3a7f4dc8e6d9ada97f931
2016-07-12 01:32:40 +00:00
Jorge Gil
f3fbe392d4 Merge "Add DOWNLOADS_BACKUP_ENABLED key to SettingsSecure" 2016-07-11 21:06:59 +00:00
Doris Ling
b8d3caf4b8 Merge \"Add a secure setting for double twist gesture for camera flip.\" into nyc-mr1-dev
am: 3e869587e8

Change-Id: If64a188d45beea48d264219df8a9c7bce63bcecf
2016-07-09 00:03:08 +00:00
Justin Klaassen
029c2f4e3f Merge \\"Add Night display feature\\" into nyc-mr1-dev am: 76262b8e14
am: 1228803cde

Change-Id: I855bf48a271b15f671957b1451caab24d08d8293
2016-07-08 21:46:23 +00:00
Doris Ling
a60d31d70f Add a secure setting for double twist gesture for camera flip.
Add Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED to control whether the
double twist gesture should flip the camera between front and back mode
is enabled or not. Also move SYSTEM_NAVIGATION_KEYS_ENABLED from
Global to Secure.

Bug: 29869445
Change-Id: I614289e6de7b1ee4221de7047a5e0dd784607bed
2016-07-08 14:32:32 -07:00
Justin Klaassen
1228803cde Merge \"Add Night display feature\" into nyc-mr1-dev
am: 76262b8e14

Change-Id: I03912016390820f61fb515b1f206edd9bfea9ccf
2016-07-08 21:15:35 +00:00
Justin Klaassen
911e88939c Add Night display feature
Bug: 28615069

Tints the display at night automatically according to your schedule or
using the sunrise/sunset corresponding to your current location.

Change-Id: Ie56b4eed88cc2fcbae88002492b1edad5820b6b1
2016-07-08 11:47:50 -07:00
TreeHugger Robot
1404b09938 Merge "Docsui-level work for implementing Eject on Roots list." 2016-07-08 15:24:58 +00:00
Suprabh Shukla
8a6b090fd4 Merge \\"Making timeouts configurable through Settings\\" into nyc-mr1-dev am: 33fa5dfa1d
am: 087d33febf

Change-Id: If1bb99b356d4b6fdf3471e1ccccc2c6ebf8ace43
2016-07-08 14:52:26 +00:00
Suprabh Shukla
087d33febf Merge \"Making timeouts configurable through Settings\" into nyc-mr1-dev
am: 33fa5dfa1d

Change-Id: Ife69e438d83ddfb75433f92c6c5521ae4c3f82cc
2016-07-08 14:44:53 +00:00
TreeHugger Robot
33fa5dfa1d Merge "Making timeouts configurable through Settings" into nyc-mr1-dev 2016-07-08 14:36:34 +00:00
Ben Lin
d7d1487ec8 Docsui-level work for implementing Eject on Roots list.
1. Added Eject Icon for Roots that support eject
2. Added Context Menu for RootsFragment (Settings and Eject)

Bug: 29584653
Change-Id: I97f582de05763e3f0327bc0d2dc6d4e2222e047c
(cherry picked from commit d96661f8b0f613b40f2bdfc178bbe06022b5f76c)
2016-07-08 00:03:57 +00:00
Jorge Gil
6825a77f66 Add DOWNLOADS_BACKUP_ENABLED key to SettingsSecure
Bug: 29829743
Change-Id: I3883015a615191bb6d737989b24c485c3c6b6256
2016-07-07 16:27:22 -07:00
Suprabh Shukla
dbbc7af063 Making timeouts configurable through Settings
Adding a global setting for timeouts used in retail demo mode.
Also renaming the protected intent ACTION_RESET_DEMO to reflect proper
owner package.

Bug: 29917613
Change-Id: I9a174503626ab28cceb5024a8e63d27612439b92
2016-07-07 14:12:14 -07:00
Svet Ganov
f1d788adee Merge \"Merge \\"Merge \\\"Use proper lock when accessing the generation registry\\\" into nyc-dev am: dcf2e205bf\\" into nyc-mr1-dev am: d0302f579b\" into nyc-mr1-dev-plus-aosp
am: f910dab5f7

Change-Id: I86bda42056b6af37febccf48ebe09ee6363b50d0
2016-07-07 01:47:45 +00:00
Svet Ganov
eabaf266f8 Merge \"Merge \\"Use proper lock when accessing the generation registry\\" into nyc-dev am: dcf2e205bf\" into nyc-mr1-dev
am: d0302f579b

Change-Id: I8cd55faa5e8c788752ae411f29f29d9261f327c0
2016-07-07 01:31:55 +00:00
Svet Ganov
84954568db Merge \"Use proper lock when accessing the generation registry\" into nyc-dev
am: dcf2e205bf

Change-Id: I00b1a6aba01fd9155e4b0db17e9bd65d31425489
2016-07-07 01:25:04 +00:00
Svet Ganov
51b839544b Use proper lock when accessing the generation registry
We use 'this' for synchronization in NameValueCache but some code
that accesses the generation registry uses 'this' in a different
context ending up syncing on the wrong instance. This is why
sync on this is just a bad idea.

bug:29956424

Change-Id: Ide2d4f07a5f40cb3f0e8f50e4c8de216d15a31ee
2016-07-06 19:52:36 +00:00
Daniel Nishi
eeabaa9394 Merge \\"Add counters for the automatic storage manager.\\" into nyc-mr1-dev am: d9f0e37dc1
am: f38d4bb413

Change-Id: Ia595b77f85f4b665cf7b20930544f046ea22b919
2016-06-30 21:31:52 +00:00
Daniel Nishi
f38d4bb413 Merge \"Add counters for the automatic storage manager.\" into nyc-mr1-dev
am: d9f0e37dc1

Change-Id: I00bcd2808aba694d66f1db689acebea26ed5eeee
2016-06-30 21:24:57 +00:00
Daniel Nishi
d9f0e37dc1 Merge "Add counters for the automatic storage manager." into nyc-mr1-dev 2016-06-30 21:17:18 +00:00
Ben Lin
e7822fb767 Provider-level changes for implementing direct eject of a root in Files app.
Several changes at different levels:
1. Introduction of ejectRoot(String) for DocumentsProvider
2. Introduction of ejectRoot(ContentResolver, Uri, String) for
DocumentsContract
4. Additional permission for MOUNT_UNMOUNT for ExternalStorageProvider
5. Implementation of ejectRoot(String) for External StorageProvider

Bug: 29584653
Change-Id: I28557af63259548784cf24d5b051eb06ad5193ca
(cherry picked from commit 2ccc18357d6741dde56edc4d5a2608f15f4b9078)
2016-06-29 23:06:51 +00:00
Daniel Nishi
f06f1b8180 Merge \\"Use the Deletion Helper when system storage is low.\\" into nyc-mr1-dev am: 6401217532
am: b8a7ddad7e

Change-Id: I3d51bb6934e4a42ec8e9d7f37d460b780a5941fe
2016-06-29 21:54:10 +00:00