feat(modules/bridge/AdditionalBridgeMethodsModule): add method to show Recovery alert
This commit is contained in:
parent
0f0fc1645a
commit
09b99fe4a4
1 changed files with 5 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ import android.content.Context
|
|||
import android.os.Build
|
||||
import android.widget.Toast
|
||||
import io.github.revenge.xposed.Module
|
||||
import io.github.revenge.xposed.Utils
|
||||
import java.io.File
|
||||
|
||||
class AdditionalBridgeMethodsModule : Module() {
|
||||
|
|
@ -43,6 +44,10 @@ class AdditionalBridgeMethodsModule : Module() {
|
|||
null
|
||||
}
|
||||
|
||||
BridgeModule.registerMethod("revenge.showRecoveryAlert") {
|
||||
Utils.showRecoveryAlert(context)
|
||||
}
|
||||
|
||||
BridgeModule.registerMethod("revenge.fs.getConstants") {
|
||||
mapOf(
|
||||
"data" to dataDir.absolutePath,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue