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

Commit d295c615 authored by lion0738's avatar lion0738
Browse files

mako: use Snap camera app

Change-Id: I9a34b479c452220a75caab54a89a08db0af7c86a
parent 3a8610c8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -276,6 +276,10 @@ PRODUCT_PROPERTY_OVERRIDES += \
    dalvik.vm.dex2oat-filter=speed \
    dalvik.vm.dex2oat-swap=false

# Camera
PRODUCT_PACKAGES += \
    Snap

$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)

$(call inherit-product, hardware/qcom/msm8960/msm8960.mk)
+32 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 The Android Open Source Project
                   2015-2016 The CyanogenMod 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.
-->

<!-- Camera app resources that may need to be customized
     for different hardware or product builds. -->
<resources>
    <!-- Opens back camera using openLegacy() -->
    <bool name="back_camera_open_legacy">false</bool>

    <!-- Opens front camera using openLegacy() -->
    <bool name="front_camera_open_legacy">false</bool>

    <!-- Restart preview for back camera onPictureTaken -->
    <bool name="back_camera_restart_preview_onPictureTaken">true</bool>

    <!-- Restart preview for front camera onPictureTaken -->
    <bool name="front_camera_restart_preview_onPictureTaken">true</bool>
</resources>
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ allow camera system_data_file:sock_file unlink;
type_transition camera system_data_file:file camera_data_file "fdAlbum";
allow camera camera_data_file:file create_file_perms;

allow camera gpu_device:chr_file { read write open ioctl };

# Connect to sensor socket (/data/app/sensor_ctl_socket)
unix_socket_connect(camera, sensors, sensors)
allow camera sensors_socket:sock_file read;