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",
|
||||
|
||||
Reference in new issue
Block a user