casualsnek / waydroid_script

Python Script to add OpenGapps, Magisk, libhoudini translation library and libndk translation library to waydroid !
GNU General Public License v3.0
1.88k stars 170 forks source link

Android 13 libndk doesn't seem to work. #128

Open Kodehawa opened 1 year ago

Kodehawa commented 1 year ago

All ARMv8 apps crash at startup

10-10 01:18:44.668  3004  3006 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-10 01:18:44.668  3004  3006 F DEBUG   : LineageOS Version: '20.0-20231009-UNOFFICIAL-waydroid_x86_64'
10-10 01:18:44.668  3004  3006 F DEBUG   : Build fingerprint: 'waydroid/lineage_waydroid_x86_64/waydroid_x86_64:13/TQ3A.230901.001/eng.kodeha.20231009.184113:userdebug/test-keys'
10-10 01:18:44.668  3004  3006 F DEBUG   : Revision: '0'
10-10 01:18:44.668  3004  3006 F DEBUG   : ABI: 'x86'
10-10 01:18:44.668  3004  3006 F DEBUG   : Timestamp: 2023-10-10 01:18:44.551501567+0000
10-10 01:18:44.668  3004  3006 F DEBUG   : Process uptime: 1s
10-10 01:18:44.668  3004  3006 F DEBUG   : Cmdline: zygote
10-10 01:18:44.668  3004  3006 F DEBUG   : pid: 3004, tid: 3006, name: StarEN.AzurLane  >>> zygote <<<
10-10 01:18:44.668  3004  3006 F DEBUG   : uid: 10146
10-10 01:18:44.668  3004  3006 F DEBUG   : signal 0 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr --------
10-10 01:18:44.668  3004  3006 F DEBUG   :     eax 66206e65  ebx f564922c  ecx 00000081  edx 7fffffff
10-10 01:18:44.668  3004  3006 F DEBUG   :     edi c9c88270  esi c9c881e0
10-10 01:18:44.668  3004  3006 F DEBUG   :     ebp c9c87e68  esp c9c87e3c  eip 706f6c64
10-10 01:18:44.668  3004  3006 F DEBUG   : backtrace:
10-10 01:18:44.668  3004  3006 F DEBUG   :       #00 pc 000cfc64  [anon:dalvik-/system/framework/boot-framework.art]
10-10 01:18:44.668  3004  3006 F DEBUG   :       #01 pc 0012b822  /apex/com.android.runtime/lib/bionic/libc.so (__cxa_thread_finalize+98) (BuildId: 59d4aa2a4cd85c0c9cc02f644bec8021)
10-10 01:18:44.668  3004  3006 F DEBUG   :       #02 pc 0012813f  /apex/com.android.runtime/lib/bionic/libc.so (pthread_exit+31) (BuildId: 59d4aa2a4cd85c0c9cc02f644bec8021)
10-10 01:18:44.668  3004  3006 F DEBUG   :       #03 pc 000ccf44  /system/lib/libndk_translation.so (ndk_translation::AppProcessPostInit()+84) (BuildId: ff7ce86ac9b06e63021a897977663898)
10-10 01:18:44.668  3004  3006 F DEBUG   :       #04 pc 000cf6ba  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::PostInitCallback(void const*, ndk_translation::ProcessState*)+26) (BuildId: ff7ce86ac9b06e63021a897977663898)
10-10 01:19:26.183  3361  3363 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-10 01:19:26.183  3361  3363 F DEBUG   : LineageOS Version: '20.0-20231009-UNOFFICIAL-waydroid_x86_64'
10-10 01:19:26.183  3361  3363 F DEBUG   : Build fingerprint: 'waydroid/lineage_waydroid_x86_64/waydroid_x86_64:13/TQ3A.230901.001/eng.kodeha.20231009.184113:userdebug/test-keys'
10-10 01:19:26.183  3361  3363 F DEBUG   : Revision: '0'
10-10 01:19:26.183  3361  3363 F DEBUG   : ABI: 'x86'
10-10 01:19:26.183  3361  3363 F DEBUG   : Timestamp: 2023-10-10 01:19:26.063153038+0000
10-10 01:19:26.183  3361  3363 F DEBUG   : Process uptime: 1s
10-10 01:19:26.183  3361  3363 F DEBUG   : Cmdline: zygote
10-10 01:19:26.183  3361  3363 F DEBUG   : pid: 3361, tid: 3363, name: inalwire.aida64  >>> zygote <<<
10-10 01:19:26.183  3361  3363 F DEBUG   : uid: 10145
10-10 01:19:26.183  3361  3363 F DEBUG   : signal 0 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr --------
10-10 01:19:26.183  3361  3363 F DEBUG   :     eax 66206e65  ebx f564922c  ecx 00000081  edx 7fffffff
10-10 01:19:26.183  3361  3363 F DEBUG   :     edi c9c8c270  esi c9c8c1e0
10-10 01:19:26.183  3361  3363 F DEBUG   :     ebp c9c8be68  esp c9c8be3c  eip 706f6c64
10-10 01:19:26.183  3361  3363 F DEBUG   : backtrace:
10-10 01:19:26.183  3361  3363 F DEBUG   :       #00 pc 000cfc64  [anon:dalvik-/system/framework/boot-framework.art]
10-10 01:19:26.183  3361  3363 F DEBUG   :       #01 pc 0012b822  /apex/com.android.runtime/lib/bionic/libc.so (__cxa_thread_finalize+98) (BuildId: 59d4aa2a4cd85c0c9cc02f644bec8021)
10-10 01:19:26.183  3361  3363 F DEBUG   :       #02 pc 0012813f  /apex/com.android.runtime/lib/bionic/libc.so (pthread_exit+31) (BuildId: 59d4aa2a4cd85c0c9cc02f644bec8021)
10-10 01:19:26.183  3361  3363 F DEBUG   :       #03 pc 000ccf44  /system/lib/libndk_translation.so (ndk_translation::AppProcessPostInit()+84) (BuildId: ff7ce86ac9b06e63021a897977663898)
10-10 01:19:26.183  3361  3363 F DEBUG   :       #04 pc 000cf6ba  /system/lib/libndk_translation.so (ndk_translation::(anonymous namespace)::PostInitCallback(void const*, ndk_translation::ProcessState*)+26) (BuildId: ff7ce86ac9b06e63021a897977663898)
10-10 01:19:26.183  3361  3363 F DEBUG   :       #05 pc 00000160  <anonymous:c9d5e000>
10-10 01:19:26.188   886   886 D b/260135164: updateIconAlphaForHome - setIconsAlpha(1), isTaskbarPresent: true
Interpause commented 5 months ago

Providing some more info, it could be related to this:

06-05 07:59:33.716     0     0 E linkerconfig: Unable to access VNDK APEX at path: /apex/com.android.vndk.v33: No such file or directory

For the specific game I am trying to run:

java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/~~ChXSdriHON9cY459bFnwjQ==/com.kurogame.wutheringwaves.global-P-s-Y2Yug-TztfcVQfn8yw==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libanort.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62)

I am able to launch the above game using Android 11 and its libndk though. Just that for Android 11, the OpenGL version isn't high enough so it ends up eventually crashing...