Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(int, E) - Method in class com.topjohnwu.superuser.CallbackList
- add(InputStream) - Method in class com.topjohnwu.superuser.Shell.Job
-
Add a new operation serving an InputStream to STDIN.
- add(String...) - Method in class com.topjohnwu.superuser.Shell.Job
-
Add a new operation running commands.
- attachBaseContext(Context) - Method in class com.topjohnwu.superuser.ipc.RootService
B
- bind(Intent, Executor, ServiceConnection) - Static method in class com.topjohnwu.superuser.ipc.RootService
-
Bind to a root service, launching a new root process if needed.
- bind(Intent, ServiceConnection) - Static method in class com.topjohnwu.superuser.ipc.RootService
-
Bind to a root service, launching a new root process if needed.
- bindOrTask(Intent, Executor, ServiceConnection) - Static method in class com.topjohnwu.superuser.ipc.RootService
-
Bind to a root service, creating a task to launch a new root process if needed.
- build() - Method in class com.topjohnwu.superuser.Shell.Builder
-
Combine all of the options that have been set and build a new
Shell
instance. - build(Process) - Method in class com.topjohnwu.superuser.Shell.Builder
-
Combine all of the options that have been set and build a new
Shell
instance with the provided process. - build(String...) - Method in class com.topjohnwu.superuser.Shell.Builder
-
Combine all of the options that have been set and build a new
Shell
instance with the provided commands. - Builder() - Constructor for class com.topjohnwu.superuser.Shell.Builder
C
- CallbackList<E> - Class in com.topjohnwu.superuser
-
An
AbstractList
that callsonAddElement
when a new element is added to the list. - CallbackList() - Constructor for class com.topjohnwu.superuser.CallbackList
-
CallbackList.onAddElement(Object)
runs on the main thread; no backing list. - CallbackList(Executor) - Constructor for class com.topjohnwu.superuser.CallbackList
-
CallbackList.onAddElement(Object)
runs with the executor; no backing list. - CallbackList(Executor, List<E>) - Constructor for class com.topjohnwu.superuser.CallbackList
-
CallbackList.onAddElement(Object)
runs with the executor; sets a backing list. - CallbackList(List<E>) - Constructor for class com.topjohnwu.superuser.CallbackList
-
CallbackList.onAddElement(Object)
runs on the main thread; sets a backing list. - canExecute() - Method in class com.topjohnwu.superuser.io.SuFile
- canRead() - Method in class com.topjohnwu.superuser.io.SuFile
- canWrite() - Method in class com.topjohnwu.superuser.io.SuFile
- CATEGORY_DAEMON_MODE - Static variable in class com.topjohnwu.superuser.ipc.RootService
-
Launch the service in "Daemon Mode".
- cleanInputStream(InputStream) - Static method in class com.topjohnwu.superuser.ShellUtils
-
Discard all data currently available in an
InputStream
. - clear() - Method in class com.topjohnwu.superuser.io.SuFile
-
Clear the content of the file denoted by this abstract pathname.
- cmd(InputStream) - Static method in class com.topjohnwu.superuser.Shell
-
Create a pending
Shell.Job
of the main shell with anInputStream
. - cmd(String...) - Static method in class com.topjohnwu.superuser.Shell
-
Create a pending
Shell.Job
of the main shell with commands. - com.topjohnwu.superuser - package com.topjohnwu.superuser
- com.topjohnwu.superuser.io - package com.topjohnwu.superuser.io
-
This package is no longer actively maintained.
- com.topjohnwu.superuser.ipc - package com.topjohnwu.superuser.ipc
- com.topjohnwu.superuser.nio - package com.topjohnwu.superuser.nio
- create() - Static method in class com.topjohnwu.superuser.Shell.Builder
-
Create a new
Shell.Builder
. - createNewFile() - Method in class com.topjohnwu.superuser.io.SuFile
- createNewLink(String) - Method in class com.topjohnwu.superuser.io.SuFile
-
Creates a new hard link named by this abstract pathname of an existing file if and only if a file with this name does not yet exist.
- createNewLink(String) - Method in class com.topjohnwu.superuser.nio.ExtendedFile
-
Creates a new hard link named by this abstract pathname of an existing file if and only if a file with this name does not yet exist.
- createNewSymlink(String) - Method in class com.topjohnwu.superuser.io.SuFile
-
Creates a new symbolic link named by this abstract pathname to a target file if and only if a file with this name does not yet exist.
- createNewSymlink(String) - Method in class com.topjohnwu.superuser.nio.ExtendedFile
-
Creates a new symbolic link named by this abstract pathname to a target file if and only if a file with this name does not yet exist.
D
- delete() - Method in class com.topjohnwu.superuser.io.SuFile
-
Deletes the file or directory denoted by this abstract pathname.
- deleteOnExit() - Method in class com.topjohnwu.superuser.io.SuFile
-
Unsupported
- deleteRecursive() - Method in class com.topjohnwu.superuser.io.SuFile
-
Deletes the file or directory denoted by this abstract pathname.
E
- enableLegacyStderrRedirection - Static variable in class com.topjohnwu.superuser.Shell
-
This flag exists for compatibility reasons.
- enableVerboseLogging - Static variable in class com.topjohnwu.superuser.Shell
-
Set to
true
to enable verbose logging throughout the library. - enqueue() - Method in class com.topjohnwu.superuser.Shell.Job
-
Submit the job to an internal queue to run in the background.
- escapedString(String) - Static method in class com.topjohnwu.superuser.ShellUtils
-
Format string to quoted and escaped string suitable for shell commands.
- exec() - Method in class com.topjohnwu.superuser.Shell.Job
-
Execute the job immediately and returns the result.
- execTask(Shell.Task) - Method in class com.topjohnwu.superuser.Shell
-
Execute a low-level
Shell.Task
using the shell. - EXECUTOR - Static variable in class com.topjohnwu.superuser.Shell
-
The
Executor
that manages all worker threads used inlibsu
. - exists() - Method in class com.topjohnwu.superuser.io.SuFile
- ExtendedFile - Class in com.topjohnwu.superuser.nio
-
File
API with extended features. - ExtendedFile(File, String) - Constructor for class com.topjohnwu.superuser.nio.ExtendedFile
- ExtendedFile(String) - Constructor for class com.topjohnwu.superuser.nio.ExtendedFile
- ExtendedFile(String, String) - Constructor for class com.topjohnwu.superuser.nio.ExtendedFile
- ExtendedFile(URI) - Constructor for class com.topjohnwu.superuser.nio.ExtendedFile
F
- fastCmd(Shell, String...) - Static method in class com.topjohnwu.superuser.ShellUtils
-
Run commands and get a single line output.
- fastCmd(String...) - Static method in class com.topjohnwu.superuser.ShellUtils
-
Run commands with the main shell and get a single line output.
- fastCmdResult(Shell, String...) - Static method in class com.topjohnwu.superuser.ShellUtils
-
Run commands and return whether exits with 0 (success).
- fastCmdResult(String...) - Static method in class com.topjohnwu.superuser.ShellUtils
-
Run commands with the main shell and return whether exits with 0 (success).
- FileSystemManager - Class in com.topjohnwu.superuser.nio
-
Access file system APIs.
- FileSystemManager() - Constructor for class com.topjohnwu.superuser.nio.FileSystemManager
- FLAG_MOUNT_MASTER - Static variable in class com.topjohnwu.superuser.Shell
-
If set, create a root shell with the
--mount-master
option. - FLAG_NON_ROOT_SHELL - Static variable in class com.topjohnwu.superuser.Shell
-
If set, create a non-root shell.
G
- gcd(long, long) - Static method in class com.topjohnwu.superuser.ShellUtils
-
Get the greatest common divisor of 2 integers with binary algorithm.
- get(int) - Method in class com.topjohnwu.superuser.CallbackList
- getAbsoluteFile() - Method in class com.topjohnwu.superuser.io.SuFile
- getAbsoluteFile() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
- getAbsolutePath() - Method in class com.topjohnwu.superuser.io.SuFile
- getApplicationContext() - Method in class com.topjohnwu.superuser.ipc.RootService
- getCachedShell() - Static method in class com.topjohnwu.superuser.Shell
-
Get the cached main shell.
- getCanonicalFile() - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns the canonical form of this abstract pathname.
- getCanonicalFile() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
- getCanonicalPath() - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns the canonical pathname string of this abstract pathname.
- getChildFile(String) - Method in class com.topjohnwu.superuser.io.SuFile
- getChildFile(String) - Method in class com.topjohnwu.superuser.nio.ExtendedFile
-
Create a child relative to the abstract pathname using the same file system backend.
- getCode() - Method in class com.topjohnwu.superuser.Shell.Result
-
Get the return code of the job.
- getComponentName() - Method in class com.topjohnwu.superuser.ipc.RootService
-
Return the component name that will be used for service lookup.
- getErr() - Method in class com.topjohnwu.superuser.Shell.Result
-
Get the output of STDERR.
- getEscapedPath() - Method in class com.topjohnwu.superuser.io.SuFile
-
Converts this abstract pathname into a pathname string suitable for shell commands.
- getFile(File, String) - Method in class com.topjohnwu.superuser.nio.FileSystemManager
- getFile(String) - Method in class com.topjohnwu.superuser.nio.FileSystemManager
- getFile(String, String) - Method in class com.topjohnwu.superuser.nio.FileSystemManager
- getFile(URI) - Method in class com.topjohnwu.superuser.nio.FileSystemManager
- getFilePointer() - Method in class com.topjohnwu.superuser.io.SuRandomAccessFile
- getFreeSpace() - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns the number of unallocated bytes in the partition.
- getLocal() - Static method in class com.topjohnwu.superuser.nio.FileSystemManager
-
Get the
FileSystemManager
to access the file system of the current local process. - getOut() - Method in class com.topjohnwu.superuser.Shell.Result
-
Get the output of STDOUT.
- getParentFile() - Method in class com.topjohnwu.superuser.io.SuFile
- getParentFile() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
- getRemote(IBinder) - Static method in class com.topjohnwu.superuser.nio.FileSystemManager
-
Create a
FileSystemManager
to access the file system of a remote process. - getService() - Static method in class com.topjohnwu.superuser.nio.FileSystemManager
-
Get the service that exports the file system of the current process over Binder IPC.
- getShell() - Method in class com.topjohnwu.superuser.io.SuFile
- getShell() - Static method in class com.topjohnwu.superuser.Shell
-
Get the main shell instance.
- getShell(Shell.GetShellCallback) - Static method in class com.topjohnwu.superuser.Shell
-
Get the main shell instance asynchronously via a callback.
- getShell(Executor, Shell.GetShellCallback) - Static method in class com.topjohnwu.superuser.Shell
-
Get the main shell instance asynchronously via a callback.
- getStatus() - Method in class com.topjohnwu.superuser.Shell
-
Get the status of the shell.
- getTotalSpace() - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns the size of the partition.
- getUsableSpace() - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns the number of bytes available to this process on the partition.
I
- Initializer() - Constructor for class com.topjohnwu.superuser.Shell.Initializer
- isAlive() - Method in class com.topjohnwu.superuser.Shell
-
Return whether the shell is still alive.
- isAppGrantedRoot() - Static method in class com.topjohnwu.superuser.Shell
-
Whether the application has access to root.
- isBlock() - Method in class com.topjohnwu.superuser.io.SuFile
- isBlock() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
- isCharacter() - Method in class com.topjohnwu.superuser.io.SuFile
- isCharacter() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
- isDirectory() - Method in class com.topjohnwu.superuser.io.SuFile
- isFile() - Method in class com.topjohnwu.superuser.io.SuFile
- isNamedPipe() - Method in class com.topjohnwu.superuser.io.SuFile
- isNamedPipe() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
- isRoot() - Method in class com.topjohnwu.superuser.Shell
-
Return whether the shell has root access.
- isSocket() - Method in class com.topjohnwu.superuser.io.SuFile
- isSocket() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
- isSuccess() - Method in class com.topjohnwu.superuser.Shell.Result
-
Whether the job succeeded.
- isSymlink() - Method in class com.topjohnwu.superuser.io.SuFile
- isSymlink() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
- isValidOutput(List<String>) - Static method in class com.topjohnwu.superuser.ShellUtils
-
Test whether the list is
null
or empty or all elements are empty strings.
J
- Job() - Constructor for class com.topjohnwu.superuser.Shell.Job
- JOB_NOT_EXECUTED - Static variable in class com.topjohnwu.superuser.Shell.Result
-
This code indicates that the job was not executed, and the outputs are all empty.
L
- lastModified() - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns the time that the file denoted by this abstract pathname was last modified.
- length() - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns the length of the file denoted by this abstract pathname.
- length() - Method in class com.topjohnwu.superuser.io.SuRandomAccessFile
- list() - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname.
- list(FilenameFilter) - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns an array of strings naming the files and directories in the directory denoted by this abstract pathname that satisfy the specified filter.
- listFiles() - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname.
- listFiles() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
- listFiles(FileFilter) - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname that satisfy the specified filter.
- listFiles(FileFilter) - Method in class com.topjohnwu.superuser.nio.ExtendedFile
- listFiles(FilenameFilter) - Method in class com.topjohnwu.superuser.io.SuFile
-
Returns an array of abstract pathnames denoting the files in the directory denoted by this abstract pathname that satisfy the specified filter.
- listFiles(FilenameFilter) - Method in class com.topjohnwu.superuser.nio.ExtendedFile
M
- mBase - Variable in class com.topjohnwu.superuser.CallbackList
- mExecutor - Variable in class com.topjohnwu.superuser.CallbackList
- mkdir() - Method in class com.topjohnwu.superuser.io.SuFile
-
Creates the directory named by this abstract pathname.
- mkdirs() - Method in class com.topjohnwu.superuser.io.SuFile
-
Creates the directory named by this abstract pathname, including any necessary but nonexistent parent directories.
- MODE_APPEND - Static variable in class com.topjohnwu.superuser.nio.FileSystemManager
-
For use with
FileSystemManager.openChannel(java.lang.String, int)
: append to end of file while writing. - MODE_CREATE - Static variable in class com.topjohnwu.superuser.nio.FileSystemManager
-
For use with
FileSystemManager.openChannel(java.lang.String, int)
: create the file if it doesn't already exist. - MODE_READ_ONLY - Static variable in class com.topjohnwu.superuser.nio.FileSystemManager
-
For use with
FileSystemManager.openChannel(java.lang.String, int)
: open the file with read-only access. - MODE_READ_WRITE - Static variable in class com.topjohnwu.superuser.nio.FileSystemManager
-
For use with
FileSystemManager.openChannel(java.lang.String, int)
: open the file with read and write access. - MODE_TRUNCATE - Static variable in class com.topjohnwu.superuser.nio.FileSystemManager
-
For use with
FileSystemManager.openChannel(java.lang.String, int)
: erase contents of file when opening. - MODE_WRITE_ONLY - Static variable in class com.topjohnwu.superuser.nio.FileSystemManager
-
For use with
FileSystemManager.openChannel(java.lang.String, int)
: open the file with write-only access.
N
- newInputStream() - Method in class com.topjohnwu.superuser.io.SuFile
- newInputStream() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
-
Opens an InputStream with the matching file system backend of the file.
- newJob() - Method in class com.topjohnwu.superuser.Shell
-
Construct a new
Shell.Job
that uses the shell for execution. - newOutputStream() - Method in class com.topjohnwu.superuser.nio.ExtendedFile
-
Opens an OutputStream with the matching file system backend of the file.
- newOutputStream(boolean) - Method in class com.topjohnwu.superuser.io.SuFile
- newOutputStream(boolean) - Method in class com.topjohnwu.superuser.nio.ExtendedFile
-
Opens an OutputStream with the matching file system backend of the file.
- NON_ROOT_SHELL - Static variable in class com.topjohnwu.superuser.Shell
-
Shell status: Non-root shell.
- NoShellException - Exception in com.topjohnwu.superuser
-
Thrown when it is impossible to construct
Shell
. - NoShellException(String) - Constructor for exception com.topjohnwu.superuser.NoShellException
- NoShellException(String, Throwable) - Constructor for exception com.topjohnwu.superuser.NoShellException
O
- onAddElement(E) - Method in class com.topjohnwu.superuser.CallbackList
-
The callback when a new element is added.
- onAttach(Context) - Method in class com.topjohnwu.superuser.ipc.RootService
-
Called when the RootService is getting attached with a
Context
. - onBind(Intent) - Method in class com.topjohnwu.superuser.ipc.RootService
- onCreate() - Method in class com.topjohnwu.superuser.ipc.RootService
- onDestroy() - Method in class com.topjohnwu.superuser.ipc.RootService
- onInit(Context, Shell) - Method in class com.topjohnwu.superuser.Shell.Initializer
-
Called when a new shell is constructed.
- onMainThread() - Static method in class com.topjohnwu.superuser.ShellUtils
-
Check if current thread is main thread.
- onRebind(Intent) - Method in class com.topjohnwu.superuser.ipc.RootService
- onResult(Shell.Result) - Method in interface com.topjohnwu.superuser.Shell.ResultCallback
- onShell(Shell) - Method in interface com.topjohnwu.superuser.Shell.GetShellCallback
- onUnbind(Intent) - Method in class com.topjohnwu.superuser.ipc.RootService
- open(File) - Static method in class com.topjohnwu.superuser.io.SuFileInputStream
-
Open an
InputStream
with root access. - open(File) - Static method in class com.topjohnwu.superuser.io.SuFileOutputStream
-
SuFileOutputStream.open(file, false)
- open(File, boolean) - Static method in class com.topjohnwu.superuser.io.SuFileOutputStream
-
Open an
OutputStream
with root access. - open(File, String) - Static method in class com.topjohnwu.superuser.io.SuFile
- open(File, String) - Static method in class com.topjohnwu.superuser.io.SuRandomAccessFile
- open(String) - Static method in class com.topjohnwu.superuser.io.SuFile
- open(String) - Static method in class com.topjohnwu.superuser.io.SuFileInputStream
-
SuFileInputStream.open(new File(path))
- open(String) - Static method in class com.topjohnwu.superuser.io.SuFileOutputStream
-
SuFileOutputStream.open(new File(path), false)
- open(String, boolean) - Static method in class com.topjohnwu.superuser.io.SuFileOutputStream
-
SuFileOutputStream.open(new File(path), append)
- open(String, String) - Static method in class com.topjohnwu.superuser.io.SuFile
- open(String, String) - Static method in class com.topjohnwu.superuser.io.SuRandomAccessFile
-
SuRandomAccessFile.open(new File(path), mode)
- open(URI) - Static method in class com.topjohnwu.superuser.io.SuFile
- openChannel(File, int) - Method in class com.topjohnwu.superuser.nio.FileSystemManager
-
Opens a file channel to access the file.
- openChannel(String, int) - Method in class com.topjohnwu.superuser.nio.FileSystemManager
-
Opens a file channel to access the file.
R
- read() - Method in class com.topjohnwu.superuser.io.SuRandomAccessFile
- read(byte[]) - Method in class com.topjohnwu.superuser.io.SuRandomAccessFile
- read(byte[], int, int) - Method in class com.topjohnwu.superuser.io.SuRandomAccessFile
- remove(int) - Method in class com.topjohnwu.superuser.CallbackList
- renameTo(File) - Method in class com.topjohnwu.superuser.io.SuFile
-
Renames the file denoted by this abstract pathname.
- Result() - Constructor for class com.topjohnwu.superuser.Shell.Result
- ROOT_SHELL - Static variable in class com.topjohnwu.superuser.Shell
-
Shell status: Root shell.
- RootService - Class in com.topjohnwu.superuser.ipc
-
A remote root service using native Android Binder IPC.
- RootService() - Constructor for class com.topjohnwu.superuser.ipc.RootService
- run(OutputStream, InputStream, InputStream) - Method in interface com.topjohnwu.superuser.Shell.Task
-
This method will be called when a task is executed by a shell.
S
- seek(long) - Method in class com.topjohnwu.superuser.io.SuRandomAccessFile
- set(int, E) - Method in class com.topjohnwu.superuser.CallbackList
- setCommands(String...) - Method in class com.topjohnwu.superuser.Shell.Builder
-
Set the commands that will be used to create a new
Shell
. - setContext(Context) - Method in class com.topjohnwu.superuser.Shell.Builder
-
Set the
Context
to use when creating a shell. - setDefaultBuilder(Shell.Builder) - Static method in class com.topjohnwu.superuser.Shell
-
Override the default
Shell.Builder
. - setExecutable(boolean, boolean) - Method in class com.topjohnwu.superuser.io.SuFile
-
Sets the owner's or everybody's execute permission for this abstract pathname.
- setFlags(int) - Method in class com.topjohnwu.superuser.Shell.Builder
-
Set flags to control how a new
Shell
will be constructed. - setInitializers(Class<? extends Shell.Initializer>...) - Method in class com.topjohnwu.superuser.Shell.Builder
-
Set the desired
Shell.Initializer
s. - setLastModified(long) - Method in class com.topjohnwu.superuser.io.SuFile
-
Sets the last-modified time of the file or directory named by this abstract pathname.
- setLength(long) - Method in class com.topjohnwu.superuser.io.SuRandomAccessFile
- setReadable(boolean, boolean) - Method in class com.topjohnwu.superuser.io.SuFile
-
Sets the owner's or everybody's read permission for this abstract pathname.
- setReadOnly() - Method in class com.topjohnwu.superuser.io.SuFile
-
Marks the file or directory named by this abstract pathname so that only read operations are allowed.
- setShell(Shell) - Method in class com.topjohnwu.superuser.io.SuFile
-
Set the
Shell
instance to be used internally for all operations. - setTimeout(long) - Method in class com.topjohnwu.superuser.Shell.Builder
-
Set the maximum time to wait for shell verification.
- setWritable(boolean, boolean) - Method in class com.topjohnwu.superuser.io.SuFile
-
Sets the owner's or everybody's write permission for this abstract pathname.
- Shell - Class in com.topjohnwu.superuser
-
A class providing APIs to an interactive Unix shell.
- Shell() - Constructor for class com.topjohnwu.superuser.Shell
- Shell.Builder - Class in com.topjohnwu.superuser
-
Builder class for
Shell
instances. - Shell.GetShellCallback - Interface in com.topjohnwu.superuser
-
The callback used in
Shell.getShell(GetShellCallback)
. - Shell.Initializer - Class in com.topjohnwu.superuser
-
The initializer when a new
Shell
is constructed. - Shell.Job - Class in com.topjohnwu.superuser
-
Represents a shell Job that could later be executed or submitted to background threads.
- Shell.Result - Class in com.topjohnwu.superuser
-
The result of a
Shell.Job
. - Shell.ResultCallback - Interface in com.topjohnwu.superuser
-
The callback to receive a result in
Shell.Job.submit(Shell.ResultCallback)
. - Shell.Task - Interface in com.topjohnwu.superuser
-
A task that can be executed by a shell with the method
Shell.execTask(Task)
. - shellDied() - Method in interface com.topjohnwu.superuser.Shell.Task
-
This method will be called when a shell is unable to execute this task.
- ShellUtils - Class in com.topjohnwu.superuser
-
Some handy utility methods that are used in
libsu
. - size() - Method in class com.topjohnwu.superuser.CallbackList
- stop(Intent) - Static method in class com.topjohnwu.superuser.ipc.RootService
-
Force stop a root service, launching a new root process if needed.
- stopOrTask(Intent) - Static method in class com.topjohnwu.superuser.ipc.RootService
-
Force stop a root service, creating a task to launch a new root process if needed.
- stopSelf() - Method in class com.topjohnwu.superuser.ipc.RootService
-
Force stop this root service.
- submit() - Method in class com.topjohnwu.superuser.Shell.Job
-
Submit the job to an internal queue to run in the background.
- submit(Shell.ResultCallback) - Method in class com.topjohnwu.superuser.Shell.Job
-
Submit the job to an internal queue to run in the background.
- submit(Executor, Shell.ResultCallback) - Method in class com.topjohnwu.superuser.Shell.Job
-
Submit the job to an internal queue to run in the background.
- submitTask(Shell.Task) - Method in class com.topjohnwu.superuser.Shell
-
Submits a low-level
Shell.Task
for execution in a queue of the shell. - SuFile - Class in com.topjohnwu.superuser.io
-
A
File
implementation using root shell. - SuFile(File, String) - Constructor for class com.topjohnwu.superuser.io.SuFile
- SuFile(String) - Constructor for class com.topjohnwu.superuser.io.SuFile
- SuFile(String, String) - Constructor for class com.topjohnwu.superuser.io.SuFile
- SuFile(URI) - Constructor for class com.topjohnwu.superuser.io.SuFile
- SuFileInputStream - Class in com.topjohnwu.superuser.io
-
Open
InputStream
s that read files with root access. - SuFileOutputStream - Class in com.topjohnwu.superuser.io
-
Open
OutputStream
s that read files with root access. - SuRandomAccessFile - Class in com.topjohnwu.superuser.io
-
Access files using the main shell and mimics
RandomAccessFile
. - SuRandomAccessFile() - Constructor for class com.topjohnwu.superuser.io.SuRandomAccessFile
T
- to(List<String>) - Method in class com.topjohnwu.superuser.Shell.Job
-
Store output of STDOUT to a specific list.
- to(List<String>, List<String>) - Method in class com.topjohnwu.superuser.Shell.Job
-
Store output of STDOUT and STDERR to specific lists.
U
- unbind(ServiceConnection) - Static method in class com.topjohnwu.superuser.ipc.RootService
-
Unbind from a root service.
- UNKNOWN - Static variable in class com.topjohnwu.superuser.Shell
-
Shell status: Unknown.
W
- waitAndClose() - Method in class com.topjohnwu.superuser.Shell
-
Wait indefinitely for any current/pending tasks to finish before closing this shell and release any system resources associated with the shell.
- waitAndClose(long, TimeUnit) - Method in class com.topjohnwu.superuser.Shell
-
Wait for any current/pending tasks to finish before closing this shell and release any system resources associated with the shell.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form