Skip to content
Snippets Groups Projects
Commit 87bdb2c3 authored by Ihor Ivanov's avatar Ihor Ivanov Committed by Dhina17
Browse files

camera2: Add methods for backward compatibility


libmcf-jni.so library (which is proprietary blob required
for MotCamera2) looks for methods with these exact signatures,
but signatures of these methods was changed in Android 11.

This change returns these methods that makes MotCamera2
fully-functional on Android 11.

Change-Id: Ib9a701f6d8ebb783c52666e34e7539faba5cb99f
Signed-off-by: default avatarIhor Ivanov <toulmee@gmail.com>
parent 621b61f3
No related branches found
No related tags found
No related merge requests found
......@@ -2177,6 +2177,18 @@ public class CameraMetadataNative implements Parcelable {
private static native int nativeGetTypeFromTag(int tag, long vendorId)
throws IllegalArgumentException;
private synchronized byte[] nativeReadValues(int tag) {
return nativeReadValues(tag, mMetadataPtr);
}
private synchronized int nativeGetTypeFromTagLocal(int tag) {
return nativeGetTypeFromTagLocal(mMetadataPtr, tag);
}
private synchronized int nativeGetTagFromKeyLocal(String keyname) {
return nativeGetTagFromKeyLocal(mMetadataPtr, keyname);
}
/**
* <p>Perform a 0-copy swap of the internal metadata with another object.</p>
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment