INNER CODE UNIT · Kotlin

finalizePatching

NexAlloy/NexAlloy · app/src/main/java/io/github/nexalloy/PatchExecutor.kt:227

    private fun finalizePatching() {
        cache.saveCache()
        val success = failedPatches.isEmpty()
        if (!success) {
            XposedBridge.log("${lpparam.applicationInfo.packageName} version: ${getAppVersion()}")
            Utils.showToastLong("Error while apply following patches:\n${failedPatches.joinToString { it.name }}")
        }
    }

    private fun logDebugInfo() {
        val success = failedPatches.isEmpty()
        if (DEBUG) {
            XposedBridge.log("${lpparam.applicationInfo.packageName} version: ${getAppVersion()}")
            if (success) {
                Utils.showToastLong("apply patches success")
            }
        }
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…