[client] Android debug bundle support (#5888)

Add Android debug bundle support with Troubleshoot UI
This commit is contained in:
Zoltan Papp
2026-04-20 11:26:30 +02:00
committed by GitHub
parent e361126515
commit 7f023ce801
9 changed files with 191 additions and 22 deletions

View File

@@ -0,0 +1,25 @@
//go:build !android
package debug
import (
"slices"
log "github.com/sirupsen/logrus"
"github.com/netbirdio/netbird/util"
)
func (g *BundleGenerator) addPlatformLog() error {
if g.logPath != "" && !slices.Contains(util.SpecialLogs, g.logPath) {
if err := g.addLogfile(); err != nil {
log.Errorf("failed to add log file to debug bundle: %v", err)
if err := g.trySystemdLogFallback(); err != nil {
return err
}
}
} else if err := g.trySystemdLogFallback(); err != nil {
return err
}
return nil
}