-
Notifications
You must be signed in to change notification settings - Fork 1
/
janice.mk
81 lines (65 loc) · 3.05 KB
/
janice.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
# Include common makefile
$(call inherit-product, device/samsung/u8500-common/common.mk)
LOCAL_PATH := device/samsung/janice
JANICEP_PATH := device/samsung/janicep
# Overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# STE
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/ste_modem.sh:system/etc/ste_modem.sh
# TEE
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/tee/cops_ta.ssw:system/lib/tee/cops_ta.ssw \
$(LOCAL_PATH)/tee/custom_ta.ssw:system/lib/tee/custom_ta.ssw \
$(LOCAL_PATH)/tee/libbassapp_ssw:system/lib/tee/libbassapp_ssw \
$(LOCAL_PATH)/tee/smcl_ta_8500bx_secure.ssw:system/lib/tee/smcl_ta_8500bx_secure.ssw
# TEEP
PRODUCT_COPY_FILES += \
$(JANICEP_PATH)/tee/cops_ta.ssw:system/lib/teeP/cops_ta.ssw \
$(JANICEP_PATH)/tee/custom_ta.ssw:system/lib/teeP/custom_ta.ssw \
$(JANICEP_PATH)/tee/libbassapp_ssw:system/lib/teeP/libbassapp_ssw \
$(JANICEP_PATH)/tee/smcl_ta_8500bx_secure.ssw:system/lib/teeP/smcl_ta_8500bx_secure.ssw
# Enable AAC 5.1 output
PRODUCT_PROPERTY_OVERRIDES += \
media.aac_51_output_enabled=true
# Packages
PRODUCT_PACKAGES += \
GalaxySAdvanceSettings
# GPS
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/gps.conf:system/etc/gps.conf \
$(LOCAL_PATH)/configs/sirfgps.conf:system/etc/sirfgps.conf
# Compass workaround
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/compass:system/etc/init.d/compass
$(call inherit-product, device/common/gps/gps_eu_supl.mk)
# Init files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/fstab.samsungjanice:root/fstab.samsungjanice \
$(LOCAL_PATH)/rootdir/init.samsungjanice.rc:root/init.samsungjanice.rc \
$(LOCAL_PATH)/rootdir/device_tunables.rc:root/device_tunables.rc \
$(LOCAL_PATH)/rootdir/init.samsungjanice.usb.rc:root/init.samsungjanice.usb.rc \
$(LOCAL_PATH)/rootdir/init.recovery.samsungjanice.rc:root/init.recovery.samsungjanice.rc \
$(LOCAL_PATH)/rootdir/ueventd.samsungjanice.rc:root/ueventd.samsungjanice.rc
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/adm.sqlite-u8500:system/etc/adm.sqlite-u8500 \
$(LOCAL_PATH)/configs/audio_policy.conf:system/vendor/etc/audio_policy.conf \
$(LOCAL_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf \
# RIL
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/manuf_id.cfg:system/etc/AT/manuf_id.cfg \
$(LOCAL_PATH)/configs/model_id.cfg:system/etc/AT/model_id.cfg \
$(LOCAL_PATH)/configs/system_id.cfg:system/etc/AT/system_id.cfg
# Storage switch script
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/SwapStorages.sh:system/xbin/SwapStorages.sh
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.vold.switchablepair=sdcard0,sdcard1 \
persist.sys.vold.switchexternal=0
# Use non-open-source parts if present
$(call inherit-product-if-exists, vendor/samsung/u8500-common/janice/janice-vendor-blobs.mk)