Error installing Shizuku Compatibility Stub
Requirements
- [x] I am using the latest version from GitHub Releases.
- [x] I am using a standard, tested ROM (no custom/untested forks).
- [x] I have searched existing issues and this is not a duplicate.
- [x] I am providing text logs, not screenshots of logs.
Shizuku Version
14.6.1
Operation Mode
ADB Mode
Device Model & OS Version
Redmi note 12S android 15 HyperOS version 2.0.211.0.VHZEUXM
Steps to Reproduce
- Open the app
- Pair it with ADB
- clic "Start via Wireless debugging"
- Go to "compatibility stubs"
- clic "Shizuku Compatibility Stub" - > "Install"
- The error message "Failed to install the legacy stub via ADB: Failure [INSTALL_FAILED_U..." Will appear.
- clic "Dhizuku Compatibility Stub".
- The error message "Failed to install the legacy stub via ADB: Failure [INSTALL_FAILED_U..." Will appear.
- "Failed to install the legacy stub via ADB: all ADB ports failed"
Logcat / Crash Logs
adb logcat [E] sh: adb: inaccessible or not found [E] Command exited with code 127.
🤖 AI Triage
The log snippet indicates that the privileged Shevery service is not running when attempting stub installation, but no repository code files were read to verify the installation routine. Please ensure the Shevery service is running prior to installing compatibility stubs or provide complete logcat output.
Note: this is an automated AI bot (Gemini); its verdict isn't 100% accurate and can be wrong. The bot doesn't read or reply to further comments in this thread — if it got this wrong, ping a human maintainer.
3. 🤖 AI Triage The log snippet indicates that the privileged Shevery service is not running when attempting stub installation, but no repository code files were read to verify the installation routine. Please ensure the Shevery service is running prior to installing compatibility stubs or provide complete logcat output. > Note: this is an automated AI bot (Gemini); its verdict isn't 100% accurate and can be wrong. The bot doesn't read or reply to further comments in this thread — if it got this wrong, ping a human maintainer.
The Shevery service was running. Before it wasn´t running and the "adb logcat" output was "Error: Privileged Shevery Service is not running. Please start the service first". After starting it, I got "db logcat [E] sh: adb: inaccessible or not found [E] Command exited with code 127."
we have the same problem, mine works after turning on/off/on the ff: .Usb debugging .Install via USB .USB debugging (security settings)
You can turn it off after installing the stub.
The error Failure [INSTALL_FAILED_USER_RESTRICTED] is an OEM-level protection mechanism (commonly found on MIUI/HyperOS, ColorOS, and similar systems) rather than an issue in Shevery's installation routine.
On these ROMs, ADB package installation (pm install) is blocked by default until explicitly permitted in Developer Options:
- Open Settings -> Developer options.
- Enable Install via USB.
- Enable USB debugging (Security settings).
Once enabled, installing the compatibility stub via ADB will proceed without error. Closing as an external OEM configuration restriction.