Skip to content

Commit

Permalink
updated to latest shizuku library
Browse files Browse the repository at this point in the history
  • Loading branch information
legendsayantan committed Aug 3, 2024
1 parent 49366b0 commit 349e50d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ Contains some easy-to-use tools to go beyond the level of control allowed by And
- [x] **ThemePatcher** - Unlocks premium content for free, from the Oppo/Realme/Oneplus theme store.
- [x] **MixedAudio** - Allows multiple media apps to play at the same time, or mute audio of specific apps.
- [x] **SoundMaster** - Independent volume control for every app, play on multiple audio outputs simultaneously, and more! [How to use](https://github.com/legendsayantan/ShizuTools/wiki/SoundMaster)
- [x] **LookBack** - Allows downgrade of apps, without uninstallation. *Not an entirely stable feature.*
- [x] **LookBack** - Allows downgrade of apps, without uninstallation. *Does not work on all devices.*
- [x] **UniversalPip** - Enforces Picture-in-Picture mode for all apps, even if they don't allow it. [How to use](https://github.com/legendsayantan/ShizuTools/wiki/UniversalPip).
- [x] **LocalShell** - Manually execute other raw ADB commands.
- [x] **IntentShell** - Allows other apps (Tasker,MacroDroid,etc) to run ADB commands via intent requests. [How to use](https://github.com/legendsayantan/ShizuTools/wiki/IntentShell)

#### This app is still on development phase, and not everything is always reliable. Feel free to suggest new features, report bugs or contribute to the project.
Better Alternative to UniversalPip - [Extendroid](https://github.com/legendsayantan/Extendroid)

#### This app is still being developed. Feel free to suggest new features, report bugs or contribute to the project.

### Installation
Install the Latest Release Build from [here](https://github.com/legendsayantan/ShizuTools/releases/latest).
Expand All @@ -21,4 +23,4 @@ Install the Latest Dev Build from [here](https://github.com/legendsayantan/Shizu
### License
This project is licensed under GNU General Public License v3.0.

**Note** - You must not distribute this software, whether original or modified, to any platform without its source code or the reference to its original source code. Also, uploading to any app stores is forbidden.
**Note** - You must not distribute this software, whether original or modified, to any platform without its source code or the reference to its original source code. Also, publishing to any app stores without permission is forbidden.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ android {
}

dependencies {
implementation "dev.rikka.shizuku:api:12.1.0"
implementation "dev.rikka.shizuku:provider:12.1.0"
implementation "dev.rikka.shizuku:api:13.1.5"
implementation "dev.rikka.shizuku:provider:13.1.5"
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class DebloatActivity : AppCompatActivity() {
DebloatAdapter(this@DebloatActivity, apps)
Toast.makeText(
applicationContext,
"Disabled ${app.name}",
"Success for ${app.name}",
Toast.LENGTH_LONG
).show()
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package com.legendsayantan.adbtools.lib
/**
* @author legendsayantan
*/
import moe.shizuku.server.IShizukuService
import rikka.shizuku.Shizuku
import java.io.BufferedReader
import java.io.FileInputStream
import java.io.InputStreamReader

class ShizukuRunner {
Expand All @@ -27,9 +29,10 @@ class ShizukuRunner {
fun command(command: String, listener: CommandResultListener, lineBundle: Int = 50) {
Thread {
try {
val process = Shizuku.newProcess(arrayOf("sh", "-c", command), null, "/")
val reader = BufferedReader(InputStreamReader(process.inputStream))
val err = BufferedReader(InputStreamReader(process.errorStream))
val process = IShizukuService.Stub.asInterface(Shizuku.getBinder())
.newProcess(arrayOf("sh","-c",command), null, null)
val reader = BufferedReader(InputStreamReader(FileInputStream(process.inputStream.fileDescriptor)))
val err = BufferedReader(InputStreamReader(FileInputStream(process.errorStream.fileDescriptor)))
val output = StringBuilder()
val errordata = StringBuilder()
var line: String?
Expand Down

0 comments on commit 349e50d

Please sign in to comment.