Shizuku: [Wontfix] GrapheneOS: "Can't start: java.lang.UnsatisfiedLinkError: dlopen failed - Permission denied"
Please report bugs of Shizuku itself.
Requirements:
- Shizuku version is up-to-date
- Shizuku is downloaded from official channels (GitHub release)
- Shizuku is not running in a virtual environment
- (Root users) No Xposed installed / Xposed is not enabled for Shizuku (unrooted)
Change “[ ]” to “[x]” if it meets the requirements.
Reports not meet the requirements will be immediately closed.
Information:
- Shizuku version: v12.8.1
- Mode: adb
- Android version: 12 (GrapheneOS)
- Device: Pixel 6 Pro
Logs:
Relevant logcat:
06-29 13:46:31.569 10814 10814 D Shizuku : applet shizuku_starter
06-29 13:46:31.676 10814 10814 D Shizuku : start_server
06-29 13:46:31.677 10819 10819 D Shizuku : child
06-29 13:46:31.678 10819 10819 D Shizuku : exec app_process
06-29 13:46:31.793 10819 10819 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
06-29 13:46:31.792 10819 10819 W shizuku_server: type=1400 audit(0.0:24419): avc: denied { read } for name="u:object_r:odsign_prop:s0" dev="tmpfs" ino=227 scontext=u:r:shell:s0 tcontext=u:object_r:odsign_prop:s0 tclass=file permissive=0
06-29 13:46:31.797 10819 10819 I AndroidRuntime: Using default boot image
06-29 13:46:31.797 10819 10819 I AndroidRuntime: Leaving lock profiling enabled
06-29 13:46:31.797 10819 10819 W libc : Access denied finding property "odsign.verification.success"
06-29 13:46:31.799 10819 10819 W shizuku_server: ART APEX data files are untrusted.
06-29 13:46:31.856 10819 10819 D shizuku_server: Time zone APEX ICU file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat
06-29 13:46:31.856 10819 10819 D shizuku_server: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt68l.dat
06-29 13:46:31.872 10819 10819 D AndroidRuntime: Calling main entry rikka.shizuku.server.ShizukuService
06-29 13:46:31.868 10819 10819 W main : type=1400 audit(0.0:24420): avc: denied { execute } for path="/data/app/~~DmPJlqx-hgeJwV5MgQMcWQ==/moe.shizuku.privileged.api-n00WNHSFxOYwYoFGywplEg==/base.apk" dev="dm-34" ino=36962 scontext=u:r:shell:s0 tcontext=u:object_r:apk_data_file:s0 tclass=file permissive=0
06-29 13:46:31.874 10819 10819 D AndroidRuntime: Shutting down VM
06-29 13:46:31.874 10819 10819 E AndroidRuntime: FATAL EXCEPTION: main
06-29 13:46:31.874 10819 10819 E AndroidRuntime: PID: 10819
06-29 13:46:31.874 10819 10819 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: couldn't map "/data/app/~~DmPJlqx-hgeJwV5MgQMcWQ==/moe.shizuku.privileged.api-n00WNHSFxOYwYoFGywplEg==/base.apk!/lib/arm64-v8a/librish.so" segment 0: Permission denied
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at java.lang.Runtime.load0(Runtime.java:929)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at java.lang.System.load(System.java:1620)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at rikka.rish.b.f(SourceFile:3)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at rikka.rish.b.e(SourceFile:4)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at rikka.shizuku.server.c.<init>(SourceFile:2)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at rikka.shizuku.server.ShizukuService.<init>(SourceFile:1)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at rikka.shizuku.server.ShizukuService.main(SourceFile:4)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: Error reporting crash
06-29 13:46:31.874 10819 10819 E AndroidRuntime: java.lang.RuntimeException: Bad file descriptor
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at android.os.BinderProxy.transactNative(Native Method)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at android.os.BinderProxy.transact(BinderProxy.java:571)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at android.os.IServiceManager$Stub$Proxy.checkService(IServiceManager.java:416)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:63)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at android.os.ServiceManager.rawGetService(ServiceManager.java:335)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at android.os.ServiceManager.getService(ServiceManager.java:134)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at android.app.ActivityManager$1.create(ActivityManager.java:4452)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at android.app.ActivityManager$1.create(ActivityManager.java:4449)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at android.util.Singleton.get(Singleton.java:43)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at android.app.ActivityManager.getService(ActivityManager.java:4440)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:156)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
06-29 13:46:31.874 10819 10819 E AndroidRuntime: at java.lang.Thread.dispatchUncaughtException(Thread.java:2200)
06-29 13:46:31.874 10819 10819 I Process : Sending signal. PID: 10819 SIG: 9
Terminal log:
❯ adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh
info: start.sh begin
info: attempt to copy starter from /storage/emulated/0/Android/data/moe.shizuku.privileged.api/starter to /data/local/tmp/shizuku_starter
info: exec /data/local/tmp/shizuku_starter
info: starter begin
info: killing old process...
info: apk path is /data/app/~~DmPJlqx-hgeJwV5MgQMcWQ==/moe.shizuku.privileged.api-n00WNHSFxOYwYoFGywplEg==/base.apk
info: starting server...
info: shizuku_starter exit with 0
Describe the bug: shizuku doesn’t seem to start because of some permission error
Additional context:
Maybe the error is related to some GrapheneOS specific patch of Android but I can’t switch to another OS currently for testing
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (2 by maintainers)
I figured it out: Shizuku kept crashing silently until I disabled the security setting “Secure app spawning.” I also noticed some other apps stopped having ANRs after disabling this setting.