Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load the superuser list 无法加载超级用户列表 #283

Closed
5 tasks done
Mxiier opened this issue Mar 11, 2024 · 17 comments
Closed
5 tasks done

Unable to load the superuser list 无法加载超级用户列表 #283

Mxiier opened this issue Mar 11, 2024 · 17 comments
Assignees
Labels
bug Something isn't working

Comments

@Mxiier
Copy link

Mxiier commented Mar 11, 2024

Please check before submitting an issue

  • I have searched the issues and haven't found anything relevant
  • If patch failed, root failed, or device unable to boot after flashing the new boot.img. Please goto KernelPatch
  • I will upload bugreport file in APatch Manager - Settings - Report log
  • My problem is fully stated in English.
  • I know how to reproduce the issue which may not be specific to my device

Describe the bug

Unable to load the superuser list
gif-20240311-091005
Screenshot_20240311-091144

Reproduce method

Unable to load the superuser list

Expected behavior

Unable to load the superuser list

Actual behaviour

Unable to load the superuser list

Screenshots

No response

Logs

APatch_bugreport_2024-03-11_09_06.tar.gz

Device Name

moto G51

OS Version

android 11

APatch Version

10533

Kernel Version

5.4.86

KernelPatch Version

0.10.3

Additional context

APatch_bugreport_2024-03-11_09_06.tar.gz

@Mxiier
Copy link
Author

Mxiier commented Mar 11, 2024

This is Kernel
kernel.zip

@pomelohan pomelohan added the bug Something isn't working label Mar 11, 2024
@pomelohan
Copy link
Collaborator

pomelohan commented Mar 11, 2024

D AndroidRuntime: Calling main entry com.topjohnwu.superuser.internal.RootServerMain  
F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30a89eb87c in tid 10475 (main), pid 10475 (main)  
I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone  
I tombstoned: received crash request for pid 10475  
I crash_dump64: performing dump of process 10475 (target tid = 10475)  
F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***  
F DEBUG   : Build fingerprint: 'motorola/cypfq_cmcc/cypfq:11/RRYA31.Q3-56-99-2/0e9209:user/release-keys'  
F DEBUG   : Revision: 'pvt'  
F DEBUG   : ABI: 'arm64'  
F DEBUG   : Timestamp: 2024-03-11 09:05:19+0800  
F DEBUG   : pid: 10475, tid: 10475, name: main  >>> me.bmax.apatch:root:0 <<<  
F DEBUG   : uid: 0  
F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30a89eb87c  
F DEBUG   :     x0  0000006e1ee54010  x1  0000000000000050  x2  000000006ff77708  x3  0000007fdb8e52f0  
F DEBUG   :     x4  0000000000000000  x5  b400006e3d5f1214  x6  0000000000000031  x7  0000000000000031  
F DEBUG   :     x8  00000000fffffbff  x9  0000000000000018  x10 0000006e1ee54118  x11 0000000000000020  
F DEBUG   :     x12 0000000000000000  x13 0000007fdb8e54d0  x14 0000000000000002  x15 0000000000000000  
F DEBUG   :     x16 00000070bd8347d0  x17 00000070bec8bad4  x18 00000070c36fe000  x19 0000006e1ee54010  
F DEBUG   :     x20 00000030a89eb86c  x21 00000030a89eb86c  x22 000000000000000c  x23 0000007fdb8e52f0  
F DEBUG   :     x24 b400006f3d5e8548  x25 0000000000000060  x26 00000070c2e44000  x27 0000006e2ce8f614  
F DEBUG   :     x28 0000000000000001  x29 0000007fdb8e5190  
F DEBUG   :     lr  0000006e2d224cec  sp  0000007fdb8e5190  pc  0000006e2d10b388  pst 0000000000001000  
F DEBUG   : backtrace:  
F DEBUG   :       #00 pc 000000000023b388  /apex/com.android.art/lib64/libart.so (mspace_malloc+116) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #01 pc 0000000000354ce8  /apex/com.android.art/lib64/libart.so (art::jit::JitMemoryRegion::AllocateData(unsigned long)+20) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #02 pc 000000000034f680  /apex/com.android.art/lib64/libart.so (art::jit::JitCodeCache::AddProfilingInfoInternal(art::Thread*, art::ArtMethod*, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > const&)+148) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #03 pc 000000000034f5ac  /apex/com.android.art/lib64/libart.so (art::jit::JitCodeCache::AddProfilingInfo(art::Thread*, art::ArtMethod*, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > const&, bool)+184) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #04 pc 0000000000354ff0  /apex/com.android.art/lib64/libart.so (art::ProfilingInfo::Create(art::Thread*, art::ArtMethod*, bool)+412) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #05 pc 0000000000343018  /apex/com.android.art/lib64/libart.so (art::jit::Jit::MaybeCompileMethod(art::Thread*, art::ArtMethod*, unsigned int, unsigned int, bool)+800) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #06 pc 0000000000319e78  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+588) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #07 pc 00000000003100d0  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #08 pc 000000000068057c  /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1032) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #09 pc 000000000012da14  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #10 pc 000000000035074e  /system/framework/framework.jar (android.content.pm.PackageParser$ApkLite.<init>+114)  
F DEBUG   :       #11 pc 00000000003076cc  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.13239354378677934218)+268) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #12 pc 000000000066d8b4  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #13 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #14 pc 000000000036b394  /system/framework/arm64/boot-framework.oat (android.content.pm.PackageParser.parseApkLite+6468) (BuildId: a7a3a6efdb6d7afd7d720df0097dc1530b96232f)  
F DEBUG   :       #15 pc 000000000036b7c4  /system/framework/arm64/boot-framework.oat (android.content.pm.PackageParser.parseApkLiteInner+948) (BuildId: a7a3a6efdb6d7afd7d720df0097dc1530b96232f)  
F DEBUG   :       #16 pc 0000000000369a24  /system/framework/arm64/boot-framework.oat (android.content.pm.PackageParser.parseApkLite+52) (BuildId: a7a3a6efdb6d7afd7d720df0097dc1530b96232f)  
F DEBUG   :       #17 pc 00000000001337e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #18 pc 00000000001a8a94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #19 pc 0000000000319da4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #20 pc 00000000003100d0  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #21 pc 0000000000681b04  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+548) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #22 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #23 pc 000000000047b614  /system/framework/framework.jar (offset 0x1205000) (com.android.internal.content.om.OverlayScanner.parseOverlayManifest+4)  
F DEBUG   :       #24 pc 000000000067ee4c  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #25 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #26 pc 000000000047b784  /system/framework/framework.jar (offset 0x1205000) (com.android.internal.content.om.OverlayScanner.scanDir+176)  
F DEBUG   :       #27 pc 000000000067ee4c  /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1520) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #28 pc 000000000012d814  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #29 pc 000000000047a770  /system/framework/framework.jar (offset 0x1205000) (com.android.internal.content.om.OverlayConfigParser.getConfigurations+28)  
F DEBUG   :       #30 pc 0000000000681da8  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #31 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #32 pc 000000000047b310  /system/framework/framework.jar (offset 0x1205000) (com.android.internal.content.om.OverlayConfig.<init>+188)  
F DEBUG   :       #33 pc 00000000006814c8  /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+1248) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #34 pc 000000000012d914  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #35 pc 000000000047ae22  /system/framework/framework.jar (offset 0x1205000) (com.android.internal.content.om.OverlayConfig.getZygoteInstance+26)  
F DEBUG   :       #36 pc 00000000003076cc  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.13239354378677934218)+268) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #37 pc 000000000066d8b4  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #38 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #39 pc 000000000037c7e8  /system/framework/arm64/boot-framework.oat (android.content.res.AssetManager.createSystemAssetsInZygoteLocked+392) (BuildId: a7a3a6efdb6d7afd7d720df0097dc1530b96232f)  
F DEBUG   :       #40 pc 000000000037cd84  /system/framework/arm64/boot-framework.oat (android.content.res.AssetManager.getSystem+100) (BuildId: a7a3a6efdb6d7afd7d720df0097dc1530b96232f)  
F DEBUG   :       #41 pc 0000000000381adc  /system/framework/arm64/boot-framework.oat (android.content.res.Resources.<init>+348) (BuildId: a7a3a6efdb6d7afd7d720df0097dc1530b96232f)  
F DEBUG   :       #42 pc 0000000000381fbc  /system/framework/arm64/boot-framework.oat (android.content.res.Resources.getSystem+124) (BuildId: a7a3a6efdb6d7afd7d720df0097dc1530b96232f)  
F DEBUG   :       #43 pc 00000000001337e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #44 pc 00000000001a8a94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #45 pc 0000000000319da4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #46 pc 00000000003100d0  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #47 pc 0000000000681b04  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+548) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #48 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #49 pc 0000000000000c04  [anon:dalvik-classes.dex extracted in memory from /data/user_de/0/me.bmax.apatch/cache/main.jar] (com.topjohnwu.superuser.internal.RootServerMain.<init>+376)  
F DEBUG   :       #50 pc 00000000006814c8  /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+1248) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #51 pc 000000000012d914  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #52 pc 0000000000000e7e  [anon:dalvik-classes.dex extracted in memory from /data/user_de/0/me.bmax.apatch/cache/main.jar] (com.topjohnwu.superuser.internal.RootServerMain.main+46)  
F DEBUG   :       #53 pc 00000000003076cc  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.13239354378677934218)+268) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #54 pc 000000000066d8b4  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #55 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #56 pc 00000000001337e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #57 pc 00000000001a8a94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #58 pc 0000000000556764  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #59 pc 0000000000556c18  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #60 pc 00000000003d1ed0  /apex/com.android.art/lib64/libart.so (art::JNI<false>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+656) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #61 pc 000000000009a424  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+124) (BuildId: 1ad912f9fecae10206e2731330eedafe)  
F DEBUG   :       #62 pc 000000000009eae4  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::callMain(android::String8 const&, _jclass*, android::Vector<android::String8> const&)+336) (BuildId: 1ad912f9fecae10206e2731330eedafe)  
F DEBUG   :       #63 pc 000000000000397c  /system/bin/app_process64 (android::AppRuntime::onStarted()+76) (BuildId: fc3c6038109116dd58f5ab8044856fc7)  
F DEBUG   :       #64 pc 0000000000203190  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+144) (BuildId: a7a3a6efdb6d7afd7d720df0097dc1530b96232f)  
F DEBUG   :       #65 pc 00000000001337e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #66 pc 00000000001a8a94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #67 pc 0000000000319da4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #68 pc 00000000003100d0  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #69 pc 0000000000681b04  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+548) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #70 pc 000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #71 pc 00000000004be228  /system/framework/framework.jar (offset 0x1205000) (com.android.internal.os.RuntimeInit.main+48)  
F DEBUG   :       #72 pc 00000000003076cc  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.13239354378677934218)+268) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #73 pc 000000000066d8b4  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #74 pc 000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #75 pc 00000000001337e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #76 pc 00000000001a8a94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #77 pc 0000000000556764  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #78 pc 0000000000556c18  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #79 pc 00000000003d1ed0  /apex/com.android.art/lib64/libart.so (art::JNI<false>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+656) (BuildId: 5a57bef0c3bc3adef9f99a7e80bfa5eb)  
F DEBUG   :       #80 pc 000000000009a424  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+124) (BuildId: 1ad912f9fecae10206e2731330eedafe)  
F DEBUG   :       #81 pc 00000000000a2284  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+836) (BuildId: 1ad912f9fecae10206e2731330eedafe)  
F DEBUG   :       #82 pc 0000000000003580  /system/bin/app_process64 (main+1336) (BuildId: fc3c6038109116dd58f5ab8044856fc7)  
F DEBUG   :       #83 pc 000000000004988c  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108) (BuildId: 1fdafb7d457cc367eb58ced21a4fa8ac)  

在通过 RootService 获取应用列表的时候直接触发 art 崩溃了,看起来是联想魔改了什么东西导致的。暂时的工作重心不会放在这里,但在未来的某一天里可能会修复。如果可以的话希望可以提供 /system/framework/framework.jar 和 /system/framework/services.jar

@Mxiier
Copy link
Author

Mxiier commented Mar 12, 2024

好的
framwork.tar.gz

@pomelohan
Copy link
Collaborator

感谢,我们会在有空的时候进行研究,到时候可能会有新版本让你帮忙测试

@pomelohan pomelohan added the wontfix This will not be worked on label Mar 12, 2024
@pomelohan pomelohan self-assigned this Mar 13, 2024
pomelohan added a commit that referenced this issue Mar 13, 2024
libsu uses Android's native IPC mechanism, binder, for communication between root service and the main application process.
However, some OEMs' dirty hack of framework code made it unstable. Like #283, it made libart crash. No app loaded.

Signed-off-by: GarfieldHan <[email protected]>
@pomelohan pomelohan removed the wontfix This will not be worked on label Mar 13, 2024
@pomelohan
Copy link
Collaborator

@Mxiier
Copy link
Author

Mxiier commented Mar 14, 2024

你好,非常感谢,我测试了下可以加载超级用户列表了,还测试了些其它功能,我发现 隐藏Apatch管理器 功能会闪退,无法成功隐藏,和安装magisk模块好像有问题。
如果有空希望解决下,谢谢
这是日志文件和录屏
apatch-log.zip

pomelohan added a commit that referenced this issue Mar 14, 2024
libsu uses Android's native IPC mechanism, binder, for communication between root service and the main application process.
However, some OEMs' dirty hack of framework code made it unstable. Like #283, it made libart crash. No app loaded.

Signed-off-by: GarfieldHan <[email protected]>
@pomelohan
Copy link
Collaborator

pomelohan commented Mar 14, 2024

你好,非常感谢,我测试了下可以加载超级用户列表了,还测试了些其它功能,我发现 隐藏Apatch管理器 功能会闪退,无法成功隐藏,和安装magisk模块好像有问题。 如果有空希望解决下,谢谢 这是日志文件和录屏 apatch-log.zip

因为是 topjohnwu 的 libsu 在 bind RootService 的时候出现的 library 崩溃,所以我换到了 pms 获取应用列表的方案,但是团队内部对于我的修改表示特别反对(据他们说是 getInstalledPackages 会导致部分设备无法获取应用列表、获取的不全等,但我在修改中用的并不是这个 API, 而是 getInstalledApplications),没有足够的证据说它足够稳定或者不稳定。因此这个修改暂时不能合并主线。但是我还是保留了这个修改在另外的分支:
https://github.com/bmax121/APatch/tree/query-applist-pms
我们这边也会增加测试的样本,来验证这个 API 的稳定性,如果验证确实稳定没有异常,则会合并到主线。

至于隐藏 APatch Manager 功能闪退,关键日志如下:

E AndroidRuntime: FATAL EXCEPTION: main  
E AndroidRuntime: Process: me.bmax.apatch, PID: 3714  
E AndroidRuntime: java.lang.NoSuchMethodError: No direct method <init>(Ljava/io/OutputStream;ZLjava/nio/charset/Charset;)V in class Ljava/io/PrintStream; or its super classes (declaration of 'java.io.PrintStream' appears in /apex/com.android.art/javalib/core-oj.jar)  
E AndroidRuntime: 	at m2.o(Unknown Source:3)  
E AndroidRuntime: 	at Aa0.c(Unknown Source:728)  
E AndroidRuntime: 	at PC.t(Unknown Source:243)  
E AndroidRuntime: 	at Pc.o(Unknown Source:5)  
E AndroidRuntime: 	at ls.run(Unknown Source:111)  
E AndroidRuntime: 	at X2.run(Unknown Source:37)  
E AndroidRuntime: 	at ig0.run(Unknown Source:2)  
E AndroidRuntime: 	at Dn.run(Unknown Source:91)  
E AndroidRuntime: 	Suppressed: qr: [iQ@34ceb54, Ne@e6bfafd, ed0{Cancelling}@72123f2, h7@13c3a43]  

不难看出你的系统实在是太糟糕了,目前暂时没有解决方案。

安装 APM 模块时出现 OS ERROR 22 是已知问题,不仅仅是你的系统你的设备出现了,后面会想办法修复,到时候可能还需要您的帮忙测试。

因为这个问题已经解决掉了,所以我将关闭这个 issue。关于安装 APM 模块时出现 OS ERROR 22,你可以再另行开一个 issue。

@nitanmarcel
Copy link

nitanmarcel commented Mar 15, 2024

The issue seems to persist here. Also I can't export the logs to my storage

@nitanmarcel
Copy link

But my issue seems different

https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c

@pomelohan
Copy link
Collaborator

But my issue seems different

https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c

Do you have similar issue when using other root required app which is using topjohnwu's libsu ?

We couldn't fix this since it was caused by topjohnwu's libsu. It would be better if you provide contexts to libsu's issue page.

@nitanmarcel
Copy link

But my issue seems different
https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c

Do you have similar issue when using other root required app which is using topjohnwu's libsu ?

We couldn't fix this since it was caused by topjohnwu's libsu. It would be better if you provide contexts to libsu's issue page.

Ah yes. For example GMS Flags which uses libsu is unable to load any data.

Should I open an issue on libsu repository is what you mean by providing context to libsu's issue page?

@nitanmarcel
Copy link

But my issue seems different
https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c

Do you have similar issue when using other root required app which is using topjohnwu's libsu ?

We couldn't fix this since it was caused by topjohnwu's libsu. It would be better if you provide contexts to libsu's issue page.
I've opened an issue

#283 (comment)

@pomelohan
Copy link
Collaborator

But my issue seems different
https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c

Do you have similar issue when using other root required app which is using topjohnwu's libsu ?
We couldn't fix this since it was caused by topjohnwu's libsu. It would be better if you provide contexts to libsu's issue page.

Ah yes. For example GMS Flags which uses libsu is unable to load any data.

Should I open an issue on libsu repository is what you mean by providing context to libsu's issue page?

I mean just open an issue on libsu instead.

@nitanmarcel
Copy link

But my issue seems different
https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c

Do you have similar issue when using other root required app which is using topjohnwu's libsu ?
We couldn't fix this since it was caused by topjohnwu's libsu. It would be better if you provide contexts to libsu's issue page.

Ah yes. For example GMS Flags which uses libsu is unable to load any data.
Should I open an issue on libsu repository is what you mean by providing context to libsu's issue page?

I mean just open an issue on libsu instead.

Yeah, I opened one yesterday waiting for a reply to it at the moment.

What I find strange is that solutions like KernelSU doesn't have this issue. Are we sure there isn't something with the APatch implementation?

@nitanmarcel
Copy link

Not even su in termux works, throws permission errors. Modules can't seem to install either. And I can't share the logs. I tried saving it with total commander and it complains that it can't open it for reading

APatch_install_log_2024-03-16-12-16-18.log

@nitanmarcel
Copy link

But my issue seems different
https://bin.kv2.dev/~65f4075c5de7ed6bfdbfad3c

Do you have similar issue when using other root required app which is using topjohnwu's libsu ?
We couldn't fix this since it was caused by topjohnwu's libsu. It would be better if you provide contexts to libsu's issue page.

Ah yes. For example GMS Flags which uses libsu is unable to load any data.
Should I open an issue on libsu repository is what you mean by providing context to libsu's issue page?

I mean just open an issue on libsu instead.

I've also opened an issue here regarding other problems I have:

#297

ponces pushed a commit to ponces/APatchLite that referenced this issue Mar 18, 2024
libsu uses Android's native IPC mechanism, binder, for communication between root service and the main application process.
However, some OEMs' dirty hack of framework code made it unstable. Like bmax121#283, it made libart crash. No app loaded.

Signed-off-by: GarfieldHan <[email protected]>
ponces pushed a commit to ponces/APatchLite that referenced this issue Mar 18, 2024
libsu uses Android's native IPC mechanism, binder, for communication between root service and the main application process.
However, some OEMs' dirty hack of framework code made it unstable. Like bmax121#283, it made libart crash. No app loaded.

Signed-off-by: GarfieldHan <[email protected]>
@ngocanhtve
Copy link
Contributor

I faced the same issue!
Screenshot_20240528

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants