forked from dh-harald/cm_android_device_samsung_spica
-
Notifications
You must be signed in to change notification settings - Fork 2
/
generic_moment.mk
159 lines (138 loc) · 6.28 KB
/
generic_moment.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
# Generic leshakmod product
PRODUCT_NAME := CyanogenMod
PRODUCT_BRAND := criminal
PRODUCT_DEVICE := generic
# Use edify for otapackage
PRODUCT_SPECIFIC_DEFINES += TARGET_OTA_SCRIPT_MODE=amend
# Used by BusyBox
KERNEL_MODULES_DIR:=/lib/modules
# Tiny toolbox
TINY_TOOLBOX:=true
# Enable Windows Media if supported by the board
WITH_WINDOWS_MEDIA:=true
PRODUCT_PROPERTY_OVERRIDES += \
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
ro.com.google.clientidbase=android-google \
ro.com.android.wifi-watchlist=GoogleGuest \
ro.setupwizard.enterprise_mode=1 \
ro.com.android.dateformat=MM-dd-yyyy \
ro.com.android.dataroaming=false \
dalvik.vm.dexopt-data-only=1 \
dalvik.vm.heapsize=32m
# Default network type.
# 0 => WCDMA preferred.
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.default_network=0
# mobile interfaces
PRODUCT_PROPERTY_OVERRIDES += \
mobiledata.interfaces=pdp0,eth0,gprs,ppp0
#scan interval
PRODUCT_PROPERTY_OVERRIDES += \
wifi.supplicant_scan_interval=90
# Repeat ring tone on incoming calls (CM/Blade)
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.call_ring.multiple=false
# OpenVPN
PRODUCT_PACKAGES += \
openvpn
PRODUCT_PACKAGES += \
ADWLauncher \
AndroidTerm \
CMParts \
CMStats \
CMUpdateNotify \
CMWallpapers \
FileManager \
Pacman \
Stk \
Superuser
# Live wallpaper packages
PRODUCT_PACKAGES += \
LiveWallpapers \
LiveWallpapersPicker \
MagicSmokeWallpapers \
librs_jni
# Packages in device dir
PRODUCT_PACKAGES += \
libs3cjpeg.so \
libcamera.so \
copybit.SPH-M900 \
gps.SPH-M900 \
gralloc.SPH-M900 \
lights.SPH-M900 \
sensors.SPH-M900 \
libsecgps.so \
libsecril-client.so \
libGLES_fimg \
libfimg
# Publish that we support the live wallpaper feature.
PRODUCT_COPY_FILES += \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
# Common CM overlay
PRODUCT_PACKAGE_OVERLAYS += vendor/moment/overlay/moment
# Bring in some audio files
include frameworks/base/data/sounds/AudioPackage4.mk
PRODUCT_COPY_FILES += \
device/samsung/moment/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \
device/samsung/moment/prebuilt/common/bin/remount:system/bin/remount \
device/samsung/moment/prebuilt/common/bin/compcache:system/bin/compcache \
device/samsung/moment/prebuilt/common/bin/handle_compcache:system/bin/handle_compcache \
device/samsung/moment/prebuilt/common/lib/libncurses.so:system/lib/libncurses.so \
device/samsung/moment/prebuilt/common/etc/init.d/03firstboot:system/etc/init.d/03firstboot \
device/samsung/moment/prebuilt/common/etc/init.d/04apps2sd:system/etc/init.d/04apps2sd \
device/samsung/moment/prebuilt/common/etc/init.d/05apps2sdoff:system/etc/init.d/05apps2sdoff \
device/samsung/moment/prebuilt/common/etc/init.d/07userinit:system/etc/init.d/07userinit \
device/samsung/moment/prebuilt/common/etc/init.d/99complete:system/etc/init.d/99complete \
device/samsung/moment/prebuilt/common/etc/resolv.conf:system/etc/resolv.conf \
device/samsung/moment/prebuilt/common/etc/terminfo/l/linux:system/etc/terminfo/l/linux \
device/samsung/moment/prebuilt/common/etc/terminfo/u/unknown:system/etc/terminfo/u/unknown \
device/samsung/moment/prebuilt/common/etc/profile:system/etc/profile \
device/samsung/moment/prebuilt/common/xbin/bash:system/xbin/bash \
device/samsung/moment/prebuilt/common/xbin/htop:system/xbin/htop \
device/samsung/moment/prebuilt/common/xbin/lsof:system/xbin/lsof \
device/samsung/moment/prebuilt/common/xbin/nano:system/xbin/nano \
device/samsung/moment/prebuilt/common/xbin/powertop:system/xbin/powertop \
device/samsung/moment/prebuilt/common/xbin/openvpn-up.sh:system/xbin/openvpn-up.sh
SPICA_WITH_GOOGLE:=true
# I'll always build with gapps :)
ifdef SPICA_WITH_GOOGLE
PRODUCT_COPY_FILES += \
vendor/moment/proprietary/CarHomeLauncher.apk:system/app/CarHomeLauncher.apk \
vendor/moment/proprietary/FOTAKill.apk:system/app/FOTAKill.apk \
vendor/moment/proprietary/GenieWidget.apk:system/app/GenieWidget.apk \
vendor/moment/proprietary/GoogleBackupTransport.apk:system/app/GoogleBackupTransport.apk \
vendor/moment/proprietary/GoogleCalendarSyncAdapter.apk:system/app/GoogleCalendarSyncAdapter.apk \
vendor/moment/proprietary/GoogleContactsSyncAdapter.apk:system/app/GoogleContactsSyncAdapter.apk \
vendor/moment/proprietary/GoogleFeedback.apk:system/app/GoogleFeedback.apk \
vendor/moment/proprietary/GooglePartnerSetup.apk:system/app/GooglePartnerSetup.apk \
vendor/moment/proprietary/GoogleQuickSearchBox.apk:system/app/GoogleQuickSearchBox.apk \
vendor/moment/proprietary/GoogleServicesFramework.apk:system/app/GoogleServicesFramework.apk \
vendor/moment/proprietary/LatinImeTutorial.apk:system/app/LatinImeTutorial.apk \
vendor/moment/proprietary/MarketUpdater.apk:system/app/MarketUpdater.apk \
vendor/moment/proprietary/MediaUploader.apk:system/app/MediaUploader.apk \
vendor/moment/proprietary/NetworkLocation.apk:system/app/NetworkLocation.apk \
vendor/moment/proprietary/OneTimeInitializer.apk:system/app/OneTimeInitializer.apk \
vendor/moment/proprietary/SetupWizard.apk:system/app/SetupWizard.apk \
vendor/moment/proprietary/Talk.apk:system/app/Talk.apk \
vendor/moment/proprietary/Vending.apk:system/app/Vending.apk \
vendor/moment/proprietary/com.google.android.maps.xml:system/etc/permissions/com.google.android.maps.xml \
vendor/moment/proprietary/features.xml:system/etc/permissions/features.xml \
vendor/moment/proprietary/com.google.android.maps.jar:system/framework/com.google.android.maps.jar \
vendor/moment/proprietary/libvoicesearch.so:system/lib/libvoicesearch.so
else
PRODUCT_PACKAGES += \
Provision \
GoogleSearch \
LatinIME
endif
# Copy over the changelog to the device
PRODUCT_COPY_FILES += \
vendor/moment/CHANGELOG:system/etc/CHANGELOG.txt
PRODUCT_COPY_FILES += \
vendor/cyanogen/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
#
# Copy bootanimation
#
PRODUCT_COPY_FILES += \
device/samsung/moment/prebuilt/mdpi/media/bootanimation.zip:system/media/bootanimation.zip