Common Criteria mode puts device into a state where certain
funtionalities are tuned or turned on to meet the higher security
requirement from Common Criteria certification. Device Owner
can use the new device policy API to toggle Common Criteria mode.
Bug: 137937540
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest SettingsProviderTest
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testCommonCriteriaMode
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testCommonCriteriaMode
Change-Id: If07c053437e980ed3317d3838cc74e5bfd44efce
WifiConfiguration used in the feature of add apps Wi-Fi networks was deprecated, need to be changed to use WifiNetworkSuggestion instead.
Bug: 136472483
Test: just add action, test case will be in Settings App side.
Change-Id: Ia1e4ab88dd70f951ff4e9115b1e373a9886ab565
a) Removed some of the @hide settings value which can be replaced with
an overlay flag.
b) Promoted all the other wifi setting keys to @SystemApi.
Bug: 147373460
Test: Device boots up and connects to wifi networks.
Change-Id: Id9775a5a73350ac9921400904771e6f04810e45a
Bug: 144838882
Test: 1) SettingsStateTest
2) Manually change settings on the device; verify isModified flag
is set; reboot; make sure changes are persisted.
In ag/10056253 logic was introduced to make sure settings modifications
are not overridden by restore. However, some callers still need to use
the old behavior. Modification made through
Settings.System.putStringOverrideableByRestore will be overridden by
restore.
Change-Id: I91084ef61711a77ff17b2a5ee1996fa15cb17e73
- Remove the @hide of queryDynamicRawData api in the
SearchIndexablesProvider.
- Remove the @hide of DYNAMIC_INDEXABLES_RAW and
DYNAMIC_INDEXABLES_RAW_PATH strings in the SearchIndexablesContract.
Fixes: 143670349
Test: manual
Change-Id: Ic33060c21211a1ca0d56fe3329d19b53f4576dfe
- Migrate magnification navibar enabled setting to a11y button targets
list setting.
- Clear settings of a11y button targets list, since there's no need to
track legacy ones.
Bug: 136293963
Test: atest SettingsProviderTest
Change-Id: I0e83ebe55e00b5c760e3df5180a5d3a67c429e6f
Use full volume has been renamed to override DnD and
the toggle is now only available for certain countries. We
intended not to provide the ability to migrate this shared
preference as it might cause issue for users who already
changed the preference. After mainline migration, override
DnD should be always reset to default value of that country.
Test: Manual
Bug: 147426188
Change-Id: I5746fe32674131b474e784bd5dd62ecff76386d5
Creates intent to open the relevant settings page for the
user to enable/disable the INTERACT_ACROSS_PROFILES appop.
BUG: 140728653
BUG: 136249261
Test: atest CrossProfileAppsPermissionHostSideTest
Change-Id: Ia86ae5c8318190374ee73377b81cfade3b0e34c8
If tethering provisioning check is required, caller must have tethering
privilege permission to change tethering. If provisioning is not needed,
caller who has write settings permisssion also can change tethering.
Expose checkAndNoteWriteSettingsOperation for tethering check whether
caller has write settings permission.
Bug: 144814607
Test: -build, flash, boot
-atest SettingsTest#testCheckWriteSettingsOperation
Change-Id: Ib3931bbe39361c2c4324935f16473cc675848032
Make some tethering constants @systemApi because tethering
cannot use hide Api.
Bug: 144814607
Test: build, flash, boot
Change-Id: I8b46e2483eec575cddaad392d055551b75ca71ef
Adds 2 new intents that are intended to launch Settings activity that
control apps' ability to MANAGE_EXTERNAL_STORAGE.
ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION launches a generic activity
to control all apps that declared MANAGE_EXTERNAL_STORAGE permission.
Any app can launch this activity.
ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION launches an activity for a
specific app. Package name should be specified in the intent data as a
package-schemed URI.
Test: manual
Bug: 146425146
Change-Id: I232df1f61ec8e76b5b0233d202114c5b260fecb7
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.
Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
Create new APIs in TelephonyManager for DevicePolicyManager to add
override APNs, and use them in DevicePolicyManagerService instead of
directly accessing the APN database.
Bug: 146834818
Test: cts-tradefed run cts --module DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testOverrideApn
Test: atest TelephonyManagerTest
Change-Id: I6c6214424169c05fd452db71a8c6593f8473b9d4
Merged-In: I6c6214424169c05fd452db71a8c6593f8473b9d4
Create new APIs in TelephonyManager for DevicePolicyManager to add
override APNs, and use them in DevicePolicyManagerService instead of
directly accessing the APN database.
Bug: 146834818
Test: cts-tradefed run cts --module DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testOverrideApn
Test: atest TelephonyManagerTest
Change-Id: I6c6214424169c05fd452db71a8c6593f8473b9d4
When resetToDefault() is called on DeviceConfig before reset
existing flag configuration is going to be banned. Next time
setProperties() is called with some flag configuration a check
will be done to verify if the configuration is not banned only
if passed the write will be allowed to go through.
Test: atest FrameworksCoreTests:DeviceConfigTest
Bug: 136134408
Change-Id: I341f51632b131c1cfef85402906b7a0b6e18075b
This was added in backup multi-user development but the usage was
removed as backup is de-activated by default for non-system users
and has to be activated on a per user basis.
Bug: 137528046
Bug: 136738613
Test: atest -v CtsBackupHostTestCases
Test: atest -v CtsBackupTestCases
Change-Id: I9475500ea217cad0548f7740ad3580e478fefa9f
To support window magnification, we use this key to store magnification
mode.
Bug: 145780606
Test: SettingsBackupTest
Change-Id: Id2e4104b1f9bbf994b83b73a165d87e4fd161413
Update ACTION_PROCESS_WIFI_EASY_CONNECT_URI intent to include
additional information in case of a failure. The intent will
return an extra field with result code for R1 and R2 devices,
and additional details for R2 devices: SSID, channe list,
and band list.
Bug: 139381558
Test: Manual test
Change-Id: Ib25db37279289acbb3841f4b4862d8cbeb4efdd2