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

Infinite loading in superuser list #400

Open
5 tasks done
rj10rd opened this issue Apr 24, 2024 · 13 comments
Open
5 tasks done

Infinite loading in superuser list #400

rj10rd opened this issue Apr 24, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@rj10rd
Copy link

rj10rd commented Apr 24, 2024

Please check before submitting an issue/在提交 issue 前请检查

  • I have searched the issues and haven't found anything relevant/我已经搜索了 issues 列表,没有发现于本问题相关内容
  • If patch failed, root failed, or device unable to boot after flashing the new boot.img. Please goto KernelPatch/修复失败或刷入修补后镜像不能启动,请前往 KernelPatch 提问
  • I will upload bugreport file in APatch Manager - Settings - Report log/我会上传 bureport 文件从 APatch 管理器 - 设置 - 发送日志
  • I know how to reproduce the issue which may not be specific to my device/我知道如何重新复现这个问题

Version requirement/版本要求

  • I am using latest CI version of APatch/我正在使用最新 CI 版本

Describe the bug/描述 bug

Unable to load the installed app list in superuser; unable to install modules; just show black when installing a module; tried the latest stable (0.10.5) and CI build (0.10.6 10739); unable to patch another boot image.
Screenshot_20240424-085544_APatch

Reproduce method/复现方法

Just patch the boot image using apatch. (We can patch if we clear the data of the apatch app, but after that, the same issue persists.)

Expected behavior/预期行为

Superuser list should load and modules should be installed normally.

Actual behaviour /实际行为

Screenshot_20240424-092300_APatch
Screenshot_20240424-092313_APatch

Screenshot_20240424-085500_APatch
Screenshot_20240424-085535_APatch

Screenshots/截图

No response

Logs/日志

No response

Device Name/设备名称

Poco X2

OS Version/系统版本

Awaken os 4.4 (Android 14 qpr2)

APatch Version/APatch 版本

0.10.6/0.10.5

Kernel Version/内核版本

Linux version 4.14.340-openela-perf-g5a9fc1311c85 (nobody@android-build) (Android (10087095, +pgo, +bolt, +lto, -mlgo, based on r487747c) clang version 17.0.2 (https://android.googlesource.com/toolchain/llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362), LLD 17.0.2) #2 SMP PREEMPT Tue Apr 23 14:47:05 IST 2024

KernelPatch Version/KernelPatch 版本

Version 10739 (10657-82-gced622d)

Additional context/其他信息

After clearing APatch data patching process:
Screenshot_20240424-092013_APatch
Screenshot_20240424-092021_APatch
Screenshot_20240424-092037_APatch

@rj10rd rj10rd added the bug Something isn't working label Apr 24, 2024
@pomelohan
Copy link
Collaborator

Does your kernel enable CONFIG_KALLSYMS_ALL?

@rj10rd
Copy link
Author

rj10rd commented May 2, 2024

Here you go with kernel source(I don't have enough knowledge)- https://github.com/xiaomi-sm6150/android_kernel_xiaomi_sm6150

@Xori71
Copy link

Xori71 commented May 30, 2024

Does your kernel enable CONFIG_KALLSYMS_ALL?

I faced this exact same issue with CONFIG_KALLSYMS_ALL=y.

@GithubDns
Copy link

I can't patch boot img and iam have infinite loop in superuser please help me I can't uninstall the root
Uploading Screenshot_20240604-225741.png…

@fabioesantos
Copy link

fabioesantos commented Jun 18, 2024

I have the same issue on S10 in android 14 only, android 13 is fine.

I have CONFIG_KALLSYMS_ALL=y

Kernel 3.14.344

@ventureoo
Copy link

Same issue on POCO X3 NFC (surya) after upgrading from LineageOS 19.1 to LineageOS 21. Kernel has CONFIG_KALLSYMS_ALL=y enabled in config: https://github.com/LineageOS/android_kernel_xiaomi_surya/blob/lineage-21/arch/arm64/configs/surya_defconfig#L39

@karasudidntwakeup
Copy link

same here crdroid

@Rachit-Pandey-2004
Copy link

Same here with poco m2 pro with lineage os andriod 14

@egydoctor2010
Copy link

Same happen with me before stock rom android 13 support apatch well, it is running well after rebatch boot again

@borisiua
Copy link

same issue with lineage os 21 (android 14) on POCO X3 NFC (surya). same infinite loading of su list, can't install apm modules - error message: Error: No such file or directory (os error 2)
few more details:

  • su actually is installed. i can run it with adb shell su

@Jonte-P
Copy link

Jonte-P commented Aug 29, 2024

I'm having the same issue with lineage os 21 on my OnePlus 7T. I am going to try another rom to see whether it works or not.
I've tried the nightly release of Apatch to no avail.
Edit: I've tried another rom, and I don't think it's gonna work on that rom either. It uses the same kernel as lineageOS.

@ventureoo
Copy link

Same issue on POCO X3 NFC (surya) after upgrading from LineageOS 19.1 to LineageOS 21. Kernel has CONFIG_KALLSYMS_ALL=y enabled in config: https://github.com/LineageOS/android_kernel_xiaomi_surya/blob/lineage-21/arch/arm64/configs/surya_defconfig#L39

I investigated this issue a bit more by running apatch in android studio and debugging via lolcat. Judging from these logs this issue is a duplicate of #283

-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  LineageOS Version: '21.0-20241014-NIGHTLY-surya'
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  Build fingerprint: 'POCO/surya_eea/surya:12/RKQ1.211019.001/V14.0.5.0.SJGEUXM:user/release-keys'
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  Revision: '0'
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  ABI: 'arm64'
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  Timestamp: 2024-10-22 18:09:25.723402002+0300
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  Process uptime: 1s
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  Cmdline: me.bmax.apatch:root:0
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  pid: 8960, tid: 8960, name: main  >>> me.bmax.apatch:root:0 <<<
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  uid: 0
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  Abort message: 'No pending exception expected: java.lang.ClassNotFoundException: Didn't find class "com.topjohnwu.superuser.internal.RootServerMain" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /system_ext/lib64, /system/lib64, /system_ext/lib64]]
                                                                                                      at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:259)
                                                                                                      at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:637)
                                                                                                      at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:573)'
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A      x0  0000000000000000  x1  0000000000002300  x2  0000000000000006  x3  0000007fd6b65250
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A      x4  0000007703ec8000  x5  0000007703ec8000  x6  0000007703ec8000  x7  000000000004eec6
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A      x8  00000000000000f0  x9  00000076f2b2f390  x10 ffffff80fffffbdf  x11 0000000000000001
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A      x12 0000007fd6b63fd0  x13 0000000000000282  x14 0000007fd6b64080  x15 00001141edb26197
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A      x16 00000076f2bdafe0  x17 00000076f2bc6860  x18 000000770348c000  x19 0000000000002300
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A      x20 0000000000002300  x21 00000000ffffffff  x22 000000000000000b  x23 b400007538309dd9
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A      x24 000000000000000b  x25 0000007702d58ac0  x26 b40000757830ba50  x27 0000007fd6b655b0
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A      x28 0000007702d58ac0  x29 0000007fd6b652d0
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A      lr  00000076f2b66ad8  sp  0000007fd6b65230  pc  00000076f2b66b08  pst 0000000000000000
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  12 total frames
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A  backtrace:
2024-10-22 18:09:25.820  8981-8981  DEBUG                   pid-8981                             A        #00 pc 000000000005ab08  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: 10f6580e623cb20b4044f6e6a4103b34)
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #01 pc 00000000008ed988  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+600) (BuildId: e80ff12130cade1e1fbcdd24f28a8ca0)
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #02 pc 0000000000017358  /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_0::__invoke(char const*)+80) (BuildId: b99b74f03d108d6d85240d1d0cc5efdf)
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #03 pc 00000000000168e0  /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+356) (BuildId: b99b74f03d108d6d85240d1d0cc5efdf)
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #04 pc 000000000038bcfc  /apex/com.android.art/lib64/libart.so (art::ClassLinker::FindClass(art::Thread*, char const*, art::Handle<art::mirror::ClassLoader>)+9180) (BuildId: e80ff12130cade1e1fbcdd24f28a8ca0)
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #05 pc 000000000065e0a8  /apex/com.android.art/lib64/libart.so (art::JNI<false>::FindClass(_JNIEnv*, char const*)+512) (BuildId: e80ff12130cade1e1fbcdd24f28a8ca0)
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #06 pc 00000000000e8780  /system/lib64/libandroid_runtime.so (jniRegisterNativeMethods(_JNIEnv*, char const*, JNINativeMethod const*, int)+68) (BuildId: 9318ee29c6fe618c70052fc704ba20f0)
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #07 pc 00000000000e86e8  /system/lib64/libandroid_runtime.so (android::register_com_android_internal_os_RuntimeInit(_JNIEnv*)+68) (BuildId: 9318ee29c6fe618c70052fc704ba20f0)
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #08 pc 00000000000eca7c  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::startReg(_JNIEnv*)+64) (BuildId: 9318ee29c6fe618c70052fc704ba20f0)
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #09 pc 00000000000ec784  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+496) (BuildId: 9318ee29c6fe618c70052fc704ba20f0)
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #10 pc 0000000000002580  /system/bin/app_process64 (main+1224) (BuildId: 80c1e8a71f7d006dba2c4f046503c8d6)
2024-10-22 18:09:25.817     0-0     logd                    kernel                               I  logdr: UID=0 GID=0 PID=8981 n tail=500 logMask=1 pid=8960 start=0ns deadline=0ns
2024-10-22 18:09:25.821  8981-8981  DEBUG                   pid-8981                             A        #11 pc 0000000000054748  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+116) (BuildId: 10f6580e623cb20b4044f6e6a4103b34)
2024-10-22 18:09:25.832  1503-2231  NativeCrashListener     system_server                        W  Couldn't find ProcessRecord for pid 8960
2024-10-22 18:09:25.835   680-680   tombstoned              tombstoned                           E  Tombstone written to: tombstone_11
2024-10-22 18:09:25.838  1503-2067  NativeTombstoneManager  system_server                        E  Tombstone's UID (0) not an app, ignoring

@ventureoo
Copy link

ventureoo commented Oct 22, 2024

I did a rebase of the patches from @pomelohan that he suggested here #283 (comment) and they fix this issue for me, so will share the latest version for everyone who has had this issue: https://github.com/ventureoo/APatch/tree/fix-infinite-loading

APK for testing: https://drive.google.com/file/d/1ShC4IdoLlnK7r6WAxtmTT2VPuDsJ95VB/view (please do NOT report any further issues with this APK as it is not official or signed).

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