forked from lycanthia/android_device_allwinner_a13_common
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevice.mk
162 lines (134 loc) · 6.15 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
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
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
$(call inherit-product-if-exists, vendor/allwinner/a13/a13-vendor.mk)
LOCAL_PATH := device/allwinner/a13
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := $(LOCAL_PATH)/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
PRODUCT_COPY_FILES := \
device/allwinner/a13/ramdisk/modules/sw-keyboard.ko:/root/lib/modules/sw-keyboard.ko \
device/allwinner/a13/ramdisk/modules/ft5x_ts.ko:/root/lib/modules/ft5x_ts.ko \
device/allwinner/a13/ramdisk/init.rc:root/init.rc \
device/allwinner/a13/ramdisk/initlogo.rle:root/initlogo.rle \
device/allwinner/a13/ramdisk/init.sun5i.rc:root/init.sun5i.rc \
device/allwinner/a13/ramdisk/init.sun5i.usb.rc:root/init.sun5i.usb.rc \
device/allwinner/a13/ramdisk/ueventd.sun5i.rc:root/ueventd.sun5i.rc
PRODUCT_CHARACTERISTICS := tablet
PRODUCT_TAGS += dalvik.gc.type-precise
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version = 131072 \
debug.egl.hw=1 \
ro.display.switch=1 \
ro.sf.lcd_density=120 \
hwui.render_dirty_regions=false \
wifi.interface = wlan0 \
wifi.supplicant_scan_interval = 150 \
persist.sys.usb.config=mass_storage,adb \
dalvik.vm.verify-bytecode=false \
dalvik.vm.dexopt-flags=v=n,o=v \
dalvik.vm.execution-mode=int:jit \
persist.sys.timezone=Europe/Rome \
persist.sys.language=pl \
persist.sys.country=PL \
ro.com.google.locationfeatures=1 \
ro.media.dec.jpeg.memcap=20000000 \
dalvik.vm.lockprof.threshold=500 \
ro.kernel.android.checkjni=0 \
dalvik.vm.checkjni=false \
dalvik.vm.dexopt-data-only=1 \
ro.vold.umsdirtyratio=20 \
ro.media.enc.jpeg.quality=100 \
debug.sf.hw=1 \
video.accelerate.hw=1 \
debug.performance.tuning=1 \
ro.media.dec.jpeg.memcap=8000000 \
ro.media.enc.hprof.vid.bps=800000 \
persist.sys.use_dithering=0 \
persist.sys.purgeable_assets=0 \
windowsmgr.max_events_per_sec=240 \
view.touch_slop=2 \
view.minimum_fling_velocity=25 \
updateme.disableinstalledapps=1 \
updateme.disablescripts=1 \
ro.additionalmounts=/storage/sdcard1 \
ro.vold.switchablepair=/storage/sdcard0,/storage/sdcard1 \
persist.sys.vold.switchexternal=0
DEVICE_PACKAGE_OVERLAYS += device/allwinner/a13/overlay
# Permissions
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/base/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/base/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/base/data/etc/com.tmobile.software.themes.xml:system/etc/permissions/com.tmobile.software.themes.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
# Publish that we support the live wallpaper feature.
PRODUCT_PACKAGES += \
LiveWallpapers \
LiveWallpapersPicker \
MagicSmokeWallpapers \
HoloSpiralWallpaper
PRODUCT_PACKAGES += \
VisualizationWallpapers \
librs_jni
# Hardware libs
PRODUCT_PACKAGES += \
gps.sun5i \
libjni_mosaic \
chat \
u3gmonitor \
devlistener
# Other stuff
PRODUCT_PACKAGES += librs_jni rild_sun5i
# EGL stuff
PRODUCT_PACKAGES += gralloc.sun5i hwcomposer.sun5i display.sun5i
# Sensors
PRODUCT_PACKAGES += lights.sun5i sensors.sun5i
# ICS Camera
PRODUCT_PACKAGES += camera.sun5i
# CM9 apps
PRODUCT_PACKAGES += FileManager com.android.future.usb.accessory
# EXT4 Support
PRODUCT_PACKAGES += make_ext4fs e2fsck
# Audio stuff
PRODUCT_PACKAGES += audio.a2dp.default libaudioutils libtinyalsa audio_policy.sun5i audio.primary.sun5i
# CedarX libraries
PRODUCT_PACKAGES += libCedarA libCedarX libcedarv libcedarxbase libcedarxosal libswdrm libcedarxsftdemux
# copy all others kernel modules under the "modules" directory to system/lib/modules
PRODUCT_COPY_FILES += $(shell test -d vendor/allwinner/a13/proprietary/lib/modules && \
find vendor/allwinner/a13/proprietary/lib/modules -name '*.ko' \
-printf '%p:system/lib/modules/%f ')
# Should be after the full_base include, which loads languages_full
PRODUCT_LOCALES += mdpi
PRODUCT_CHARACTERISTICS := tablet
# EXT4 Support
PRODUCT_PACKAGES += \
make_ext4fs \
e2fsck
$(call inherit-product, device/allwinner/a13/libraries/Android.mk)
$(call inherit-product, device/allwinner/a13/packages/Android.mk)
$(call inherit-product, frameworks/base/build/tablet-dalvik-heap.mk)
$(call inherit-product, vendor/cm/config/gsm.mk)
$(call inherit-product-if-exists, vendor/allwinner/a13/a13-vendor.mk)
$(call inherit-product, build/target/product/full.mk)
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := full_a13
PRODUCT_DEVICE := a13
PRODUCT_BRAND := Allwinner
PRODUCT_MODEL := A13
PRODUCT_MANUFACTURER := Allwinner