souramoo / unapkm

APKM file decryptor
Apache License 2.0
174 stars 19 forks source link

Cannot find tempfiles to properly work. #6

Closed Giantvince1 closed 4 years ago

Giantvince1 commented 4 years ago

OS: Windows 10 Pro 64-bit Build 18362 (Version 1909 Release) Java version: AdoptOpenJDK 11 64-bit

The error is as follows (straight from CMD):

C:\Users\Owner\Desktop>java -jar unapkm.jar com.netflix.mediaclient_7.50.0_build_17_34771-34771_4arch_2dpi_15lang_7feat_38a1d11001d7d0aea2c238021ec8ec9b_apkmirror.com.apkm netflix.zip Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'C:\Users\Owner\AppData\Local\Temp\resource-loader13375745676964125581\windows64\libsodium.dll': The specified module could not be found. The specified module could not be found. Native library (win32-x86-64/C:\Users\Owner\AppData\Local\Temp\resource-loader13375745676964125581\windows64\libsodium.dll) not found in resource path (unapkm.jar) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:302) at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:455) at com.sun.jna.Native.register(Native.java:1722) at co.libly.resourceloader.SharedLibraryLoader.registerLibraryWithClasses(SharedLibraryLoader.java:74) at co.libly.resourceloader.SharedLibraryLoader.load(SharedLibraryLoader.java:57) at com.goterl.lazycode.lazysodium.utils.LibraryLoader.loadBundledLibrary(LibraryLoader.java:115) at com.goterl.lazycode.lazysodium.utils.LibraryLoader.loadLibrary(LibraryLoader.java:84) at com.goterl.lazycode.lazysodium.SodiumJava.(SodiumJava.java:34) at com.goterl.lazycode.lazysodium.SodiumJava.(SodiumJava.java:23) at org.example.UnApkm.(UnApkm.java:80) at org.example.UnApkm.main(UnApkm.java:155) Suppressed: java.lang.UnsatisfiedLinkError: The specified module could not be found. at com.sun.jna.Native.open(Native Method) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:191) ... 10 more Suppressed: java.lang.UnsatisfiedLinkError: The specified module could not be found. at com.sun.jna.Native.open(Native Method) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:204) ... 10 more Suppressed: java.io.IOException: Native library (win32-x86-64/C:\Users\Owner\AppData\Local\Temp\resource-loader13375745676964125581\windows64\libsodium.dll) not found in resource path (unapkm.jar) at com.sun.jna.Native.extractFromResourcePath(Native.java:1095) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:276) ... 10 more

I get the exact same error in PowerShell. I'm going to test it in Linux Mint since I hate Windows for lots of reasons, and so I usually modify quite a few settings. However I never modify file permissions because doing so has a chance of rendering Windows dead, and I still need it in case I need to restore an Apple device to full health.

souramoo commented 4 years ago

Seems like an error relating to https://github.com/terl/lazysodium-java/issues/34 and https://github.com/terl/lazysodium-java/issues/41 - can you check if C:\Users\Owner\AppData\Local\Temp\resource-loader13375745676964125581\windows64\libsodium.dll exists? It should work fine on Linux anyway :)

Giantvince1 commented 4 years ago

You're right about the library not existing in Linux. But the OS I first tried in was Winbloze. When I did it in Linux Mint it worked flawlessly. Thank you for this amazing tool.