summaryrefslogtreecommitdiffstats
path: root/products/common.mk
blob: 33a47b0094cdacfe5ff1cf2d9f7735e8f379b415 (plain)
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
# Generic replicant/replicant product
PRODUCT_NAME := replicant
PRODUCT_BRAND := replicant
PRODUCT_DEVICE := generic

PRODUCT_PACKAGES += ADWLauncher

# Packages to include in Replicant
PRODUCT_PACKAGES += ReplicantWallpapers
PRODUCT_PACKAGES += FDroid

# Add ROMManager build property
PRODUCT_PROPERTY_OVERRIDES += \
    ro.config.ringtone=DonMessWivIt.ogg

#ifdef CYANOGEN_NIGHTLY
#PRODUCT_PROPERTY_OVERRIDES += \
#    ro.rommanager.developerid=cyanogenmodnightly
#else
#PRODUCT_PROPERTY_OVERRIDES += \
#    ro.rommanager.developerid=cyanogenmod
#endif

PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0

# 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 \
    CMPartsHelper \
    DSPManager \
    FileManager \
    Superuser
#    CMWallpapers \
#    CMStats \
#    CMUpdateNotify \

# Copy over the changelog to the device
PRODUCT_COPY_FILES += \
    vendor/replicant/CHANGELOG.mkdn:system/etc/CHANGELOG-CM.txt

# Common CM/Replicant overlay
PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/common

# Bring in some audio files
include frameworks/base/data/sounds/AudioPackage4.mk

PRODUCT_COPY_FILES += \
    vendor/replicant/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh \
    vendor/replicant/prebuilt/common/bin/verify_cache_partition_size.sh:system/bin/verify_cache_partition_size.sh \
    vendor/replicant/prebuilt/common/etc/resolv.conf:system/etc/resolv.conf \
    vendor/replicant/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf \
    vendor/replicant/prebuilt/common/etc/terminfo/l/linux:system/etc/terminfo/l/linux \
    vendor/replicant/prebuilt/common/etc/terminfo/u/unknown:system/etc/terminfo/u/unknown \
    vendor/replicant/prebuilt/common/etc/profile:system/etc/profile \
    vendor/replicant/prebuilt/common/etc/init.local.rc:system/etc/init.local.rc \
    vendor/replicant/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
    vendor/replicant/prebuilt/common/etc/init.d/01sysctl:system/etc/init.d/01sysctl \
    vendor/replicant/prebuilt/common/etc/init.d/03firstboot:system/etc/init.d/03firstboot \
    vendor/replicant/prebuilt/common/etc/init.d/04modules:system/etc/init.d/04modules \
    vendor/replicant/prebuilt/common/etc/init.d/20userinit:system/etc/init.d/20userinit \
    vendor/replicant/prebuilt/common/bin/handle_compcache:system/bin/handle_compcache \
    vendor/replicant/prebuilt/common/bin/compcache:system/bin/compcache \
    vendor/replicant/prebuilt/common/bin/fix_permissions:system/bin/fix_permissions \
    vendor/replicant/prebuilt/common/bin/sysinit:system/bin/sysinit \
    vendor/replicant/prebuilt/common/xbin/htop:system/xbin/htop \
    vendor/replicant/prebuilt/common/xbin/irssi:system/xbin/irssi \
    vendor/replicant/prebuilt/common/xbin/lsof:system/xbin/lsof \
    vendor/replicant/prebuilt/common/xbin/powertop:system/xbin/powertop \
    vendor/replicant/prebuilt/common/xbin/openvpn-up.sh:system/xbin/openvpn-up.sh

PRODUCT_COPY_FILES += \
    vendor/replicant/prebuilt/common/etc/init.d/05mountsd:system/etc/init.d/05mountsd
#    vendor/replicant/prebuilt/common/etc/init.d/10apps2sd:system/etc/init.d/10apps2sd

# Always run in insecure mode, enables root on user build variants
ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0

PRODUCT_PACKAGES += \
    Provision \
    GoogleSearch \
    LatinIME