diff --git a/README.md b/README.md index 7e501b4..5cbeae1 100644 --- a/README.md +++ b/README.md @@ -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). @@ -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. diff --git a/app/build.gradle b/app/build.gradle index c54a942..eef0564 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' diff --git a/app/release/app-release.apk b/app/release/app-release.apk index 8d6f9bf..bfd90e1 100644 Binary files a/app/release/app-release.apk and b/app/release/app-release.apk differ diff --git a/app/src/main/java/com/legendsayantan/adbtools/DebloatActivity.kt b/app/src/main/java/com/legendsayantan/adbtools/DebloatActivity.kt index bf054db..7c05840 100644 --- a/app/src/main/java/com/legendsayantan/adbtools/DebloatActivity.kt +++ b/app/src/main/java/com/legendsayantan/adbtools/DebloatActivity.kt @@ -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 { diff --git a/app/src/main/java/com/legendsayantan/adbtools/lib/ShizukuRunner.kt b/app/src/main/java/com/legendsayantan/adbtools/lib/ShizukuRunner.kt index 7b08680..08b792e 100644 --- a/app/src/main/java/com/legendsayantan/adbtools/lib/ShizukuRunner.kt +++ b/app/src/main/java/com/legendsayantan/adbtools/lib/ShizukuRunner.kt @@ -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 { @@ -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?