Skip to content

Commit 349e50d

Browse files
updated to latest shizuku library
1 parent 49366b0 commit 349e50d

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ Contains some easy-to-use tools to go beyond the level of control allowed by And
66
- [x] **ThemePatcher** - Unlocks premium content for free, from the Oppo/Realme/Oneplus theme store.
77
- [x] **MixedAudio** - Allows multiple media apps to play at the same time, or mute audio of specific apps.
88
- [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)
9-
- [x] **LookBack** - Allows downgrade of apps, without uninstallation. *Not an entirely stable feature.*
9+
- [x] **LookBack** - Allows downgrade of apps, without uninstallation. *Does not work on all devices.*
1010
- [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).
1111
- [x] **LocalShell** - Manually execute other raw ADB commands.
1212
- [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)
1313

14-
#### 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.
14+
Better Alternative to UniversalPip - [Extendroid](https://github.com/legendsayantan/Extendroid)
15+
16+
#### This app is still being developed. Feel free to suggest new features, report bugs or contribute to the project.
1517

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

24-
**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.
26+
**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.

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ android {
3232
}
3333

3434
dependencies {
35-
implementation "dev.rikka.shizuku:api:12.1.0"
36-
implementation "dev.rikka.shizuku:provider:12.1.0"
35+
implementation "dev.rikka.shizuku:api:13.1.5"
36+
implementation "dev.rikka.shizuku:provider:13.1.5"
3737
implementation 'com.google.code.gson:gson:2.10.1'
3838
implementation 'androidx.core:core-ktx:1.13.1'
3939
implementation 'androidx.appcompat:appcompat:1.7.0'

app/release/app-release.apk

1.9 KB
Binary file not shown.

app/src/main/java/com/legendsayantan/adbtools/DebloatActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class DebloatActivity : AppCompatActivity() {
113113
DebloatAdapter(this@DebloatActivity, apps)
114114
Toast.makeText(
115115
applicationContext,
116-
"Disabled ${app.name}",
116+
"Success for ${app.name}",
117117
Toast.LENGTH_LONG
118118
).show()
119119
} else {

app/src/main/java/com/legendsayantan/adbtools/lib/ShizukuRunner.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ package com.legendsayantan.adbtools.lib
33
/**
44
* @author legendsayantan
55
*/
6+
import moe.shizuku.server.IShizukuService
67
import rikka.shizuku.Shizuku
78
import java.io.BufferedReader
9+
import java.io.FileInputStream
810
import java.io.InputStreamReader
911

1012
class ShizukuRunner {
@@ -27,9 +29,10 @@ class ShizukuRunner {
2729
fun command(command: String, listener: CommandResultListener, lineBundle: Int = 50) {
2830
Thread {
2931
try {
30-
val process = Shizuku.newProcess(arrayOf("sh", "-c", command), null, "/")
31-
val reader = BufferedReader(InputStreamReader(process.inputStream))
32-
val err = BufferedReader(InputStreamReader(process.errorStream))
32+
val process = IShizukuService.Stub.asInterface(Shizuku.getBinder())
33+
.newProcess(arrayOf("sh","-c",command), null, null)
34+
val reader = BufferedReader(InputStreamReader(FileInputStream(process.inputStream.fileDescriptor)))
35+
val err = BufferedReader(InputStreamReader(FileInputStream(process.errorStream.fileDescriptor)))
3336
val output = StringBuilder()
3437
val errordata = StringBuilder()
3538
var line: String?

0 commit comments

Comments
 (0)