blob: bfa364fc4cb8b95f9e5b3abba200c6aee0a1de0d [file] [log] [blame]
# Copyright 2018-2019 Fairphone B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# AOSP
PRODUCT_PACKAGES := \
Calculator \
Calendar \
Email \
Exchange2 \
LiveWallpapersPicker \
QuickSearchBox \
# Fairphone
PRODUCT_PACKAGES += \
CameraSwapInfo \
FairphoneCheckup \
FairphoneLauncher3 \
FairphoneSettings \
ModuleDetect \
ProgrammableButton \
ProximitySensorTools \
Updater
# Include crash reporting service and client
$(call inherit-product-if-exists, vendor/fairphone/hiccup/hiccup.mk)
# Boot animation
PRODUCT_COPY_FILES += \
vendor/fairphone/media/bootanimation/fp2.zip:system/media/bootanimation.zip
# Ringtones
PRODUCT_COPY_FILES += \
vendor/fairphone/media/ringtones/Sunbeam.mp3:system/media/audio/ringtones/Fairphone.mp3 \
vendor/fairphone/media/ringtones/Fiesta.mp3:system/media/audio/ringtones/Fiesta.mp3
PRODUCT_PROPERTY_OVERRIDES += ro.config.ringtone=Fairphone.mp3
# SELinux policy variable definitions
BOARD_SEPOLICY_DIRS += \
vendor/fairphone/fp2-common/sepolicy
# Build and configure alternative su binary
# Allows for superuser access for apps on userdebug
FP2_USE_APPOPS_SU = true
ifeq ($(FP2_USE_APPOPS_SU), true)
# Configure level of superuser access
# 0 = disabled
# 1 = Apps only
# 2 = ADB only
# 3 = Apps and ADB
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.root_access=0
# Updated file system permissions for alternative su binary
TARGET_ANDROID_FILESYSTEM_CONFIG_H := vendor/fairphone/fp2-common/fs_config/android_filesystem_config.h
# Include updated file system permissions
PRODUCT_PACKAGES += \
fs_config_files
endif
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-fairphone
PRODUCT_PACKAGE_OVERLAYS += \
vendor/fairphone/fp2-common/overlay
DEVICE_PACKAGE_OVERLAYS += \
vendor/fairphone/fp2-common/overlay
# Inherit some common AOSP stuff
# TODO Remove
$(warning Pulling in AOSP config)
$(call inherit-product, vendor/aosp/common.mk)