feat(modules/bridge/AdditionalBridgeMethodsModule): add method to show Recovery alert

This commit is contained in:
PalmDevs 2025-10-15 00:54:45 +07:00
parent 0f0fc1645a
commit 09b99fe4a4
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -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,