Unable to build android app

I am trying to build below in android studio to use in Khadas Vim4, android_vendor_amlogic_common/frameworks/core at khadas-vim4-r-64bit · khadas/android_vendor_amlogic_common · GitHub.
As I got error on finding “libhdmiin.so”/“hdmiin” in android_vendor_amlogic_common/HdmiInManager.java at khadas-vim4-r-64bit · khadas/android_vendor_amlogic_common · GitHub
class, I used libhdmiin.so file from other links but getting errors related to it (check logs below).
Can you plz help me in getting proper libhdmiin.so file. Here my main target is to use HdmiInManager.java class for building android app(customized camera app) on Khadas Vim4

java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN7android31android_view_Surface_getSurfaceEP7_JNIEnvP8_jobject" referenced by "/data/app/~~f5d45xOFFwO0jH4Eubv0Tw==/com.khadasv4.hdmiin-rUexymzOzbuTqmF2Jhs4Cg==/lib/arm/libhdmiin.so"...
at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
at java.lang.System.loadLibrary(System.java:1664)
at com.khadasv4.hdmiin.HdmiInManager.<clinit>(HdmiInManager.java:24)
at com.khadasv4.hdmiin.FullActivity.onCreate(FullActivity.java:142)
at android.app.Activity.performCreate(Activity.java:7994)
at android.app.Activity.performCreate(Activity.java:7978)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3404)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3595)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)

The system has not compiled this library file, so it is not used.