forked from mateor/android_vendor_cm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.mk
136 lines (117 loc) · 7.11 KB
/
common.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
# Generic cyanogenmod product
PRODUCT_NAME := cyanogen
PRODUCT_BRAND := cyanogen
PRODUCT_DEVICE := generic
PRODUCT_PACKAGES += ADWLauncher
# Use edify for otapackage
PRODUCT_SPECIFIC_DEFINES += TARGET_OTA_SCRIPT_MODE=edify
# Include backuptool
PRODUCT_SPECIFIC_DEFINES += TARGET_OTA_BACKUPTOOL=true
# Display modversion in edify script.
PRODUCT_SPECIFIC_DEFINES += TARGET_OTA_MODVER=true
# Add ROMManager build property
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.ringtone=DonMessWivIt.ogg \
ro.rommanager.developerid=cyanogenmod
# Used by BusyBox
KERNEL_MODULES_DIR:=/system/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
# CyanogenMod specific product packages
PRODUCT_PACKAGES += \
CMParts \
Superuser
# Copy over the changelog to the device
PRODUCT_COPY_FILES += \
vendor/cyanogen/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt
# Common CM overlay
PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/common
# Bring in some audio files
include frameworks/base/data/sounds/AudioPackage4.mk
PRODUCT_COPY_FILES += \
vendor/cyanogen/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \
vendor/cyanogen/prebuilt/common/etc/resolv.conf:system/etc/resolv.conf \
vendor/cyanogen/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf \
vendor/cyanogen/prebuilt/common/etc/terminfo/l/linux:system/etc/terminfo/l/linux \
vendor/cyanogen/prebuilt/common/etc/terminfo/u/unknown:system/etc/terminfo/u/unknown \
vendor/cyanogen/prebuilt/common/etc/profile:system/etc/profile \
vendor/cyanogen/prebuilt/common/etc/init.local.rc:system/etc/init.local.rc \
vendor/cyanogen/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
vendor/cyanogen/prebuilt/common/etc/init.d/01sysctl:system/etc/init.d/01sysctl \
vendor/cyanogen/prebuilt/common/etc/init.d/03firstboot:system/etc/init.d/03firstboot \
vendor/cyanogen/prebuilt/common/etc/init.d/04modules:system/etc/init.d/04modules \
vendor/cyanogen/prebuilt/common/etc/init.d/20userinit:system/etc/init.d/20userinit \
vendor/cyanogen/prebuilt/common/bin/compcache:system/bin/compcache \
vendor/cyanogen/prebuilt/common/bin/fix_permissions:system/bin/fix_permissions \
vendor/cyanogen/prebuilt/common/bin/sysinit:system/bin/sysinit \
vendor/cyanogen/prebuilt/common/xbin/htop:system/xbin/htop \
vendor/cyanogen/prebuilt/common/xbin/irssi:system/xbin/irssi \
vendor/cyanogen/prebuilt/common/xbin/lsof:system/xbin/lsof \
vendor/cyanogen/prebuilt/common/xbin/powertop:system/xbin/powertop \
vendor/cyanogen/prebuilt/common/xbin/openvpn-up.sh:system/xbin/openvpn-up.sh
#PRODUCT_COPY_FILES += \
# vendor/cyanogen/prebuilt/common/etc/init.d/05mountsd:system/etc/init.d/05mountsd \
# vendor/cyanogen/prebuilt/common/etc/init.d/10apps2sd:system/etc/init.d/10apps2sd
PRODUCT_COPY_FILES += \
vendor/cyanogen/proprietary/RomManager.apk:system/app/RomManager.apk \
# Always run in insecure mode, enables root on user build variants
#ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
ifdef CYANOGEN_WITH_GOOGLE
PRODUCT_SPECIFIC_DEFINES += TARGET_OTA_BACKUPTOOL=false
PRODUCT_COPY_FILES += \
vendor/cyanogen/proprietary/CarHomeGoogle.apk:./system/app/CarHomeGoogle.apk \
vendor/cyanogen/proprietary/CarHomeLauncher.apk:./system/app/CarHomeLauncher.apk \
vendor/cyanogen/proprietary/Facebook.apk:./system/app/Facebook.apk \
vendor/cyanogen/proprietary/GenieWidget.apk:./system/app/GenieWidget.apk \
vendor/cyanogen/proprietary/Gmail.apk:./system/app/Gmail.apk \
vendor/cyanogen/proprietary/GoogleBackupTransport.apk:./system/app/GoogleBackupTransport.apk \
vendor/cyanogen/proprietary/GoogleCalendarSyncAdapter.apk:./system/app/GoogleCalendarSyncAdapter.apk \
vendor/cyanogen/proprietary/GoogleContactsSyncAdapter.apk:./system/app/GoogleContactsSyncAdapter.apk \
vendor/cyanogen/proprietary/GoogleFeedback.apk:./system/app/GoogleFeedback.apk \
vendor/cyanogen/proprietary/GooglePartnerSetup.apk:./system/app/GooglePartnerSetup.apk \
vendor/cyanogen/proprietary/GoogleQuickSearchBox.apk:./system/app/GoogleQuickSearchBox.apk \
vendor/cyanogen/proprietary/GoogleServicesFramework.apk:./system/app/GoogleServicesFramework.apk \
vendor/cyanogen/proprietary/HtcCopyright.apk:./system/app/HtcCopyright.apk \
vendor/cyanogen/proprietary/HtcEmailPolicy.apk:./system/app/HtcEmailPolicy.apk \
vendor/cyanogen/proprietary/HtcSettings.apk:./system/app/HtcSettings.apk \
vendor/cyanogen/proprietary/LatinImeGoogle.apk:./system/app/LatinImeGoogle.apk \
vendor/cyanogen/proprietary/LatinImeTutorial.apk:./system/app/LatinImeTutorial.apk \
vendor/cyanogen/proprietary/Maps.apk:./system/app/Maps.apk \
vendor/cyanogen/proprietary/MarketUpdater.apk:./system/app/MarketUpdater.apk \
vendor/cyanogen/proprietary/MediaUploader.apk:./system/app/MediaUploader.apk \
vendor/cyanogen/proprietary/NetworkLocation.apk:./system/app/NetworkLocation.apk \
vendor/cyanogen/proprietary/OneTimeInitializer.apk:./system/app/OneTimeInitializer.apk \
vendor/cyanogen/proprietary/PassionQuickOffice.apk:./system/app/PassionQuickOffice.apk \
vendor/cyanogen/proprietary/SetupWizard.apk:./system/app/SetupWizard.apk \
vendor/cyanogen/proprietary/Street.apk:./system/app/Street.apk \
vendor/cyanogen/proprietary/Talk.apk:./system/app/Talk.apk \
vendor/cyanogen/proprietary/Twitter.apk:./system/app/Twitter.apk \
vendor/cyanogen/proprietary/Vending.apk:./system/app/Vending.apk \
vendor/cyanogen/proprietary/VoiceSearch.apk:./system/app/VoiceSearch.apk \
vendor/cyanogen/proprietary/YouTube.apk:./system/app/YouTube.apk \
vendor/cyanogen/proprietary/com.amazon.mp3.apk:./system/app/com.amazon.mp3.apk \
vendor/cyanogen/proprietary/googlevoice.apk:./system/app/googlevoice.apk \
vendor/cyanogen/proprietary/kickback.apk:./system/app/kickback.apk \
vendor/cyanogen/proprietary/soundback.apk:./system/app/soundback.apk \
vendor/cyanogen/proprietary/talkback.apk:./system/app/talkback.apk \
vendor/cyanogen/proprietary/com.google.android.maps.xml:./system/etc/permissions/com.google.android.maps.xml \
vendor/cyanogen/proprietary/features.xml:./system/etc/permissions/features.xml \
vendor/cyanogen/proprietary/com.google.android.maps.jar:./system/framework/com.google.android.maps.jar \
vendor/cyanogen/proprietary/libinterstitial.so:./system/lib/libinterstitial.so \
vendor/cyanogen/proprietary/libspeech.so:./system/lib/libspeech.so
else
PRODUCT_PACKAGES += \
Provision \
GoogleSearch \
LatinIME
endif