Commit Graph

5602 Commits

Author SHA1 Message Date
Kevin Chyn
a04597b8c7 Merge "Deprecate ACTION_FINGERPRINT_ENROLL and add ACTION_BIOMETRIC_ENROLL" 2019-12-18 19:37:29 +00:00
TreeHugger Robot
b4bb59a9f4 Merge "Removed the DEFAULT_USER_ID_TO_BOOT_INTO settings property - it's not used." 2019-12-18 05:21:37 +00:00
Jeff Sharkey
04b4ba1e15 Shuffling to prepare for MediaProvider APEX.
An upcoming change will move MediaStore to be within the recently
created MediaProvider APEX.  This means that MediaStore will need to
be fully built against @SystemApi, and so this CL adjusts APIs to
support a clean transition:

-- Listing of "recent" storage volumes and scan paths for "internal"
storage is now handled by StorageManager directly, so that partners
retain control over what is deemed recent.
-- StorageVolume now returns the MediaStore volume name and the
filesystem directory where its contents are presented to apps.
-- Conversion of legacy thumbnail "kind" values to dimensions now
happens directly inside MediaStore.
-- PendingParams and PendingSession are completely removed.
-- Contributed media APIs are completely removed.
-- Media for demo users is now surfaced as a unique StorageVolume.
-- Migrate most MediaStore APIs to accept ContentResolver, which
supports easy usage of ContentResolver.wrap().

Bug: 144247087, 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Exempt-From-Owner-Approval: in-place refactoring
Change-Id: I445528b2779bb37b9f2558e67a3cfc9f60412092
2019-12-18 01:35:46 +00:00
Felipe Leme
504df9427e Removed the DEFAULT_USER_ID_TO_BOOT_INTO settings property - it's not used.
Bug: 145985988
Test: echo 'in TH we trust!'

Change-Id: I816e35e080d40b1d867293fa1967bc622caf9398
2019-12-17 15:28:02 -08:00
Kevin Chyn
5660e918cf Deprecate ACTION_FINGERPRINT_ENROLL and add ACTION_BIOMETRIC_ENROLL
Fixes: 145601433

Test: adb shell am start -a android.settings.BIOMETRIC_ENROLL --ei "android.provider.extra.BIOMETRIC_MINIMUM_STRENGTH_REQUIRED" 1

Change-Id: Icf57e0a8978cae13cfd1b8dca6e75c30e773cf7d
2019-12-17 15:22:31 -08:00
Mehdi Alizadeh
1c66473972 Merge "Adds settings fields for left and right back gesture inset size" 2019-12-17 21:57:23 +00:00
Jeff Sharkey
e65b0918cf Merge "Methods to streamline bulk media operations." 2019-12-17 20:54:30 +00:00
Chavi Weingarten
1ae91f190f Merge "Added WindowMagnification for Accessibility in System UI" 2019-12-17 15:52:26 +00:00
Paul Chang
092a675c52 Merge "Add intent action for allowing user to select bug report handler in Developer Options of Settings" 2019-12-17 03:20:16 +00:00
Tingting Wang
2837981c61 Merge "Deprecated Lychee related APIs in ContactsContract." 2019-12-16 22:45:47 +00:00
chaviw
4ce1ddff79 Added WindowMagnification for Accessibility in System UI
Added support for window magnification as an accessibility feature. The
UI can either be dragged to a new a location or arrow controls can move
the window around.

Test: adb shell settings put secure window_magnification 1
Bug: 136250281
Change-Id: If3098df098f2a1b88b2170e773dccc8f86946abf
2019-12-16 13:49:53 -08:00
Kevin Chyn
14ff3aab30 Merge changes from topic "biometric-strength"
* changes:
  Enforce that registered authenticators are not null
  Ensure that cancelling authentication ends up in the correct state
  Enforce authenticator registration
  Enforce that only public authenticator combinations are accepted
  Add phenotype namespace and flag for biometrics
  Use @Authenticators.Types for authenticator selection
  Add setAllowedAuthenticators(int) to BiometricPrompt
2019-12-16 20:06:31 +00:00
Jeff Sharkey
dd81924202 Methods to streamline bulk media operations.
The new storage model being built in Android Q and R means that most
apps will now be limited to read access to most media items on the
device.  This change adds a way for developers to request a user to
grant narrow access to specific media items.

This supports operations like requesting write access, trash/untrash,
favorite/unfavorite, and outright delete.  Once the user confirms the
action in the dialog, the action is carried out with no further
action needed by the caller.

We transport the set of Uris through a ClipData to pave the way for
shifting to ParceledListSlice in a future release.

Since there's many permutations of strings needed, generate them
with a simple Python script to ensure they stay consistent.

Bug: 141911164
Test: atest --test-mapping packages/apps/MediaProvider
Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.ExternalStorageHostTest#testMediaEscalation
Change-Id: I2eb3775550ed27c2863af1edc362471e4cb48643
2019-12-16 12:21:41 -07:00
Steve Elliott
963c5ac79b Merge "New toggle for peoplehub in settings" 2019-12-16 16:41:46 +00:00
TreeHugger Robot
04ecba71fa Merge "Make maximum size of an error report configurable." 2019-12-16 10:44:02 +00:00
Automerger Merge Worker
ac5d38ec9f Merge "Remove READ_SMS permission for ACTION_SMS_MMS_DB_CREATED" am: 706ac54f75 am: 2957a01905 am: 375bfacf9e
Change-Id: Ia3e23b2f39aa83a96b0abbdee282512b6acd3e0e
2019-12-16 08:30:09 +00:00
Automerger Merge Worker
375bfacf9e Merge "Remove READ_SMS permission for ACTION_SMS_MMS_DB_CREATED" am: 706ac54f75 am: 2957a01905
Change-Id: I631ce9139237f91476000c8476b21f09edfcd788
2019-12-16 08:15:35 +00:00
Jayachandran Chinnakkannu
706ac54f75 Merge "Remove READ_SMS permission for ACTION_SMS_MMS_DB_CREATED" 2019-12-16 07:03:43 +00:00
Automerger Merge Worker
8b5ab0fce2 Merge changes I5c5c4eb3,I36712447,I5b78d449 am: fd5241f120 am: 2d5bf0b845
Change-Id: I02040c779e3537d02389a7c6408761122dcad284
2019-12-14 06:19:49 +00:00
Jack Yu
fd5241f120 Merge changes I5c5c4eb3,I36712447,I5b78d449
* changes:
  Throw illegal argument exception when slot index is invalid
  Code clean up
  Improved debug message
2019-12-14 04:15:39 +00:00
Automerger Merge Worker
619bf038e3 Merge "Remove "import JobService" to remove build time dependency" am: ac335868bf am: 848155a0fb
Change-Id: Icff1d6211fbbe2a511aac937a6765a678419ebed
2019-12-14 00:24:08 +00:00
Jack Yu
45811ecc85 Code clean up
Remove database version 1~11 support since the format hasn't changed
in the past 7 years.

Bug: 135956699
Test: Manual
Merged-In: I367124471f16073bb47a31c094d161d36969acc1
Change-Id: I367124471f16073bb47a31c094d161d36969acc1
(cherry picked from commit 21effc8643)
2019-12-13 15:34:01 -08:00
Makoto Onuki
2da2629125 Remove "import JobService" to remove build time dependency
This is needed to move the jobscheduler classes to its own jar for
mainline.

Bug: 137763703
Test: Doc change only, presubmit
Merged-in: I117ffc23362a61923a9f93c1532ab582e2421402
(cherry-pick from I117ffc23362a61923a9f93c1532ab582e2421402)

Change-Id: I1b3fba3e90f4b3c943f44b63eeb776f5da973591
2019-12-13 13:56:36 -08:00
Automerger Merge Worker
fd02e6e693 Merge "ServiceState merges voice and data into a single value" am: 72f579d5f2 am: 4b108f74f6
Change-Id: Ia68eb336d8b916cb93b83ba14b6423560f29a42d
2019-12-13 21:48:35 +00:00
Jayachandran C
1637e44bb1 Remove READ_SMS permission for ACTION_SMS_MMS_DB_CREATED
Bug: 144739528
Test: Build
Change-Id: I27341bf7c1f6fc640ba51360f8a6035cdb86052b
2019-12-13 20:48:12 +00:00
Steve Elliott
0a557c5991 New toggle for peoplehub in settings
Bug: 146150828
Test: manual, atest
Change-Id: Icbcb9e67cb33823136e2b88a0fcd5394af2a49db
2019-12-13 20:46:33 +00:00
Tingting Wang
9429a10397 Deprecated Lychee related APIs in ContactsContract.
Test: build.
Bug: 146059343
Change-Id: I83eca63e4e6fa5e2d9ceef08e4f50e96ffc60165
2019-12-13 11:26:55 -08:00
Haining Chen
5c7ed9affd Add phenotype namespace and flag for biometrics
This allows the ability to enforce biometric modality strength (downgrade only) on certain devices.

Bug: 141025588

Test: atest com.android.server.biometrics
Test: make system-api-stubs-docs-update-current-api
Test: make test-api-stubs-docs-update-current-api
Test: manual testing using "adb shell device_config put NAMESPACE KEY VALUE"

Change-Id: Ib167a038d717216ec0a54d6f4f6f5f88a70e1a6e
2019-12-12 19:37:52 -08:00
Marcus Hagerott
368db11f6e Merge "Improve comments for contacts local account" 2019-12-13 02:59:42 +00:00
Mehdi Alizadeh
342b8f4ad7 Adds settings fields for left and right back gesture inset size
Test: It builds and passes presubmit tests
Bug: 146004827
Change-Id: I317e3ee4ea8ed2ae37a7ff90a74a639c146f211b
2019-12-12 23:22:21 +00:00
Matt Pape
78f4347c6d Add a DeviceConfig.Properties.Builder class.
Test: atest FrameworksCoreTests:DeviceConfigTest
      atest SettingsProviderTest:DeviceConfigServiceTest
Bug: 136135417

Change-Id: I2e1b2d467ba0b0590ef216eb10d42f73ba1ccda0
2019-12-12 12:35:00 -08:00
TreeHugger Robot
4a0dbe942c Merge "Add an exception to setProperties method signature" 2019-12-12 19:57:43 +00:00
Hall Liu
1c013ae319 Merge "Add change ID for platform compat" 2019-12-12 19:28:33 +00:00
Jeff Sharkey
30b412cab7 Apply Dark theme changes when screen off only
this change waits to apply ui changes after screen off
battery manager sends updates and continuously updates the ui mode

this change also applies external changes to ui configurations when
the mode is actually changed. this resolves some perfromance regression
issues

Fixes: 145694649
Fixes: 145161355
Fixes: 145776479

Test: atest UiModeManagerService
Change-Id: Ib769df4302d1c09166e2dc456b8ced35daa4d0b7
Merged-In: Ib769df4302d1c09166e2dc456b8ced35daa4d0b7
2019-12-12 19:25:07 +00:00
Linus Tufvesson
2947145c0c Add an exception to setProperties method signature
Bug: 136135417
Test: atest FrameworksCoreTests:DeviceConfigTest
Change-Id: I4c917033925040863aa2d3884ecb4f6e4fae6cbe
2019-12-12 17:58:25 +00:00
SongFerngWang
afd025f4ab ServiceState merges voice and data into a single value
The voice and data is the same for operator name at ServiceState.
So ServiceState merges voice and data into a single value.
- merge the voice and data OperatorAlphaLong,OperatorAlphaShort, and
OperatorNumeric.

Bug: 144663018
Test: Build pass.
      atest NetworkControllerDataTest (PASS)
      atest ServiceStateTest (PASS)
      atest TelephonyMetricsTest (PASS)
      atest ServiceStateProviderTest (PASS)

Change-Id: I67e4a822c792bf9a9e174146ef8d65d9927d7612
Merged-In: I67e4a822c792bf9a9e174146ef8d65d9927d7612
2019-12-12 22:10:04 +08:00
Paul Chang
c24e2207cb Add intent action for allowing user to select bug report handler in Developer Options of Settings
- privacy tracker: b/142159898

Bug: 138220936
Bug: 143017534
Test: Build pass
Change-Id: I4968b69de25c3979b7612591dfe52f6bfb696ec6
2019-12-12 13:58:05 +00:00
Shu Chen
68de61497c Merge "Adds widget namespace." 2019-12-12 00:52:50 +00:00
Marcus Hagerott
960c6cfc35 Improve comments for contacts local account
Document the path to the resources that are used.

Bug: 145690939
Test: mm -j frameworks/base

Change-Id: I724d41d0ab6c2b2aa0508a91b2f29a542ec533dd
2019-12-11 15:40:41 -08:00
Jay Aliomer
8da3a4ef59 Merge "Apply Dark theme changes when screen off only" 2019-12-11 20:29:49 +00:00
Automerger Merge Worker
73b581f0dd Revert "DO NOT MERGE - Add AUTOMOTIVE_USER_SETUP_IN_PROGRESS to Settings" am: db70de3656
Change-Id: I0a695d10ecca6134e851c0e482af7318de4fdb95
2019-12-11 17:10:03 +00:00
Shu Chen
36b19af9a5 Adds widget namespace.
Test: m -j.
Bug: 145528298
Change-Id: I6703f20dd1c13fb2eae5a930aae5835247c7a297
2019-12-11 11:44:51 +08:00
Hall Liu
45a351e262 Add change ID for platform compat
Add definition of the change ID for the APN permissions change for
platform compat.

Bug: 144631034
Test: compiles
Change-Id: I449c08c2b696030130a29b082e7e5a04bf69ec4a
2019-12-10 18:56:26 -08:00
Jian Jin
db70de3656 Revert "DO NOT MERGE - Add AUTOMOTIVE_USER_SETUP_IN_PROGRESS to Settings"
This reverts commit ba4b561c3e.

Reason for revert: Move to CarSettings

Change-Id: I91fd1fa7dee2400095a014c189a40706b853c471
2019-12-11 00:35:05 +00:00
Jeff Sharkey
5f116e1db1 Apply Dark theme changes when screen off only
this change waits to apply ui changes after screen off
battery manager sends updates and continuously updates the ui mode

this change also applies external changes to ui configurations when
the mode is actually changed. this resolves some perfromance regression
issues

Fixes: 145694649
Fixes: 145161355
Fixes: 145776479

Test: atest UiModeManagerService
Change-Id: Ib769df4302d1c09166e2dc456b8ced35daa4d0b7
2019-12-10 22:35:18 +00:00
Automerger Merge Worker
5e1e8b2756 DO NOT MERGE - Add AUTOMOTIVE_USER_SETUP_IN_PROGRESS to Settings am: ba4b561c3e
Change-Id: I853bb7f04816151b34e7adcd024d31d971561558
2019-12-10 22:34:47 +00:00
Marcus Hagerott
66dc2a0ae8 Add methods for the contacts provider local account
Test: added CTS tests and built frameworks/base

Bug: 145690939

Change-Id: I09cdad87543053e58888e58de4d9ca88efb1792d
2019-12-10 09:50:45 -08:00
Jian Jin
ba4b561c3e DO NOT MERGE - Add AUTOMOTIVE_USER_SETUP_IN_PROGRESS to Settings
Bug: 144846684
Test: SettingsProviderTest
Change-Id: Iebc53c70ea401c6ba244ed43db7a1d73f3a894df
2019-12-09 14:07:26 -08:00
Simon MacMullen
d10fa30658 Make maximum size of an error report configurable.
Add a new (set of) settings that ActivityManagerService checks
before adding the report to DropBox.

Change-Id: Ia55e011aecd2376ebb7794cd1c9d94dd628ddfab
Test: Tested with "adb shell settings put max_error_bytes_for_system_server_anr 256"
2019-12-09 10:23:37 +00:00
Betty Chang
a52bbd3624 Merge "[Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline" 2019-12-09 02:25:57 +00:00