camera: Use device path instead of vendor
This commit is contained in:
@@ -4,13 +4,13 @@ Prebuilt stock oplus Camera to include in custom ROM builds.
|
||||
|
||||
### 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:
|
||||
|
||||
```
|
||||
# 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.
|
||||
|
||||
@@ -29,7 +29,7 @@ $(call soong_config_set,camera,package_name,com.oplus.packageName)
|
||||
$(call soong_config_set,camera,override_format_from_reserved,true)
|
||||
|
||||
# SEpolicy
|
||||
include vendor/oplus/camera/sepolicy/SEPolicy.mk
|
||||
include device/oplus/camera/sepolicy/SEPolicy.mk
|
||||
|
||||
# Inherit from camera-vendor.mk
|
||||
$(call inherit-product, vendor/oplus/camera/camera-vendor.mk)
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
#
|
||||
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += \
|
||||
vendor/oplus/camera/sepolicy/vendor
|
||||
device/oplus/camera/sepolicy/vendor
|
||||
|
||||
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
|
||||
vendor/oplus/camera/sepolicy/private
|
||||
device/oplus/camera/sepolicy/private
|
||||
|
||||
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
|
||||
vendor/oplus/camera/sepolicy/public
|
||||
device/oplus/camera/sepolicy/public
|
||||
|
||||
Reference in New Issue
Block a user