File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
src/main/java/airsquared/blobsaver/app/natives Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,15 @@ public class Libimobiledevice {
58
58
public static native void idevice_free (Pointer idevice );
59
59
60
60
static {
61
- NativeUtils .register (Libimobiledevice .class , "imobiledevice" );
61
+ try {
62
+ NativeUtils .register (Libimobiledevice .class , "imobiledevice" );
63
+ } catch (UnsatisfiedLinkError e ) {
64
+ try {
65
+ NativeUtils .register (Libimobiledevice .class , "imobiledevice-1.0" );
66
+ } catch (UnsatisfiedLinkError e2 ) {
67
+ e .addSuppressed (e2 );
68
+ throw e ;
69
+ }
70
+ }
62
71
}
63
72
}
Original file line number Diff line number Diff line change @@ -67,6 +67,15 @@ public static class irecv_device_info extends Structure {
67
67
68
68
69
69
static {
70
- NativeUtils .register (Libirecovery .class , "irecovery" );
70
+ try {
71
+ NativeUtils .register (Libimobiledevice .class , "irecovery" );
72
+ } catch (UnsatisfiedLinkError e ) {
73
+ try {
74
+ NativeUtils .register (Libimobiledevice .class , "irecovery-1.0" );
75
+ } catch (UnsatisfiedLinkError e2 ) {
76
+ e .addSuppressed (e2 );
77
+ throw e ;
78
+ }
79
+ }
71
80
}
72
81
}
You can’t perform that action at this time.
0 commit comments