nearby-sharing / android

Share files between android and PC via the Windows 10 / 11 built-in sharing functionality (Project Rome)
https://nearshare.shortdev.de
GNU General Public License v3.0
648 stars 33 forks source link

App crashes after file has been sent #1

Closed ShortDevelopment closed 2 years ago

ShortDevelopment commented 2 years ago

Output

[System.err] java.lang.NoSuchMethodError: no non-static method "Lcom/microsoft/connecteddevices/remotesystems/commanding/nearshare/NearShareSenderEnumAsyncOperation;.complete(ILjava/lang/String;)V"
[libc++abi] terminating with uncaught exception of type ConnectedDevices::WrappedPlatformSpecificException
ShortDevelopment commented 2 years ago

This issue is also tracked here: https://github.com/microsoft/project-rome/issues/85

ShortDevelopment commented 2 years ago

I just patched the library with Recaf.

Java bytecode ``` DEFINE FINAL complete(I intValue, Ljava/lang/String; strValue)V START: ACONST_NULL LDC "ShortDev: called complete method" INVOKESTATIC android/util/Log.i(Ljava/lang/String;Ljava/lang/String;)I POP ACONST_NULL ALOAD strValue INVOKESTATIC android/util/Log.i(Ljava/lang/String;Ljava/lang/String;)I POP ALOAD this ILOAD intValue INVOKESPECIAL com/microsoft/connecteddevices/remotesystems/commanding/nearshare/NearShareSenderEnumAsyncOperation.complete(I)V RETURN END: ```
mediaexplorer74 commented 1 year ago

I just patched the library with Recaf.

Java bytecode

Wow, you used a bytecode editor (Recaf).... Hacker level! I thinked that you used Android Studio for Java code debugging, etc... I was wrong ;)