Vivekbalachandar M | 9b6e4bf | 2020-02-12 16:01:25 +0530 | [diff] [blame] | 1 | # Copyright 2018-2020 Fairphone B.V. |
Vivekbalachandar Marisamy | ec43dbf | 2019-10-18 07:47:58 +0000 | [diff] [blame] | 2 | # |
| 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 M | 9b6e4bf | 2020-02-12 16:01:25 +0530 | [diff] [blame] | 15 | |
| 16 | $(warning Pulling in SIBON) |
| 17 | |
Vivekbalachandar Marisamy | ec43dbf | 2019-10-18 07:47:58 +0000 | [diff] [blame] | 18 | $(call inherit-product-if-exists, vendor/fairphone/fp2-sibon/device-vendor.mk) |
| 19 | $(call inherit-product, device/fairphone/fp2-common/device.mk) |
| 20 | |
Vivekbalachandar M | 9b6e4bf | 2020-02-12 16:01:25 +0530 | [diff] [blame] | 21 | # Enable USB authorization in userdebug builds |
| 22 | ifeq ($(TARGET_BUILD_VARIANT), userdebug) |
Luca Weiss | 95ed95e | 2022-01-12 11:44:24 +0100 | [diff] [blame] | 23 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += ro.adb.secure=1 |
Vivekbalachandar M | 9b6e4bf | 2020-02-12 16:01:25 +0530 | [diff] [blame] | 24 | endif |
Maarten Derks | 6bbacd2 | 2021-02-12 23:55:38 +0530 | [diff] [blame] | 25 | |
| 26 | # Build and configure alternative su binary |
| 27 | # Allows for superuser access for apps on userdebug |
| 28 | FP2_USE_APPOPS_SU = true |
| 29 | |
| 30 | ifeq ($(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 |
| 37 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 38 | persist.sys.root_access=0 |
| 39 | |
| 40 | endif |