Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

57 Commits

Repository files navigation

Shizuku Rish Installer for Termux

Automatically extracts rish and rish_shizuku.dex from an installed Shizuku APK and installs them into Termux so you can run rish directly from the shell.

Requirements

Install

curl -fsSL https://raw.githubusercontent.com/dbensmith/rish_installer/main/rish_installer.sh -o rish_installer.sh \
&& chmod +x rish_installer.sh \
&& bash rish_installer.sh \
&& rm rish_installer.sh

Note: Piping directly into bash (curl ... | bash) works when ADB is not involved, but if ADB is present and connected, adb shell will consume the remaining script from stdin. The one-liner above avoids this entirely.

Uninstall

curl -fsSL https://raw.githubusercontent.com/dbensmith/rish_installer/main/rish_installer.sh -o rish_installer.sh \
&& bash rish_installer.sh --uninstall \
&& rm rish_installer.sh

Reinstall

curl -fsSL https://raw.githubusercontent.com/dbensmith/rish_installer/main/rish_installer.sh -o rish_installer.sh \
&& bash rish_installer.sh --reinstall \
&& rm rish_installer.sh

How it works

The script extracts rish and rish_shizuku.dex from the Shizuku APK already installed on your device, patches the Termux package ID into the rish script, and installs both files into Termux's bin directory (or $HOME as fallback).

APK probe order

For each discovered Shizuku package the script tries these methods in order, moving to the next only on failure:

#MethodNotes
1cmd package path + cpFastest; works when Termux can read /data/app
2pm path + cpAlternate PM command; same copy permission requirement
3adb shell pm path + adb pullOnly if adb is present and already connected
4GitHub release downloadLast resort — thedjchi/Shizuku then RikkaApps/Shizuku

Package candidates are discovered automatically by scanning all installed packages for names containing shizuku, so any installed fork is found without configuration.

Progress stages

[tools] — check/acquire unzip, sed, grep, install
[probe] — scan installed packages; try each APK method
[fetch] — online download (last resort only)
[extract] — unpack assets/rish and assets/rish_shizuku.dex; patch PKG
[install] — write files to bin or $HOME
[verify] — confirm both files exist and rish is executable
[done] — printed only after verification passes

Options

FlagDescription
--reinstallReplace an existing installation
--uninstallRemove rish and rish_shizuku.dex
--no-downloadFail if no local/ADB APK is found instead of downloading
--repo <owner/repo>Add a GitHub repo to check for releases (repeatable)
--apk-package <name>Add a package name to probe locally (repeatable)

Example — explicit repo order and package override:

bash rish_installer.sh \
--repo thedjchi/Shizuku \
--repo RikkaApps/Shizuku \
--apk-package moe.shizuku.privileged.api

Troubleshooting

Script stops after ADB pull with no further output

You ran it via curl ... | bash. Use the one-liner install command above instead, which saves the script to a file before executing it.

Required tools missing

Install BusyBox manually then re-run:

pkg install busybox
bash rish_installer.sh

No local/ADB Shizuku APK found

Shizuku (or a compatible fork) must be installed on the device before running this script. Install it from GitHub or F-Droid first.

What changed from upstream

  • Auto-discover any installed Shizuku fork by scanning all installed packages
  • Three local probe methods per package before falling back to network
  • ADB-assisted APK pull when local copy is permission-denied
  • --no-download flag to block network fallback
  • All adb calls redirect stdin from /dev/null to prevent pipe consumption
  • Online fallback checks thedjchi/Shizuku before RikkaApps/Shizuku
  • Strict pipeline: [extract] → [install] → [verify] → [done]
  • No bundled BusyBox binaries in this repo

Credits

Based on merbah3266/rish_installer.

About

Shizuku Rish Installer for Android terminals

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages