Loading device.mk +4 −0 Original line number Diff line number Diff line Loading @@ -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) overlay/packages/apps/Snap/res/values/config.xml 0 → 100644 +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> sepolicy/camera.te +2 −0 Original line number Diff line number Diff line Loading @@ -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; Loading
device.mk +4 −0 Original line number Diff line number Diff line Loading @@ -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)
overlay/packages/apps/Snap/res/values/config.xml 0 → 100644 +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>
sepolicy/camera.te +2 −0 Original line number Diff line number Diff line Loading @@ -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;