microg / RemoteDroidGuard

Service to run Google's DroidGuard binary in an isolated environment
94 stars 28 forks source link

couldnt find libarthook_native.so #10

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi, i got this error when running SaftyNet Helper. Android 7.1.1 January Security Patch Level Resurrection Remix OS 5.8.0-20170121-h815-Unofficial_tyler

05:06:11.827  7072  7197 E AndroidRuntime: FATAL EXCEPTION: Thread-2
01-28 05:06:11.827  7072  7197 E AndroidRuntime: Process: com.google.android.gms.unstable, PID: 7072
01-28 05:06:11.827  7072  7197 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/priv-app/org.microg.gms.droidguard.apk"],nativeLibraryDirectories=[/system/lib64/org.microg.gms.droidguard, /system/fake-libs64, /system/priv-app/org.microg.gms.droidguard.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /system/lib64, /vendor/lib64]]] couldn't find "libarthook_native.so"
01-28 05:06:11.827  7072  7197 E AndroidRuntime:    at java.lang.Runtime.loadLibrary0(Runtime.java:984)
01-28 05:06:11.827  7072  7197 E AndroidRuntime:    at java.lang.System.loadLibrary(System.java:1530)
01-28 05:06:11.827  7072  7197 E AndroidRuntime:    at de.larma.arthook.Native.<clinit>(Native.java:22)
01-28 05:06:11.827  7072  7197 E AndroidRuntime:    at de.larma.arthook.Native.is64Bit(Native.java:45)
01-28 05:06:11.827  7072  7197 E AndroidRuntime:    at de.larma.arthook.ArtHook.<clinit>(ArtHook.java:46)
01-28 05:06:11.827  7072  7197 E AndroidRuntime:    at de.larma.arthook.ArtHook.hook(ArtHook.java:75)
01-28 05:06:11.827  7072  7197 E AndroidRuntime:    at org.microg.gms.droidguard.SysHook.activate(SysHook.java:52)
01-28 05:06:11.827  7072  7197 E AndroidRuntime:    at org.microg.gms.droidguard.DroidguardHelper.guard(DroidguardHelper.java:91)
01-28 05:06:11.827  7072  7197 E AndroidRuntime:    at org.microg.gms.droidguard.RemoteDroidGuardService$1$1.run(RemoteDroidGuardService.java:23)
01-28 05:06:11.827  7072  7197 E AndroidRuntime:    at java.lang.Thread.run(Thread.java:761)

kind regards

ale5000-git commented 7 years ago

Do you have the latest version?

ghost commented 7 years ago

thx, it works now i dunno how i got the wrong version from f-droid probably miss clicked, sorry bro

jamyy2000 commented 6 years ago

How did you solved this problem?I also get the same problem. Thanks.

ale5000-git commented 6 years ago

@jamyy2000: Do you have the latest version of DroidGuard Helper installed (currently 0.1.0-10)?

jamyy2000 commented 6 years ago

@ale5000-git I didn't install DroidGuard Helper, I just push my APK into /system/priv-app/, and the apk contains some *.so files in /lib/arm64/ path,when run the APK,it cause UnsatisfiedLinkError, the error log is : dalvik.system.PathClassLoader[DexPathList[[zip file "/system/priv-app/TestNative/TestNative.apk"],nativeLibraryDirectories=[/system/priv-app/TestNative/lib/arm64, /system/fake-libs64, /system/priv-app/TestNative/TestNative.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /product/lib64, /system/lib64, /vendor/lib64, /product/lib64]]] couldn't find "libtest.so" .

ale5000-git commented 6 years ago

@jamyy2000: This prove you are using an old version since the latest version no longer use libs. You should push an updated apk.

jamyy2000 commented 6 years ago

@ale5000-git: I'm using new Huawei device,and It didn't install the apk at all, I just develop a apk using jni includes /libs/arm64/xxx.so,and root the device,and push the apk into /system/priv-app/ path,make this apk cann't be uninstalled , but when run the test apk,get the problem.

ale5000-git commented 6 years ago

@jamyy2000: You just have to push the new version with the same name and position of the old version in system/priv-app/ and it will overwrite it.

Note: To download the apk go here, in the drop down menu of DroidGuard Helper choose 0.1.0-10.