From e33d267db69d677501d3e177f662806c5de27b81 Mon Sep 17 00:00:00 2001 From: Arian Date: Fri, 19 Apr 2024 21:14:06 +0530 Subject: [PATCH] miuicamera: Stub out usage of onBufferDetached Change-Id: Iccc1a89ffd9f374d88ede162d05c65e783a3377b --- .../lib64/libcamera_algoup_jni.xiaomi.so | Bin 68816 -> 80960 bytes .../lib64/libcamera_mianode_jni.xiaomi.so | Bin 82128 -> 97440 bytes extract-files.sh | 3 +++ products/miuicamera.mk | 4 ++++ shims/Android.bp | 10 ++++++++++ shims/libgui_shim_miuicamera.c | 9 +++++++++ 6 files changed, 26 insertions(+) create mode 100644 shims/Android.bp create mode 100644 shims/libgui_shim_miuicamera.c diff --git a/common/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so b/common/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so index 4e1ee048594da8c3b943cd3cc5c3f4814fef2b67..e6784468bb0c9b5913bab7551022e44afd49fc7d 100644 GIT binary patch delta 12445 zcmeHNOGs2v7(RD=4QVrXM#onVO;ijb4P4wHn%Skb&_$0~6q8xzkY;H?K`{fpW6H5x zX%Ia&(Tg-Ds0>jkQ0SoxqbUT*HZ24rBBV4s=l}m(G~l+gIS0mn{J;CZzVppp{UcYB z2d0ywg#}F4m^gYWTJhb-47QN}UBq%8df#Q_IoOla!p~SO8kXv0%*`BT`NABIW^|xC zm(Xo4L<4}<4xxL5(DiwUwgcMLj_xp_Za1R+fJS2I-kySXe?Fp9fHr+XuMZ77u?W!u zhv>?F2Hi(!um`*=7t_rej_NG;2cl&Z+n0&4A&4D)kM7SD+eSTi13GXOQ9q&OSt7H? z90$~(u8Jx1$u!26@w!f@=<3xubWamnMe}+AWjE11LYZwj*i{Rl_bGEB#d>Uv74ciR z&QYB;ent0fihWIWhXMU!6(qDT12fM-<}%7`r_6Qyi|Dyr7d;<}pnD_5exR-bfQAPV zweEKne@eu*13GyOQC<$tMgB!_)emUX9rQ*i^CseX3eX7gTuHIl==KX-qN}Pgbnhhe z(PFGy1L#=7EjTE12+*Mk4DwOz9=iQ*KqI%%-NpG8r3r-k6H^IZZUoQJwh`^gK(M z=OA|GF2)dLEPE*`r#urhnJ`g0=sDXA06O^wW7j03eanC5f{k{La@A4YDg>F%tw8$$ zz40C0J%m=0uBIUK)>G)_<=|{4T@_@Bt|}6`iV~AGfF^3Ai(*578d1z>-NI^$?FKY{ z579}Q=p+AED0Ups<7W~5hK5b>k;Ft!kLW6L8Qn9a4LjYw*OQ|;Vp}{VDIveyqv|XE zWip`jCzE}@U-7T_m&t(ApG@}E?_cRp=}#sDN`ErhSMNWiKczpJ3@H7{WM94il>U_d zWHO-iCzE~k{!{u>`jg3k(w|KB)%#EBPw7u414@4~*;nsBr9Y)VnG7iX$zhH0~9v=24Ef+hzu#HOV_^go1k&RQnct>#E1)I?sPSujl1GY-ju=&g$TZK8K867?Q z%&2CVg_;o((Xb~xPd*>*7+V(hc6p2_BjT)a|BO#Gz-%11tTjG$%QoP6G3U=}o6DMg ufe7HI!3@rJ#g68$FJ00U+_C#$FwoW*Yz{OB4+iV&ns>Fpn>RYnn9*367zC5xVuWa>-INPmShgrEY9S;@wa7pip${vj zW@4(DAhb5o7fmt2lpzinX!M~ABMU*YjSE4E2r0|%J?H;6b74Hs|L^_JJ@=mT@+(DC zw~G?B{;=TXDv@{+A}oT!ss7f8>gS=)&T3PJM~TL=EFUT6cyc4tC8FKmSq*a#7iyUL%XL-8WtRJJ zu&1gjOIXQPMJ?g`&9njDkqY)k$vgdpEF|kojV% z5L?u~rm3rXf0gAG&ViWJ%N_4iM3+2chB|0(B zrZBuG(ESY2*nO7M>VEY)rTVL?FGQk-fW$IDS%}xxS6KqH5}}Z-k+6si^5F(YwD`eg@ivxmu#khXzpvMM)X$O=cQ%_&{m WU4IzbaoMgG9{W3Y<=&Rb0r?-7zR2nT diff --git a/common/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so b/common/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so index a74e9141a5a03d6831ee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