forked from emass293/device_pipo_m9pro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice_m9pro.mk
208 lines (161 loc) · 5.21 KB
/
device_m9pro.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# default is nosdcard, S/W button enabled in resource
DEVICE_FOLDER := device/pipo/m9pro
#PRODUCT_TAGS += dalvik.gc.type-precise
DEVICE_PACKAGE_OVERLAYS := $(DEVICE_FOLDER)/overlay
PRODUCT_CHARACTERISTICS := tablet
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := $(LOCAL_PATH)/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
#Pour boot.img
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/ramdisk,root) \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/ramdisk/res/images/charger/,root/res/images/charger)
#Pour system.img
# Copy app
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/app,system/app)
# Copy bin
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/bin,system/bin)
# Copy etc
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/etc,system/etc)
# Copy etc bluetooth
#PRODUCT_COPY_FILES += \
# $(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/etc/bluetooth,system/etc/bluetooth)
# Copy etc init.d scripts
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/etc/init.d,system/etc/init.d)
# Copy etc ppp
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/etc/ppp,system/etc/ppp)
# Copy etc usb_modeswitch.d
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/etc/usb_modeswitch.d,system/etc/usb_modeswitch.d)
# Copy etc firmware
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/etc/firmware,system/etc/firmware)
# Copy etc gps
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/etc/gps,system/etc/gps)
# Copy etc wifi
#PRODUCT_COPY_FILES += \
# $(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/etc/wifi,system/etc/wifi)
# Copy lib hw
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/lib/hw,system/lib/hw)
# Copy lib
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/lib,system/lib)
# Copy lib egl
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/lib/egl,system/lib/egl)
# Copy modules
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/lib/modules,system/lib/modules)
# Copy media
#PRODUCT_COPY_FILES += \
# $(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/media,system/media)
# Copy framework
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/framework,system/framework)
# Copy preinstall
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/preinstall,system/preinstall)
# Copy vendor firmware
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/vendor/firmware,system/vendor/firmware)
# Copy vendor lib
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/vendor/lib,system/vendor/lib)
# Copy keylayouts
#PRODUCT_COPY_FILES += \
# $(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/usr/keylayout,system/usr/keylayout)
# hardware-specific feature permissions
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(DEVICE_FOLDER)/prebuilt/etc/permissions,system/etc/permissions)
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
service.adb.root=1 \
ro.secure=0 \
ro.debuggable=1 \
persist.sys.usb.config=mtp \
ro.rk.systembar.voiceicon=true
# enable ADB
PRODUCT_PROPERTY_OVERRIDES := \
service.adb.root=1 \
ro.secure=0 \
ro.allow.mock.location=1 \
ro.debuggable=1
# Drm
PRODUCT_PACKAGES += \
drmservice
# Torch
#PRODUCT_PACKAGES += \
# Torch \
# Camera
PRODUCT_PACKAGES += \
Camera \
camera.rk30board
# Audio
PRODUCT_PACKAGES += \
audio.primary.rk30board \
audio_policy.rk30board \
audio.alsa_usb.rk30board \
audio.r_submix.default \
audio.a2dp.default \
audio.usb.default
# Hal modules
PRODUCT_PACKAGES += \
lights.rk30board \
power.rk3188 \
sensors.rk30board \
hwcomposer.rk30board \
gralloc.rk30board \
gpu.rk30board
PRODUCT_PACKAGES += \
librs_jni \
com.android.future.usb.accessory
PRODUCT_PACKAGES += \
com.broadcom.bt \
com.broadcom.bt.xml \
libbt-client-api
# VPU Libs
PRODUCT_PACKAGES += \
libapedec \
libjpeghwdec \
libjpeghwenc \
libjesancache \
libhevcdec \
libOMX_Core \
libomxvpu_dec \
libomxvpu_enc \
librk_demux \
libstagefrighthw \
librkwmapro \
librk_on2 \
librkswscale \
libvpu
# filesystem tools
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs \
static_busybox \
utility_make_ext4fs
# French
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.locale.language=fr \
ro.product.locale.region=FR
# Fix for dalvik-cache
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dexopt-data-only=1
# 3G
PRODUCT_PACKAGES += \
rild \
chat
# android core stuff
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
$(call inherit-product, build/target/product/full_base.mk)