Commit Graph

6549 Commits

Author SHA1 Message Date
Arc Wang
4a00a052da Merge "Remove Settings#EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_PENDING_INTENT" into sc-v2-dev 2021-09-27 02:28:02 +00:00
Fabian Kozynski
d83719a7d3 Merge "Fix intent in HotspotTile" into sc-qpr1-dev am: 1b4cc5d7a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15837790

Change-Id: Iddc40985ab35ff2a58f8b024843b0551e066b2d2
2021-09-25 02:12:59 +00:00
Arc Wang
6f7d870b56 Remove Settings#EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_PENDING_INTENT
For the Intent ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK,
EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_PENDING_INTENT is for partner
apps to tell target Activity the private Activity to start.

However, developers feedback that customization extra data are
preferred, so a later CL supports customized extra data for
ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK.

Developers will not need
EXTRA_SETTINGS_LARGE_SCREEN_DEEP_LINK_PENDING_INTENT to specify
a private Activity.

Bug: 197048599
Test: build pass
Change-Id: Icc949b897ff36755004cc34b31caf5b06974bfae
2021-09-24 13:50:16 +08:00
Jean-Michel Trivi
6172dc5ba0 Spatial audio: read prop for spatializer init, persist feature state
Use property ro.audio.spatializer_enabled to optimize the
AudioService initialization of Spatializer.

Persist the state of the spatial audo feature whenever its state
changes. Read it at start or whenever AudioService needs to
re-initialize the feature (after audio_server restart)

Bug: 188502620
Test: adb shell dumpsys audio | grep -A 4 Spatial
Change-Id: I667ff7f0247396aad698765455e400337d9c6dcb
2021-09-22 10:56:27 -07:00
Fabian Kozynski
1b4cc5d7a0 Merge "Fix intent in HotspotTile" into sc-qpr1-dev 2021-09-20 13:44:41 +00:00
Fabian Kozynski
8ed6169583 Fix intent in HotspotTile
Test: manual
Fixes: 197013730
Change-Id: Ic5d9ca47f6c724fdbff84b38ead5de34793aac9e
2021-09-17 10:34:46 -04:00
Tim Joines
76da258af9 Merge "Adding native flag namespace for lmkd." into sc-qpr1-dev am: aeb139aca5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15787681

Change-Id: Ib632461ecfc34beebe8d37e7d5962e5fc52b749a
2021-09-15 23:19:17 +00:00
Tim Joines
aeb139aca5 Merge "Adding native flag namespace for lmkd." into sc-qpr1-dev 2021-09-15 23:01:57 +00:00
Joy Babafemi
fcefe06068 Merge "Remove Readable annotation from UWB Settings key." into sc-qpr1-dev am: 46e87609a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15754904

Change-Id: I33739eee4ceffdbf7a5e8cd86e61a80e8b9bf512
2021-09-09 20:54:00 +00:00
Suren Baghdasaryan
da3fed0b47 Adding native flag namespace for lmkd.
For experiment flag testing, adding lmkd flag in DeviceConfig.

Bug: 194316048
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I1f13d6bbb4a9a7fd8825d7e5acde416750271df4
Merged-In: I1f13d6bbb4a9a7fd8825d7e5acde416750271df4
2021-09-08 21:12:09 +00:00
Arc Wang
2d9568eef1 Add ACTION_LARGE_SCREEN_DEEP_LINK for large screen deep link pages.
System or preinstalled apps can use the intent to show it's Activity
in split mode of Settings app for large screen devices.

Bug: 197048599
Test: build pass
Change-Id: Icb709f12a51687679b23ac7920e60873c537b8bb
2021-09-06 22:08:48 +08:00
TreeHugger Robot
38d002b1ab Merge "Add Settings key for UWB State" into sc-qpr1-dev am: d9a873a20e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15748723

Change-Id: I6d44734cf445ab2e34f86abb33796465244a76f2
2021-09-03 19:14:13 +00:00
Joy Babafemi
14c31385c0 Remove Readable annotation from UWB Settings key.
Bug: 191608501
Test: Manual
Change-Id: I51620582c1b1f2fdd9bfa2ee55e2aca8760d358a
(cherry picked from commit 514c5f40ea)
2021-09-03 19:06:46 +00:00
Joy Babafemi
4e18e03e22 Add Settings key for UWB State
Test: Manual
Bug: 191608501
Change-Id: I7656f78f47183e9e61d98a3ccbac94690570df20
Merged-In: I7656f78f47183e9e61d98a3ccbac94690570df20
(cherry picked from commit 760255d894)
2021-09-02 17:27:03 +00:00
TreeHugger Robot
e162a1f9ca Merge "Remove support: libfeature_support_angle.so" into sc-qpr1-dev am: e61852b9c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15613738

Change-Id: I13d5e72892cb2072ec17aa23d3adda3c72eb5c2f
2021-08-27 20:21:12 +00:00
Tim Van Patten
de31075f7c Remove support: libfeature_support_angle.so
Remove support for ANGLE's libfeature_support_angle.so.

This also removes all of the logic related to checking the rules file,
since libfeature_support_angle.so is what parsed the JSON rules file.

Bug: b/187342779
Bug: b/184757175
Test: make and manual verification ANGLE is loaded
Change-Id: I02ac083fb8144465b60ac0ed2738c73b31addda1
Merged-In: I02ac083fb8144465b60ac0ed2738c73b31addda1
2021-08-24 20:41:44 +00:00
Govinda Wasserman
d655414526 Adds LPP sensitivity for Assistant invocation
Test: Cherrypick ag/15542611
Test: Ensure Assistant invocation is set as the LPP action
Test: Adjust LPP sensitivity
Test: Hold LPP for the set time
Test: Observe activation duration matches set time
BUG: 192995149
FIX: 197080361
FIX: 197081640
Merged-In: I820a9d83fd56bfa9ca978e82eb779cf3d519a5ab
Change-Id: I820a9d83fd56bfa9ca978e82eb779cf3d519a5ab
2021-08-18 14:14:32 +00:00
Govinda Wasserman
e4d09277c1 Adds LPP sensitivity for Assistant invocation
Test: Cherrypick ag/15542611
Test: Ensure Assistant invocation is set as the LPP action
Test: Adjust LPP sensitivity
Test: Hold LPP for the set time
Test: Observe activation duration matches set time
BUG: 192995149
Merged-In: I820a9d83fd56bfa9ca978e82eb779cf3d519a5ab
Change-Id: I820a9d83fd56bfa9ca978e82eb779cf3d519a5ab
2021-08-17 12:56:53 -04:00
Alex Florescu
91c8c9ea8f Introduce separate rotation lock settings per device state.
This will be flagged with config_perDeviceStateRotationLock.
If true, a distinct rotation lock settings can be maintained for each
device state. Some device states won't need their own rotation lock
setting and in those cases, the setting of the previous device state
will be used.

The existing global setting "Settings.System.ACCELEROMETER_ROTATION"
still works the same and reflects the setting for the currently active
state.

Test: atest SystemUiTests:RotationLockControllerImplTest
Test: atest SystemUiTests:DeviceStateRotationLockSettingControllerTest
Bug: 183001527
Change-Id: I1cbcfae7db7c01745ea7ad665432f8651d8f1546
2021-07-30 16:27:44 +01:00
TreeHugger Robot
ede423187b Merge changes from topic "a11y_gesture_s-sc-v2-dev" into sc-v2-dev
* changes:
  Add the log for new supported accessibility button type 'Accessibility Gesture'
  Update the supported type in ACCESSIBILITY_BUTTON_MODE according to navigation gestural mode or button mode
  Add a supported type 'gesture' under ACCESSIBILITY_BUTTON_MODE
2021-07-22 18:53:58 +00:00
Beth Thibodeau
db622b652e Merge "Always show lockdown button" into sc-dev am: 04697f8263
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15289457

Change-Id: I597e4fb1a795cbb5f50ffaea3f31d717980b1928
2021-07-16 02:01:21 +00:00
Beth Thibodeau
eb151ee8d0 Always show lockdown button
Remove setting option and show lockdown button by default in the power menu

Fixes: 185618694
Test: atest GlobalActionsDialogLiteTest
Test: flash device, set PIN, observe button present

Change-Id: I7c8f976fd73f6edf3edb26c8de31fd83eb9ac296
2021-07-14 16:22:44 -04:00
jasonwshsu
2e24cc7a87 Add a supported type 'gesture' under ACCESSIBILITY_BUTTON_MODE
Root cause: From the user feedback, accessibiltiy gesture has more
benifits than floating accessibility button especially to low vision users.

Solution: Bring back accessibility gesture to be one of the options of
the accessibility button.

Bug: 190563948
Test: install new SettingsProvider.apk & adb reboot & manual test
Change-Id: I59952c744cddfbdc01b906d39b2681858f0bb2ea
2021-07-15 01:00:38 +08:00
Songchun Fan
c4ab6f2069 Merge "Remove @TestApi and @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev am: 3172fe263a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15235116

Change-Id: I3be6e986a5982dac227599e34a006c4046512036
2021-07-09 16:55:49 +00:00
George Chang
bf0d8be298 Remove @TestApi and @Readable for NFC_PAYMENT_DEFAULT_COMPONENT
Remove @Readable for security vulnerability.
Remove @TestApi since there's no exceptions in ReadSettingsFieldsTest

Bug: 191519696
Bug: 174151290
Test: atest CtsNfcTestCases
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Test: atest CtsQuickAccessWalletTestCases
Test: make RunSettingsRoboTests -j
Test: atest QuickAccessWalletTileTest
Merged-In: I13c038753d3acf3f3b651af3cd22ff55cd464cb1
Change-Id: I13c038753d3acf3f3b651af3cd22ff55cd464cb1
2021-07-09 09:46:29 +00:00
TreeHugger Robot
ad3e6f5500 Merge "[SettingsProvider] make nfc_payment_default_component readable" into sc-dev am: 576c548b3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15235880

Change-Id: I418f9f669453796aceef6dfe1fc9ffa8fc5dffcf
2021-07-08 18:15:53 +00:00
Songchun Fan
47b1f3c74b [SettingsProvider] make nfc_payment_default_component readable
App processes might need to read the Settings value using system code.
Therefore this key is @hide but should be @Readable.

BUG: 191519696
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Change-Id: Idf1512ebf3487d74a18ad2dc13ee7cbb2c7643d0
2021-07-08 16:11:18 +00:00
Beth Thibodeau
afce98b200 Merge "Rename media control flag" into sc-dev am: 9fd619e7e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15151227

Change-Id: Ifa57e1f33ef9c0d8c3cbbdda41e40b51e1381336
2021-07-01 23:36:54 +00:00
Beth Thibodeau
9a15d478e9 Rename media control flag
Some users had a bad default value from a previous build. This renames
the flag so that they will still get the correct default when upgrading.

Fixes: 191786947
Test: manual, atest
Change-Id: I8fa3077bf7c8a4414ebc259174214538684f6560
2021-06-29 22:33:28 -04:00
Tom Natan
1920a823cc Merge "Add constant for "app_compat_overrides" namespace" into sc-v2-dev 2021-06-23 10:35:19 +00:00
tomnatan
f3c3a7d1b1 Add constant for "app_compat_overrides" namespace
Bug: 190024878
Test: N/A
Change-Id: Ice53f3043b0433b57e5b2e4e7b854e8043be8ada
2021-06-21 15:00:29 +00:00
TreeHugger Robot
cc265a58de Merge "Revert "Revert "Release cblocks back to the free pool""" into sc-dev 2021-06-18 17:28:19 +00:00
Yandry Perez Clemente
0f7f3f233c Merge "Add error id when build is debuggable." into sc-dev 2021-06-03 09:44:12 +00:00
Jaegeuk Kim
a3090d41fe Revert "Revert "Release cblocks back to the free pool""
This reverts commit 516cb2d025.

Reason for revert: Add back after merging f2fs/f2fs-tools changes removing immutable bit stuffs

Bug: 188928405
Change-Id: I6a6fcde1190bff14abe1a67a75b8e7be95d89072
2021-06-03 02:18:11 +00:00
John Tsai
5d1934f765 Merge "Revert "Release cblocks back to the free pool"" into sc-dev 2021-06-03 02:13:03 +00:00
John Tsai
516cb2d025 Revert "Release cblocks back to the free pool"
This reverts commit e41b029d85.

Reason for revert: b/189985437

com.android.tradefed.targetprep.TargetSetupError[APK_INSTALLATION_FAILED|520001|DEPENDENCY_ISSUE]: Failed to install com.android.devicehealthchecks with ...

Change-Id: I06fe7d94f6dab474c74b093de8692f08d4031b62
2021-06-03 02:10:26 +00:00
Patrick Baumann
81858ab41c Merge "Release cblocks back to the free pool" into sc-dev 2021-06-02 20:35:15 +00:00
Songchun Fan
9dbc816ac7 [SettingsProvider] revert max sdk restriction for mobile_data
BUG: 189872797
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Change-Id: I18b6cf90a79ffb6c28604c1967d7208c523f4b13
2021-06-02 18:55:14 +00:00
Todd Kennedy
e41b029d85 Release cblocks back to the free pool
Modern f2fs implementations starting in S support compression
natively within the file system. The data blocks of specific
installation artifacts [eg. .apk, .so, ...] can be compressed
at the file system level, making them look and act like any
other uncompressed file, but consuming a fraction of the space.

However, the unused space is not free'd automatically. Instead,
we must manually tell the file system to release the extra
blocks [the delta between the compressed and uncompressed block
counts] back to the free pool.

Because of how compression works within the file system, once
the blocks have been released, the file becomes read-only and
cannot be modified until the free'd blocks have again been
reserved from the free pool. For these installation artifacts,
that is not a concern.

Test: atest CtsAppSecurityHostTestCases:SplitTests
Test: atest CtsAppSecurityHostTestCases:IsolatedSplitsTests
Test: atest CtsAppSecurityHostTestCases:PkgInstallSignatureVerificationTest
Test: atest CtsLibnativehelperTestCases
Test: atest PackageManagerTests
Test: Manual. Boot the device and see cblocks for stub APKs are released
Test: Manual. Disable and re-enable stub APK and see cblocks are released
Bug: 188928405
Change-Id: I4b29dab263d02a79d7b1593d35ae28101d33679a
2021-05-28 02:59:47 +00:00
Songchun Fan
8b54307ce6 [SettingsProvider] add maxTargetSdk in @Readable
New annotation field that allows Settings key owners to specify the
maximum target sdk level of the caller app allowed to read the
hidden settings key.

Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
BUG: 187314081
Change-Id: Ibb603df4c8bca75e3788258e69862595c22e5154
2021-05-27 15:00:41 -07:00
Beth Thibodeau
8beb8407ec Merge "Add recommendation setting and remove app settings" into sc-dev 2021-05-27 16:19:17 +00:00
Beth Thibodeau
18c36e88a8 Add recommendation setting and remove app settings
- Add a new setting to control whether smartspace recommendations are
enabled
- Remove setting to block individual apps from resumption

Bug: 187925818
Test: atest MediaDataManagerTest
Change-Id: If1d5f4c5a204e655a90dd2cca6687acdfcd12fec
2021-05-26 14:27:54 -04:00
Yandry Perez Clemente
a253a2b8a8 Add error id when build is debuggable.
Bug: b/188122403
Test: Manual. Triggered an ANR and verified the error id is present in
the ANR dropbox entry.

Change-Id: Id6ac956ca5fe635189d12a9e2c0ba14e26e8719d
2021-05-25 14:29:37 +01:00
Soonil Nagarkar
1ea818347e Update location bypass allowlist
Create a new DeviceConfig entry to replace the prior Settings entry on
which the location ignore settings allowlist is based. This allows us to
allowlist based on attribution tag, and eliminate holes for large
applications.

Test: manual + CTS + GTS
Bug: 187421886
Change-Id: I31e61db79b93e202bd8c66efae1bb5aaf0c88ff5
2021-05-21 09:25:47 -07:00
Matt Pietal
abc6e0c51b Controls - Use new privacy setting
Wallet/controls privacy setting has been moved and split into
two. Migrate the old setting if the user had previously used
controls. From the QS tile, launch the activity differently when on
the lock screen.

Fixes: 188175341
Test: atest DeviceControlsTileTest
Change-Id: If38ae1c3f0bcc8e0e75146dda09276c13a0604e9
2021-05-18 10:14:32 -04:00
Tom Natan
1d2868c45b Merge "Add @TestApi to NAMESPACE_CONSTRAIN_DISPLAY_APIS." into sc-dev 2021-05-18 08:25:45 +00:00
Peiyong Lin
6ea3ca56f5 Add a secure settings to control game dashboard shortcut.
Add a secure settings to control the game dashboard shortcut always on
option for all games.

Bug: b/185822999
Test: manual
Change-Id: I96b6ebd6c25230e8f12f3871ef1e78fcce9225e8
2021-05-18 00:19:39 +00:00
TreeHugger Robot
e265a992a6 Merge "Intent to LockscreenSettings page on wallet overflow menu clicked." into sc-dev 2021-05-17 17:48:18 +00:00
Neil Fuller
9f47ce098b Merge "Add device_config cmds for disabling syncs" into sc-dev 2021-05-17 16:17:12 +00:00
Yandry Perez Clemente
b19fc200dc Add a unique id to Perfetto trace and ANR dropbox header.
The unique id is added so that the trace and ANR can be easily linked
server side. Also moves the logging of the ANR atom before the ANR dump
takes place so that the Perfetto trace captures data closer to the point
in time when the ANR happens.

Bug: b/188122403
Test: Manual.
 1. Enabled the flag:

 adb shell device_config put perfetto_error_logger append_perfetto_uuid
 true

 2. Triggered an ANR using a test app. Logs from PerfettoTraceErrorLogger:

 adb logcat -s PerfettoTraceErrorLogger
 --------- beginning of main
 04-30 14:07:02.527 1782 12583 I PerfettoTraceErrorLogger: Pushing trace
 counter: 6c555dc6-3f46-4997-8844-706d91156600#PerfettoMonitoredCrash

 3. The UUID is present in the ANR dropbox headers:

 adb shell dumpsys dropbox data_app_anr --print | grep
 6c555dc6-3f46-4997-8844-706d91156600
 PerfettoUUID: 6c555dc6-3f46-4997-8844-706d91156600

Change-Id: If7110692cb0856e693f595e24b067ce1bc7d0a38
2021-05-17 11:35:29 +00:00