Commit Graph

108023 Commits

Author SHA1 Message Date
Nikita Ioffe
8a6760b55c Merge "pm install-commit supports waiting for staged session to be ready" am: 1886454c78
Change-Id: Ide53b18b7c32d2dec5bd76cc4f39df65ccd2027e
2020-03-30 22:29:03 +00:00
Cody Kesting
41f775f904 Merge "Clean up handling of NetworkCapabilities#administratorUids." am: 03f3491bd4
Change-Id: I69f1061972af362560a274084c94428b57bd46e8
2020-03-30 22:27:30 +00:00
Nikita Ioffe
1886454c78 Merge "pm install-commit supports waiting for staged session to be ready" 2020-03-30 22:23:37 +00:00
Cody Kesting
03f3491bd4 Merge "Clean up handling of NetworkCapabilities#administratorUids." 2020-03-30 22:04:43 +00:00
Amit Mahajan
0965ee9327 Update API documentation per api-council feedback. am: 69cf3f0f03
Change-Id: Idb7658b12171e8fdb8eb465cf224be7877bffa34
2020-03-30 20:05:00 +00:00
Amit Mahajan
decc3085a1 Merge "Remove @SystemApi from some constants for R." 2020-03-30 19:48:35 +00:00
Tyler Gunn
ab38a06f33 Merge "Update car mode API docs." am: f02ac9e439
Change-Id: I6d69324587f58fd0b52dea36b8a00625642dafb5
2020-03-30 18:57:25 +00:00
Tyler Gunn
f02ac9e439 Merge "Update car mode API docs." 2020-03-30 18:22:32 +00:00
Cody Kesting
898496365a Clean up handling of NetworkCapabilities#administratorUids.
Update ConnectivityService's check for administrator UIDs to use
ArrayUtils to check for UID inclusion. Update the NetworkCapabilities
annotation on the administrator UIDs field to clarify that it is
NonNull.

Bug: 147903575
Test: atest FrameworksNetTests
Change-Id: Id630fe9d76aacdaf038fdaa5360f0327520ee0c3
2020-03-30 16:55:21 +00:00
Tyler Gunn
d5ee1a6325 Update car mode API docs.
1. Clarify the distinction between the prioritized and non-prioritized
intents.
2. Make the priority ordering and choice of them more clear.

Test: make -j offline; preview updated docs for formatting.
Fixes: 150685399
Change-Id: I493bca75db44f25eedb07964e3dc8c8ab38827c2
2020-03-30 09:34:11 -07:00
Remi NGUYEN VAN
f6e84adc67 Merge "Create a builder for NetworkCapabilities." am: c6ab1a994f
Change-Id: I2c78de7b501edca618441040fbe76e34ce15b08e
2020-03-30 03:06:07 +00:00
Remi NGUYEN VAN
c6ab1a994f Merge "Create a builder for NetworkCapabilities." 2020-03-30 02:58:45 +00:00
Treehugger Robot
df9658720b Merge "Independent methods to enable/disable BLE mode" am: bb3874364f
Change-Id: Ia7d12316bbf159de6d3eece5f96f28a66158ca12
2020-03-30 01:38:04 +00:00
Treehugger Robot
bb3874364f Merge "Independent methods to enable/disable BLE mode" 2020-03-30 01:20:19 +00:00
Nikita Ioffe
87847be695 pm install-commit supports waiting for staged session to be ready
This change allows callers of adb install-multi-package to benefit from
--wait flag which will wait for the pre-installed verification of staged
sessions.

Test: atest PackageManagerShellCommandTest
Test: adb install-multi-package tzdata.apex shim.apex
Bug: 147694315
Change-Id: Ia356c4dff635ec230eb505fb400913c76ec84042
Merged-In: Ia356c4dff635ec230eb505fb400913c76ec84042
(cherry picked from commit 13973e1d89)
2020-03-28 19:28:01 +00:00
Amit Mahajan
1c87deaacf 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
Merged-in: Ibdcac557cf35e723f09a7b7a2e59c7deae1fc94e
Change-Id: Ibdcac557cf35e723f09a7b7a2e59c7deae1fc94e
(cherry picked from commit c55b01552e)
2020-03-27 17:38:33 -07:00
Tobias Thierer
d9b0a60742 Merge "OWNERS: tobiast -> ngeoffray." am: 9c0d26b4cb
Change-Id: I5add36188c6e4ccfdd7aeac6e1c7f276f0ccbe4c
2020-03-27 11:30:14 +00:00
Tobias Thierer
9c0d26b4cb Merge "OWNERS: tobiast -> ngeoffray." 2020-03-27 11:04:12 +00:00
Aaron Huang
1922f85403 Merge "API review: access field by method" am: 79c8147678
Change-Id: I68041686393f73a38dcd49f6fcd5bd5930f6054d
2020-03-27 07:24:02 +00:00
Aaron Huang
79c8147678 Merge "API review: access field by method" 2020-03-27 07:03:25 +00:00
Treehugger Robot
f7f22f2539 Merge "Don't include the data dir in zygote library paths." am: 13033a2612
Change-Id: If910e9efbb5cb4cfbee80ed6b86358a549d21975
2020-03-26 15:29:12 +00:00
Treehugger Robot
13033a2612 Merge "Don't include the data dir in zygote library paths." 2020-03-26 15:03:26 +00:00
Tobias Thierer
fa82e757dd OWNERS: tobiast -> ngeoffray.
This CL topic was created via:

  find . -name OWNERS | xargs grep -l tobiast | xargs sed \
  -i 's/tobiast/ngeoffray/g'

Plus appropriate repo start, git commit, repo upload commands:

  while read proj; do croot $proj ; repo start OWNERS-tobiast-ngeoffray ; \
  git commit -F ~/commit-message.txt; croot ; done \
  < ~/owners-projects.txt

  repo upload -t --br=OWNERS-tobiast-ngeoffray

No attempt was made to sort the files after the replacement.

Exempt-From-Owner-Approval: Both old and new owner are on this CL.
Test: Manually inspected the result.
Bug: 152399425
Change-Id: I2f100a71d399a7d4d46ea036fff564ff5c5dbda7
2020-03-26 14:10:06 +00:00
Treehugger Robot
7563cf27cf Merge "BluetoothHearingAid System APIs now throw an exception if a null BluetoothDevice is passed in" am: 364534c3d2
Change-Id: I525f77949a1f586869841efb4cd91a671341d0ef
2020-03-26 10:25:32 +00:00
Treehugger Robot
364534c3d2 Merge "BluetoothHearingAid System APIs now throw an exception if a null BluetoothDevice is passed in" 2020-03-26 10:07:30 +00:00
Yurii Zubrytskyi
793b42f6a2 Merge "Port the current code to new IncFS" am: e2ce10ceeb
Change-Id: I69f9529d94f680e757393b232a0671ce81fd5875
2020-03-26 07:33:56 +00:00
Yurii Zubrytskyi
e2ce10ceeb Merge "Port the current code to new IncFS" 2020-03-26 07:23:10 +00:00
Aaron Huang
bc10b501d0 Merge "Remove Context.NETWORK_POLICY_SERVICE from @SystemApi" am: acacd7190f
Change-Id: If81a8a6168237fa29be3d94645554ec6a739c555
2020-03-26 07:01:44 +00:00
Aaron Huang
acacd7190f Merge "Remove Context.NETWORK_POLICY_SERVICE from @SystemApi" 2020-03-26 06:48:51 +00:00
Sarah Chin
15a7cf4a23 Merge "API review: SubscriptionPlan#getNetworkTypes/setNetworkTypes" am: b93bf72090
Change-Id: I2cb457a7fbd76dae846e66d6efde117e7f513a47
2020-03-26 03:59:11 +00:00
Sarah Chin
b93bf72090 Merge "API review: SubscriptionPlan#getNetworkTypes/setNetworkTypes" 2020-03-26 03:41:29 +00:00
Shuo Qian
5fb0be0ac3 Merge "Hide several System APIs" am: 0d8a3bb0f6
Change-Id: Ibcae02d3d37832fb204aa5a4c372c89cf50c1409
2020-03-25 23:16:38 +00:00
Shuo Qian
0d8a3bb0f6 Merge "Hide several System APIs" 2020-03-25 23:11:27 +00:00
Hall Liu
b2eae3c472 Merge "Expose all TelephonyRegistryManager methods" am: 66fc127ad1
Change-Id: I68f1d3c448c62469f57e32a90bc204248fb96318
2020-03-25 21:04:15 +00:00
Hall Liu
66fc127ad1 Merge "Expose all TelephonyRegistryManager methods" 2020-03-25 20:53:10 +00:00
Rahul Sabnis
eb5712abd2 BluetoothHearingAid System APIs now throw an exception if a null
BluetoothDevice is passed in

Bug: 149238489
Test: Manual
Merged-In: I594f558bfe1e286bf74dd8dc3db4c8497fd0a025
Change-Id: I594f558bfe1e286bf74dd8dc3db4c8497fd0a025
2020-03-25 13:50:36 -07:00
Torne (Richard Coles)
89dea60b17 Don't include the data dir in zygote library paths.
When creating a LoadedApk in a zygote context (app zygote or WebView
zygote), don't add the app's data dir to the list of paths the dynamic
linker is allowed to load libraries from, because the linker's attempt
to canonicalize the path causes SELinux access denials. The process
can't access the data directory at all, so cannot load libraries from
there in any case.

Fixes: 149481620
Test: check for avc denials from webview_zygote
Change-Id: I9aceecaf6067e748cc2251782b0f41661cbb35d8
Merged-In: I9aceecaf6067e748cc2251782b0f41661cbb35d8
2020-03-25 12:39:59 -04:00
Chalard Jean
2c129e97cc Merge "Allow MANAGE_TEST_NETWORKS to register limited agents" am: 9cbc17d75e
Change-Id: Ibd162792a7ab02fcbb06130f21a825a386678c05
2020-03-25 10:33:55 +00:00
Ugo Yu
644a6d52a6 Independent methods to enable/disable BLE mode
* Use IBluetoothManager.enableBle() and disableBle() to toggle BLE only
  mode instead of updateBleAppCount() then enable().
* Fix BluetoothAdapter.disableBle sometime won't disable Bluetooth.
* Add active log if Bluetooth is disabled via disableBle().

Bug: 139454316
Test: enableBle() -> disableBle() and check Bluetooth is OFF.
Change-Id: I173d5fed1b47ff68a6504741e25754e65cbd1455
2020-03-25 17:47:19 +08:00
Chalard Jean
9cbc17d75e Merge "Allow MANAGE_TEST_NETWORKS to register limited agents" 2020-03-25 09:47:03 +00:00
Chalard Jean
d134d4ff57 Allow MANAGE_TEST_NETWORKS to register limited agents
This puts in force some restrictions against test networks,
and in exchange relaxes the restrictions around registering
a network agent that provides a test network.
Test networks can only ever have transport TEST, and have
only a few capabilities available to them.

This is useful in particular to test CTS. See aosp/1253423
for first, basic usage of this capability.

Test: IpSecManagerTunnelTest
Test: new CTS aosp/1253423
Bug: 139268426
Change-Id: I47600e6097e8519e50ae771daa13bb6bb7640451
2020-03-25 16:28:50 +09:00
Chalard Jean
9274cc5057 Create a builder for NetworkCapabilities.
Bug: 151322799
Test: FrameworksWifiTests
Change-Id: I69c00c9e3963950e55d7105d8825f7d3a3ec9b2f
Merged-In: I06eb97e50d5583579b3c26d1365d2dbaec8bfc99
(cherry picked from commit 9771f34dae9cdeb857636cac2b3c2d473713914e)
2020-03-25 13:27:04 +09:00
Chalard Jean
80da442731 Merge "Expose netId by adding getter API" am: b2b692e157
Change-Id: Iab3bae76255fb4096aa3b2c9da8d6f12bb588d3e
2020-03-25 02:44:04 +00:00
Chalard Jean
b2b692e157 Merge "Expose netId by adding getter API" 2020-03-25 02:23:03 +00:00
sqian
bc1f641138 Hide several System APIs
Test: Treehugger
Bug: 151241308
Change-Id: Ie611320f4651b83e0ced6f5c8fede34a8a0a41c1
Merged-In: Ie611320f4651b83e0ced6f5c8fede34a8a0a41c1
(cherry picked from commit 1e154a345c)
2020-03-24 18:40:23 -07:00
Hall Liu
2499c26a49 Expose all TelephonyRegistryManager methods
Expose all the methods as SystemApis for telephony to use.

Fixes: 148114017
Test: atest TelephonyRegistryManagerTest
Change-Id: I43537bf741742eb9e8df1a55e20cc3c8b2bbd874
Merged-In: I43537bf741742eb9e8df1a55e20cc3c8b2bbd874
2020-03-25 01:08:12 +00:00
Yurii Zubrytskyi
12817bbbc3 Port the current code to new IncFS
Bug: 146080380
Test: manual, "cmd incremental install-start"

Change-Id: I6761c3f0e58b6d4de1ae3c4b31c23204fba9f740
Merged-In: I6761c3f0e58b6d4de1ae3c4b31c23204fba9f740
2020-03-24 14:02:44 -07:00
Treehugger Robot
65421fe420 Merge "Allow staging multiple session with non-overlapping packages (apk-only)" am: 7820030367
Change-Id: I87f982d0297ff2a5a54c387e2ceab04abd8960f1
2020-03-24 16:58:58 +00:00
Treehugger Robot
7820030367 Merge "Allow staging multiple session with non-overlapping packages (apk-only)" 2020-03-24 16:53:39 +00:00
Aaron Huang
8e1ce70353 API review: access field by method
- InvalidPacketException, public field should be a method so
  add getter to get error code.
- KeepalivePacketData, public fields should be methods so
   add getter for fields.

Bug: 151322799
Test: atest FrameworksNetTests
      atest FrameworksWifiTests
      atest FrameworksTelephonyTests: some failure in CarrierAppUtilsTest
Copy from ag/10731108
Change-Id: Id01e6135193716cc21bba11da529bf1507a954f7
Merged-In: Id01e6135193716cc21bba11da529bf1507a954f7
2020-03-24 10:55:18 +00:00