miuicamera-dipper: Fix UnsatisfiedLinkError for libmiuinative
- Implement pure-Java miui.os.SystemProperties delegating directly to android.os.SystemProperties to avoid loading libmiuinative.so. - Wrap System.loadLibrary in com.miui.internal.os.Native.<clinit> in try/catch block to prevent crash if library cannot be loaded. - Include libmiuinative.so in proprietary blobs list. Change-Id: I71e65ab584cb84b36a52afb9eab815cea565292b
This commit is contained in:
6 files changed
+496
-2
No files matched your search
@@ -172,6 +172,32 @@ cc_prebuilt_library_shared {
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libmiuinative",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
strip: {
|
||||
none: true,
|
||||
},
|
||||
target: {
|
||||
android_arm64: {
|
||||
srcs: [
|
||||
"proprietary/system/lib64/libmiuinative.so",
|
||||
],
|
||||
shared_libs: [
|
||||
"liblog",
|
||||
"libcutils",
|
||||
"libutils",
|
||||
"libc++",
|
||||
"libc",
|
||||
"libm",
|
||||
"libdl",
|
||||
],
|
||||
},
|
||||
},
|
||||
compile_multilib: "64",
|
||||
prefer: true,
|
||||
}
|
||||
|
||||
cc_prebuilt_library_shared {
|
||||
name: "libmorpho_memory_allocator",
|
||||
owner: "xiaomi/miuicamera-dipper",
|
||||
|
||||
@@ -12,6 +12,7 @@ PRODUCT_PACKAGES += \
|
||||
libdualcameraddm \
|
||||
libjni_dualcamera \
|
||||
libjni_jpegutil_xiaomi \
|
||||
libmiuinative \
|
||||
libmorpho_memory_allocator \
|
||||
libmorpho_panorama_gp3 \
|
||||
libmorpho_sensor_fusion \
|
||||
|
||||
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fac402edce1549fe9d72083c85fe164f448f217533a80e5af152a5fdc66ec865
|
||||
size 40360745
|
||||
oid sha256:edbe37415e37cf5779a96384ee5dcce920cbb1043469b85dafb044de49008867
|
||||
size 40360361
|
||||
Reference in new issue
Block a user