1 # 2 # Copyright (C) 2013 The Android Open Source Project 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 17 # Base configuration for most consumer android devices. Do not put 18 # things that are specific to communication devices (phones, tables, 19 # etc.) here -- for that, use core.mk. 20 21 PRODUCT_BRAND := generic 22 PRODUCT_DEVICE := generic 23 PRODUCT_NAME := core 24 25 PRODUCT_PACKAGES += \ 26 BackupRestoreConfirmation \ 27 CompanionDeviceManager \ 28 CtsShimPrebuilt \ 29 CtsShimPrivPrebuilt \ 30 DownloadProvider \ 31 ExtShared \ 32 ExtServices \ 33 HTMLViewer \ 34 MediaProvider \ 35 PackageInstaller \ 36 SettingsProvider \ 37 Shell \ 38 StatementService \ 39 WallpaperBackup \ 40 android.hidl.base-V1.0-java \ 41 android.hidl.manager-V1.0-java \ 42 bcc \ 43 bu \ 44 com.android.future.usb.accessory \ 45 com.android.location.provider \ 46 com.android.location.provider.xml \ 47 com.android.media.remotedisplay \ 48 com.android.media.remotedisplay.xml \ 49 com.android.mediadrm.signer \ 50 com.android.mediadrm.signer.xml \ 51 drmserver \ 52 ethernet-service \ 53 framework-res \ 54 idmap \ 55 installd \ 56 ims-common \ 57 ip \ 58 ip-up-vpn \ 59 ip6tables \ 60 iptables \ 61 gatekeeperd \ 62 keystore \ 63 keystore.default \ 64 ld.config.txt \ 65 ld.mc \ 66 libaaudio \ 67 libOpenMAXAL \ 68 libOpenSLES \ 69 libdownmix \ 70 libdrmframework \ 71 libdrmframework_jni \ 72 libfilterfw \ 73 libkeystore \ 74 libgatekeeper \ 75 libneuralnetworks \ 76 libwebviewchromium_loader \ 77 libwebviewchromium_plat_support \ 78 libwilhelm \ 79 logd \ 80 make_ext4fs \ 81 e2fsck \ 82 resize2fs \ 83 tune2fs \ 84 screencap \ 85 sensorservice \ 86 telephony-common \ 87 uiautomator \ 88 uncrypt \ 89 voip-common \ 90 webview \ 91 webview_zygote \ 92 93 # Wifi modules 94 PRODUCT_PACKAGES += \ 95 wifi-service \ 96 wificond \ 97 98 PRODUCT_COPY_FILES += \ 99 frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml 100 101 ifneq (REL,$(PLATFORM_VERSION_CODENAME)) 102 PRODUCT_COPY_FILES += \ 103 frameworks/native/data/etc/android.software.preview_sdk.xml:system/etc/permissions/android.software.preview_sdk.xml 104 endif 105 106 ifeq ($(TARGET_CORE_JARS),) 107 $(error TARGET_CORE_JARS is empty; cannot initialize PRODUCT_BOOT_JARS variable) 108 endif 109 110 # The order of PRODUCT_BOOT_JARS matters. 111 PRODUCT_BOOT_JARS := \ 112 $(TARGET_CORE_JARS) \ 113 legacy-test \ 114 ext \ 115 framework \ 116 telephony-common \ 117 voip-common \ 118 ims-common \ 119 org.apache.http.legacy.boot \ 120 android.hidl.base-V1.0-java \ 121 android.hidl.manager-V1.0-java 122 123 # The order of PRODUCT_SYSTEM_SERVER_JARS matters. 124 PRODUCT_SYSTEM_SERVER_JARS := \ 125 services \ 126 ethernet-service \ 127 wifi-service \ 128 com.android.location.provider \ 129 130 # The set of packages whose code can be loaded by the system server. 131 PRODUCT_SYSTEM_SERVER_APPS += \ 132 SettingsProvider \ 133 WallpaperBackup 134 135 # Adoptable external storage supports both ext4 and f2fs 136 PRODUCT_PACKAGES += \ 137 e2fsck \ 138 make_ext4fs \ 139 fsck.f2fs \ 140 make_f2fs \ 141 142 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 143 ro.zygote=zygote32 144 PRODUCT_COPY_FILES += \ 145 system/core/rootdir/init.zygote32.rc:root/init.zygote32.rc 146 147 PRODUCT_COPY_FILES += \ 148 system/core/rootdir/etc/public.libraries.android.txt:system/etc/public.libraries.txt 149 150 # Enable boot.oat filtering of compiled classes to reduce boot.oat size. b/28026683 151 PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ 152 frameworks/base/config/compiled-classes-phone:system/etc/compiled-classes) 153 154 # Enable dirty image object binning to reduce dirty pages in the image. 155 PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ 156 frameworks/base/dirty-image-objects-phone:system/etc/dirty-image-objects) 157 158 # On userdebug builds, collect more tombstones by default. 159 ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) 160 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 161 tombstoned.max_tombstone_count=50 162 endif 163 164 $(call inherit-product, $(SRC_TARGET_DIR)/product/runtime_libart.mk) 165 $(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk) 166