1401 Commits

Author SHA1 Message Date
Muhammad Qureshi
237c774468 Create framework-statsd
Create framework-statsd jar in statsd apex.
Move StatsEvent to framework-statsd.jar.
Right now, frameworks jar links against framework-statsd directly. This
should be changed to link against framework-statsd-stubs.

Bug: 145923096
Bug: 145923116
Bug: 142810493

Test: m
Test: flashes successfully
Test: adb shell cmd stats print-logs && adb logcat "*:S statsd:*"

Change-Id: Ife224abd5c9b9b0eeab681dc4b7f71c0bdb856b1
2019-12-16 10:17:03 -08:00
Automerger Merge Worker
2f69ed4adc Merge "Add stubs and an sdk definition for sdkext" am: 4c1f4c2bc6 am: 2bb61d97c5 am: b9a1698c97
Change-Id: I3cdca9b5bd2e21b769c8a7090a8f5578cbccb4a1
2019-12-16 16:35:37 +00:00
Anton Hansson
4c1f4c2bc6 Merge "Add stubs and an sdk definition for sdkext" 2019-12-16 16:00:43 +00:00
TreeHugger Robot
b4f91be235 Merge "SystemApi is parameterized" 2019-12-16 14:33:43 +00:00
Alex Buynytskyy
247901bb4f Merge "[incremental] Java service and shell command handler" 2019-12-16 06:44:49 +00:00
Meng Wang
9c2a8e0792 Statically link util classes into Telephony module.
- AsyncChannel
- BitwiseInputStream

Bug: 137202333
Test: make
Change-Id: I1714835d3489bc4ed5a4f289dfd9ac9ee6f194e9
2019-12-13 16:45:34 -08:00
Treehugger Robot
2626cc7089 Merge "Do not use hidden API XmlUtils." 2019-12-13 22:14:26 +00:00
Meng Wang
ae112af81d Merge "DumpUtils: Teleophony will use a local copy instead." 2019-12-13 21:34:53 +00:00
Etan Cohen
df386953a1 wificond: move wificond files to unbundled file group
Bug: 140062898
Test: builds, associates, SAP functionality works
Test: atest android.net.wifi
Change-Id: I0e637083bc9063ac25bcac6ad65f243d6ffaaaed
2019-12-13 12:04:04 -08:00
Etan Cohen
73450f2004 Wificond: transfer implementation to android.net.wifi
Move implementation of wificond to frameworks/base (android.net.wifi)
in prepration for making into a public API (which will be a wrapper
around the AIDL).

Bug: 140062898
Test: atest com.android.server.wifi
Test: atest android.net.wifi
Test: associates, soft AP client information received correctly
Change-Id: I3c5ede95d0421a1e00078e0316e9a2e751156f3e
2019-12-13 11:18:54 -08:00
Songchun Fan
f5c894f7ce [incremental] Java service and shell command handler
Renaming:

IIncrementalManager.aidl -> IIncrementalManagerNative.aidl
IIncrementalServiceProxy.aidl -> IIncrementalManager.aidl

Adding implementation of IIncrementalManager.aidl. Also adding
implementation of the shell command handler.

Test: $adb abb incremental help

Change-Id: Ia18fde097f6170f4774552428a2927186ede8389
2019-12-13 09:38:07 -08:00
Anton Hansson
355000dc7b Add stubs and an sdk definition for sdkext
This defines both publicapi and a systemapi variants, even though
the publicapi is currently empty. Uses the newly defined module
stub_defaults.

Bug: 137191822
Test: m framework
Test: m sdkext-sdk
Change-Id: Idad8902054bef4a08953f4677689506566f146d8
2019-12-13 16:29:05 +00:00
Jiyong Park
119afc0695 SystemApi is parameterized
We have decided to reuse the existing annotation @SystemApi for all Java
APIs regardless of whether they are for apps or platform internal
modules. This was because introducing new annotation types every time
when we have to create new API surfaces will only increase the confusion
without giving much benefit.

Instead, to differenciate the different API surfaces of @SystemApi, the
annotation type is parameterized. Specifically, it has to axises.

client: specifies the intended client of the API.

process: specifies the process(es) that the API is available.

The default for client and process are priv-apps and all, respectively,
which corresponds to the today's @SystemApi for privileged apps like
GMS.

Bug: 140202860
Test: m
Change-Id: I3305b71e22970e80db95f3daf3d7713603c7d68d
2019-12-13 14:58:16 +09:00
Meng Wang
f8d5cabb71 Do not use SLog in telephony modules
Bug: 137202333
Test: make
Merged-In: Id919a18beda26c5686f77e369db6a3712dd8317b
Change-Id: Id919a18beda26c5686f77e369db6a3712dd8317b
2019-12-12 21:45:23 -08:00
Meng Wang
d4a6c06b52 DumpUtils: Teleophony will use a local copy instead.
Bug: 137202333
Test: make
Merged-In: I3366eab39ac3ac694a5b7a4a275e24130fcd5f96
Change-Id: I3366eab39ac3ac694a5b7a4a275e24130fcd5f96
2019-12-12 18:13:43 -08:00
Meng Wang
56c0ccecfc Do not use hidden API XmlUtils.
Make a local copy instead.

Bug: 137202333
Test: make
Merged-In: Ibcf7b23a8b6628aa482b34f867db57e4cb0dbb8e
Change-Id: Ibcf7b23a8b6628aa482b34f867db57e4cb0dbb8e
2019-12-12 17:16:01 -08:00
Meng Wang
e1df98d2e2 Telephony: do not use hidden API ArrayUtils.
Make a local copy instead.

Bug: 137202333
Test: make
Merged-In: I3218bca2d296c548b9d8427f70df8f7a33d0d449
Change-Id: I3218bca2d296c548b9d8427f70df8f7a33d0d449
2019-12-12 16:52:30 -08:00
Treehugger Robot
01e54d44b9 Merge "Addition of util library" 2019-12-13 00:31:06 +00:00
Michele
68370a8685 Addition of util library
Bug: 137202333
Test: Compilation
Test: Scripts to verify correct usage of rules
Change-Id: I20e48e66d6c429a67d367efc2a73991c3aad825c
Merged-In: I20e48e66d6c429a67d367efc2a73991c3aad825c
2019-12-12 10:19:51 -08:00
Treehugger Robot
938bc05883 Merge "Add new UnsupportedAppUsage annotation as lib dependency." 2019-12-12 12:10:55 +00:00
Artur Satayev
700e08b291 Add new UnsupportedAppUsage annotation as lib dependency.
Bug: 145132366
Test: m
Change-Id: Ibb7f8424186149365354a96249c06c9fccde66bd
Merged-In: Ibb7f8424186149365354a96249c06c9fccde66bd
2019-12-11 19:44:16 +00:00
Artur Satayev
1497a45d0c Merge "Add new UnsupportedAppUsage annotation as lib dependency." 2019-12-11 19:43:09 +00:00
David Su
b1a690d1e7 Merge "Create a new non-updatable Wifi filegroup for WifiNetworkScoreCache" 2019-12-11 18:25:48 +00:00
Artur Satayev
6aa25ec97d Add new UnsupportedAppUsage annotation as lib dependency.
Bug: 145132366
Test: m
Change-Id: Ibb7f8424186149365354a96249c06c9fccde66bd
2019-12-11 18:18:18 +00:00
TreeHugger Robot
3ee1b172a9 Merge "framework is not available to APEXes" 2019-12-11 12:42:56 +00:00
David Su
6f646ef3a3 Create a new non-updatable Wifi filegroup for WifiNetworkScoreCache
WifiNetworkScoreCache will not be part of the Wifi module. Thus,
split it out into a separate filegroup. WifiNetworkScoreCache
will eventually live in framework.jar, while the rest of the Wifi
API surface will live in framework-wifi.jar.

Bug: 144487252
Test: compiles
Change-Id: Id82218204ab62e549b60bcfc41af9eaa305000ce
2019-12-10 15:01:14 -08:00
Roshan Pius
c93cd7aa9f wifi-services-srcs: JarJar IpConfiguration
Bug: 145904524
Test: Compiles
Change-Id: I2fce222628a0f28a81770645866f7a1ead56cce9
2019-12-10 13:10:49 -08:00
Anton Hansson
f0e0cdacec Merge "Expose SdkExtension in the system SDK" 2019-12-10 16:32:47 +00:00
Winson Chiu
f0ff68f625 Merge changes from topic "androidpackage"
* changes:
  Critical fixes for AndroidPackage migration
  Revert Revert PackageParser#Package fixes
  Revert "Revert "Deprecate PackageParser#Package""
2019-12-09 21:46:13 +00:00
Anton Hansson
b52bd1cbbe Expose SdkExtension in the system SDK
Also tweak the javadoc a little bit.

Bug: 137191822
Bug: 143937447
Test: treehugger
Change-Id: Iae1b025685344c2ffe4ed1089850b447c82a6b83
Merged-In: Iae1b025685344c2ffe4ed1089850b447c82a6b83
2019-12-09 17:21:24 +00:00
Anton Hansson
dc1e99bbca Expose SdkExtension in the system SDK
Also tweak the javadoc a little bit.

Bug: 137191822
Bug: 143937447
Test: treehugger
Change-Id: Iae1b025685344c2ffe4ed1089850b447c82a6b83
2019-12-09 17:16:03 +00:00
Roshan Pius
3f9ba67fa7 Merge changes from topics "suggestion_no_uid_package", "wifi_key_value_list_parser", "wifi_power_profile", "wifi_service_manager_getService", "wifi_westworld"
* changes:
  statsd: Allow wifi mainline module to log its metrics
  wifi-services-srcs: Stop using KeyValueListParser from android.internal
  WifiNetworkSuggestion: Don't store packageName/uid
  WifiAwareManager: Add requestMacAddresses @hide API
  UserManager: Add StringDef for all restrictionKey values
  WifiActivityEnergyInfo: Use time values for energy calculation
2019-12-09 17:08:30 +00:00
Jiyong Park
352f9e2b6f framework is not available to APEXes
The modules 'framework', 'framework-minus-apex', 'framework-all' contain
private symbols that shouldn't be accessible to Mainline modules.
Restrict the access by making the framework modules to be accessible
only to the platform (the non updatable part).

Bug: 145796956
Test: m
Change-Id: I08cb61a67aef88ffe04ef52670144e1cbeff3cf9
2019-12-09 18:18:18 +09:00
Jordan Liu
9fd7c05eb9 Merge "Expose some SystemApis and edit framework-cellbroadcast-shared-srcs" 2019-12-07 00:06:23 +00:00
Roshan Pius
62eb61cfa4 wifi-services-srcs: Stop using KeyValueListParser from android.internal
This class introduces a lot of transitive dependencies.

Also, rename the filegroup name to be consistent with wifi service name
(wifistack is no loner relevant).

Bug: 142809066
Test: Compiles
Change-Id: I87f6d7ec15888a10338518631f04d91fc8524a56
2019-12-06 15:34:32 -08:00
Ruchir Rastogi
cd9dd94fb1 StatsEventParcel impl.; move AIDL files
This implementation continue to uses libbinder, as opposed to
libbinder_ndk.

We also move many (but not all) statsd aidl files from
frameworks/base/core into the apex.

Test: m -j128 && bit statsd_test:*
Change-Id: I95f06e937e50c1e2a638163b13587682402956a7
2019-12-06 14:08:27 -08:00
Winson
14ff71712c Revert "Revert "Deprecate PackageParser#Package""
This reverts commit 8e18a0ab8980a3092d6c7e1d2edc6407655af609.

Exempt-From-Owner-Approval: Revert to re-add approved change

Change-Id: I5b5195470f365a2347cbf444cc0494d119e42ffc
2019-12-06 12:24:05 -08:00
Jordan Liu
bf68dc85a4 Expose some SystemApis and edit framework-cellbroadcast-shared-srcs
The APIs are used in the CellBroadcastService, and the
framework-cellbroadcast-shared-srcs library is also linked there.

Bug: 135956699
Test: manual
Change-Id: I5e71ea1ee1a858c0520c241dc7365733441e0f50
Merged-In: I5e71ea1ee1a858c0520c241dc7365733441e0f50
2019-12-06 11:19:48 -08:00
Songchun Fan
c8b066091e Merge "[incremental] parcelable for incfs file descriptors" 2019-12-05 22:02:49 +00:00
Sarah Chin
226499214c Merge changes from topics "ngran", "update_ngran"
* changes:
  Update NGRAN bands
  Updated AccessNetworkConstants and RadioAccessSpecifier
2019-12-05 21:37:37 +00:00
Songchun Fan
b7c6d8d861 Merge "[incremental] data loader manager interface" 2019-12-05 20:55:50 +00:00
Songchun Fan
000b5b5bf6 [incremental] parcelable for incfs file descriptors
This parcelable is used to pass incfs fds from vold to system_server.

Test: builds
Change-Id: I7f0af8798d12815fbae404afabf4a88229a705da
Merged-In: Ifc3a43633356951b239486d66ee80d120bc4ab76
2019-12-04 17:42:57 -08:00
Roshan Pius
04769a5af8 base(Android.bp): Include BackupUtils in wifi shared srcs
Bug: 145685697
Test: Compiles
Change-Id: Ia937afead862b2220037b3c4846a88775d707f4f
2019-12-04 13:11:24 -08:00
Hall Liu
91e1a00846 Merge "telephony-stack util API lib" 2019-12-04 19:22:47 +00:00
Songchun Fan
6dd47b58c5 [incremental] data loader manager interface
Checking in the interface for data loader manager and installation
files in android.content.pm.

Copied from branch master-instamatic. TODO to update the code with
latest API design.

Test: builds
Change-Id: Ie87dd8b45dc18f538ddabf87e2899e958133ff04
2019-12-04 11:00:23 -08:00
TreeHugger Robot
2e955bcb7d Merge "Add basebandCn0Dbhz to GnssMeasurement" 2019-12-04 00:54:05 +00:00
Sarah Chin
e138c5e412 Updated AccessNetworkConstants and RadioAccessSpecifier
Bug: 143683654
Test: atest RadioAccessSpecifierTest
Change-Id: I307c8d09483e37d805cbfd17780523040abc9e4b
Merged-In: I307c8d09483e37d805cbfd17780523040abc9e4b
2019-12-03 11:06:58 -08:00
Meng Wang
bb55c78b36 Merge "Telephony module will staticlly link IState.java" 2019-12-03 18:34:34 +00:00
Sarah Chin
7ed0bdeb89 Merge "Updated AccessNetworkConstants and RadioAccessSpecifier" 2019-12-03 17:59:31 +00:00
atrost
c3c2e4de2d Add a compat change to opt-in to latest SELinux domain.
Refactor getSeInfo into a method, if the app doesn't share a
sharedUserId, and the change is enabled use targetSdkVersion R (1000)
for the seInfo domain.

Add a listener to the compat change that checks if seInfo has changed
(as a result of enabling/disabling the change), and if it did updates it,
and calls prepareAppDataAfterInstallLIF to make sure the data is
correctly labeled.
The listener will be called when an override is introduced or removed
for the change.

Bug: 143539591
Test: atest com.android.server.pm.SELinuxMMAXTest
Test: Install facebook (target SDK 28), login +download a photo, turn on
      the change, open facebook, download another photo, disable change,
      open facebook again, download another photo. Everything works as
      expected, photos are accessible, profile is setup.

Change-Id: If5ecf490e781db13d84656b36d0740a00ee124b5
2019-12-03 15:01:03 +00:00