berlin: Include MotCamera3
from S1RGS32.53-18-22-4 MotCamera3 has its libaries removed from the apk, and pinned to product/lib64 to reduce apk size Co-authored-by: sb6596 <shubhamprince111@gmail.com> Signed-off-by: sb6596 <shubhamprince111@gmail.com> Change-Id: If208939c3dde176f61e84c6b67ac35b85f2ca07b
This commit is contained in:
parent
a35a21de1d
commit
459b3562c6
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -1 +1,2 @@
|
|||||||
radio/* filter=lfs diff=lfs merge=lfs -text
|
radio/* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
proprietary/product/priv-app/MotCamera3/MotCamera3.apk filter=lfs diff=lfs merge=lfs -text
|
||||||
|
44
Android.bp
44
Android.bp
@ -5,6 +5,16 @@
|
|||||||
soong_namespace {
|
soong_namespace {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
android_app_import {
|
||||||
|
name: "MotoSignatureApp",
|
||||||
|
owner: "motorola",
|
||||||
|
apk: "proprietary/system/app/MotoSignatureApp/MotoSignatureApp.apk",
|
||||||
|
presigned: true,
|
||||||
|
dex_preopt: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
android_app_import {
|
android_app_import {
|
||||||
name: "MotCamera3AI",
|
name: "MotCamera3AI",
|
||||||
owner: "motorola",
|
owner: "motorola",
|
||||||
@ -20,8 +30,8 @@ android_app_import {
|
|||||||
name: "MotCamera3",
|
name: "MotCamera3",
|
||||||
owner: "motorola",
|
owner: "motorola",
|
||||||
apk: "proprietary/product/priv-app/MotCamera3/MotCamera3.apk",
|
apk: "proprietary/product/priv-app/MotCamera3/MotCamera3.apk",
|
||||||
overrides: ["Camera2"],
|
overrides: ["Aperture"],
|
||||||
certificate: "platform",
|
presigned: true,
|
||||||
dex_preopt: {
|
dex_preopt: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
@ -29,6 +39,36 @@ android_app_import {
|
|||||||
product_specific: true,
|
product_specific: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
android_app_import {
|
||||||
|
name: "MotorolaSettingsProvider",
|
||||||
|
owner: "motorola",
|
||||||
|
apk: "proprietary/system_ext/priv-app/MotorolaSettingsProvider/MotorolaSettingsProvider.apk",
|
||||||
|
certificate: "platform",
|
||||||
|
dex_preopt: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
privileged: true,
|
||||||
|
system_ext_specific: true,
|
||||||
|
}
|
||||||
|
|
||||||
|
dex_import {
|
||||||
|
name: "com.motorola.motosignature",
|
||||||
|
owner: "motorola",
|
||||||
|
jars: ["proprietary/system/framework/com.motorola.motosignature.jar"],
|
||||||
|
}
|
||||||
|
|
||||||
|
dex_import {
|
||||||
|
name: "moto-core_services",
|
||||||
|
owner: "motorola",
|
||||||
|
jars: ["proprietary/system/framework/moto-core_services.jar"],
|
||||||
|
}
|
||||||
|
|
||||||
|
dex_import {
|
||||||
|
name: "moto-settings",
|
||||||
|
owner: "motorola",
|
||||||
|
jars: ["proprietary/system/framework/moto-settings.jar"],
|
||||||
|
}
|
||||||
|
|
||||||
dex_import {
|
dex_import {
|
||||||
name: "com.motorola.androidx.camera.extensions",
|
name: "com.motorola.androidx.camera.extensions",
|
||||||
owner: "motorola",
|
owner: "motorola",
|
||||||
|
@ -17,51 +17,10 @@ PRODUCT_COPY_FILES += \
|
|||||||
vendor/motorola/berlin/proprietary/product/etc/permissions/privapp-permissions-com.motorola.camera3.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-com.motorola.camera3.xml \
|
vendor/motorola/berlin/proprietary/product/etc/permissions/privapp-permissions-com.motorola.camera3.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-com.motorola.camera3.xml \
|
||||||
vendor/motorola/berlin/proprietary/product/etc/permissions/privapp-permissions-com.motorola.motodisplay.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-com.motorola.motodisplay.xml \
|
vendor/motorola/berlin/proprietary/product/etc/permissions/privapp-permissions-com.motorola.motodisplay.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-com.motorola.motodisplay.xml \
|
||||||
vendor/motorola/berlin/proprietary/product/etc/sysconfig/hiddenapi-whitelist-com.motorola.camera3.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/hiddenapi-whitelist-com.motorola.camera3.xml \
|
vendor/motorola/berlin/proprietary/product/etc/sysconfig/hiddenapi-whitelist-com.motorola.camera3.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/hiddenapi-whitelist-com.motorola.camera3.xml \
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libFNVfbEngineHAL.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libFNVfbEngineHAL.so \
|
vendor/motorola/berlin/proprietary/system/etc/permissions/com.motorola.motosignature.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/com.motorola.motosignature.xml \
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libSNPE.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libSNPE.so \
|
vendor/motorola/berlin/proprietary/system/etc/permissions/moto-core_services.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/moto-core_services.xml \
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libSuperSensorCPU_v05052021.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libSuperSensorCPU_v05052021.so \
|
vendor/motorola/berlin/proprietary/system/etc/permissions/moto-settings.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/moto-settings.xml \
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libSuperSensorProcessorCWrapper_v2.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libSuperSensorProcessorCWrapper_v2.so \
|
vendor/motorola/berlin/proprietary/system_ext/bin/motsettings:$(TARGET_COPY_OUT_SYSTEM_EXT)/bin/motsettings \
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libSuperSensorProcessor_v05052021.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libSuperSensorProcessor_v05052021.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libSuperSensor_v05052021.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libSuperSensor_v05052021.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libarcsoft_dualcam_refocus.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libarcsoft_dualcam_refocus.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libarcsoft_frc.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libarcsoft_frc.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libarcsoft_hdr_scbokeh_image.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libarcsoft_hdr_scbokeh_image.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libarcsoft_high_dynamic_range.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libarcsoft_high_dynamic_range.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libarcsoft_multiframe_bokeh_image.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libarcsoft_multiframe_bokeh_image.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libarcsoft_scbokeh_Generic.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libarcsoft_scbokeh_Generic.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libarcsoft_supernight.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libarcsoft_supernight.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libarcsoft_superportrait.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libarcsoft_superportrait.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libas-super-slow-motion.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libas-super-slow-motion.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libbarhopper_v3.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libbarhopper_v3.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libbg-postproc-jni.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libbg-postproc-jni.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libc++.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libc++.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libc++_shared.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libc++_shared.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libcamerax_extension_jni.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libcamerax_extension_jni.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libdoc-util.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libdoc-util.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libdynamic_depth.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libdynamic_depth.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libfn-beauty-vfb-base.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libfn-beauty-vfb-base.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libfoundation.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libfoundation.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libgg-dynamic_depth.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libgg-dynamic_depth.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libgg-tensorflow-lite.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libgg-tensorflow-lite.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libgif.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libgif.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libjpeg.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libjpeg.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/liblenovo_panorama.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/liblenovo_panorama.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmcf-base.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmcf-base.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmcf-jni.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmcf-jni.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmcf-qc-fd-offline_local.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmcf-qc-fd-offline_local.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmcf-stand-alone-sm.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmcf-stand-alone-sm.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmmcamera_faceproc2.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmmcamera_faceproc2.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmorpho_cinema_graph.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmorpho_cinema_graph.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmorpho_panorama_gp3.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmorpho_panorama_gp3.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmorpho_sensor_fusion.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmorpho_sensor_fusion.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmot-cinemagraph-engine.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmot-cinemagraph-engine.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmot-util.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmot-util.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libmpbase.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libmpbase.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libqc-snpe.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libqc-snpe.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libsmart_ppt.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libsmart_ppt.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libsmudge_detect.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libsmudge_detect.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libtensorflowlite.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libtensorflowlite.so \
|
|
||||||
vendor/motorola/berlin/proprietary/product/lib64/libtensorflowlite_gpu_delegate.so:$(TARGET_COPY_OUT_PRODUCT)/lib64/libtensorflowlite_gpu_delegate.so \
|
|
||||||
vendor/motorola/berlin/proprietary/system_ext/etc/permissions/com.motorola.androidx.camera.extensions.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/com.motorola.androidx.camera.extensions.xml \
|
vendor/motorola/berlin/proprietary/system_ext/etc/permissions/com.motorola.androidx.camera.extensions.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/com.motorola.androidx.camera.extensions.xml \
|
||||||
vendor/motorola/berlin/proprietary/vendor/etc/permissions/com.motorola.androidx.camera.extensions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.motorola.androidx.camera.extensions.xml \
|
vendor/motorola/berlin/proprietary/vendor/etc/permissions/com.motorola.androidx.camera.extensions.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.motorola.androidx.camera.extensions.xml \
|
||||||
vendor/motorola/berlin/proprietary/system_ext/etc/public.libraries-motocamera.txt:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/public.libraries-motocamera.txt \
|
vendor/motorola/berlin/proprietary/system_ext/etc/public.libraries-motocamera.txt:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/public.libraries-motocamera.txt \
|
||||||
@ -682,6 +641,11 @@ PRODUCT_COPY_FILES += \
|
|||||||
vendor/motorola/berlin/proprietary/vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so
|
vendor/motorola/berlin/proprietary/vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so
|
||||||
|
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
|
MotoSignatureApp \
|
||||||
MotCamera3AI \
|
MotCamera3AI \
|
||||||
MotCamera3 \
|
MotCamera3 \
|
||||||
|
MotorolaSettingsProvider \
|
||||||
|
com.motorola.motosignature \
|
||||||
|
moto-core_services \
|
||||||
|
moto-settings \
|
||||||
com.motorola.androidx.camera.extensions
|
com.motorola.androidx.camera.extensions
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
proprietary/system/app/MotoSignatureApp/MotoSignatureApp.apk
Normal file
BIN
proprietary/system/app/MotoSignatureApp/MotoSignatureApp.apk
Normal file
Binary file not shown.
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<permissions>
|
||||||
|
<library name="com.motorola.motosignature"
|
||||||
|
file="/system/framework/com.motorola.motosignature.jar"/>
|
||||||
|
</permissions>
|
19
proprietary/system/etc/permissions/moto-core_services.xml
Normal file
19
proprietary/system/etc/permissions/moto-core_services.xml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2018 The Android Open Source 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.
|
||||||
|
-->
|
||||||
|
<permissions>
|
||||||
|
<library name="moto-core_services" file="/system/framework/moto-core_services.jar"/>
|
||||||
|
</permissions>
|
||||||
|
|
19
proprietary/system/etc/permissions/moto-settings.xml
Normal file
19
proprietary/system/etc/permissions/moto-settings.xml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright (C) 2018 The Android Open Source 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.
|
||||||
|
-->
|
||||||
|
<permissions>
|
||||||
|
<library name="moto-settings" file="/system/framework/moto-settings.jar"/>
|
||||||
|
</permissions>
|
||||||
|
|
BIN
proprietary/system/framework/com.motorola.motosignature.jar
Normal file
BIN
proprietary/system/framework/com.motorola.motosignature.jar
Normal file
Binary file not shown.
BIN
proprietary/system/framework/moto-core_services.jar
Normal file
BIN
proprietary/system/framework/moto-core_services.jar
Normal file
Binary file not shown.
BIN
proprietary/system/framework/moto-settings.jar
Normal file
BIN
proprietary/system/framework/moto-settings.jar
Normal file
Binary file not shown.
2
proprietary/system_ext/bin/motsettings
Executable file
2
proprietary/system_ext/bin/motsettings
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/system/bin/sh
|
||||||
|
cmd motsettings "$@"
|
Binary file not shown.
BIN
proprietary/vendor/lib/hw/camera.qcom.so
vendored
BIN
proprietary/vendor/lib/hw/camera.qcom.so
vendored
Binary file not shown.
BIN
proprietary/vendor/lib64/hw/camera.qcom.so
vendored
BIN
proprietary/vendor/lib64/hw/camera.qcom.so
vendored
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user