-
Notifications
You must be signed in to change notification settings - Fork 2
/
device.mk
119 lines (102 loc) · 4.63 KB
/
device.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#
# Copyright 2014 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
PRODUCT_PACKAGES += \
Launcher3
#$_rbox_$_modify_$_zhengyang: add displayd
PRODUCT_PACKAGES += \
displayd \
libion
PRODUCT_COPY_FILES += \
hardware/realtek/rtkbt/vendor/etc/bluetooth/rtkbt_S0.conf:vendor/etc/bluetooth/rtkbt.conf
#enable this for support f2fs with data partion
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs
# This ensures the needed build tools are available.
# TODO: make non-linux builds happy with external/f2fs-tool; system/extras/f2fs_utils
ifeq ($(HOST_OS),linux)
TARGET_USERIMAGES_USE_F2FS := true
endif
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.recovery.rk30board.rc:recovery/root/init.recovery.rk30board.rc \
vendor/rockchip/common/bin/$(TARGET_ARCH)/busybox:recovery/root/sbin/busybox \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.rk3368.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.rk3368.rc \
$(LOCAL_PATH)/init.rk3368.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.rk3368.usb.rc \
$(LOCAL_PATH)/wake_lock_filter.xml:system/etc/wake_lock_filter.xml \
device/rockchip/rk3368a/package_performance.xml:$(TARGET_COPY_OUT_ODM)/etc/package_performance.xml \
device/rockchip/rk3368a/media_profiles_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
ifeq ($(BOARD_CAMERA_SUPPORT),true)
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml
PRODUCT_PACKAGES += \
librkisp_aec \
librkisp_awb \
librkisp_af
endif
ifeq ($(BOARD_CAMERA_SUPPORT_EXT),true)
PRODUCT_COPY_FILES += \
device/rockchip/rk3368a/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml \
frameworks/native/data/etc/android.hardware.camera.external.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.external.xml
PRODUCT_PACKAGES += \
endif
$(call inherit-product-if-exists, vendor/rockchip/rk3368a/device-vendor.mk)
#for enable optee support
ifeq ($(strip $(PRODUCT_HAVE_OPTEE)),true)
PRODUCT_COPY_FILES += \
device/rockchip/common/init.optee_verify.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.optee.rc
# Choose TEE storage typ
PRODUCT_PROPERTY_OVERRIDES += ro.tee.storage=rkss
endif
#
#add Rockchip properties here
#
PRODUCT_PROPERTY_OVERRIDES += \
ro.ril.ecclist=112,911 \
ro.opengles.version=196609 \
wifi.interface=wlan0 \
rild.libpath=/system/lib/libril-rk29-dataonly.so \
rild.libargs=-d /dev/ttyACM0 \
persist.tegra.nvmmlite = 1 \
ro.audio.monitorOrientation=true \
debug.nfc.fw_download=false \
debug.nfc.se=false \
ro.rk.screenoff_time=60000 \
ro.rk.screenshot_enable=true \
ro.rk.def_brightness=200 \
ro.rk.homepage_base=http://www.google.com/webhp?client={CID}&source=android-home \
ro.rk.install_non_market_apps=false \
vendor.hwc.compose_policy=6 \
sys.wallpaper.rgb565=0 \
sf.power.control=2073600 \
sys.rkadb.root=0 \
ro.sf.fakerotation=false \
ro.sf.hwrotation=0 \
ro.rk.MassStorage=false \
ro.rk.systembar.voiceicon=true \
ro.rk.systembar.tabletUI=false \
ro.rk.LowBatteryBrightness=false \
ro.tether.denied=false \
sys.resolution.changed=false \
ro.default.size=100 \
ro.product.usbfactory=rockchip_usb \
wifi.supplicant_scan_interval=15 \
ro.factory.tool=0 \
ro.kernel.android.checkjni=0 \
ro.sf.lcd_density=160 \
ro.build.shutdown_timeout=0 \
persist.enable_task_snapshots=false \
ro.vendor.sdkversion = $(CURRENT_SDK_VERSION)