Commit Graph

36 Commits

Author SHA1 Message Date
Ivan Chiang
36e6fecf63 Use noteOpNoThrow instead of checkOpNoThrow in AssistDataRequester
To audit data access and verify the uid and package are consistent,
use noteOpNoThrow instead of checkOpNoThrow.

Bug: 187439908
Test: atest AssistDataRequesterTest
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsAssistTestCases
Change-Id: Ib48040b5b55be09958da4398f4d663908573568c
2022-07-18 05:55:59 +00:00
Automerger Merge Worker
0e3a19b32f Merge "Merge "Remove the *byteShort string resources from the frameworks" am: 73caeda3ad am: 8e6a5fa450" into tm-dev-plus-aosp am: 8576ae798a am: 8e567d3c30 am: 0d4289194b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2100172

Change-Id: If3de1c0499d054ee194bc1e3a09935c884de703c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 16:08:42 +00:00
Victor Chang
de05f19334 Merge "Remove the *byteShort string resources from the frameworks" am: 73caeda3ad am: 8e6a5fa450
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2100172

Change-Id: I944d0d73a165e7817cf4a10d85cd49d880640432
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 15:12:44 +00:00
Yohei Yukawa
1f0211714c Remove IInputMethodClient from hiddenapi-unsupported.txt
There has somehow been the following AIDL-generaged method

  IInputMethodSession IInputMethodSession.Stub#asInterface(IBinder)

in hiddenapi-unsupported.  This is strange because A) there is no way
for IME client apps to obtain an IBinder object of IInputMethodSession
and B) even if IME client apps somehow get a raw IBinder object of
IInputMethodSession its IPC methods are not accessible due to
restrictions on non-SDK interfaces.  Therefore, the risk of
accidentally breaking apps by removing this entry is supposed to be
very low.

To make future refactoring possible, let's remove this entry from
hiddenapi-unsupported.txt.

Fix: 235267988
Test: presubmit
Change-Id: If3b0737854038e39c2bfe4f7811c5d7d7bdc18a7
2022-06-07 16:12:02 -07:00
Rhed Jao
8f7e68c0f4 Fix cross user package visibility leakage for getAppOpPermissionPackages
To fix cross user package visibility leakage, this CL filters out
packages that aren't installed in the calling user before the API
returns results to the caller.

Also adding a user id parameter to the API for the system modules to
specify the correct user id when querying the appop permission packages.

NoNonSdkCheck: Keep @UnsupportedAppUsage for new signature api
Bug: 229684723
Test: atest CrossUserPackageVisibilityTests
Change-Id: I9d3de91b0195d3396d2737673cb23ef899e23467
2022-06-01 12:33:48 +08:00
Victor Chang
756c8c3f5b Remove the *byteShort string resources from the frameworks
The "byteShort" is still kept because ICU's version is too long for this
use case.

This commit is separated to unblock the previous commit which removed
the usage of these strings.

Bug: 36994779
Bug: 71580745
Bug: 217592956
Test: m droid
Change-Id: I1833bd357860841037aa323cdf6acf9366b6ca1e
2022-05-17 17:07:11 +01:00
Xiao Ma
f4d72b212c Split out the ethernet API surface and use framework-connectivity-t
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:

1. Split out ethernet module-lib APIs to Connectivity module.
   Add the ethernet resource filegroup to tiramisu-updatable-sources
   filegroup as well, build them together. Also update the module-lib
   and system api txt to reflect the APIs change. Remove the hidden
   APIs which are moved to Connectivity module. This removal fixes the
   api inconsistent issue with Tethering/apex/hidden/.

2. Remove EthernetService from SystemServer which will be registered
   from ConnectivityServiceInitializer.

3. Replace the BackgroundThread class(imported from f/b/core/java)
   with the one in the modules-utils-backgroundthread lib, which is
   visible to Connectivity module.

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I3e13cb9c0e348333af295c2537d459aa6700ff17
Merged-In: I1956848d3248cc56e9841d221e5e4c160bed65a4
2022-03-14 13:47:01 +00:00
Xiao Ma
218c4d3162 Split out the ethernet API surface and use framework-connectivity-t
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:

1. Split out ethernet module-lib APIs to Connectivity module.
   Add the ethernet resource filegroup to tiramisu-updatable-sources
   filegroup as well, build them together. Also update the module-lib
   and system api txt to reflect the APIs change. Remove the hidden
   APIs which are moved to Connectivity module. This removal fixes the
   api inconsistent issue with Tethering/apex/hidden/.

2. Remove EthernetService from SystemServer which will be registered
   from ConnectivityServiceInitializer.

3. Replace the BackgroundThread class(imported from f/b/core/java)
   with the one in the modules-utils-backgroundthread lib, which is
   visible to Connectivity module.

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I1956848d3248cc56e9841d221e5e4c160bed65a4
2022-03-10 21:22:42 +09:00
Roopa Sattiraju
293ed88b2f Enabling Apex in BT
Bug: 217736913
Test: Compile, bringup and test user journeys
Change-Id: I3e796e3618ad9a077fa5e8ac387e314e896d1051
2022-02-24 20:42:33 +00:00
Junyu Lai
6b708138c1 [MS54.1] Move NetworkStats to updatable sources
This CL builds NetworkStats related code with the
connectivity module instead of platform.

This includes:
1. Add netstats.proto to the module.
2. Add lib dependencies for all callers.
3. Include several source files in platform and add jarjar rule
   to it. Modify callers accordingly.

Test: TH
Bug: 197717846
Change-Id: I244693aebe1782d9e67502638ff8145c51462e1e
Merged-In: I244693aebe1782d9e67502638ff8145c51462e1e
2022-02-18 16:20:47 +08:00
Aaron Huang
794d210854 Split out the ipsec API surface and use framework-connectivity-tiramisu
(cherry picked from commit 1dad7aa006)
Bug: 204153604
Test: TH
Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
Merged-In: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
2022-02-10 19:01:00 +09:00
Junyu Lai
a8f1f762eb [MS54.1] Move NetworkStats to updatable sources
This CL builds NetworkStats related code with the
connectivity module instead of platform.

This includes:
1. Add netstats.proto to the module.
2. Add lib dependencies for all callers.
3. Include several source files in platform and add jarjar rule
   to it. Modify callers accordingly.

Test: TH
Bug: 197717846
Change-Id: I244693aebe1782d9e67502638ff8145c51462e1e
2022-02-07 11:45:17 +09:00
Aaron Huang
1dad7aa006 Split out the ipsec API surface and use framework-connectivity-tiramisu
Bug: 204153604
Test: TH
Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
2022-02-03 09:47:41 +09:00
Calvin Pan
a9ace2c620 Clean <plurals> in FindActionModeCallback
Bug: 199230228
Test: make
Change-Id: I59618e5467696d3173dfb4782ce55964694a42fc
2022-01-24 14:46:19 +08:00
paulhu
c100db56a2 Split out the nsd API surface and use framework-connectivity-tiramisu
- Split out nsd APIs and hidden APIs to Connectivity module.
- Keep the all files in f/b/packages/Connectivity-T and add
  framework-connectivity-tiramisu library on p/m/Connectivity.
  Then make framework to use this module library.
- Remove NsdService from SystemServer which will register from
  ConnectivityServiceInitializer

Bug: 206893064
Test: m online-sdk-dev-docs
Test: atest FrameworksNetTests CtsNetTestCases
CTS-Coverage-Bug: 207804007
Merged-In: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
Change-Id: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
2022-01-19 18:47:45 +08:00
paulhu
f45fe96a54 Split out the nsd API surface and use framework-connectivity-tiramisu
- Split out nsd APIs and hidden APIs to Connectivity module.
- Keep the all files in f/b/packages/Connectivity-T and add
  framework-connectivity-tiramisu library on p/m/Connectivity.
  Then make framework to use this module library.
- Remove NsdService from SystemServer which will register from
  ConnectivityServiceInitializer

Bug: 206893064
Test: m online-sdk-dev-docs
Test: atest FrameworksNetTests CtsNetTestCases
CTS-Coverage-Bug: 207804007
Change-Id: I72c7de124b9cc53f2263bd452ecd5f39e88e485b
2021-12-15 02:10:38 +00:00
Songchun Fan
5fab45ef67 [pm] change internal flags to long
Changes IPackageManager.aidl methods to use long flags instead of int.
Public API change to be followed.

BUG: 204432643
BUG: 204433659
Test: manual
Change-Id: Ib5c42fef998f0116e312c71d620e1a15329e26e0
2021-11-24 06:58:50 -08:00
Paul Duffin
d8c8547954 Merge "Move media related hidden API flag file entries to frameworks/av" into sc-dev 2021-06-30 07:26:37 +00:00
Paul Duffin
8c37e55416 Merge "Move tethering related hidden API flag file entries to packages/modules/Connectivity/Tethering" into sc-dev 2021-06-29 22:54:01 +00:00
Paul Duffin
5283c3cf68 Move media related hidden API flag file entries to frameworks/av
Bug: 179354495
Test: m com.android.media
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Change-Id: I0dea4284723835c0592ce9aaf7382e344ae959f7
2021-06-29 17:27:08 +01:00
Paul Duffin
b0770ecb76 Merge "Move statsd related hidden API flag file entries to packages/modules/Statsd" into sc-dev 2021-06-29 15:45:46 +00:00
Paul Duffin
35f226f727 Merge "Move media provider related hidden API flag file entries to packages/providers/MediaProvider" into sc-dev 2021-06-29 15:28:59 +00:00
Paul Duffin
297b8394ee Move tethering related hidden API flag file entries to packages/modules/Connectivity/Tethering
Bug: 179354495
Test: m com.android.tethering
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Change-Id: I805f6f8553fb17f4c0aa78c3314786a8351ca1f4
2021-06-29 12:58:44 +01:00
Paul Duffin
3abf8d098a Move statsd related hidden API flag file entries to packages/modules/Statsd
Bug: 179354495
Test: m com.android.os.statsd
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Merged-In: Iaa3d98ced5f3b67f891e5d648a5004acdf7a075c
Change-Id: Iaa3d98ced5f3b67f891e5d648a5004acdf7a075c
(cherry picked from commit 48736cdd37)
2021-06-29 12:49:41 +01:00
Paul Duffin
ecd5356f9a Move wifi related hidden API flag file entries to packages/modules/Wifi
Bug: 179354495
Test: m com.android.wifi
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Change-Id: I45f46f9aebb90ca9ff0a60c37068b94238354578
2021-06-29 12:37:58 +01:00
Paul Duffin
dd7640795c Move media provider related hidden API flag file entries to packages/providers/MediaProvider
Bug: 179354495
Test: m com.android.mediaprovider
      - ensure that the generated APEX is byte-for-byte identical
        before and after these changes.
      m out/soong/hiddenapi/hiddenapi-flags.csv
      - make sure that they are not changed by this.
Change-Id: I0615b68715de2bb953da27b60d29d37b2750d86b
2021-06-29 00:01:03 +01:00
Paul Duffin
f7c02ed0f4 Move conscrypt related hidden API flag file contents
Moves the conscrypt related contents of the hidden API flag files to
external/conscrypt.

Bug: 179354495
Test: m com.android.conscrypt out/soong/hiddenapi/hiddenapi-flags.csv
      - verify that this does not change the contents of the apex files
        or the contents of the monolithic hidden API files.
Merged-In: I8dcc23b8123087cada42646f181d5409fba9eb35
Change-Id: I8dcc23b8123087cada42646f181d5409fba9eb35
(cherry picked from commit 6db4fc9e3b)
2021-05-25 22:32:07 +01:00
Paul Duffin
9660f4811b Merge "Move icu related hidden API flag file contents to icu" am: 653935b511 am: e8cf665edd am: f27b828bf9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675890

Change-Id: Id534f0ec692848bbb6c99074bcd4a7e92c0df9ce
2021-04-20 13:15:17 +00:00
Paul Duffin
b314a25c9e Merge "Move art related hidden API flag files to art" am: ef13360a02 am: 727dfbfe51 am: 414d8c1c95
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675868

Change-Id: Idf6c7bdce1f40cae109345c82b9a696675203285
2021-04-20 13:13:46 +00:00
Paul Duffin
fc8fd1018c Move icu related hidden API flag file contents to icu
Bug: 179354495
Test: verified that the out/soong/hiddenapi/... files are unchanged
      by this change
Change-Id: I965651e0d88b759f023620174be3c2fbd19cb31e
2021-04-15 10:45:40 +01:00
Paul Duffin
b2d391d2b2 Move art related hidden API flag files to art
Bug: 179354495
Test: verified that the out/soong/hiddenapi/... files are unchanged
      by this change
Change-Id: Ie5184cfdb4da9c03d804a6022a8981732c3137ba
2021-04-15 10:45:40 +01:00
Paul Duffin
788f2858ab Merge "Avoid duplication of compat team email addresses in OWNERS" am: 2435cbfde7 am: 9a4f3c85be am: 6ef49b92d1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675865

Change-Id: Ice209b14a61b730a0ea6066f7ae727e424db343f
2021-04-14 18:34:07 +00:00
Paul Duffin
afb6c9ff98 Avoid duplication of compat team email addresses in OWNERS
Bug: 177892522
Test: n/a
Change-Id: Id996a51cad9f66e1acc4e260bf1a203088e90607
2021-04-14 14:42:02 +01:00
Paul Duffin
26c79b9600 resolve merge conflicts of 86472844bc to sc-dev
Bug: 179354495
Test: m nothing
Change-Id: I44f047eb68624d66dd215b4a8395d52dec22e4f2
2021-04-07 20:17:28 +01:00
Paul Duffin
15d97d8865 Move hiddenapi config into frameworks/base/boot
As part of the work to modularize the hiddenapi this change moves the
hiddenapi configuration files into the frameworks/base/boot directory
which is where the platform_bootclasspath module that will end up
using it resides.

Bug: 179354495
Test: verified that the out/soong/hiddenapi/... files are unchanged
      by this change
Change-Id: Ic1c3ac9b717c34fa8ff36f349a75fb397101a077
2021-04-06 13:55:50 +01:00
Paul Duffin
7263ded5d8 Update OWNERS files for frameworks/base/boot
Adds OWNERS files for frameworks/base/boot and its new subdirectory
hiddenapi to include the Soong team and the compat team as they will be
the ones responsible for maintaining the contents of those directories.

A follow up change will move the frameworks/base/config/hiddenapi-*
into the new hiddenapi directory but that change will require separate
changes downstream. Separating this change out avoids having general
frameworks/base reviewers from having to review multiple different
changes for which they have little context.

Bug: 179354495
Test: m nothing
Change-Id: Ia57d69c5b6031ecab9fa3a27e293ce8166ef50d3
2021-04-06 13:55:37 +01:00