File tree 4 files changed +48
-0
lines changed
4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ //
2
+ // Copyright (C) 2020 The LineageOS Project
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+
16
+ cc_library_shared {
17
+ name : " libshim_megvii" ,
18
+
19
+ proprietary : true ,
20
+ srcs : [" megvii_shim.cpp" ],
21
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (C) 2020 The LineageOS Project
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ namespace android {
18
+ extern " C" void mg_facepp () {}
19
+ }
Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ TARGET_SCREEN_WIDTH := 1080
119
119
PRODUCT_PACKAGES += \
120
120
libdng_sdk.vendor
121
121
122
+ PRODUCT_PACKAGES += \
123
+ libshim_megvii
124
+
122
125
PRODUCT_COPY_FILES += \
123
126
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR ) /etc/permissions/android.hardware.camera.flash-autofocus.xml \
124
127
frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR ) /etc/permissions/android.hardware.camera.front.xml \
Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ function blob_fixup() {
67
67
lib64/libfm-hci.so)
68
68
patchelf --remove-needed
" [email protected] " " ${2} "
69
69
;;
70
+ vendor/lib64/hw/camera.qcom.so)
71
+ patchelf --remove-needed " libMegviiFacepp-0.5.2.so" " ${2} "
72
+ patchelf --remove-needed " libmegface.so" " ${2} "
73
+ patchelf --add-needed " libshim_megvii.so" " ${2} "
74
+ ;;
70
75
esac
71
76
}
72
77
You can’t perform that action at this time.
0 commit comments