blob: bbf8a30ba8612f25cea33b5ad8b6cb97ffca86d3 [file] [log] [blame]
Vivekbalachandar M9b6e4bf2020-02-12 16:01:25 +05301# Copyright 2018-2020 Fairphone B.V.
Vivekbalachandar Marisamyec43dbf2019-10-18 07:47:58 +00002#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
Vivekbalachandar M9b6e4bf2020-02-12 16:01:25 +053015
16$(warning Pulling in SIBON)
17
Vivekbalachandar Marisamyec43dbf2019-10-18 07:47:58 +000018$(call inherit-product-if-exists, vendor/fairphone/fp2-sibon/device-vendor.mk)
19$(call inherit-product, device/fairphone/fp2-common/device.mk)
20
Vivekbalachandar M9b6e4bf2020-02-12 16:01:25 +053021# Enable USB authorization in userdebug builds
22ifeq ($(TARGET_BUILD_VARIANT), userdebug)
Luca Weiss95ed95e2022-01-12 11:44:24 +010023PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=1
Vivekbalachandar M9b6e4bf2020-02-12 16:01:25 +053024endif
Maarten Derks6bbacd22021-02-12 23:55:38 +053025
26# Build and configure alternative su binary
27# Allows for superuser access for apps on userdebug
28FP2_USE_APPOPS_SU = true
29
30ifeq ($(FP2_USE_APPOPS_SU), true)
31
32# Configure level of superuser access
33# 0 = disabled
34# 1 = Apps only
35# 2 = ADB only
36# 3 = Apps and ADB
37PRODUCT_PROPERTY_OVERRIDES += \
38 persist.sys.root_access=0
39
40endif