extra: oem-cameras: Import MotCamera2-denali from river

* Also, build it on river.
cm-14.1
Nolen Johnson 5 years ago
parent 22481a522e
commit c02ee99769
  1. 30
      oem-cameras/MotCamera2-denali/Android.mk
  2. BIN
      oem-cameras/MotCamera2-denali/MotCamera2-denali.apk
  3. 2
      oem-cameras/MotCamera2-denali/MotCamera2-denali.mk
  4. 11
      oem-cameras/MotCamera2-denali/privapp-permissions-com.motorola.camera2.denali.xml
  5. 6
      product.mk

@ -0,0 +1,30 @@
# Copyright (C) 2017-2018 The LineageOS 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.
# This file is generated by device/motorola/nash/setup-makefiles.sh
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := MotCamera2-denali
LOCAL_MODULE_OWNER := motorola
LOCAL_SRC_FILES := MotCamera2-denali.apk
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := APPS
LOCAL_DEX_PREOPT := false
LOCAL_MODULE_SUFFIX := .apk
LOCAL_PRIVILEGED_MODULE := true
LOCAL_OVERRIDES_PACKAGES := Snap
include $(BUILD_PREBUILT)

@ -0,0 +1,2 @@
PRODUCT_PACKAGES += \
MotCamera2-denali

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<permissions>
<privapp-permissions package="com.motorola.camera2.denali">
<!-- System defined permissions -->
<permission name="android.permission.STOP_APP_SWITCHES" />
<permission name="android.permission.WRITE_SECURE_SETTINGS" />
<permission name="android.permission.WRITE_MEDIA_STORAGE" />
</privapp-permissions>
</permissions>

@ -6,6 +6,12 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
vendor/extra/adb_keys:recovery/root/adb_keys
## Custom Cameras
# river
ifneq ($(filter %river,$(TARGET_PRODUCT)),)
-include vendor/extra/oem-cameras/MotCamera2-denali/MotCamera2-denali.mk
endif
## Media
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.config.vc_call_vol_steps=7 \

Loading…
Cancel
Save