LegendaryStreamerShizuku is an utility class for android java / kotlin application to communicate with shizuku for executing shell commands or adb command in the device. Also we can get access to restricted folder access without any extra permissions which is not an official way to access storage on android 11 and above.
Instructions on how to get the module in your project.
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
...
implementation 'com.github.Harshshah6:ShizukuLegendaryStreamer:1.0'
}
private LegendaryStreamerShizuku legendaryStreamerShizuku;
private final ExecutionProcessListener executionProcessListener = new ExecutionProcessListener() {
@Override
public void onPreExecute() { }
@Override
public void onPostExecute(ArrayList<String> successMessages, ArrayList<String> errorMessages) { }
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
legendaryStreamerShizuku = new LegendaryStreamerShizuku(this);
legendaryStreamerShizuku.autoReqPermission(); //Automatically request shizuku runtime permision to connect with shizuku
legendaryStreamerShizuku.runCustomCommand("echo 'Hello World'",executionProcessListener); //Running an custom adb command
}
Checkout the available methods here
If you'd like to contribute to Project Title, here are some guidelines:
- Fork the repository.
- Create a new branch for your changes.
- Make your changes.
- Run the script to ensure they works.
- Commit your changes.
- Push your changes to your forked repository.
- Submit a pull request.
ShizukuLegendaryStreamer was created by LEGENDARY STREAMER.
- Shizuku :- Shizuku
- 1.0: Initial release (latest)
If you have any questions or comments about InstaMedia, please contact LEGENDARY STREAMER.