Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29359d58 authored by Rohit Sekhar's avatar Rohit Sekhar Committed by Sahil Sonar
Browse files

FP5: Include FPCamera



[Sahil Sonar]
 - Address Fairphone camera SELinux denials

Co-authored-by: default avatarSahilSonar <sss.sonar2003@gmail.com>
Change-Id: I61aeba05268ca6227a0da52ea72d3b49a36bce84
parent afbf03f8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -160,6 +160,8 @@ VENDOR_SECURITY_PATCH := $(BOOT_SECURITY_PATCH)
# SEPolicy
include device/qcom/sepolicy_vndr/SEPolicy.mk
BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/public
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private

# Verified Boot
BOARD_AVB_ENABLE := true
+27 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2016 The Android Open Source Project
  ~
  ~ 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
  -->
<permissions>
    <privapp-permissions package="com.fp5.camera">
         <permission name="android.permission.SYSTEM_CAMERA"/>
         <permission name="android.permission.WRITE_MEDIA_STORAGE"/>
         <permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
         <permission name="android.permission.STOP_APP_SWITCHES"/>
         <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
         <permission name="android.permission.INTERACT_ACROSS_USERS"/>
         <permission name="android.permission.CHANGE_CONFIGURATION"/>
    </privapp-permissions>
</permissions>
+4 −0
Original line number Diff line number Diff line
@@ -149,6 +149,10 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
    frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml

# FPCamera
PRODUCT_COPY_FILES += \
    $(LOCAL_PATH)/configs/privapp-permissions-fpcam.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-fpcam.xml

# GPS
PRODUCT_PACKAGES += \
    android.hardware.gnss@2.1-impl-qti:64 \
+21 −0
Original line number Diff line number Diff line
@@ -351,6 +351,27 @@ vendor/etc/camera/tuningversion_fp5.txt
# Camera firmware
vendor/firmware/CAMERA_ICP_170.elf

# Camera (FPCamera)
system/priv-app/FPCamera/FPCamera.apk
system_ext/etc/public.libraries-tct.txt
system_ext/lib64/libtctcameraalgo_jni.tct.so
vendor/lib64/libtctcameraalgo.so
vendor/lib64/com.tct.cameraalgo.distortion.so
vendor/lib64/com.tct.cameraalgo.gs.so
vendor/lib64/com.tct.cameraalgo.hdr.so
vendor/lib64/com.tct.cameraalgo.hwmfnr.so
vendor/lib64/com.tct.cameraalgo.mirror.so
vendor/lib64/com.tct.cameraalgo.morphozoom.so
vendor/lib64/com.tct.cameraalgo.singlebokeh.so
vendor/lib64/com.tct.cameraalgo.supernight.so
vendor/lib64/com.tct.cameraalgo.tcldualbokeh.so
vendor/lib64/com.tct.cameraalgo.watermark.so
vendor/lib64/libmorpho_image_refiner.so
vendor/lib64/libanc_single_bokeh.so
vendor/lib64/libanc_single_bokeh_rear.so
vendor/lib64/libtcl_dualcam_bokeh_cap.so
vendor/lib64/libmorpho_super_resolution.so

# CDSP
vendor/bin/cdsprpcd
vendor/etc/init/vendor.qti.cdsprpc-service.rc
+4 −0
Original line number Diff line number Diff line
# FPCamera
persist.vendor.tct.camera.                   u:object_r:vendor_t2m_prop:s0
vendor.tct.camera.                           u:object_r:vendor_t2m_prop:s0
vendor.t2m.                                  u:object_r:vendor_t2m_prop:s0
Loading