Commit Graph

297 Commits

Author SHA1 Message Date
Gustav Sennton
a4e32a24c4 Block the user from enabling or disabling webview fallback packages.
Now that we support webview fallback packages - packages that should be
enabled if and only if no other webview packages are available - we need
to ensure that the Settings UI consistently shows that these packages
cannot be enabled or disabled (e.g. the 'Enable' and 'Disable' buttons
for enabling/disabling them are greyed out).

Also, remove the Dialog that lets a user enable a disabled webview
package from the webview implementation Dev Setting. Instead show a
Toast if the user has chosen an invalid package.

Bug: 26375524, 26375860

Change-Id: I949083d3f7c83cd2e049dd2c5c15ec5ab880fe07
2016-02-23 14:09:13 +00:00
Wale Ogunwale
0b485bb523 Merge "Revert "Add developer option for freeform window support (2/2)"" into nyc-dev 2016-02-23 02:27:14 +00:00
Wale Ogunwale
a48c78ccfc Revert "Add developer option for freeform window support (2/2)"
This reverts commit 292b9fd2da.

Will add back later and limit to non-user builds.

Bug: 27295415
Bug: 25276672
Bug: 24815256
Change-Id: Ide230449615318a0d3f4bc607724e7eaaf1d43c4
2016-02-22 15:41:43 -08:00
Alan Viverette
f4ace6fe91 Merge "Remove night mode from developer settings" into nyc-dev 2016-02-22 20:44:00 +00:00
Andres Morales
8b85fbfe51 fix issue when cancelling OEM unlocking change
Bug: 26928752
Change-Id: Ibafe9df564f1035cbd6782d8982bc3b424ee3cb4
2016-02-22 12:26:45 -08:00
Alan Viverette
686f984384 Remove night mode from developer settings
It's in SysUI Tuner now.

Change-Id: If1c248bfaa964b4f37155619a4c54f836d33e468
2016-02-22 13:47:50 -05:00
Gustav Sennton
b2e8d34359 Merge "Don't show disabled packages in the WebView implementation Dev setting." into nyc-dev 2016-02-22 10:10:13 +00:00
Sudheer Shanka
7dbbe13168 Add disabled by policy empty views to more screens.
Bug: 27214401
Change-Id: I6cd4292a63610671070bf2134105e9e348c3ab32
2016-02-19 20:18:43 +00:00
Tobias Sargeant
f8364f597b add developer setting for multiprocess webview
Change-Id: I9cd547ad4168b56b8b5c9eab9e2407daea74a30e
2016-02-17 21:07:54 +00:00
Tao Bao
28dfd93b14 Merge "Add a Developer option of "Disable automatic update"." into nyc-dev 2016-02-17 20:06:52 +00:00
Bill Yi
c9652c1d66 Merge commit '6a19c5cabf1615ffce654a1203554bbaa1d1f72e' into HEAD
Change-Id: Ic7cd65ff8d2fd397a77f635b21bd06bfc17a38dc
2016-02-17 11:13:33 -08:00
Tao Bao
45a2c163c3 Add a Developer option of "Disable automatic update".
For devices using A/B update or update-on-boot feature, we need a
Developer option to prevent the system updates from being installed
automatically.

We store the "disabled" status internally to turn on the automatic
update by default. But we show the opposite "enabled" status on screen
based on UX comments.

Bug: 27193001
Change-Id: I36a08a2a08fd1ba0f8f3c4b3ae5a08dc50829cd2
2016-02-17 10:41:24 -08:00
Lorenzo Colitti
6ef09978ad resolve merge conflicts of c408ab3de6 to nyc-dev
Change-Id: I647195694e4c2c8dd886246143ef9f9ac7a79a62
2016-02-17 22:32:33 +09:00
Lorenzo Colitti
c408ab3de6 Hide the legacy DHCP client option, since it no longer works.
This only removes the option from the Developer Settings screen.
Future changes will need to:

- Remove the localized strings.
- Remove the settings constants in SettingsLib.

Bug: 26991160
Change-Id: I1770bb1c206818317845ff5aa340b2a9a76118b5
2016-02-17 22:10:21 +09:00
Gustav Sennton
0851ede886 Don't show disabled packages in the WebView implementation Dev setting.
You can't choose to use a disabled WebView package as WebView
implementation (this ensures that without interference from the user the
system will always try choose a package which will eventually become
updated, rather than a package that does not receive updates) and there
are cases where a package cannot/should not be enabled (to save e.g.
bandwidth).
Therefore, with this change we no longer show disabled WebView packages
as potential WebView implementations in the WebView implementation
Developer setting.

Bug: 27188851

Change-Id: I19a9b16118703d8a54d8215c186fc99ffefc4b6d
2016-02-15 15:38:36 +00:00
Gustav Sennton
80675a1df5 Fix package-enabled check in Developer Settings.
The enabled-state of a package is already being accounted for when
creating an ApplicationInfo from the package manager, so checking it
again in Developer Settings to figure out whether a package is enabled
is unnecessary.

Change-Id: I1b057a28bb33fc2bbc5ea750bfa04a75860ff1d1
2016-02-15 14:42:46 +00:00
Andre Eisenbach
591c6c4f5a Add Developer menu entry to disable Bluetooth absolute volume
NOTE: Original CL updated: Developer-related settings in
res/values/strings.xml are now in SettingsLib .

Bug: 27078729
Change-Id: I8a029baeb25b449446ae9bcc8cb220d5ec8e44a9
2016-02-10 01:54:55 +00:00
Andre Eisenbach
bbf4f66143 Add Developer menu entry to disable Bluetooth absolute volume
Bug: 27078729
Change-Id: I8a029baeb25b449446ae9bcc8cb220d5ec8e44a9
2016-02-08 17:20:07 -08:00
Chris Wren
9d1bfd1e8d port settings over to new metrics enum
Change-Id: I0b3efd2f4db773ccbc52bfe59ee8eb0dab9584fb
2016-01-27 10:58:58 -05:00
Steve Pfetsch
f002f23f91 resolve merge conflicts of 259b6a8029 to master.
Change-Id: I5aa772839591d6f09d672a04ab8606fd39dd4a97
2016-01-22 17:43:33 -08:00
Steve Pfetsch
259b6a8029 Merge "Added toast message to color temperature setting" into mnc-dr1.5-dev am: 76b29667df
am: 5ff50f2072

* commit '5ff50f2072880c76b6ad8486b5c35be9a39f9a29':
  Added toast message to color temperature setting
2016-01-22 22:29:47 +00:00
Steve Pfetsch
8897655d2e Added toast message to color temperature setting
Added a toast message to inform the user that the color temperature
setting is applied once the display is off.

Bug:26110238
Change-Id: Ia773581eb441ed2f4ac44b20e611ad3700e8abbf
2016-01-21 10:44:51 -08:00
Andres Morales
e32497c6de Track ro.flash.locked bit to enable/disable OEM unlocking pref
if the device is OEM unlocked already, disable the OEM
unlocking pref. If it's locked, enable.

Bug: 26039090
Change-Id: I915f3cf57deef8f5775d466dec59c891c1546b1b
2016-01-21 08:30:31 -08:00
Steve Pfetsch
e7770650c7 Merge "Enable color temperature developer setting" 2016-01-19 18:30:11 +00:00
Steve Pfetsch
b3fef371be Enable color temperature developer setting
Manual merge from mnc-dr1.5-dev.
Add a switch in Developer Settings to enable "cool" color temperature mode.

Bug: 26110238
Change-Id: Id0ab3283c1ee3208287c8dca11298a4bc367b314
2016-01-17 01:23:44 -08:00
Udam Saini
7df06f131f Only display warning to user if we are enabling OEM
When we disable OEM unlocking through developer options, no need
to show the warning dialog.

bug:26285618
Change-Id: I476761aeb850a60f345fc2fd8cbdb4ec730cc2c9
2016-01-15 16:09:30 -08:00
Steve Pfetsch
dcd4a64f66 Enable color temperature developer setting am: ab5da2d2fe
am: 979a32e6e3

* commit '979a32e6e30d7fc12fb64ba842f66aee97cdac91':
  Enable color temperature developer setting
2016-01-15 20:44:42 +00:00
Steve Pfetsch
ab5da2d2fe Enable color temperature developer setting
Add a switch in Developer Settings to enable "cool" color temperature
mode.

Bug: 26110238
Change-Id: Id0ab3283c1ee3208287c8dca11298a4bc367b314
2016-01-14 15:19:05 -08:00
Gustav Sennton
c1d83e826e Prompt user to enable chosen WebView provider if disabled.
The WebView loading logic will not allow for the user to pick a provider
that is disabled. But in the WebView developer setting for choosing
provider disabled WebView providers are shown. Therefore if the user
wants to use a disabled provider we (with this patch) prompt them to
enable the provider (if they agree we then enable it).

Bug: 26400585

Change-Id: I42476acc54f01cf873b267dd22079c5c50fa07a2
2016-01-12 17:55:14 +00:00
Mark Salyzyn
d23e45bfb5 Merge "whitelist "snet_event_log" when turning logs off" am: 574814a4c2
am: 836be3ff89

* commit '836be3ff89124e7ac8cf221f56de1c45b7a8c092':
  whitelist "snet_event_log" when turning logs off
2016-01-08 22:46:02 +00:00
Mark Salyzyn
836be3ff89 Merge "whitelist "snet_event_log" when turning logs off"
am: 574814a4c2

* commit '574814a4c2ac0e66cd14eb6370dba426bb6d5882':
  whitelist "snet_event_log" when turning logs off
2016-01-08 22:44:12 +00:00
Mark Salyzyn
8fc90b4fe0 whitelist "snet_event_log" when turning logs off
- Before silencing the logs, ensure security logs are whitelisted
- Only touch persist.log.tag properties if they need to be, add
  stacking to the property.
- Clear persist.logd.size property when at default setting

Bug: 26178938
Change-Id: I8fdb040062dc9cbb23d7bc3c117d96ff8550c132
2016-01-08 13:48:24 -08:00
Umair Khan
58c83824d7 [2/3] Remove unnecessary throws statement in ServiceManager
Signed-off-by: Umair Khan <omerjerk@gmail.com>

(cherry picked from commit fee616c31a)

Change-Id: I52d3078358f38061f4ec724ca0cc2a18d2cc43b1
2016-01-07 12:54:21 -08:00
Alex Klyubin
ddbee086a6 Merge "[2/3] Remove unnecessary throws statement in ServiceManager"
am: 3ba482971b

* commit '3ba482971b0f1709520ba9713fb11ac4727559c4':
  [2/3] Remove unnecessary throws statement in ServiceManager
2016-01-07 19:12:44 +00:00
Umair Khan
fee616c31a [2/3] Remove unnecessary throws statement in ServiceManager
Change-Id: Ifcda96d3ccb411ba23b40ee5cf222c25843d8a0e
Signed-off-by: Umair Khan <omerjerk@gmail.com>
2016-01-07 15:16:28 +05:30
Mark Salyzyn
3f48575e17 Merge "Settings: switch to using ctl.start property instead of exec logcat" am: 5987a26e78
am: e938d6e6e7

* commit 'e938d6e6e7484d082878f493bdfbbce78eb597fc':
  Settings: switch to using ctl.start property instead of exec logcat
2016-01-06 19:21:59 +00:00
Mark Salyzyn
e938d6e6e7 Merge "Settings: switch to using ctl.start property instead of exec logcat"
am: 5987a26e78

* commit '5987a26e7862c7737acb1dcabbd6db1a795347b2':
  Settings: switch to using ctl.start property instead of exec logcat
2016-01-06 19:19:36 +00:00
Mark Salyzyn
8f3a25bf7d Settings: switch to using ctl.start property instead of exec logcat
- Moves policy of what to do with buffer size changes to logd

Bug: 23685592
Change-Id: Ib80a755213742dbf806a6f4423d5a709de2da645
2016-01-06 10:24:30 -08:00
Filip Gruszczynski
0d228a62bd Always show true value for forcing resizeable.
Change-Id: I557ad5ddd29ac20119b926e58e33c6f58145d78e
2016-01-05 13:29:33 -08:00
Jorim Jaggi
292b9fd2da Add developer option for freeform window support (2/2)
Also disable default force-resizable on non-user builds.

Bug: 25276672
Bug: 24815256
Change-Id: I26b04d73bc605da903993084ad171c42a64f0bb2
2016-01-04 15:58:18 +01:00
Mark Salyzyn
87a3c6fee7 resolve merge conflicts of 94ab88228e to master.
NB: packages/apps/Settings/res/values/arrays.xml new content
moves to frameworks/base/packages/SettingsLib/res/values/arrays.xml.

Bug: 26178938
Change-Id: Ib241baac7807914447d84b921994440bf627df29
2015-12-28 11:20:58 -08:00
Mark Salyzyn
94ab88228e resolve merge conflicts of f3cc23524f to mnc-dr2-dev-plus-aosp.
Change-Id: I8fe1e5b4797405b2f470fb3fa538bd3728048f00
2015-12-28 10:49:04 -08:00
Mark Salyzyn
285afa8d15 Settings: Add option to disable logging
Bug: 26178938
Change-Id: I64263595705ceb1e6816e3cdfa982929877ff5b2
2015-12-22 15:14:56 -08:00
Mihai Nita
7104376692 Modify "Language & Input" for two steps selection: language, then region
The picker in frameworks/base does the simpler job: when called it
returns one locale only, no knowledge of locale lists.

The previous com.android.internal.app.LocalePicker shows a list of
locales based on the localised resources available.

The replacement (LocalePickerWithRegion) shows a more complete list
(a curated subset of all the ICU locales, but still pretty big).

Because of the length of the list the LocalePickerWithRegion splits the
selection in two: you first select the language, and then the region
(where that language is used).

If you need to select one of the locales completely supported by the
system (that have translated UI), continue to use
com.android.internal.app.LocalePicker

They should be compatible: they show some UI and end up selecting a
locale.
Beyond the UI differences, LocalePickerWithRegion will return more
"granular" locales (tens of French, or Spanish, or English locale
 variants).

Bug: 25800339
Change-Id: I0371d82302b462b1a633c149df08a39b6d508f58
2015-12-18 21:14:22 +00:00
Gustav Sennton
6ced4c95f5 Add null-pointer check for the case where we have no WebView provider.
Change-Id: I33a142bd3af694dfe9c63e6852a6b5cd701de467
2015-12-17 15:44:16 +00:00
Jason Monk
1230ac820e Move DropDownPreference to supportlib
Change-Id: Ife6799d1136302b805b5191f1a86276c538ca4bf
2015-12-15 10:59:08 -05:00
Gustav Sennton
0d54bbf065 Add WebView provider setting to developer settings.
For bug, see crbug.com/546185

Change-Id: Id812b767dc28084f42db9f21949497dc1ef08926
2015-12-11 14:02:41 +00:00
Dianne Hackborn
f467c0acac Implement development UI for background check.
Allows you to toggle off full background access for
whatever apps you want.

Change-Id: I8542ecac1449ccd65dc18af3c0ca1fc18443f89c
2015-12-08 14:28:52 -08:00
John Reck
b2b44a4755 Update for rename
Change-Id: I78e468d904a167bc304b11e0f2539770d352f79a
2015-12-02 16:30:30 -08:00
Jeff Sharkey
3bd73edbae Mark this coreApp as being encryptionAware.
Historically, apps marked with "coreApp" were prepared to run in a
limited boot environment, and were critical to booting the device, so
in the new file-based encryption world we're marking these apps with
both "forceDeviceEncrypted" and "encryptionAware" attributes.

Bug: 22358539
Change-Id: Idf9fb8d4b0cc1cd504c9ab7ed770d2cd86d3d506
2015-11-19 11:11:03 -07:00