Commit Graph

5803 Commits

Author SHA1 Message Date
Amit Mahajan
c48113aa14 Merge "Remove @SystemApi from some constants for R." into rvc-dev 2020-03-16 20:35:00 +00: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
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
Joshua Duong
2076c04333 Add Settings.Global.ADB_WIFI_ENABLED.
ADB_ENABLED historically meant the state for USB debugging. Since
wireless debugging can be enabled separately, define another setting
for it.

BUG: b/111434128

Test: make
Exempt-From-Owner-Approval: approved in aosp_master
Change-Id: If3abca8e77381d6832f55d55a43c52ee1a1267d1
2020-02-21 02:21:08 +00:00
Varun Shah
abe60fe376 Merge "Share Standby Bucket state between cross profile interacting apps" 2020-02-20 00:50:52 +00:00
Michael Wachenschwanz
9a3501d6bb Share Standby Bucket state between cross profile interacting apps
Cross profile connected apps can provide the functionality of multiple
app from just one of the apps. If the user uses only one of the apps to
interact with all of the connected apps, the connected apps will fall
into low standby buckets. Cross profile connecting apps and using the
conncted apps is the clear signal of usage for both apps, so this
change treats all usage of one app to be equal to the other.

Fixes: 140808123
Test: atest com.android.server.usage.AppStandbyControllerTests
Change-Id: I9e3bd71c7b486417b3943778edece4ab29d4c41d
2020-02-19 14:48:43 -08:00
Bohdan Petrivskyy
7f1264e629 Merge "Removes redundant @SystemApi for registerMonitorCallback and from MONITOR_DEVICE_CONFIG_ACCESS permission declaration." 2020-02-19 22:07:00 +00:00
Nate Myren
8f842ae786 Merge "Add Auto Revoke Enabled settings constant" 2020-02-19 21:18:36 +00:00
Roshan Pius
bd8dd47fde Merge changes from topics "ap_shutdown_timeout_flag", "scan_always_available_API"
* changes:
  WifiOemMigrationHook: Migrate Settings global values
  WifiManager: Add API for scan always available toggle
  SoftApConfiguration: Add shutdown enabled method
2020-02-19 16:28:43 +00:00
Julia Reynolds
042ebb1dc8 Merge changes from topics "jr-all-convo", "jr-default-vic"
* changes:
  Optionally make VICs bubble
  Add method to retrieve all conversations
2020-02-19 12:24:56 +00:00
Hugh Chen
f786c7fa6c Merge "Add Settings.Global.ADVANCED_BATTERY_USAGE_AMOUNT" 2020-02-19 10:20:28 +00:00
Nate Myren
865507a2d3 Add Auto Revoke Enabled settings constant
Add "AUTO_REVOKE_DISABLED" systemApi constant to Settings, which
will be used to read the global state of the auto revoke system.

Test: None
Bug: 146513245
Change-Id: I8072d124adf2808493f2eb4de5e52d87bef57508
2020-02-18 16:15:50 -08:00
Julia Reynolds
908201e1b0 Optionally make VICs bubble
Test: atest
Bug: 149696991
Change-Id: Iec86ac860a51bcecde70d7abd7feeb5f9319ebfa
2020-02-18 17:13:16 -05:00
Bohdan Petrivskyy
7139780e10 Removes redundant @SystemApi for registerMonitorCallback
and from MONITOR_DEVICE_CONFIG_ACCESS permission declaration.

Test: no need, just removing annotation.

Bug: 149487442
Change-Id: I73bbe9672eb5c8c0fd043c07a5e27463f0f14e5c
2020-02-18 19:05:39 +00:00
Roshan Pius
6d4cb9cdc7 WifiOemMigrationHook: Migrate Settings global values
Changes:
a) Add a method to migrate Settings values from platform.
b) Marked all of those settings back to @hide.
c) Also, deprecated couple of public Settings keys which are no longer
used in the wifi stack.

Bug: 148514485
Test: Compiles
Test: TBD: Add unit tests for this class.
Change-Id: I3566cdb53fc997fbb2cc5bceadd865ff8b01539b
2020-02-18 07:27:28 -08:00
hughchen
e3fae2d4b9 Add Settings.Global.ADVANCED_BATTERY_USAGE_AMOUNT
Bug: 149609340
Test: Build pass
Change-Id: If90e3f5482f551884c016fd78c9f8165e728347b
2020-02-17 18:54:46 +08:00
Sean Pont
59ecddf837 Merge "Improve QuickAccessWallet documentation and client." 2020-02-16 04:30:17 +00:00
Sean Pont
72fc25f5a3 Improve QuickAccessWallet documentation and client.
Test: manual - launch quick access wallet
Test: atest CtsQuickAccessWalletTestCases
Bug: b/149575358
Change-Id: I6f0b86dc62c3cd2b85c5b1b378c7b6c9ec663b58
2020-02-14 16:04:42 -08:00
Paul Hu
4daaa833de Merge "Add ACTION_TETHER_SETTINGS" am: 77e6024c01 am: 06c0f60a2b am: 5e7e9b09aa
Change-Id: Idfc4b99208b07e8a556a9350065de63ac06ac194
2020-02-14 20:20:41 +00:00
Paul Hu
06c0f60a2b Merge "Add ACTION_TETHER_SETTINGS" am: 77e6024c01
Change-Id: Ibde5dfa7be0bd3e2db664b49f3a65eb618da933d
2020-02-14 08:19:04 +00:00
Paul Hu
77e6024c01 Merge "Add ACTION_TETHER_SETTINGS" 2020-02-14 08:05:33 +00:00
Blake Kragten
28e7b5ae61 Enhanced Connectivity Dev Toggle
Add Enhanced Connectivity Developer option switch. This switch will
allow the connectivity thermal power manager to actively shutoff 5G in
order to save power when cellular throughput is below the set threshold.

ScreenShots: https://drive.google.com/drive/folders/109VTTXqIn5Teg6daHpNHV7z13MmEEb7Q?usp=sharing

Bug: 147305171
Test: On-device using developer option menu
Change-Id: Ia990db0fe8a8cea47b12b570c46c10a5ab558a27
2020-02-13 11:25:33 -08:00
Bernardo Rufino
c692869c1e Use SDK_INT constant in the javadoc of SAW intents
Instead of hardcoding 11.

Bug: 146563745
Test: Builds
Change-Id: I3e4002134010558b224492512bd76958edc8e4dc
2020-02-13 08:51:22 +00:00