2021-02-12 17:07:05 -08:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["frameworks_base_core_jni_license"],
|
|
|
|
}
|
|
|
|
|
|
|
|
// Added automatically by a large-scale-change
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
license {
|
|
|
|
name: "frameworks_base_core_jni_license",
|
|
|
|
visibility: [":__subpackages__"],
|
|
|
|
license_kinds: [
|
|
|
|
"SPDX-license-identifier-Apache-2.0",
|
|
|
|
],
|
|
|
|
license_text: [
|
|
|
|
"NOTICE",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2017-04-20 12:20:20 -07:00
|
|
|
cc_library_shared {
|
|
|
|
name: "libandroid_runtime",
|
2019-05-14 14:34:46 +01:00
|
|
|
host_supported: true,
|
2017-04-20 12:20:20 -07:00
|
|
|
cflags: [
|
|
|
|
"-Wno-unused-parameter",
|
|
|
|
"-Wno-non-virtual-dtor",
|
|
|
|
"-Wno-maybe-uninitialized",
|
|
|
|
"-Wno-parentheses",
|
|
|
|
|
|
|
|
"-DGL_GLEXT_PROTOTYPES",
|
|
|
|
"-DEGL_EGLEXT_PROTOTYPES",
|
|
|
|
|
|
|
|
"-DU_USING_ICU_NAMESPACE=0",
|
|
|
|
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
"-Wno-error=deprecated-declarations",
|
|
|
|
"-Wunused",
|
|
|
|
"-Wunreachable-code",
|
|
|
|
],
|
|
|
|
|
|
|
|
cppflags: ["-Wno-conversion-null"],
|
|
|
|
|
|
|
|
srcs: [
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_animation_PropertyValuesHolder.cpp",
|
2019-06-10 22:06:18 -07:00
|
|
|
"android_os_SystemClock.cpp",
|
2019-06-12 14:33:55 -07:00
|
|
|
"android_os_SystemProperties.cpp",
|
2019-10-01 15:25:47 +01:00
|
|
|
"android_os_Trace.cpp",
|
2019-10-01 16:56:59 +01:00
|
|
|
"android_text_AndroidCharacter.cpp",
|
2019-06-21 16:51:12 -07:00
|
|
|
"android_util_EventLog.cpp",
|
2019-06-12 15:42:38 -07:00
|
|
|
"android_util_Log.cpp",
|
2019-10-01 15:25:47 +01:00
|
|
|
"android_util_StringBlock.cpp",
|
|
|
|
"android_util_XmlBlock.cpp",
|
2020-02-12 11:01:52 -08:00
|
|
|
"android_util_jar_StrictJarFile.cpp",
|
2017-04-20 12:20:20 -07:00
|
|
|
"com_android_internal_util_VirtualRefBasePtr.cpp",
|
2021-02-25 18:07:34 +01:00
|
|
|
":deviceproductinfoconstants_aidl",
|
2017-04-20 12:20:20 -07:00
|
|
|
],
|
|
|
|
|
|
|
|
include_dirs: [
|
|
|
|
"external/skia/include/private",
|
|
|
|
"frameworks/base/media/jni",
|
|
|
|
"system/media/camera/include",
|
|
|
|
"system/media/private/camera/include",
|
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libcutils",
|
|
|
|
"libharfbuzz_ng",
|
2019-05-14 14:34:46 +01:00
|
|
|
"liblog",
|
2017-04-20 12:20:20 -07:00
|
|
|
"libminikin",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libz",
|
2017-04-20 12:20:20 -07:00
|
|
|
],
|
|
|
|
|
2021-03-18 11:26:38 -04:00
|
|
|
static_libs: [
|
|
|
|
"libnativehelper_lazy",
|
|
|
|
"libziparchive_for_incfs",
|
|
|
|
],
|
2021-02-08 16:17:07 +00:00
|
|
|
|
2017-05-15 18:10:40 -07:00
|
|
|
export_include_dirs: [
|
|
|
|
".",
|
|
|
|
"include",
|
|
|
|
],
|
2017-04-20 12:20:20 -07:00
|
|
|
|
2019-05-14 14:34:46 +01:00
|
|
|
target: {
|
|
|
|
android: {
|
|
|
|
srcs: [
|
|
|
|
"AndroidRuntime.cpp",
|
2021-06-03 02:16:47 +00:00
|
|
|
"com_android_internal_content_F2fsUtils.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"com_android_internal_content_NativeLibraryHelper.cpp",
|
|
|
|
"com_google_android_gles_jni_EGLImpl.cpp",
|
|
|
|
"com_google_android_gles_jni_GLImpl.cpp", // TODO: .arm
|
|
|
|
"android_app_Activity.cpp",
|
|
|
|
"android_app_ActivityThread.cpp",
|
|
|
|
"android_app_NativeActivity.cpp",
|
|
|
|
"android_app_admin_SecurityLog.cpp",
|
|
|
|
"android_opengl_EGL14.cpp",
|
|
|
|
"android_opengl_EGL15.cpp",
|
|
|
|
"android_opengl_EGLExt.cpp",
|
|
|
|
"android_opengl_GLES10.cpp",
|
|
|
|
"android_opengl_GLES10Ext.cpp",
|
|
|
|
"android_opengl_GLES11.cpp",
|
|
|
|
"android_opengl_GLES11Ext.cpp",
|
|
|
|
"android_opengl_GLES20.cpp",
|
|
|
|
"android_opengl_GLES30.cpp",
|
|
|
|
"android_opengl_GLES31.cpp",
|
|
|
|
"android_opengl_GLES31Ext.cpp",
|
|
|
|
"android_opengl_GLES32.cpp",
|
|
|
|
"android_database_CursorWindow.cpp",
|
|
|
|
"android_database_SQLiteCommon.cpp",
|
|
|
|
"android_database_SQLiteConnection.cpp",
|
|
|
|
"android_database_SQLiteGlobal.cpp",
|
|
|
|
"android_database_SQLiteDebug.cpp",
|
2019-07-31 15:18:47 -04:00
|
|
|
"android_graphics_GraphicBuffer.cpp",
|
2019-10-24 11:49:54 -04:00
|
|
|
"android_graphics_SurfaceTexture.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_view_CompositionSamplingListener.cpp",
|
|
|
|
"android_view_DisplayEventReceiver.cpp",
|
|
|
|
"android_view_InputChannel.cpp",
|
|
|
|
"android_view_InputDevice.cpp",
|
|
|
|
"android_view_InputEventReceiver.cpp",
|
|
|
|
"android_view_InputEventSender.cpp",
|
|
|
|
"android_view_InputQueue.cpp",
|
|
|
|
"android_view_KeyCharacterMap.cpp",
|
|
|
|
"android_view_KeyEvent.cpp",
|
|
|
|
"android_view_MotionEvent.cpp",
|
|
|
|
"android_view_PointerIcon.cpp",
|
|
|
|
"android_view_Surface.cpp",
|
|
|
|
"android_view_SurfaceControl.cpp",
|
2021-03-18 11:26:38 -04:00
|
|
|
"android_view_SurfaceControlHdrLayerInfoListener.cpp",
|
2019-07-16 14:28:47 -07:00
|
|
|
"android_graphics_BLASTBufferQueue.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_view_SurfaceSession.cpp",
|
|
|
|
"android_view_TextureView.cpp",
|
2021-04-26 14:11:09 +02:00
|
|
|
"android_view_TunnelModeEnabledListener.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_view_VelocityTracker.cpp",
|
2020-01-15 17:35:58 -08:00
|
|
|
"android_view_VerifiedKeyEvent.cpp",
|
|
|
|
"android_view_VerifiedMotionEvent.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_text_Hyphenator.cpp",
|
|
|
|
"android_os_Debug.cpp",
|
|
|
|
"android_os_GraphicsEnvironment.cpp",
|
2019-11-06 09:53:34 -08:00
|
|
|
"android_os_HidlMemory.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_os_HidlSupport.cpp",
|
|
|
|
"android_os_HwBinder.cpp",
|
|
|
|
"android_os_HwBlob.cpp",
|
|
|
|
"android_os_HwParcel.cpp",
|
|
|
|
"android_os_HwRemoteBinder.cpp",
|
|
|
|
"android_os_NativeHandle.cpp",
|
|
|
|
"android_os_MemoryFile.cpp",
|
2019-07-02 19:32:39 +01:00
|
|
|
"android_os_MessageQueue.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_os_Parcel.cpp",
|
2021-07-18 18:40:44 -04:00
|
|
|
"android_os_PerformanceHintManager.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_os_SELinux.cpp",
|
2020-03-31 00:36:51 +02:00
|
|
|
"android_os_ServiceManager.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_os_SharedMemory.cpp",
|
Add API for updating quota type of files on external storage.
In recent releases, Android has used the GID of files on external
storage to compute quota for various media types. This was implemented
by the kernel sdcard filesystem, which kept a mapping of file
extension->GID, and automatically set the correct GID on the lower
filesystem. We then simply asked the kernel "how much space is used by
the GID corresponding to image files" to determine how much space image
files took up on external storage.
sdcardfs will be removed starting with devices launching with R; this
means that the quota tracking implementation can no longer live in the
kernel on these devices. MediaProvider is a logical place to initiate
the quote handling in userspace, since it is responsible for all files
on external storage.
But since MediaProvider is now a mainline module, we don't want the
quota tracking implementation to live in MediaProvider itself. Instead,
provide a new @SystemAPI on StorageManager that can be called whenever
we need to set the quota type for a file on external storage. This
allows MediaProvider to call this API whenever a file is created on
external storage, or whenever its type is changed such that it requires
using a different quota type (eg going from an image file to an audio
file, which is presumably a rare case).
The API doesn't require a special permission, because the current
implementation is not a binder call, but an in-process call to modify
filesystem attributes. That means that the caller must already be in an
SELinux domain that allows these attribute modifications. Currently,
only MediaProvider and vold are allowed to modify these attributes.
Therefore, this API is effectively protected by SELinux.
Bug: 146419093
Test: builds. Functionality will be tested with existing
StorageHostTest CTS test, but running that tests depends on other
changes (eg a device without sdcardfs). This is tracked in the
test plan for removing sdcardfs.
Change-Id: I9ffb11a89b17e5596fce70e96c06a8af2142e41f
2020-01-30 15:13:45 +01:00
|
|
|
"android_os_storage_StorageManager.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_os_UEventObserver.cpp",
|
|
|
|
"android_os_VintfObject.cpp",
|
|
|
|
"android_os_VintfRuntimeInfo.cpp",
|
2019-11-29 14:23:45 -08:00
|
|
|
"android_os_incremental_IncrementalManager.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_net_LocalSocketImpl.cpp",
|
2019-12-11 12:07:23 -08:00
|
|
|
"android_service_DataLoaderService.cpp",
|
2019-07-02 19:32:39 +01:00
|
|
|
"android_util_AssetManager.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_util_Binder.cpp",
|
2020-11-06 20:40:59 -07:00
|
|
|
"android_util_CharsetUtils.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_util_MemoryIntArray.cpp",
|
|
|
|
"android_util_Process.cpp",
|
2021-08-10 16:10:06 -07:00
|
|
|
"android_media_audio_common_AidlConversion.cpp",
|
2020-02-18 14:30:29 -08:00
|
|
|
"android_media_AudioDeviceAttributes.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_media_AudioEffectDescriptor.cpp",
|
|
|
|
"android_media_AudioRecord.cpp",
|
|
|
|
"android_media_AudioSystem.cpp",
|
2020-02-25 14:04:36 -08:00
|
|
|
"android_media_AudioTrackCallback.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_media_AudioTrack.cpp",
|
|
|
|
"android_media_AudioAttributes.cpp",
|
|
|
|
"android_media_AudioProductStrategies.cpp",
|
|
|
|
"android_media_AudioVolumeGroups.cpp",
|
|
|
|
"android_media_AudioVolumeGroupCallback.cpp",
|
|
|
|
"android_media_DeviceCallback.cpp",
|
|
|
|
"android_media_MediaMetricsJNI.cpp",
|
|
|
|
"android_media_MicrophoneInfo.cpp",
|
|
|
|
"android_media_midi.cpp",
|
|
|
|
"android_media_RemoteDisplay.cpp",
|
|
|
|
"android_media_ToneGenerator.cpp",
|
|
|
|
"android_hardware_Camera.cpp",
|
|
|
|
"android_hardware_camera2_CameraMetadata.cpp",
|
|
|
|
"android_hardware_camera2_DngCreator.cpp",
|
2020-12-28 16:03:32 -08:00
|
|
|
"android_hardware_camera2_impl_CameraExtensionJpegProcessor.cpp",
|
2019-06-13 18:01:55 -07:00
|
|
|
"android_hardware_camera2_utils_SurfaceUtils.cpp",
|
2020-04-27 22:36:17 -07:00
|
|
|
"android_hardware_display_DisplayManagerGlobal.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_hardware_display_DisplayViewport.cpp",
|
|
|
|
"android_hardware_HardwareBuffer.cpp",
|
|
|
|
"android_hardware_SensorManager.cpp",
|
|
|
|
"android_hardware_SerialPort.cpp",
|
2022-02-10 14:22:57 -05:00
|
|
|
"android_hardware_SyncFence.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_hardware_UsbDevice.cpp",
|
|
|
|
"android_hardware_UsbDeviceConnection.cpp",
|
|
|
|
"android_hardware_UsbRequest.cpp",
|
|
|
|
"android_hardware_location_ActivityRecognitionHardware.cpp",
|
|
|
|
"android_util_FileObserver.cpp",
|
|
|
|
"android/opengl/poly_clip.cpp", // TODO: .arm
|
|
|
|
"android/opengl/util.cpp",
|
|
|
|
"android_ddm_DdmHandleNativeHeap.cpp",
|
|
|
|
"android_backup_BackupDataInput.cpp",
|
|
|
|
"android_backup_BackupDataOutput.cpp",
|
|
|
|
"android_backup_FileBackupHelperBase.cpp",
|
|
|
|
"android_backup_BackupHelperDispatcher.cpp",
|
|
|
|
"android_app_backup_FullBackup.cpp",
|
2019-07-02 19:32:39 +01:00
|
|
|
"android_content_res_ApkAssets.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"android_content_res_ObbScanner.cpp",
|
|
|
|
"android_content_res_Configuration.cpp",
|
|
|
|
"android_security_Scrypt.cpp",
|
Add xml configuration of RROs
This change adds the ability to configure the priority, default enable
state, and mutability (previously know as staticness) of an overlay.
Rather than overlays configuring themselves, the system can configure
overlays relative to each other.
An example configuration file looks like:
<config>
<merge path="auto-generated.xml" />
<overlay package="com.example.one" mutable="false"
enabled="true"/>
<overlay package="com.example.two" mutable="false"
enabled="true"/>
<overlay package="com.example.three" enabled="true"/>
</config>
The <overlay> tag configures the overlay while the <merge> tag allows
additional configuration files to be included at a position within
the configuration file.
If the configuration file is not present for a partition, the legacy
android:isStatic and android:priority will continue to configure the
overlays in the partition. Once at least one configuration file has
been defined in any partition, strict partition precedence will be
enforced and overlays on separate partitions will no longer be able
to use android:priority to reorder themselves conversely from the
overlay partition precedence.
The order of the system partitions from least to greatest precedence
is system, vendor, odm, oem, product, system_ext.
Bug: 135048762
Test: atest OverlayConfigTest
Change-Id: If57e8caa9b881f9d424ef48bba80b18cc8b7b943
2020-02-04 10:18:53 -08:00
|
|
|
"com_android_internal_content_om_OverlayConfig.cpp",
|
2020-12-02 12:50:18 +09:00
|
|
|
"com_android_internal_net_NetworkUtilsInternal.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"com_android_internal_os_ClassLoaderFactory.cpp",
|
|
|
|
"com_android_internal_os_FuseAppLoop.cpp",
|
2021-11-28 22:10:16 +00:00
|
|
|
"com_android_internal_os_KernelAllocationStats.cpp",
|
2021-02-11 15:21:13 +00:00
|
|
|
"com_android_internal_os_KernelCpuBpfTracking.cpp",
|
2020-12-10 18:02:56 +00:00
|
|
|
"com_android_internal_os_KernelCpuTotalBpfMapReader.cpp",
|
2019-09-12 14:09:26 -07:00
|
|
|
"com_android_internal_os_KernelCpuUidBpfMapReader.cpp",
|
2020-10-08 18:33:09 -07:00
|
|
|
"com_android_internal_os_KernelSingleProcessCpuThreadReader.cpp",
|
2019-09-24 14:58:29 -07:00
|
|
|
"com_android_internal_os_KernelSingleUidTimeReader.cpp",
|
2021-08-13 14:12:39 -07:00
|
|
|
"com_android_internal_os_LongArrayMultiStateCounter.cpp",
|
2021-10-14 15:51:52 -07:00
|
|
|
"com_android_internal_os_LongMultiStateCounter.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"com_android_internal_os_Zygote.cpp",
|
Add zygote native fork loop
Do not return to Java mode between consecutive fork operations.
This greatly reduces the Zygote overhead, since we no longer need to
stop and restart Java daemons.
By not switching back to Java mode, and being careful about what memory
we touch between forks, we also keep the Zygote heaps much more stable,
facilitating page sharing between the zygote and all its children.
Under normal operation we should no longer allocate any memory in the
zygote between forks. That applies to both the Java and C++ heap.
This makes the zygote behave much more like the mental model many
of us had assumed: It has nearly constant memory contents, which are
copy-on-right cloned at each fork. This does not apply to the initial
system server and webzygote forks, that are currently still handled
differently.
This includes
1. Add ZygoteCommandBuffer, and switch the argument parsing code to use it.
This slightly reduces allocation and enables (3).
2. Support process specialization in the child, even when the arguments
are already know, Leverages existing Usap code.
3. Add support for forking multiple child processes directly to the
ZygoteCommandBuffer data structure. This directly uses the buffer
internals, and avoids returning to Java so long as it can handle the
zygote commands it sees.
FUNCTIONALITY CHANGE:
We now limit the total size of the zygote command, rather than the
number of arguments.
Initial performance observations:
[ These are not perfect, since I'm comparing to numbers before I
started. There may have been other moving parts, but they should be
minor. ]
System-server-observed launch latency:
[Not the best metric, but easy to measure. In particular, this
does not represent a significant reduction in application launch
time.]
Based on measuring the last 10 launches in a lightly used cf AOSP
instance, the system server latency from requesting an app launch to
response with the pid (which does not require the child to execute
anything) went from an average of about 10.7(25) msecs to 6.8(9) and
7.9(16) in two tries with the CL. (The parenthetical numbers are
maxima from among the 10; the variance appears to have decreased
appreciably.)
Dirty pages:
The number of private dirty pages in the zygote itself appears to have
decreased from about 4000 to about 2200. The number of dalvik-main
private dirty pages went from about 1500 to nearly zero.
Initially ART benchmarking service claim -1.88% in PSS. But this is not
consistently repeatable.
Drive-by fix:
Call setAllowNetworkingForProcess on usap / native loop path.
Bug: 159631815
Bug: 174211442
Test: Boots AOSP
Change-Id: I90d2e381bada1b6c9857666d5e87372b6a4c1a70
2020-11-09 18:21:29 -08:00
|
|
|
"com_android_internal_os_ZygoteCommandBuffer.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"com_android_internal_os_ZygoteInit.cpp",
|
2021-02-18 10:44:17 -08:00
|
|
|
"com_android_internal_security_VerityUtils.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
"hwbinder/EphemeralStorage.cpp",
|
|
|
|
"fd_utils.cpp",
|
|
|
|
"android_hardware_input_InputWindowHandle.cpp",
|
|
|
|
"android_hardware_input_InputApplicationHandle.cpp",
|
2021-06-09 15:14:15 -05:00
|
|
|
"android_window_WindowInfosListener.cpp",
|
2019-05-14 14:34:46 +01:00
|
|
|
],
|
2017-05-15 18:10:40 -07:00
|
|
|
|
2019-05-14 14:34:46 +01:00
|
|
|
static_libs: [
|
|
|
|
"libasync_safe",
|
2020-01-31 14:59:06 -08:00
|
|
|
"libbinderthreadstateutils",
|
2019-11-25 19:24:46 -08:00
|
|
|
"libdmabufinfo",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libgif",
|
2021-05-20 11:18:06 -05:00
|
|
|
"libgui_window_info_static",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libseccomp_policy",
|
|
|
|
"libgrallocusage",
|
|
|
|
"libscrypt_static",
|
2021-03-18 16:19:55 -07:00
|
|
|
"libstatssocket_lazy",
|
2021-06-09 15:14:15 -05:00
|
|
|
"libskia",
|
2019-05-14 14:34:46 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
shared_libs: [
|
2021-08-10 16:10:06 -07:00
|
|
|
"android.media.audio.common.types-V1-cpp",
|
2021-01-28 00:49:47 +09:00
|
|
|
"audioclient-types-aidl-cpp",
|
|
|
|
"audioflinger-aidl-cpp",
|
2021-07-24 08:47:17 +02:00
|
|
|
"audiopolicy-types-aidl-cpp",
|
|
|
|
"spatializer-aidl-cpp",
|
2021-01-28 00:49:47 +09:00
|
|
|
"av-types-aidl-cpp",
|
2020-12-28 16:03:32 -08:00
|
|
|
"android.hardware.camera.device@3.2",
|
2022-01-07 06:26:11 +08:00
|
|
|
"libandroid_net",
|
2019-06-28 13:37:33 +01:00
|
|
|
"libandroidicu",
|
2021-08-13 14:12:39 -07:00
|
|
|
"libbattery",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libnetdutils",
|
|
|
|
"libmemtrack",
|
|
|
|
"libandroidfw",
|
|
|
|
"libappfuse",
|
|
|
|
"libcrypto",
|
|
|
|
"libcutils",
|
|
|
|
"libdebuggerd_client",
|
|
|
|
"libutils",
|
|
|
|
"libbinder",
|
2021-09-08 10:42:27 -07:00
|
|
|
"libbinder_ndk",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libui",
|
|
|
|
"libgraphicsenv",
|
|
|
|
"libgui",
|
2021-12-02 17:22:30 +00:00
|
|
|
"libhwui",
|
2020-01-29 13:30:03 -08:00
|
|
|
"libmediandk",
|
2021-05-20 15:09:08 +00:00
|
|
|
"libpermission",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libsensor",
|
|
|
|
"libinput",
|
|
|
|
"libcamera_client",
|
|
|
|
"libcamera_metadata",
|
2022-03-15 20:37:58 +00:00
|
|
|
"libprocinfo",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libsqlite",
|
|
|
|
"libEGL",
|
|
|
|
"libGLESv1_CM",
|
|
|
|
"libGLESv2",
|
|
|
|
"libGLESv3",
|
2019-12-05 13:00:47 -08:00
|
|
|
"libincfs",
|
2019-12-11 12:07:23 -08:00
|
|
|
"libdataloader",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libvulkan",
|
|
|
|
"libETC1",
|
2020-12-28 16:03:32 -08:00
|
|
|
"libjpeg",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libhardware",
|
|
|
|
"libhardware_legacy",
|
|
|
|
"libselinux",
|
|
|
|
"libmedia",
|
|
|
|
"libmedia_helper",
|
|
|
|
"libmediametrics",
|
|
|
|
"libmeminfo",
|
|
|
|
"libaudioclient",
|
2021-08-10 16:10:06 -07:00
|
|
|
"libaudioclient_aidl_conversion",
|
2019-11-04 14:16:21 -08:00
|
|
|
"libaudiofoundation",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libaudiopolicy",
|
|
|
|
"libusbhost",
|
|
|
|
"libpdfium",
|
|
|
|
"libimg_utils",
|
|
|
|
"libnetd_client",
|
|
|
|
"libprocessgroup",
|
|
|
|
"libnativebridge_lazy",
|
|
|
|
"libnativeloader_lazy",
|
|
|
|
"libmemunreachable",
|
|
|
|
"libhidlbase",
|
|
|
|
"libvintf",
|
2019-09-05 17:11:45 -07:00
|
|
|
"libnativedisplay",
|
2019-05-14 14:34:46 +01:00
|
|
|
"libnativewindow",
|
|
|
|
"libdl",
|
|
|
|
"libdl_android",
|
2019-09-12 14:09:26 -07:00
|
|
|
"libtimeinstate",
|
2019-05-14 14:34:46 +01:00
|
|
|
"server_configurable_flags",
|
|
|
|
],
|
|
|
|
export_shared_lib_headers: [
|
|
|
|
// our headers include libnativewindow's public headers
|
|
|
|
"libnativewindow",
|
|
|
|
],
|
2021-02-08 16:17:07 +00:00
|
|
|
export_static_lib_headers: [
|
|
|
|
// AndroidRuntime.h depends on nativehelper/jni.h
|
|
|
|
"libnativehelper_lazy",
|
|
|
|
],
|
2020-05-28 15:41:46 +08:00
|
|
|
header_libs: [
|
|
|
|
"bionic_libc_platform_headers",
|
|
|
|
"dnsproxyd_protocol_headers",
|
2021-06-29 17:37:55 -07:00
|
|
|
"libandroid_runtime_vm_headers",
|
2020-05-28 15:41:46 +08:00
|
|
|
],
|
2019-05-14 14:34:46 +01:00
|
|
|
},
|
|
|
|
host: {
|
|
|
|
cflags: [
|
|
|
|
"-Wno-unused-const-variable",
|
|
|
|
"-Wno-unused-function",
|
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"LayoutlibLoader.cpp",
|
|
|
|
],
|
|
|
|
include_dirs: [
|
|
|
|
"external/vulkan-headers/include",
|
2020-09-09 13:52:20 -07:00
|
|
|
"frameworks/native/libs/math/include",
|
2019-07-04 12:54:28 +01:00
|
|
|
"frameworks/native/libs/nativebase/include",
|
2020-09-09 13:52:20 -07:00
|
|
|
"frameworks/native/libs/nativewindow/include",
|
2019-05-14 14:34:46 +01:00
|
|
|
],
|
2019-06-28 13:37:33 +01:00
|
|
|
shared_libs: [
|
|
|
|
"libicui18n",
|
|
|
|
"libicuuc",
|
|
|
|
],
|
2019-05-14 14:34:46 +01:00
|
|
|
static_libs: [
|
|
|
|
"libandroidfw",
|
2021-12-02 17:22:30 +00:00
|
|
|
"libbinary_parse",
|
|
|
|
"libdng_sdk",
|
|
|
|
"libft2",
|
2019-07-04 12:54:28 +01:00
|
|
|
"libhostgraphics",
|
2021-12-02 17:22:30 +00:00
|
|
|
"libhwui",
|
|
|
|
"libimage_type_recognition",
|
|
|
|
"libjpeg",
|
|
|
|
"libpiex",
|
|
|
|
"libpng",
|
|
|
|
"libtiff_directory",
|
|
|
|
"libui-types",
|
|
|
|
"libutils",
|
|
|
|
"libwebp-decode",
|
|
|
|
"libwebp-encode",
|
|
|
|
"libwuffs_mirror_release_c",
|
2019-05-14 14:34:46 +01:00
|
|
|
],
|
|
|
|
},
|
2022-03-08 18:17:43 -08:00
|
|
|
host_linux: {
|
2019-07-02 19:32:39 +01:00
|
|
|
srcs: [
|
|
|
|
"android_content_res_ApkAssets.cpp",
|
2020-11-02 16:16:17 +00:00
|
|
|
"android_database_CursorWindow.cpp",
|
|
|
|
"android_database_SQLiteCommon.cpp",
|
|
|
|
"android_database_SQLiteConnection.cpp",
|
|
|
|
"android_database_SQLiteGlobal.cpp",
|
|
|
|
"android_database_SQLiteDebug.cpp",
|
2020-09-09 13:52:20 -07:00
|
|
|
"android_hardware_input_InputApplicationHandle.cpp",
|
2019-07-02 19:32:39 +01:00
|
|
|
"android_os_MessageQueue.cpp",
|
2020-09-09 13:52:20 -07:00
|
|
|
"android_os_Parcel.cpp",
|
|
|
|
|
|
|
|
"android_view_KeyCharacterMap.cpp",
|
|
|
|
"android_view_KeyEvent.cpp",
|
|
|
|
"android_view_InputChannel.cpp",
|
|
|
|
"android_view_InputDevice.cpp",
|
|
|
|
"android_view_InputEventReceiver.cpp",
|
|
|
|
"android_view_InputEventSender.cpp",
|
|
|
|
"android_view_MotionEvent.cpp",
|
|
|
|
"android_view_VelocityTracker.cpp",
|
|
|
|
"android_view_VerifiedKeyEvent.cpp",
|
|
|
|
"android_view_VerifiedMotionEvent.cpp",
|
|
|
|
|
2019-07-02 19:32:39 +01:00
|
|
|
"android_util_AssetManager.cpp",
|
2020-09-09 13:52:20 -07:00
|
|
|
"android_util_Binder.cpp",
|
|
|
|
|
2019-06-28 15:59:33 -07:00
|
|
|
"android_util_FileObserver.cpp",
|
2019-07-02 19:32:39 +01:00
|
|
|
],
|
2020-09-09 13:52:20 -07:00
|
|
|
static_libs: [
|
|
|
|
"libinput",
|
|
|
|
"libbinderthreadstateutils",
|
2020-11-02 16:16:17 +00:00
|
|
|
"libsqlite",
|
2021-05-20 11:18:06 -05:00
|
|
|
"libgui_window_info_static",
|
2020-09-09 13:52:20 -07:00
|
|
|
],
|
|
|
|
shared_libs: [
|
|
|
|
// libbinder needs to be shared since it has global state
|
2020-10-29 14:23:59 -07:00
|
|
|
// (e.g. gDefaultServiceManager)
|
2020-09-09 13:52:20 -07:00
|
|
|
"libbinder",
|
|
|
|
"libhidlbase", // libhwbinder is in here
|
|
|
|
],
|
2019-07-02 19:32:39 +01:00
|
|
|
},
|
2019-05-14 14:34:46 +01:00
|
|
|
},
|
2020-02-19 18:15:08 -08:00
|
|
|
|
2020-09-22 01:06:32 +08:00
|
|
|
// Workaround Clang LTO crash.
|
|
|
|
lto: {
|
|
|
|
never: true,
|
|
|
|
},
|
2019-06-05 10:30:20 +01:00
|
|
|
}
|
2021-06-29 17:37:55 -07:00
|
|
|
|
|
|
|
cc_library_headers {
|
|
|
|
name: "libandroid_runtime_vm_headers",
|
|
|
|
host_supported: true,
|
|
|
|
vendor_available: true,
|
|
|
|
// TODO(b/153609531): remove when libbinder is not native_bridge_supported
|
|
|
|
native_bridge_supported: true,
|
|
|
|
// Allow only modules from the following list to create threads that can be
|
|
|
|
// attached to the JVM. This list should be a subset of the dependencies of
|
|
|
|
// libandroid_runtime.
|
|
|
|
visibility: [
|
|
|
|
"//frameworks/native/libs/binder",
|
|
|
|
],
|
|
|
|
export_include_dirs: ["include_vm"],
|
|
|
|
header_libs: [
|
|
|
|
"jni_headers",
|
|
|
|
],
|
|
|
|
export_header_lib_headers: [
|
|
|
|
"jni_headers",
|
|
|
|
],
|
|
|
|
}
|