camera: Use device path instead of vendor

This commit is contained in:
2026-03-09 16:23:42 +00:00
parent bd1e531865
commit 0ab7f5a7d6
3 changed files with 6 additions and 6 deletions

View File

@@ -4,13 +4,13 @@ Prebuilt stock oplus Camera to include in custom ROM builds.
### How to use? ### How to use?
1. Clone this repo to `vendor/oplus/camera` 1. Clone this repo to `device/oplus/camera`
2. Inherit it from `device.mk` in device tree: 2. Inherit it from `device.mk` in device tree:
``` ```
# Camera # Camera
$(call inherit-product-if-exists, vendor/oplus/camera/opluscamera.mk) $(call inherit-product-if-exists, device/oplus/camera/opluscamera.mk)
``` ```
3. Ensure that the PRODUCT_BRAND is either oneplus or oppo or realme and that it is not overriden by any of the safetynet hacks. 3. Ensure that the PRODUCT_BRAND is either oneplus or oppo or realme and that it is not overriden by any of the safetynet hacks.

View File

@@ -29,7 +29,7 @@ $(call soong_config_set,camera,package_name,com.oplus.packageName)
$(call soong_config_set,camera,override_format_from_reserved,true) $(call soong_config_set,camera,override_format_from_reserved,true)
# SEpolicy # SEpolicy
include vendor/oplus/camera/sepolicy/SEPolicy.mk include device/oplus/camera/sepolicy/SEPolicy.mk
# Inherit from camera-vendor.mk # Inherit from camera-vendor.mk
$(call inherit-product, vendor/oplus/camera/camera-vendor.mk) $(call inherit-product, vendor/oplus/camera/camera-vendor.mk)

View File

@@ -5,10 +5,10 @@
# #
BOARD_VENDOR_SEPOLICY_DIRS += \ BOARD_VENDOR_SEPOLICY_DIRS += \
vendor/oplus/camera/sepolicy/vendor device/oplus/camera/sepolicy/vendor
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \ SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
vendor/oplus/camera/sepolicy/private device/oplus/camera/sepolicy/private
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \ SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
vendor/oplus/camera/sepolicy/public device/oplus/camera/sepolicy/public