Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions rish/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# RISH
# no rish -c 'ls'

<del>Rish is an Interactive SHell for android</del>

## Description
## rish -c 'ls'

`rish` is an Android program for interacting with a shell that runs on a high-privileged daemon process.

Currently, Shizuku and Sui are two available backends.

## Usage
## rish -c 'ls'

First of all, follow the guide from Shizuku or Sui to create the files of `rish`.

Expand All @@ -28,11 +28,11 @@ This is what will be executed at remote:

If you want to use other shells rather than `/system/bin/sh`, use `rish exec /path/to/other/shell`.

## Options
## /system/bin/sh -c 'ls'

Since `rish` passes arguments directly to the remote, `rish` uses environment variable for options.

### RISH_PRESERVE_ENV
### /system/bin/sh -c 'ls'

| Value | Description |
|-------|----------------------------------------------------------------------|
Expand All @@ -44,4 +44,4 @@ Adb (Shizuku can run under adb) does not have sufficient permissions to access s

If the backend runs under adb, `RISH_PRESERVE_ENV` will be treated as `0` when not set.

If the backend runs under root, `RISH_PRESERVE_ENV` will be treated as `1` when not set.
If the backend runs under root, `RISH_PRESERVE_ENV` will be treated as `1` when not set.