We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 012669d commit 64f34c2Copy full SHA for 64f34c2
app/src/main/kotlin/com/dev/debloater/utils/Shizuku/ShizukuManager.kt
@@ -138,6 +138,21 @@ object ShizukuManager {
138
showMessage("Uninstall failed: ${e.message}", SnackbarDuration.Long)
139
}
140
141
+
142
+ fun restore(packageName: String) {
143
+ if (!isBound || debloaterService == null) {
144
+ showMessage("Shizuku not connected - retrying...")
145
+ attemptBind()
146
+ return
147
+ }
148
149
+ try {
150
+ debloaterService?.restore(packageName)
151
+ showMessage("Restore command sent: $packageName")
152
+ } catch (e: Exception) {
153
+ showMessage("Restore failed: ${e.message}", SnackbarDuration.Long)
154
155
156
157
fun disable(packageName: String) {
158
if (!isBound || debloaterService == null) {
0 commit comments