Provide libgui{,_vendor} shim for 4.4/4.9-era camera blobs
Signed-off-by: Jarl-Penguin <jarlpenguin@outlook.com> Change-Id: I5e622e68422f5c4da13c0752a7eb3f4b20ddae49
This commit is contained in:
parent
572788148f
commit
aae0cea26d
2 changed files with 48 additions and 0 deletions
20
Android.bp
20
Android.bp
|
@ -219,3 +219,23 @@ cc_library_shared {
|
|||
shared_libs: ["libavservices_minijail"],
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
cc_defaults {
|
||||
name: "libgui_shim_defaults",
|
||||
shared_libs: ["libutils"],
|
||||
srcs: ["libgui/gui_shim.cpp"],
|
||||
}
|
||||
|
||||
cc_library {
|
||||
name: "libgui_shim",
|
||||
defaults: ["libgui_shim_defaults"],
|
||||
shared_libs: ["libgui"],
|
||||
system_ext_specific: true,
|
||||
}
|
||||
|
||||
cc_library {
|
||||
name: "libgui_shim_vendor",
|
||||
defaults: ["libgui_shim_defaults"],
|
||||
shared_libs: ["libgui_vendor"],
|
||||
vendor: true,
|
||||
}
|
||||
|
|
28
libgui/gui_shim.cpp
Normal file
28
libgui/gui_shim.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
Copyright 2022, 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.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <gui/IGraphicBufferProducer.h>
|
||||
|
||||
namespace android {
|
||||
extern "C" void _ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEbRKNS1_INS_7IBinderEEE(
|
||||
const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp, const sp<IBinder>& surfaceControlHandle);
|
||||
|
||||
extern "C" void _ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEb(
|
||||
const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp) {
|
||||
_ZN7android7SurfaceC1ERKNS_2spINS_22IGraphicBufferProducerEEEbRKNS1_INS_7IBinderEEE(bufferProducer, controlledByApp, NULL);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue