Commit Graph

5823 Commits

Author SHA1 Message Date
Fabian Kozynski
1f8d91de8c Merge "Add Secure Setting for Controls" into rvc-dev 2020-03-27 17:16:48 +00:00
Rhed Jao
dba485be4c Merge "A new setting key to hold targets of the a11y button" into rvc-dev 2020-03-27 06:37:05 +00:00
Menghan Li
fea8d184c2 Merge "Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)" into rvc-dev 2020-03-26 00:21:50 +00:00
Fabian Kozynski
bcaf0efea3 Add Secure Setting for Controls
Also:
* added to backed up settings.
* fixed imports

Test: build
Test: change setting through adb.
Bug: 152212779
Change-Id: Ia6cc7e9fb7f93842cfbf248f3e88c1d964656409
2020-03-25 09:30:13 -04:00
Rhed Jao
10e4b5f0b0 A new setting key to hold targets of the a11y button
Roll back the changes of ACCESSIBILITY_BUTTON_TARGET_COMPONENT to
support previous behavior of the a11y button. Also, create another
setting key to hold shortcut targets of the a11y button which is
assigned by the user from the settings app.

Bug: 152263232
Test: atest SettingsProviderTest
Change-Id: I7a70e8c8495cefe6632efddbb322a323aa1168c7
Merged-in: I7a70e8c8495cefe6632efddbb322a323aa1168c7
2020-03-25 04:10:08 +00:00
menghanli
390f8f9be9 Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)
- Target to fix migration issue to support a user revoked the accessibility shortcut before upgrading to R, but wants to to apply new hardware shortcut design in R.
- The switchbar of accessibility_shortcut_enabled was removed in (1/n), so we should also remove related checker in controller.

Bug: 142529032
Test: atest AccessibilityShortcutControllerTest
Change-Id: I48f8d88c4192e894b9e210221e5dc7e701344623
2020-03-25 07:46:41 +08:00
Roshan Pius
d0d5fc222e Settings: Add a javadoc note for WIFI_MIGRATION_COMPLETED
Addressing previous CL comment.

Bug: 151888061
Test: Compiles
Change-Id: I4c740134b08bae9f40531c4a0d4133336d1a88d1
2020-03-24 15:16:44 +00:00
Roshan Pius
849a6f78a5 WifiMigration: Add a settings key to indicate migration is complete
Bug: 151888061
Test: Manual verification (ensured that this method returns null after
first reboot)

Change-Id: Ie8ad397c7b68e35cfa7b696ef22d84f376cf3fe7
2020-03-23 18:48:28 -07:00
TreeHugger Robot
243f8b00ae Merge "Expose IMMERSIVE_MODE_CONFIRMATIONS setting as Test API" into rvc-dev 2020-03-20 17:11:08 +00:00
Robert Carr
8d98856760 Expose IMMERSIVE_MODE_CONFIRMATIONS setting as Test API
This way tests which capture the screen can disable the confirmation.

Bug: 150305764
Test: SurfaceControlTests ASurfaceControlTests
Change-Id: I730a78b82be47eb61fe758f2f9c4ff0073754b50
2020-03-19 13:21:34 -07:00
Peter Wang
77bdf2a0c0 Merge "[API Review] APIs in SubscriptionManager" into rvc-dev 2020-03-19 20:07:38 +00:00
TreeHugger Robot
0e7efa9779 Merge "Make DnD check work profile contacts" into rvc-dev 2020-03-19 17:33:18 +00:00
Alex Kershaw
c3e125767e Make DnD check work profile contacts
This ensures that starred contacts from the work profile are allowed
through DnD when that's the setting applied.

Fixes: 111506675
Test: Tested manually currently
Change-Id: I5b98179f267224ea3727018db8c83c49ca3f8307
2020-03-19 09:31:44 +00:00
Junyu Lai
841583ae51 Merge changes I7eaca623,Ic94da540,If330e853,Ie2d229be,Ic6b2f10f into rvc-dev
* changes:
  [SM08] Add NetworkTemplate unit test for fetching mobile data usage
  [SM07] Make combine subtype configurable from Settings
  [SM05] Enable record mobile network stats by collapsed rat type
  [SM04] Support fetching data with NetworkTemplate with subType
  [SM02] Support record mobile network stats by collapsed rat type
2020-03-19 06:29:38 +00:00
junyulai
1be2d732e0 [SM07] Make combine subtype configurable from Settings
Note that enabling/disabling would not take effect until device
reboot. This will be addressed in follow-up patch.

Test: 1. atest NetworkStatsServieTest SettingsBackupTest
      2. adb shell settings put global netstats_combine_subtype_enabled 1|0
Bug: 146415925

Change-Id: Ic94da540afa479ed18f1b6fbda4ae3216c37476b
Merged-In: Ic94da540afa479ed18f1b6fbda4ae3216c37476b
(cherry picked from commit c4f77ac90b)
2020-03-19 01:40:55 +00:00
Peter Wang
ff7f25ff88 [API Review] APIs in SubscriptionManager
Bug: 146362772
Bug: 148180034
Test: atest SubscriptionControllerTest, TelephonyDatabaseHelperTest, TelephonyProviderTest
Change-Id: I77cad8f828ac38976355b7a5f3e8d757b73694ca
2020-03-18 17:41:05 -07:00
Rubin Xu
243c57f079 Merge "Replace COMMON_CRITERIA_MODE setting with getter API" into rvc-dev 2020-03-18 18:42:28 +00:00
Zoey Chen
3312226652 Merge "[TelephonyMainline] @hide @SystemApi and revisit them in S. - CarrierColumns" into rvc-dev 2020-03-18 09:39:12 +00:00
Amit Mahajan
c48113aa14 Merge "Remove @SystemApi from some constants for R." into rvc-dev 2020-03-16 20:35:00 +00:00
zoey chen
9991635bc1 [TelephonyMainline] @hide @SystemApi and revisit them in S. - CarrierColumns
Test: manual
Bug: 144455212
Change-Id: I719ee0a4d23dcb7786954fe2741f3830d3d3a5bc
2020-03-16 12:22:37 +08:00
Hall Liu
19ecc1c95c Merge "Hide APIs introduced in earlier change" into rvc-dev 2020-03-13 20:29:19 +00:00
Amit Mahajan
c55b01552e Remove @SystemApi from some constants for R.
These were exposed for telephony mainline. Will be revisited in S.

Test: basic sanity
Bug: 148171847
Bug: 148171388
Change-Id: Ibdcac557cf35e723f09a7b7a2e59c7deae1fc94e
2020-03-13 10:44:27 -07:00
Hongyi Zhang
3aecf323e3 RescueParty: Add a DeviceConfig killswitch
1. Add a killswitch DeviceConfig flag in case emergency rollback is
needed (e.g. PackageWatchdog doesn't behave correctly).
2. Register the namespace for native flag sync mapper so that we can
also use the flag to turn off native disaster recovery.

Test: Atest RescueParty & verified on local device
Bug: 149420506
Change-Id: I9a0b546c7229c8444947b522585dd2c5ed37a00b
(cherry picked from commit 1c0993cf12)
2020-03-13 16:30:06 +00:00
Simranjit Kohli
a03b6abb5b Merge "Secure FRP : Remove @SystemApi annotation." into rvc-dev 2020-03-13 15:44:29 +00:00
Simranjit Singh Kohli
73da7fca64 Secure FRP : Remove @SystemApi annotation.
Bug: 141262900
Bug: 150699478
Test: NA. Api change only.

Change-Id: I329455e8379041cfe6f85c09d9a23ac7d1af27af
2020-03-12 12:35:06 -07:00
Philip P. Moltmann
12ac3f406f Rename featureId -> attributionTag
In the core functionality this changes everything including aidl's and
field names:
- Context
- ContentProvider
- AppOps*
- Package parsing

For the rest, this is a shallow change to only change to the changed
APIs. This keeps the change small-ish

Exempt-From-Owner-Approval: Rename
Fixes: 148792795
Test: TH
Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
2020-03-12 19:26:10 +00:00
Rubin Xu
f07973239a Replace COMMON_CRITERIA_MODE setting with getter API
Per API review feedback, global settings are discouraged in favour
of fine-grained getter APIs.

Bug: 149999040
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testCommonCriteriaMode
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testCommonCriteriaMode
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Change-Id: Ia810f67409ce2b482bca06f1e21df2f98d12ccfd
2020-03-12 12:03:15 +00:00
Zoey Chen
f489f1994f Merge "Revert [Telephony mainline] Add SystemApi and NonNull annotation" into rvc-dev 2020-03-12 06:20:33 +00:00
zoey chen
7cb5ca8e7d Revert [Telephony mainline] Add SystemApi and NonNull annotation
Reason: Revisit and redesign in S

Bug: 147390517
Test: make
Change-Id: I0749492a5648dfa2fb83271f349a8370972f7032
Merged-In: I0749492a5648dfa2fb83271f349a8370972f7032
(cherry picked from commit 2d280f1bb4)
2020-03-12 03:22:48 +00:00
Hall Liu
a9a6d69b94 Hide APIs introduced in earlier change
Hide device policy override APN APIs

Fixes: 151183944
Test: NA
Change-Id: I9cde79894bda4b31effd2b3ef13d7c9f8df9cbb6
2020-03-12 00:26:55 +00:00
Kevin Chyn
5a563d2870 Merge "Update ACTION_BIOMETRIC_ENROLL documentation" into rvc-dev 2020-03-11 20:56:42 +00:00
Ruslan Tkhakokhov
71888e5fa1 Enforce MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE permission
Bug: 150877732
Test: 1. atest SettingsProviderTest
      2. atest PreservedSettingsRestoreHostSideTest (with
      MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE granted to shell)
Change-Id: I5536233b2084a31161185235195e2a6b25b4c3d1
2020-03-11 10:59:31 +00:00
Jack Yu
fa75bf5bc7 Merge "Added todo work" into rvc-dev 2020-03-11 05:56:18 +00:00
TreeHugger Robot
f414c083dd Merge "Undo commit "Expose constants in Telephony.Carriers"" into rvc-dev 2020-03-11 05:39:55 +00:00
Kevin Chyn
cf7fe46daf Update ACTION_BIOMETRIC_ENROLL documentation
Activity result codes are already being used "undocumentedly" by SUW.
Given the timeline, it's better to not make any guarantees about the
result code and just mention that applications should still check
BiometricManager#canAuthenticate(int) after onActivityResult.

Fixes: 151058692

Test: Skip fingerprint in SUW. Fingerprint SUW is not shown again.
Change-Id: Ia36ea1b6cfc39848be00f8d2219604e68ff45213
2020-03-10 17:23:47 -07:00
Daniel Bright
5dbd3c3b69 Undo commit "Expose constants in Telephony.Carriers"
Undid carrier constants as @SystemApis.  Also had to move
constants out of annotation.java because any references in
that specific file need to be to public APIs.

Bug: 148170690
Test: make, flash
Change-Id: Ie4b827563dbc373c58ec805bc5400e0950b5b81e
2020-03-10 12:27:16 -07:00
Hall Liu
b8eacbec89 Merge "Disable APN lockdown for apps targeting pre-R" into rvc-dev 2020-03-10 01:15:25 +00:00
Jeff Sharkey
9ed18340ca More CTS for APIs used by Mainline.
Bug: 150641862, 150641715, 150641138, 150640123
Test: atest cts/tests/tests/content/src/android/content/cts/ContentResolverTest.java
Test: atest cts/tests/tests/os/src/android/os/cts/BinderTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/DocumentsContractTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/media/MediaStoreTest.java
Change-Id: I6f9ae1dcffd79fd6c422962d9ca64d4b98841766
2020-03-09 20:12:55 +00:00
Jack Yu
c38a70a946 Added todo work
Added todo work to deprecate the broadcasted flag, which is
essentially replaced by the displayed flag.

Test: None
Bug: 143229383
Change-Id: I3907d0d76166a768e57bfa420855e6a0563968a8
2020-03-08 00:37:37 -08:00
Kevin Chyn
db45def65e Merge "Rename biometric enroll extra" into rvc-dev 2020-03-06 22:43:57 +00:00
Sudheer Shanka
cd629dd39a Merge "Add a limit on how much data an app can acquire a lease on." into rvc-dev 2020-03-06 22:39:06 +00:00
Rhed Jao
a4bb7e44da Support long press accessibility button (1/n)
Adds a new setting key to support long press accessibility
button.

Bug: 150587818
Test: atest SettingsProviderTest
Change-Id: I1ca1e01867a937690f7a5e5b27d595cd0a83e395
2020-03-06 06:18:51 +00:00
Kevin Chyn
90cc357df1 Rename biometric enroll extra
Fixes: 150499348

Test: make -j56 update-api
Test: CtsVerifier
Change-Id: Iaa4c682c74c2a082f5e6ec8bd4d1680e1ff8a4bc
2020-03-05 16:53:34 -08:00
Hall Liu
34e61996c5 Disable APN lockdown for apps targeting pre-R
Allow apps targeting pre-R to access the APN db without permissions

Bug: 148552357
Test: manual
Change-Id: I47d142e9984b932f030c29729b9ebcd75c51d26f
2020-03-05 13:52:04 -08:00
Brad Ebinger
cd31f739da Merge "Add new capability polling opt-in intent" into rvc-dev 2020-03-04 18:05:24 +00:00
Brad Ebinger
0a5a8fe7f4 Add new capability polling opt-in intent
Adds a new capability discovery opt-in intent,
which an application can use to prompt the user
to enable contact discovery.

Bug: 111305845
Test: atest CtsTelephonyTestCases; telecom test app
Change-Id: I42b9d7226a1296bc7e4e86a5ff6448bc8f23d3c0
2020-03-03 17:18:32 -08:00
Jay Aliomer
d483f72ee3 Dark theme not working bug
When switching dark mode, the dark mode override should only apply when
the dark theme is in auto or custom mode. The solution is
to set the override to the same value as night mode

Test: UiModeManagerTest

Fixes: 150567159
Change-Id: Ib10b73e747a53669de0babc9b44d373b47bfc0fb
2020-03-03 15:20:12 -05:00
Roshan Pius
b3b559f167 Settings(javadocs): Add alternatives for deprecated settings
Bug: 150219394
Test: Compiles
Change-Id: Ie4dfbfa640a042343e20d2238729444fdc8eadb6
2020-02-28 03:35:12 +00:00
Sudheer Shanka
364364ba41 Add a limit on how much data an app can acquire a lease on.
+ Allow this limit to be modified using DeviceConfig properties.
+ Support DeviceConfig.getProperties() in TestableDeviceConfig.

Bug: 144155182
Test: atest --test-mapping apex/blobstore
Test: atest services/tests/mockingservicestests/src/com/android/server/testables/TestableDeviceConfigTest.java
Test: atest services/tests/mockingservicestests/src/com/android/server/am/CachedAppOptimizerTest.java
Change-Id: I28e67a27771be04ed1d37f367abd392505adc5c4
2020-02-24 05:52:33 +00:00
Blake Kragten
75a0184bb7 Merge "Enhanced Connectivity Dev Toggle" 2020-02-21 22:14:23 +00:00