GraalVM configuration update (#477)

* graalvm configuration update

removed unnecessary classes from reflect
added libsignal_jni.so to resource-config.json
graalvm configuration changed location of ias.store and whisper.store

* graalvm configuration fixes receiving messages

* graalvm config setPin

* graalvm config quitGroup

* graalvm config trust

* graalvm config more receive failed to decrypt error

* graalvm config --output=json

* graalvm config JsonTypingMessage
This commit is contained in:
Michael Kebe 2021-01-27 16:35:29 +01:00 committed by GitHub
parent a811d1a05a
commit c276055302
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 243 additions and 201 deletions

View file

@ -3,11 +3,85 @@
"name":"java.lang.ClassLoader",
"methods":[{"name":"getPlatformClassLoader","parameterTypes":[] }]
},
{
"name":"java.lang.IllegalStateException",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }]
},
{
"name":"java.lang.NoSuchMethodError"
},
{
"name":"java.lang.UnsatisfiedLinkError",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }]
},
{
"name":"org.asamk.signal.manager.storage.protocol.JsonSignalProtocolStore",
"methods":[
{"name":"getIdentity","parameterTypes":["org.whispersystems.libsignal.SignalProtocolAddress"] },
{"name":"getIdentityKeyPair","parameterTypes":[] },
{"name":"getLocalRegistrationId","parameterTypes":[] },
{"name":"isTrustedIdentity","parameterTypes":["org.whispersystems.libsignal.SignalProtocolAddress","org.whispersystems.libsignal.IdentityKey","org.whispersystems.libsignal.state.IdentityKeyStore$Direction"] },
{"name":"loadSession","parameterTypes":["org.whispersystems.libsignal.SignalProtocolAddress"] },
{"name":"loadSignedPreKey","parameterTypes":["int"] },
{"name":"saveIdentity","parameterTypes":["org.whispersystems.libsignal.SignalProtocolAddress","org.whispersystems.libsignal.IdentityKey"] },
{"name":"storeSession","parameterTypes":["org.whispersystems.libsignal.SignalProtocolAddress","org.whispersystems.libsignal.state.SessionRecord"] }
]
},
{
"name":"org.whispersystems.libsignal.IdentityKey",
"methods":[
{"name":"<init>","parameterTypes":["byte[]"] },
{"name":"serialize","parameterTypes":[] }
]
},
{
"name":"org.whispersystems.libsignal.IdentityKeyPair",
"methods":[{"name":"serialize","parameterTypes":[] }]
},
{
"name":"org.whispersystems.libsignal.InvalidMessageException",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }]
},
{
"name":"org.whispersystems.libsignal.SignalProtocolAddress",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","int"] }]
},
{
"name":"org.whispersystems.libsignal.protocol.PreKeySignalMessage",
"methods":[{"name":"<init>","parameterTypes":["long"] }]
},
{
"name":"org.whispersystems.libsignal.protocol.SignalMessage",
"methods":[{"name":"<init>","parameterTypes":["long"] }]
},
{
"name":"org.whispersystems.libsignal.state.IdentityKeyStore"
},
{
"name":"org.whispersystems.libsignal.state.IdentityKeyStore$Direction",
"fields":[
{"name":"RECEIVING"},
{"name":"SENDING"}
]
},
{
"name":"org.whispersystems.libsignal.state.PreKeyStore"
},
{
"name":"org.whispersystems.libsignal.state.SessionRecord",
"methods":[
{"name":"<init>","parameterTypes":["byte[]"] },
{"name":"nativeHandle","parameterTypes":[] }
]
},
{
"name":"org.whispersystems.libsignal.state.SessionStore"
},
{
"name":"org.whispersystems.libsignal.state.SignedPreKeyRecord",
"methods":[{"name":"nativeHandle","parameterTypes":[] }]
},
{
"name":"org.whispersystems.libsignal.state.SignedPreKeyStore"
}
]

View file

@ -227,10 +227,6 @@
"name":"jnr.enxio.channels.Native$LibC",
"allPublicMethods":true
},
{
"name":"jnr.enxio.channels.Native$LibC$jnr$ffi$1",
"methods":[{"name":"<init>","parameterTypes":["jnr.ffi.Runtime","jnr.ffi.provider.jffi.NativeLibrary","java.lang.Object[]"] }]
},
{
"name":"jnr.ffi.Pointer",
"allDeclaredMethods":true,
@ -284,10 +280,6 @@
"name":"jnr.unixsocket.Native$LibC",
"allPublicMethods":true
},
{
"name":"jnr.unixsocket.Native$LibC$jnr$ffi$0",
"methods":[{"name":"<init>","parameterTypes":["jnr.ffi.Runtime","jnr.ffi.provider.jffi.NativeLibrary","java.lang.Object[]"] }]
},
{
"name":"jnr.unixsocket.SockAddrUnix",
"allPublicMethods":true
@ -326,6 +318,12 @@
"allDeclaredMethods":true,
"allDeclaredConstructors":true
},
{
"name":"org.asamk.signal.json.JsonError",
"allDeclaredFields":true,
"allDeclaredMethods":true,
"allDeclaredConstructors":true
},
{
"name":"org.asamk.signal.json.JsonMessageEnvelope",
"allDeclaredFields":true,
@ -344,6 +342,12 @@
"allDeclaredMethods":true,
"allDeclaredConstructors":true
},
{
"name":"org.asamk.signal.json.JsonTypingMessage",
"allDeclaredFields":true,
"allDeclaredMethods":true,
"allDeclaredConstructors":true
},
{
"name":"org.asamk.signal.manager.storage.contacts.ContactInfo",
"allDeclaredFields":true,
@ -876,60 +880,6 @@
{
"name":"org.objectweb.asm.util.TraceMethodVisitor"
},
{
"name":"org.signal.libsignal.metadata.SignalProtos$SenderCertificate",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"certificate_", "allowUnsafeAccess":true},
{"name":"signature_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.libsignal.metadata.SignalProtos$SenderCertificate$Certificate",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"expires_", "allowUnsafeAccess":true},
{"name":"identityKey_", "allowUnsafeAccess":true},
{"name":"senderDevice_", "allowUnsafeAccess":true},
{"name":"senderE164_", "allowUnsafeAccess":true},
{"name":"senderUuid_", "allowUnsafeAccess":true},
{"name":"signer_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.libsignal.metadata.SignalProtos$ServerCertificate",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"certificate_", "allowUnsafeAccess":true},
{"name":"signature_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.libsignal.metadata.SignalProtos$ServerCertificate$Certificate",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"id_", "allowUnsafeAccess":true},
{"name":"key_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.libsignal.metadata.SignalProtos$UnidentifiedSenderMessage",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"encryptedMessage_", "allowUnsafeAccess":true},
{"name":"encryptedStatic_", "allowUnsafeAccess":true},
{"name":"ephemeralPublic_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.libsignal.metadata.SignalProtos$UnidentifiedSenderMessage$Message",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"content_", "allowUnsafeAccess":true},
{"name":"senderCertificate_", "allowUnsafeAccess":true},
{"name":"type_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.storageservice.protos.groups.AccessControl",
"fields":[
@ -960,6 +910,87 @@
{"name":"content_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange",
"fields":[
{"name":"actions_", "allowUnsafeAccess":true},
{"name":"changeEpoch_", "allowUnsafeAccess":true},
{"name":"serverSignature_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions",
"fields":[
{"name":"addMembers_", "allowUnsafeAccess":true},
{"name":"addPendingMembers_", "allowUnsafeAccess":true},
{"name":"addRequestingMembers_", "allowUnsafeAccess":true},
{"name":"deleteMembers_", "allowUnsafeAccess":true},
{"name":"deletePendingMembers_", "allowUnsafeAccess":true},
{"name":"deleteRequestingMembers_", "allowUnsafeAccess":true},
{"name":"modifyAddFromInviteLinkAccess_", "allowUnsafeAccess":true},
{"name":"modifyAttributesAccess_", "allowUnsafeAccess":true},
{"name":"modifyAvatar_", "allowUnsafeAccess":true},
{"name":"modifyDisappearingMessagesTimer_", "allowUnsafeAccess":true},
{"name":"modifyInviteLinkPassword_", "allowUnsafeAccess":true},
{"name":"modifyMemberAccess_", "allowUnsafeAccess":true},
{"name":"modifyMemberProfileKeys_", "allowUnsafeAccess":true},
{"name":"modifyMemberRoles_", "allowUnsafeAccess":true},
{"name":"modifyTitle_", "allowUnsafeAccess":true},
{"name":"promotePendingMembers_", "allowUnsafeAccess":true},
{"name":"promoteRequestingMembers_", "allowUnsafeAccess":true},
{"name":"revision_", "allowUnsafeAccess":true},
{"name":"sourceUuid_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions$AddMemberAction",
"fields":[
{"name":"added_", "allowUnsafeAccess":true},
{"name":"joinFromInviteLink_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions$AddPendingMemberAction",
"fields":[{"name":"added_", "allowUnsafeAccess":true}]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions$AddRequestingMemberAction",
"fields":[{"name":"added_", "allowUnsafeAccess":true}]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions$DeleteMemberAction",
"fields":[{"name":"deletedUserId_", "allowUnsafeAccess":true}]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions$DeletePendingMemberAction",
"fields":[{"name":"deletedUserId_", "allowUnsafeAccess":true}]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions$DeleteRequestingMemberAction",
"fields":[{"name":"deletedUserId_", "allowUnsafeAccess":true}]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions$ModifyMemberProfileKeyAction",
"fields":[{"name":"presentation_", "allowUnsafeAccess":true}]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions$ModifyMemberRoleAction",
"fields":[
{"name":"role_", "allowUnsafeAccess":true},
{"name":"userId_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions$PromotePendingMemberAction",
"fields":[{"name":"presentation_", "allowUnsafeAccess":true}]
},
{
"name":"org.signal.storageservice.protos.groups.GroupChange$Actions$PromoteRequestingMemberAction",
"fields":[
{"name":"role_", "allowUnsafeAccess":true},
{"name":"userId_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.storageservice.protos.groups.Member",
"fields":[
@ -1001,6 +1032,30 @@
{"name":"title_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.storageservice.protos.groups.local.DecryptedGroupChange",
"fields":[
{"name":"deleteMembers_", "allowUnsafeAccess":true},
{"name":"deletePendingMembers_", "allowUnsafeAccess":true},
{"name":"deleteRequestingMembers_", "allowUnsafeAccess":true},
{"name":"editor_", "allowUnsafeAccess":true},
{"name":"modifiedProfileKeys_", "allowUnsafeAccess":true},
{"name":"modifyMemberRoles_", "allowUnsafeAccess":true},
{"name":"newAttributeAccess_", "allowUnsafeAccess":true},
{"name":"newAvatar_", "allowUnsafeAccess":true},
{"name":"newInviteLinkAccess_", "allowUnsafeAccess":true},
{"name":"newInviteLinkPassword_", "allowUnsafeAccess":true},
{"name":"newMemberAccess_", "allowUnsafeAccess":true},
{"name":"newMembers_", "allowUnsafeAccess":true},
{"name":"newPendingMembers_", "allowUnsafeAccess":true},
{"name":"newRequestingMembers_", "allowUnsafeAccess":true},
{"name":"newTimer_", "allowUnsafeAccess":true},
{"name":"newTitle_", "allowUnsafeAccess":true},
{"name":"promotePendingMembers_", "allowUnsafeAccess":true},
{"name":"promoteRequestingMembers_", "allowUnsafeAccess":true},
{"name":"revision_", "allowUnsafeAccess":true}
]
},
{
"name":"org.signal.storageservice.protos.groups.local.DecryptedMember",
"fields":[
@ -1032,48 +1087,6 @@
"name":"org.signal.storageservice.protos.groups.local.DecryptedTimer",
"fields":[{"name":"duration_", "allowUnsafeAccess":true}]
},
{
"name":"org.whispersystems.curve25519.OpportunisticCurve25519Provider",
"methods":[{"name":"<init>","parameterTypes":[] }]
},
{
"name":"org.whispersystems.libsignal.fingerprint.FingerprintProtos$CombinedFingerprints",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"localFingerprint_", "allowUnsafeAccess":true},
{"name":"remoteFingerprint_", "allowUnsafeAccess":true},
{"name":"version_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.fingerprint.FingerprintProtos$LogicalFingerprint",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"content_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.protocol.SignalProtos$PreKeySignalMessage",
"fields":[
{"name":"baseKey_", "allowUnsafeAccess":true},
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"identityKey_", "allowUnsafeAccess":true},
{"name":"message_", "allowUnsafeAccess":true},
{"name":"preKeyId_", "allowUnsafeAccess":true},
{"name":"registrationId_", "allowUnsafeAccess":true},
{"name":"signedPreKeyId_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.protocol.SignalProtos$SignalMessage",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"ciphertext_", "allowUnsafeAccess":true},
{"name":"counter_", "allowUnsafeAccess":true},
{"name":"previousCounter_", "allowUnsafeAccess":true},
{"name":"ratchetKey_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.state.IdentityKeyStore",
"allDeclaredMethods":true
@ -1094,98 +1107,6 @@
"name":"org.whispersystems.libsignal.state.SignedPreKeyStore",
"allDeclaredMethods":true
},
{
"name":"org.whispersystems.libsignal.state.StorageProtos$IdentityKeyPairStructure",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"privateKey_", "allowUnsafeAccess":true},
{"name":"publicKey_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.state.StorageProtos$PreKeyRecordStructure",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"id_", "allowUnsafeAccess":true},
{"name":"privateKey_", "allowUnsafeAccess":true},
{"name":"publicKey_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.state.StorageProtos$RecordStructure",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"currentSession_", "allowUnsafeAccess":true},
{"name":"previousSessions_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.state.StorageProtos$SessionStructure",
"fields":[
{"name":"aliceBaseKey_", "allowUnsafeAccess":true},
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"localIdentityPublic_", "allowUnsafeAccess":true},
{"name":"localRegistrationId_", "allowUnsafeAccess":true},
{"name":"needsRefresh_", "allowUnsafeAccess":true},
{"name":"pendingKeyExchange_", "allowUnsafeAccess":true},
{"name":"pendingPreKey_", "allowUnsafeAccess":true},
{"name":"previousCounter_", "allowUnsafeAccess":true},
{"name":"receiverChains_", "allowUnsafeAccess":true},
{"name":"remoteIdentityPublic_", "allowUnsafeAccess":true},
{"name":"remoteRegistrationId_", "allowUnsafeAccess":true},
{"name":"rootKey_", "allowUnsafeAccess":true},
{"name":"senderChain_", "allowUnsafeAccess":true},
{"name":"sessionVersion_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.state.StorageProtos$SessionStructure$Chain",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"chainKey_", "allowUnsafeAccess":true},
{"name":"messageKeys_", "allowUnsafeAccess":true},
{"name":"senderRatchetKeyPrivate_", "allowUnsafeAccess":true},
{"name":"senderRatchetKey_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.state.StorageProtos$SessionStructure$Chain$ChainKey",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"index_", "allowUnsafeAccess":true},
{"name":"key_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.state.StorageProtos$SessionStructure$Chain$MessageKey",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"cipherKey_", "allowUnsafeAccess":true},
{"name":"index_", "allowUnsafeAccess":true},
{"name":"iv_", "allowUnsafeAccess":true},
{"name":"macKey_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.state.StorageProtos$SessionStructure$PendingPreKey",
"fields":[
{"name":"baseKey_", "allowUnsafeAccess":true},
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"preKeyId_", "allowUnsafeAccess":true},
{"name":"signedPreKeyId_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.libsignal.state.StorageProtos$SignedPreKeyRecordStructure",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"id_", "allowUnsafeAccess":true},
{"name":"privateKey_", "allowUnsafeAccess":true},
{"name":"publicKey_", "allowUnsafeAccess":true},
{"name":"signature_", "allowUnsafeAccess":true},
{"name":"timestamp_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.signalservice.api.account.AccountAttributes",
"allDeclaredFields":true,
@ -1305,6 +1226,27 @@
"allDeclaredMethods":true,
"allDeclaredConstructors":true
},
{
"name":"org.whispersystems.signalservice.internal.keybackup.protos.BackupRequest",
"fields":[
{"name":"backupId_", "allowUnsafeAccess":true},
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"data_", "allowUnsafeAccess":true},
{"name":"pin_", "allowUnsafeAccess":true},
{"name":"serviceId_", "allowUnsafeAccess":true},
{"name":"token_", "allowUnsafeAccess":true},
{"name":"tries_", "allowUnsafeAccess":true},
{"name":"validFrom_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.signalservice.internal.keybackup.protos.BackupResponse",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"status_", "allowUnsafeAccess":true},
{"name":"token_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.signalservice.internal.keybackup.protos.DeleteRequest",
"fields":[
@ -1322,6 +1264,15 @@
{"name":"restore_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.signalservice.internal.keybackup.protos.Response",
"fields":[
{"name":"backup_", "allowUnsafeAccess":true},
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"delete_", "allowUnsafeAccess":true},
{"name":"restore_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.signalservice.internal.push.AttachmentV2UploadAttributes",
"allDeclaredFields":true,
@ -1450,6 +1401,12 @@
{"name":"uuid_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.signalservice.internal.push.PushServiceSocket$RegistrationLockV2",
"allDeclaredFields":true,
"allDeclaredMethods":true,
"allDeclaredConstructors":true
},
{
"name":"org.whispersystems.signalservice.internal.push.SendMessageResponse",
"allDeclaredFields":true,
@ -1535,6 +1492,7 @@
{"name":"delete_", "allowUnsafeAccess":true},
{"name":"expireTimer_", "allowUnsafeAccess":true},
{"name":"flags_", "allowUnsafeAccess":true},
{"name":"groupCallUpdate_", "allowUnsafeAccess":true},
{"name":"groupV2_", "allowUnsafeAccess":true},
{"name":"group_", "allowUnsafeAccess":true},
{"name":"isViewOnce_", "allowUnsafeAccess":true},
@ -1638,6 +1596,13 @@
{"name":"revision_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$NullMessage",
"fields":[
{"name":"bitField0_", "allowUnsafeAccess":true},
{"name":"padding_", "allowUnsafeAccess":true}
]
},
{
"name":"org.whispersystems.signalservice.internal.push.SignalServiceProtos$ReceiptMessage",
"fields":[

View file

@ -2,10 +2,11 @@
"resources":{
"includes":[
{"pattern":"com/google/i18n/phonenumbers/data/.*"},
{"pattern":"libzkgroup.so"},
{"pattern":"org/asamk/signal/manager/ias.store"},
{"pattern":"org/asamk/signal/manager/whisper.store"},
{"pattern":"org/slf4j/impl/StaticLoggerBinder.class"}
{"pattern":"\\Qlibsignal_jni.so\\E"},
{"pattern":"\\Qlibzkgroup.so\\E"},
{"pattern":"\\Qorg/asamk/signal/manager/config/ias.store\\E"},
{"pattern":"\\Qorg/asamk/signal/manager/config/whisper.store\\E"},
{"pattern":"\\Qorg/slf4j/impl/StaticLoggerBinder.class\\E"}
]},
"bundles":[{"name":"net.sourceforge.argparse4j.internal.ArgumentParserImpl"}]
}

View file

@ -0,0 +1,2 @@
[
]