[service] Deactivate android interface code for now
This commit is contained in:
@@ -1,31 +1,34 @@
|
||||
package debug
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
// TODO: Re-enable Android interfaces.
|
||||
// Deactived for transition to new module system.
|
||||
|
||||
"github.com/safing/portmaster-android/go/app_interface"
|
||||
)
|
||||
// import (
|
||||
// "context"
|
||||
// "fmt"
|
||||
|
||||
// AddPlatformInfo adds OS and platform information.
|
||||
func (di *Info) AddPlatformInfo(_ context.Context) {
|
||||
// Get information from the system.
|
||||
info, err := app_interface.GetPlatformInfo()
|
||||
if err != nil {
|
||||
di.AddSection(
|
||||
"Platform Information",
|
||||
NoFlags,
|
||||
fmt.Sprintf("Failed to get: %s", err),
|
||||
)
|
||||
return
|
||||
}
|
||||
// "github.com/safing/portmaster-android/go/app_interface"
|
||||
// )
|
||||
|
||||
// Add section.
|
||||
di.AddSection(
|
||||
fmt.Sprintf("Platform: Android"),
|
||||
UseCodeSection|AddContentLineBreaks,
|
||||
fmt.Sprintf("SDK: %d", info.SDK),
|
||||
fmt.Sprintf("Device: %s %s (%s)", info.Manufacturer, info.Brand, info.Board),
|
||||
fmt.Sprintf("App: %s: %s %s", info.ApplicationID, info.VersionName, info.BuildType))
|
||||
// // AddPlatformInfo adds OS and platform information.
|
||||
// func (di *Info) AddPlatformInfo(_ context.Context) {
|
||||
// // Get information from the system.
|
||||
// info, err := app_interface.GetPlatformInfo()
|
||||
// if err != nil {
|
||||
// di.AddSection(
|
||||
// "Platform Information",
|
||||
// NoFlags,
|
||||
// fmt.Sprintf("Failed to get: %s", err),
|
||||
// )
|
||||
// return
|
||||
// }
|
||||
|
||||
}
|
||||
// // Add section.
|
||||
// di.AddSection(
|
||||
// fmt.Sprintf("Platform: Android"),
|
||||
// UseCodeSection|AddContentLineBreaks,
|
||||
// fmt.Sprintf("SDK: %d", info.SDK),
|
||||
// fmt.Sprintf("Device: %s %s (%s)", info.Manufacturer, info.Brand, info.Board),
|
||||
// fmt.Sprintf("App: %s: %s %s", info.ApplicationID, info.VersionName, info.BuildType))
|
||||
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user