Commit Graph

1092 Commits

Author SHA1 Message Date
William Luh
91eaa85c52 Initialize injected Security preferences.
Previously a default "G" icon was loaded before the injected ones and
this would be visually jarring. Also the text summary would cause the
titles to shift up, so now load an empty icon and empty summary so no
more jarring visual effects.

Bug: 35994047
Test: make RunSettingsRoboTests
Change-Id: Ia06535215432fe350a3bb06f541e817a566772e0
2017-03-08 16:43:42 -08:00
Fan Zhang
1447da277b Fix layout for time zone picker
Change-Id: I2f1dedac7d747901978ef5d4a1a58bae2fa02921
Fix: 35856915
Test: make RunSettingsRoboTests
2017-03-08 16:28:02 -08:00
jackqdyulei
391bf71ba2 Add background activity toggle in Battery settings
We will show this preference only if the app is target prior to O
(targetSdk < O)

Bug: 33454801
Test: RunSettingsRoboTests
Change-Id: Ibd6a2147b8e7b49d2b7e3176296dd9b91ee4cc6f
2017-03-08 15:07:24 -08:00
TreeHugger Robot
e32788c630 Merge "Misc fix for secondary user" 2017-03-08 22:32:46 +00:00
Felipe Leme
4fa4a2e3f5 Replaced auto-fill by autofill to keep it consistent with API style.
To keep backward compatibility, it looks for the new service (AutofillService),
then falls back to the old one (AutoFillService) if not found.

Bug: 35956626
Bug: 36024626
Test: manual verification with a custom service
Test: RunSettingsRoboTests passes

Change-Id: I64112ac5d796e94866e632ec8ea79a3fb13e3d9b
2017-03-08 13:45:27 -08:00
Fan Zhang
a6986e7ed2 Misc fix for secondary user
- Theme fix: action bar and status bar color now have enough contrast
  for SUW theme.
- Fix a ConcurrentModificationError when switching between users
  quickly.

Change-Id: If31f88e36f1d4c5d7f90bc9d128041f0e0a81ff9
Fix: 35948464
Test: make RunSettingsRoboTests
2017-03-08 13:09:17 -08:00
Stephen Chen
8e0111ddde Merge "Create NetworkScorerPicker preference controller to set preference summary." 2017-03-08 21:04:44 +00:00
TreeHugger Robot
9a8bae0838 Merge "Fix disabled WebView packages being shown as enabled in Dev Setting." 2017-03-08 18:39:03 +00:00
Daniel Nishi
8e457342f8 Merge "Fix a crash when transferring an app." 2017-03-08 18:19:26 +00:00
Daniel Nishi
abd92e0519 Update the Manage Storage preference.
Now, it is a master switch preference which can toggle the
automatic management on/off. This also removes the old
UI in the storage summary at the top.

Bug: 33199077
Test: SettingsRoboTests

Change-Id: I709fd2ca0687f760a5d97ad6bebe477b427b0464
2017-03-08 10:18:43 -08:00
Bartosz Fabianowski
1a8399ffd0 Update layout and strings for DO Disclosures
This CL updates the DO Disclosures page (aka "Enterprise Privacy")
to incorporate UI layout and string changes proposed since
implementation began. There are no logic changes.

Test: make RunSettingsRoboTests
Bug: 32692748

Change-Id: I6ae972e77bd90eb9c61d6a516046a6eb09981ad3
2017-03-08 19:07:29 +01:00
Bartosz Fabianowski
732d695985 Add CA certs Privacy Settings page
This CL adds information about CA certs installed by Device Owner and/or
Profile Owners to the Enterprise Privacy Setting page.

Test: make RunSettingsRoboTests
Bug: 32692748

Change-Id: I67bbe5af2b5b6326e4cd7224d0c6f17ab256dace
2017-03-08 10:51:12 +01:00
Suprabh Shukla
f59d2115ed Adding app specific screen for "External Sources"
Adding app specific screen so that third party apps and package
installer can directly intent there to direct users to change the
setting. Also added automater tests.

Test: adb shell am instrument -w -e class \
'com.android.settings.applications.ExternalSourcesSettingsTest' \
'com.android.settings.tests/android.support.test.runner.AndroidJUnitRunner'

Bug: 33792674
Bug: 35487166

Change-Id: I5a481ee7032979df94a9e267ea74aa90da6a0906
2017-03-07 23:44:51 -08:00
TreeHugger Robot
fdb307bfc0 Merge "Display a hardware info dialog when click model number." 2017-03-08 03:52:33 +00:00
Stephen Chen
2d73008bae Create NetworkScorerPicker preference controller to set preference summary.
Bug: 35854552
Test: make ROBOTEST_FILTER=NetworkScorerPickerPreferenceControllerTest
RunSettingsRoboTests -j40

Change-Id: I6dbd18abd67613ed0f85a52f1a3e13fdab0dca6c
2017-03-07 18:52:01 -08:00
Daniel Nishi
6a256e77d6 Fix a crash when transferring an app.
This crash occurs because the background loader is loading
the storage for an app which is currently being moved off of
the device. In the native code which is calculating the storage,
it throws an InstallerException which is caught and rethrown as an
IllegalStateException.

We handle this in the view by reporting that we could not calculate
the size of the app.

Change-Id: I109b1be60ae60f8ef31b08cb4392b576261fa806
Fixes: 35922033
Test: Robotest
2017-03-07 17:53:12 -08:00
TreeHugger Robot
4a23676590 Merge "Fix test when running with ROBOTEST_FILTER option" 2017-03-07 23:55:21 +00:00
Fan Zhang
dc5a06e7e4 Display a hardware info dialog when click model number.
Change-Id: I28eeb3e5c3ed290d4e03e0f3989adde0b966bede
Fix: 35851000
Test: make RunSettingsRoboTests
2017-03-07 15:42:40 -08:00
TreeHugger Robot
8e12df9d62 Merge "Fix a crash when opening uninstalled app detail page" 2017-03-07 23:13:20 +00:00
Daniel Nishi
41f36cdae8 Merge "Use the screen context when adding preferences." 2017-03-07 22:55:06 +00:00
Fan Zhang
6bb0d00d74 Fix test when running with ROBOTEST_FILTER option
Change-Id: I864af10cecb6ad520c999a41be4f6ba6f6c378bf
Bug: 36024626
Test: make RunSettingsRoboTests
2017-03-07 14:28:21 -08:00
Steven Ng
3183c22238 Merge "Fix phishing attack in ChooseLockGeneric" 2017-03-07 21:49:32 +00:00
Fan Zhang
1f81d10dc5 Fix a crash when opening uninstalled app detail page
Change-Id: I417e7eb6f9c857ace4e8047b226abe03a7c8248d
Fix: 36027848
Fix: 34392538
Test: make RunSettingsRoboTests
2017-03-07 13:24:31 -08:00
TreeHugger Robot
e0b65fce67 Merge "Remove code that check for dashboard feature." 2017-03-07 20:57:28 +00:00
Steven Ng
436256c36d Fix phishing attack in ChooseLockGeneric
Test: 1) make and run SettingsTests. It passes.
      2) Manual test 1
         a) On a device supports fingerprint, set a password but not fingerprint.
         b) adb shell am start -a android.app.action.SET_NEW_PARENT_PROFILE_PASSWORD
         c) Confirm Lock password screen is shown
         d) Select "Skip fingerprint". There isn't a second lock password confirmation screen.
         e) A new password can be set successfully.
      3) Manual test 2
         a) Repeat step 2)a) - 2)c)
         b) Select "Fingerprint + PIN". There isn't a second lock password confirmation screen.
         c) A new password and fingerprint can be enrolled successfully.

Bug: 33059280
Change-Id: I1078c6e303fc41aeeb370e5d6518d1f16b5837f1
2017-03-07 19:48:35 +00:00
Gustav Sennton
3c89d8e2cf Fix disabled WebView packages being shown as enabled in Dev Setting.
WebView packages that cannot be chosen as WebView implementation should
be shown as disabled in the 'WebView Implementation' Dev Setting.
Simplify the logic in DefaultAppInfo a little bit to avoid
special-casing for the WebView Dev setting.
Also add tests to ensure we are correctly disabling WebView packages in
the Dev setting and showing their disabled-reasons.

Bug: 35707106
Test: 'make RunSettingsRoboTests'
Test: Ensure disabled WebView packages show up as being disabled in the
'WebView Implementation' Dev Setting.
Change-Id: Ic2f5265c3451b6396e55b7bc29689c3d889ddb5e
2017-03-07 19:30:10 +00:00
Doris Ling
f2cf2aea37 Remove code that check for dashboard feature.
- remove DashboardFeatureProvider.isEnabled() and all relating code
and tests.

Bug: 35764802
Test: make RunSettingsRoboTests
Change-Id: If7796677abc8904b7436525836d50cdef38e37a4
2017-03-07 11:15:03 -08:00
TreeHugger Robot
2437d3c64a Merge "Add default IME to Privacy Settings page" 2017-03-07 18:36:55 +00:00
Daniel Nishi
c7bf800ebf Merge "Align the profile calculation with other screens." 2017-03-07 17:49:28 +00:00
Daniel Nishi
5e1f6dc241 Merge "Fast track the installed app details storage." 2017-03-07 17:48:54 +00:00
Anton Philippov
66084a5368 Hide "Factory reset" item for secondary users
Bug: 35415714
Test: make RunSettingsRoboTests
Change-Id: I48d6d094476c5fc83dbc17906d84cc848e499624
2017-03-07 16:37:36 +00:00
Tony Mak
ef4c83962d Fix failed to remove account in managed profile
Fix: 35996483

Test: m -j RunSettingsRoboTests
Test: manual test
          1. Remove account in work profile
          2. Remove account in user 0


Change-Id: I3ed9364afbf8ef5cddd0edc0d4e0e5e48d2dd62a
2017-03-07 15:33:20 +00:00
Bartosz Fabianowski
2700cdbdac Add default IME to Privacy Settings page
This CL adds information about default IMEs set by Device Owner and/or
Profile Owners to the Enterprise Privacy Setting page.

Test: make RunSettingsRoboTests
Bug: 32692748

Change-Id: I9f78ab4792a5a1d444808048ff33e3e20a0483dc
2017-03-07 12:43:42 +01:00
TreeHugger Robot
126d9ae6f4 Merge "Create settings page for choosing default Network Scorer." 2017-03-07 02:06:09 +00:00
TreeHugger Robot
5914d143e7 Merge "Update preference logger to log pref change as ACTION" 2017-03-07 02:00:32 +00:00
Lei Yu
0d988208c0 Merge "Add type UNACCOUNTED("miscellaneous") in advanced battery page" 2017-03-07 01:54:21 +00:00
TreeHugger Robot
68ef61a105 Merge "Create whitelist for the most popular settings" 2017-03-06 23:56:33 +00:00
Fan Zhang
c6f4c9c9b5 Update preference logger to log pref change as ACTION
Change-Id: I600cf6ec79cbc876347c3fdb20ea70fffbc04524
Fix: 34775467
Test: make RunSettingsRoboTests
2017-03-06 15:39:22 -08:00
Stephen Chen
9347c95c39 Create settings page for choosing default Network Scorer.
Bug: 35203304
Bug: 35852687
Test: make RunSettingsRoboTests -j40
Change-Id: Iaef671e0a9e8beb560e1d2c9864f44ef46993a6b
2017-03-06 14:08:50 -08:00
Daniel Nishi
522e05f169 Align the profile calculation with other screens.
The profile fragment was accidentally adding all of the app's
code data to the profile, even if it was already attributed to the
primary user.

Change-Id: I47000bbe1fcf98d5e9f252eb74b22fee05b7034d
Fixes: 35919232
Test: Settings Robotest
2017-03-06 13:56:57 -08:00
Daniel Nishi
ad7aa871e7 Fast track the installed app details storage.
Change-Id: Ic96a7b4bea6d92a32669887dacbc1f4e54e25ea9
Fixes: 35805032
Test: Settings robotest
2017-03-06 13:55:00 -08:00
TreeHugger Robot
490e4ea011 Merge "Add code coverage support for robolectric tests" 2017-03-06 20:51:34 +00:00
Matthew Fritze
b759516cbf Create whitelist for the most popular settings
As a temporary solution to getting the most popular
settings to be the top rank, we have created a white list.
If a prioritized setting shows up somewhere in the results
then it will be given an elevated rank to be at the top.

Bug: 35048659
Test: make RunSettingsRoboTests
Change-Id: I92b563a17b42d8f91d980dd1d8e5f8f29ca5aa9c
2017-03-06 12:31:41 -08:00
TreeHugger Robot
bdaf7572d9 Merge "Add tests for NonIndexableKeys in NFC payments" 2017-03-06 18:52:36 +00:00
Anton Philippov
8e667cf2d4 Merge "Fix search results for backup settings." 2017-03-06 10:24:17 +00:00
TreeHugger Robot
98fa7780a9 Merge "Fix ServiceConnectionLeak in network fragment" 2017-03-04 16:25:12 +00:00
Matthew Fritze
5e1ab7f974 Add tests for NonIndexableKeys in NFC payments
Also serves as an example for testing NIKs.

Test: make RunSettingsRoboTests
Fixes: 35931606, 35657617

Change-Id: Ia4de8ec3c508ceaa6573252ecd372b479b5ce815
2017-03-03 18:23:28 -08:00
Fan Zhang
f5f71a9be2 Fix ServiceConnectionLeak in network fragment
Change-Id: I43efe9ae31fc2f58361abdb034b0205a3f3e2b71
Fix: 35957226
Test: make RunSettingsRoboTests
2017-03-03 18:01:19 -08:00
TreeHugger Robot
2f7d8bc086 Merge "Adding "Install Other Apps" in App Info page" 2017-03-04 00:39:22 +00:00
TreeHugger Robot
271dd30704 Merge "Update theme for filter widget." 2017-03-04 00:35:07 +00:00